/*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;
    /*    transition-duration: 0.5s;*/
}

body,
html {
    width: 100%;
    margin: 0px;
    padding: 0px;
}

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;
}

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/9789570851939_top_bg01.jpg);
    background-color: #BCA493;
    background-position: bottom left;
    background-repeat: repeat-y;
    font-size: 0;
}

.top .content {
    padding-top: 50px;
    padding-bottom: 50px;
}

.topbox * {
    /*    border: solid 1px;*/
}

.topbox {
    max-width: 900px;
    margin: auto;
}

.topbox > .left,
.topbox > .right {
    display: inline-block;
    vertical-align: middle;
}

.topbox > .left {
    max-width: 350px;
    width: 35%;
    text-align: center;
}

.topbox > .right {
    width: 65%;
    padding-left: 30px;
}

.topbox > .right .book {
    position: relative;
    text-align: right;
    width: 100%;
}

.slogan {
    margin-bottom: 30px;
}

.sticker {
    position: absolute;
    bottom: 30px;
    left: 10%;
    width: 30%;
    max-width: 138px;
}

#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: rgba(255, 255, 255, 0.5);
}

#buy a:hover {
    background-color: black;
    color: white;
}

.s1 {
    background-color: #EEEAE6;
}

.s1 .content {
    padding-top: 80px;
    padding-bottom: 80px;
    background-image: url(images/9789570851939_s1_bg.png);
    background-position: left bottom;
    background-repeat: no-repeat;
}

.s1 .content h2 {
    color: #8E2F2A;
    margin-bottom: 0.5rem;
}

.s2 .content {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    font-size: 0;
}

.dib {
    display: inline-block;
}

.s2 .title {
    margin-bottom: 40px;
}

.s2 .s2text {
    text-align: left;
    width: calc(100% - 270px);
    vertical-align: middle;
    padding-right: 30px;
}

.s2text h4 {
    margin-bottom: 0.6rem;
}

.s2 .authorimg {
    width: 270px;
    vertical-align: middle;
}

.s3 {
    background-image: url(images/9789570851939_s3_bg.jpg);
    height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #F6F3F0;
}

.s4 {
    background-color: #DDDAD7;
}

.s4 .content {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 80px;
}

.s4 .bigbox {
    border: solid 1px #8E2F2A;
}

.s4 .readbox {
    overflow: auto;
}

.s4 .content .title {
    margin-bottom: 30px;
}

.readbox .readtitle {
    background-color: #8E2F2A;
    color: white;
    text-align: left;
    padding: 3px 30px;
    background-image: url(images/9789570851939_s4_readbox_bg.png);
    background-repeat: no-repeat;
    background-position: right center;
}

.readtitle span {
    font-size: 1rem;
}

.readtitle h4 {
    float: right;
    display: inline-block;
    font-size: 1rem;
}

.readbox .text {
    padding: 20px 30px;
}

.readbox .text a {
    color: #A95E00
}

.readbox .text a:hover {
    text-decoration: underline;
}

.readbox:first-of-type .text img {
    float: left;
    margin-right: 30px;
}

.readbox:last-of-type .text img {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
}



/*---------------------------------*/

.r01 {
    background-color: #EEEAE6;
}

.r01 .content {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.r01 h4 {
    padding: 0 10px;
}

.r01 h2 {
    padding-bottom: 20px;
    color: #8E2F2A;
}


/*-----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;
    }

    .topbox > .left img:nth-of-type(2) {
        display: none;
    }


}


/*-----Medium Screen-----*/

@media only screen and (max-width: 768px) {

    .header-content {
        padding-left: 30px;
    }

    .content {
        padding-left: 50px;
        padding-right: 50px;
    }

    .fb-like {
        left: 0;
        top: 0;
        padding: 30px 0 0 30px;
    }

    .top {
        background-image: url(images/9789570851939_top_bg03.jpg);
        background-repeat: no-repeat;
        background-position: center bottom;
    }

    .topbox > .left {
        max-width: 350px;
        width: 45%;
        text-align: center;
    }

    .topbox > .right {
        width: 55%;
    }

    .sticker {
        left: 0;
    }

    .topbox > .left img:nth-of-type(2) {
        display: none;
    }

    .flex {
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
        -webkit-flex-direction: column-reverse;
        -moz-flex-direction: column-reverse;
        -ms-flex-direction: column-reverse;
        -o-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }

    .s2 .s2text {
        padding: 0;
        width: auto;
    }

    .s2 .authorimg {
        width: auto;
        margin-bottom: 30px;
    }

}


/*-----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;
    }

    .topbox > .left {
        width: 100%;
        max-width: 100%;
        margin-bottom: 40px;
    }

    .topbox > .left img:first-of-type {
        display: none;
    }

    .topbox > .left img:nth-of-type(2) {
        display: inherit;
    }

    .topbox > .right {
        width: 100%;
    }

    .sticker {
        left: 0;
        bottom: 40px;
    }

    #buy {
        margin-right: 10%;
        margin-top: 15px;
    }

    .s3 {
        height: 350px;
    }

    .readtitle h4 {
        float: inherit;
        color: burlywood;
    }

    .readbox:first-of-type .text img {
        float: inherit;
        margin-right: 0px;
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .readbox:last-of-type .text img {
        float: inherit;
        margin: 0px;
        margin-bottom: 10px;
    }



}
