/*Google fonts*/

/*黑體*/
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/*楷體*/
@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);

/*明體*/
@import url(https://fonts.googleapis.com/earlyaccess/cwtexming.css);

* {
    font-family: "Noto Sans TC", "微軟正黑體", "sans-serif";
    box-sizing: border-box;
    /*    transition-duration: 0.5s;*/
}

body,
html {
    width: 100%;
    margin: 0px;
    padding: 0px;
    background-color: #FDFBF4;
}

html {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: black;
}

p,
ul {
    font-size: 1rem;
    line-height: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: justify;
}

h2 {
    font-size: 1.8rem;
    margin: 0;
}

h3 {
    font-size: 1.4rem;
    margin: 0;
}

h4 {
    font-size: 1.2rem;
    margin: 0;
}

a img {
    border: 0px;
}

.header {
    height: 35px;
    background-color: #424242;
}

.content {
    position: relative;
    overflow: hidden;
}

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 10;
}

map *:focus {
    outline: none;
}

.header-content {
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-40%);
}

.footer {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #999;
    clear: left;
}

.footer h5 {
    margin: 0px;
    font-weight: 400;
    color: #333;
}

.top{
    background-color: #231815;
    background-image: url(images/9789570851731_top_bg02.png),url(images/9789570851731_top_bg01.png);
    background-repeat: no-repeat,repeat;
    background-position: center,left;    
}

.top .content img{
    position: absolute;
}

.top .content{
    height: 630px;
    overflow: inherit;
}

.top .content img:first-of-type{
    left: 63%;
    top: 70px;
    max-width: 30%;
}

.top .content img:nth-of-type(2){
    left: 12%;
    top: 170px;
    max-width: 50%;
}

.top .content img:nth-of-type(3){
    bottom: -60px;
    max-width: 90%;
}

.s2 .content{
    padding-top: 100px;
    padding-bottom: 50px;
    font-size: 0;
    background-image: url(images/9789570851731_s2_bg.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto;
}

.s2-text{
    width: 65%;
}

.s2 .line{
    width: 65%;
    height: 3px;
    background-image: url(images/9789570851731_s2_01.png);
    background-repeat: repeat-x;
}

.s2-text{
    color: #332421;
    margin-bottom: 30px;
    clear: both;
}

.s2-text:nth-of-type(3){
    margin-top: 30px;
}

.s2 .rec{
    width: 65%;
}

.s2 .rec .title{
    display: inline-block;
    background-color: #D3694C;
    padding: 1px 0;
}

.s2 .rec h4{
    margin: 0;
    color: white;
    padding: 0 15px;
    display: inline-block;
}

.s2 .rec .title::before{
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FDFBF4;
    margin-bottom: 2px;
}

.s2 .rec .title::after{
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FDFBF4;
    margin-top: 2px;
}

.s2 .rec span{
    font-weight: bold;
    font-size: 1.2rem;
}

.s2 .book{
    width: 250px;
    float: right;
    text-align: center;
    padding-left: 30px;   
}

.s2 .book img{
    width: 100%;
    max-width: 250px;
}

.book p{
    text-align: center;
    margin-top: 20px;
    color: #E50012;
}

.book span {
    padding: 3px 15px;
    margin-left: 12px;
    font-weight: bold;
    transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    /* Firefox 4 */
    -webkit-transition-duration: 0.5s;
    /* Safari 和 Chrome */
    -o-transition-duration: 0.5s;
    /* Opera */
    font-weight: 400;
    border: solid 1px #E50012;
    color: #E50012;
}

.book span:hover {
    color: #fff;
    background-color: black;
}


.s3{
    background-image: url(images/9789570851731_s3_bg.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
}

.s3::before, .s3::after{
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    background-color: #C9A063;
}

.s3 .content{
    padding: 0!important;
    min-height: 150px;
}

.s3 .content img{
    width: 100%;
    min-height: 150px;
}

.s4 .content{
    background-image: url(images/9789570851731_s4_bg.png);
    background-repeat: no-repeat;
    background-position: bottom left;
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 0;
}

.s4 .content>div{
    max-width: 908px;
    margin: 0 auto;
}

.author{
    background-repeat: no-repeat;
    background-size: contain;
}

.author-top{
    background-image: url(images/9789570851731_s4_01.png);
    height: 50px;
    background-position: bottom;
}

.author-med{
    background-image: url(images/9789570851731_s4_02.png);
    background-repeat: repeat-y;
    padding: 20px 60px;
}

.author-botn{
    background-image: url(images/9789570851731_s4_03.png);
    height: 50px;
}

.author-med h2{
    margin: 0 10px 0 0;
    color: #332421;
    display: inline-block;
}

.author-med h2::before{
    content: "";
    display: inline-block;
    height: 25px;
    width: 25px;
    background-image: url(images/9789570851731_s4_04.png);
    margin-right: 10px;
}

.author-med h4{
    margin: 0;
    color: #C9A063;
    display: inline-block;
}

.author-med img{
    float: left;
    margin-top: 9px;
    margin-right: 15px;
    border: solid 1px #C9A063;
}

.s5{
    background-color: #332421;
    text-align: center;
    color: white;
}

.s5 .content{
    padding-top: 50px;
    padding-bottom: 50px;
}

.s5 .title h2{
    color: #C43748;
    margin-bottom: 40px;
    display: inline-block;
}

.s5 span{
    color: #E0C7AD;
}

.s6 .content{
    padding: 50px;
    font-size: 0;
}

.read-box{
    margin: 0 auto;
    max-width: 1000px;
    margin-bottom: 50px;
}

.read-box .left,
.read-box .right{
    display: inline-block;
    vertical-align: middle;
}

.read-box .right{
    width: calc(100% - 390px);
}

.read-box .left{
    padding-right: 20px;
}

.read-box .left img{
    width: 100%;
}

.read-box .title h3 {
    color: white;
    display: inline-block;
}

.read-box .title h4{
    color: #E0C7AD;
    display: inline-block;
    margin-right: 10px;
}

.read-box .title{
    background-color: #634844;
    padding: 5px 15px;
    display: inline-block;
    border-radius: 20px 0 20px 0;
}

.read-box .right a{
    color: #E50012;
}

.read-box .right a:hover{
    text-decoration: underline;
}

.r01 .content{
    padding-top: 120px;
    padding-bottom: 50px;
}

.r01 .line{
    width: 100%;
    height: 1px;
    background-color: #8C8C8C;
    margin: 20px 0;
}

.r01 h2{
    color: #332421;
}

.r01 span{
    font-size: 1.2rem;
}

.r01 h4{
    color: #C9A063;
}

.r01 p{
    margin-bottom: 2rem;
}


/*-----Desktop-----*/

@media only screen and (min-width: 769px){
    
    .header-content {
        padding-left: 30px;
        max-width: 1200px;
    }

    .content {
        max-width: 1200px;
        margin: auto;
        position: relative;
        padding: 0 100px;
    }
    
    .fb-like{
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }
    
    .s5 .title h2::before{
        content: "";
        display: inline-block;
        width: 228px;
        height: 16px;
        background-image: url(images/9789570851731_s5_01.png);
        margin-right: 10px;
    }

    .s5 .title h2::after{
        content: "";
        display: inline-block;
        width: 228px;
        height: 16px;
        background-image: url(images/9789570851731_s5_02.png);
        margin-left: 10px;
    }
    
}


/*-----Medium Screen-----*/

@media only screen and (max-width: 768px){
    
    .header-content {
        padding-left: 30px;
    }

    .content {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .top{
        background-image: url(images/9789570851731_top_bg03.png),url(images/9789570851731_top_bg01.png);
        background-position: center,center;
    }
    
    .fb-like{
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }
    
    .top .content{
        height: auto;
        padding-top: 50px;
        padding-bottom: 30px;
    }
        
    .top .content img:first-of-type{
        position: static;
        display: block;
        max-width: 100%;
        margin: 0 auto;
    }

    .top .content img:nth-of-type(2){
        position: static;
        display: block;
        max-width: 100%;
        margin: 20px auto;
    }

    .top .content img:nth-of-type(3){
        display: none;
    }
    
    .s2 .content{
        background-image: url(images/9789570851731_s2_bg02.png);
        background-size: auto;
    }
    
    .s2-text, .s2 .line, .s2 .rec{
        width: 100%;
    }
    
    .s5 .title h2::after{
        content: "";
        display: block;
        width: 216px;
        height: 16px;
        background-image: url(images/9789570851731_s5_03.png);
        margin-top: 10px;
    }
    
    .read-box .right,
    .read-box .left{
        width: 100%;
        padding: 0;
        display: block;
        margin: 0 auto 20px;
    }
    
    .read-box .left{
        max-width: 360px;
    }
    
    .read-box .title{
        display: block;
    }
    
    .r01 .content{
        padding-top: 50px;
    }
    
}


/*-----Phone-----*/

@media only screen and (max-width: 540px){
    
    .header-content {
        padding-left: 10%;
        width: 100%;
    }

    .content {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .fb-like{
        padding-left: 10%;
        padding-top: 15px;
    }
    
    #back-to-top {
        bottom: 0;
        right: 0;
    }

    .author-med{
        background-image: url(images/9789570851731_s4_02.png);
        background-repeat: repeat-y;
        padding: 20px 30px;
    }
    
    .s2 .content{
        padding-top: 50px;
    }
    
    .s2 .book{
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .s4 .content{
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .s6 .content{
        padding-left: 30px;
        padding-right: 30px;
    }
    
}