/*Google fonts*/

/*黑體*/

@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
/*font-family: "Noto Sans TC", "微軟正黑體", "sans-serif";*/

/*楷體*/

@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);
/*font-family: "cwTeXKai", serif;*/

/*明體*/

@import url(https://fonts.googleapis.com/earlyaccess/cwtexming.css);
/*font-family: "cwTeXMing", serif;*/

* {
    font-family: "Noto Sans TC", "微軟正黑體", "sans-serif";
    box-sizing: border-box;
    margin: 0;
    /*    transition-duration: 0.5s;*/
}

body,
html {
    width: 100%;
    margin: 0px;
    padding: 0px;
}

html {
    font-size: 16px;
    background-image: url(images/9789570852059_main_bg.jpg);
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: black;
}

p,
ul {
    font-size: 1rem;
    line-height: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: justify;
}

h1{
    font-size: 2.3rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

a img {
    border: 0px;
}

img {
    max-width: 100%;
}

.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-image: url(images/9789570852059_top_bg.jpg);
}

.top .content{
    font-size: 0;
    overflow: visible;
}

.top .content>*{
    display: inline-block;
}

.top-left {
    width: calc(100% - 375px);
    vertical-align: top;
    margin-top: 40px;
}

.top .top-left h3{
    color: #fff;
    font-weight: 500;
    font-size: 1.8rem;
}

.top .top-left h1{
    margin: 20px 0 0 0;
    color: #E7AC5C;
    font-weight: 500;
    border: 1px solid #E7AC5C;
    padding: 5px 10px;
    display: inline-block;
    font-size: 2.8rem;
}

.top-right{
    position: relative;
    z-index: 20;
}

.top-img{
    position: absolute;
    max-width: 700px;
    width: 80%;
    min-width: 600px;
    bottom: -88px;
    left: 50px;
    z-index: 10;
}

.s1{
    background-color: rgba(0,0,0,0.9);
    color: white;
}

.s1 .content{
    padding-top: 100px;
}

.s2{
    position: relative;
}

.s2 .content{
    padding-top: 100px;
    padding-bottom: 100px;
}

.s2 .whitebox{
    background-color: #fff;
    border-radius: 30px;
    padding: 40px 80px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.7);
}

.book{
    width: 300px;
    float: right;
    margin-left: 30px;
    text-align: center;
    background-color: #eee;
    padding: 20px 40px;
}

.author h4 span{
    background-color: #C15D50;
    color: white;
    padding: 0 5px;
    font-weight: 500;
    font-size: 1rem;
    margin-right: 10px;
}

.author h4{
    color: #C15D50;
    margin-top: 20px;
}

#buy{
    margin-top: 15px;
}

#buy p {
    display: inline-block;
}

#buy a {
    display: inline-block;
    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 black;
    font-size: 1rem;
    background-color: #eee;
}

#buy a:hover {
    background-color: #424242;
    color: white;
}

.whitebox hr, .r01 hr{
    border: 0;
    height: 2px;
    background-color: #C15D50;
    margin: 20px 0;
}

.s3{
    background-color: rgba(91,114,114,0.9);
}

.s3 .title{
    text-align: center;
    margin-bottom: 30px;
}

.s3 .readbox{
    max-width: 800px;
    background-color: rgba(0,0,0,0.5);
    margin: 0 auto;
    font-size: 0;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px
}

.s3 .readbox *{
/*    border: solid 1px black;*/
}

.s3 .readbox .read-img{
    width: 280px;
    display: inline-block;
    height: 100%;
    vertical-align: top;
    -webkit-background-size: 100% auto;
    background-size: 100% auto;
    background-position: 50% 50%;
    transition: 0.5s;
}

.s3 .readbox .read-img:hover{
    background-size: 120%  auto;
}

.s3 .readbox #read-img1{
    background-image: url(images/9789570852059_read02.png);
}

.s3 .readbox #read-img2{
    background-image: url(images/9789570852059_read03.png);
}

.s3 .readbox .text{
    width: calc(100% - 280px);
    display: inline-block;
    color: white;
    vertical-align: top;
    padding: 20px 40px 30px;
    height: 270px;
    position: relative;
}

.s3 .readbox h3{
    color: #E7AC5C;
}

.s3 .readbox h3::after{
    content: "";
    width: 100%;
    height: 1px;
    background-color: #E7AC5C;
    position: absolute;
    top: calc(20px + 1rem);
}

.s3 .readbox .continue{
    position: absolute;
    width: calc(100% - 280px);
    background-color: #141819;
    bottom: 0;
    right: 0;
    height: 30px;
    padding-right: 30px;
}

.s3 .readbox .continue p{
    line-height: 30px;
    margin: 0;
    text-align: right;
    color: #F6788B;
}

.s3 .readbox .continue p:hover{
    color: #E7AC5C;
    text-decoration: underline;
}


/*---------------------------------*/

.r01 {
    background-color: #EEEAE6;
}

.r01 .content {
    padding-top: 100px;
    padding-bottom: 80px;
}

.r01 h4 {
    padding: 0 10px;
}

.r01 h2 {
    color: #C15D50;
}

.r01-text>div p{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 0;
    color: brown;
}

.r01-text>div{
    max-width: 300px;
    float: left;
    margin-right: 30px;
    margin-top: 10px;
    border: solid 1px brown;
    padding: 20px;
}

.r01-text h3{
    display: inline-block;
    background-color: #C15D50;
    padding: 0 10px;
    color: white;
    font-weight: 500;
    margin-top: 30px;
}

.r01-text h3:hover{
    background-color: #D36F67;
}


/*-----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: 50px 100px;
    }

    .fb-like {
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }


}

@media only screen and (max-width: 890px){
    
    .top .top-img{
        display: none;
    }
    
    .s1 .content{
        padding-top: 50px;
    }
    
}


/*-----Medium Screen-----*/

@media only screen and (max-width: 768px) {

    .header-content {
        padding-left: 30px;
    }

    .content {
        padding: 50px;
    }

    .fb-like {
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }
    
    .top-left{
        width: calc(100% - 280px);
    }
    
    .top .top-left h3{
        font-size: 1.4rem;
    }
    
    .top .top-left h1{
        font-size: 2.3rem;
    }
    
    .top-right{
        width: 280px;
    }
    
    .s2 .whitebox{
        padding: 30px;
    }
    
    .book{
        float: none;
        display: block;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }
    
    .book img{
        width: 250px;
    }
    
    .s3 .readbox{
        height: auto;
        overflow: inherit;
        max-width: 450px;
    }
    
    .s3 .readbox .read-img{
        display: block;
        width: 100%;
        height: 250px;
    }
    
    .s3 .readbox .text{
        display: block;
        width: 100%;
        padding-bottom: 40px;
        height: auto;
    }
    
    .s3 .readbox .continue{
        bottom: 0px;
        width: 100%;
    }
}


/*-----Phone-----*/

@media only screen and (max-width: 540px) {

    .header-content {
        padding-left: 10%;
        width: 100%;
    }

    .content {
        padding: 50px 30px;
    }

    .fb-like {
        padding-left: 10%;
        padding-top: 15px;
    }

    #back-to-top {
        bottom: 0;
        right: 0;
    }
    
    .top-left {
        width: 100%;
        vertical-align: top;
        margin-top: 0;
        text-align: center;
    }
    
    .top .top-right{
        margin: 30px auto 0;
        display: block;
        width: 100%;
        max-width: 375px;
    }
    
    .top .top-left h3{
        font-size: 1rem;
        font-weight: normal;
    }
    
    .top .top-left h1{
        font-size: 1.5rem;
        font-weight: normal;
        margin-top: 0.8rem;
    }
    
    .r01-text>div{
        width: 100%;
        float: none;
        margin: 0 auto;
        border: none;
        padding: 20px;
    }


}
