@charset "utf-8";

/*
** use ctrl+f to find the block if the need manifests
** default / layout / tool
** nav / banner / intro / qa
** booklist / go top / footer
*/

/* default */

* {
    /* outline: 1px solid #ffae00; */
    box-sizing: border-box;
}

html {
    font-family: "Noto Sans TC","黑體-繁","Apple LiGothic Medium","PingFang","微軟正黑體","Microsoft JhengHei","WenQuanYi Zen Hei",helvetica,"Arial",sans-serif;
    -webkit-text-size-adjust: none;
    background-size: 100%;
    letter-spacing: 1px;
}

body {
    position: relative;
}

a {
    text-decoration: none;
    cursor: pointer;
}

ul, ol, li {
    margin: 0;
    padding: 0;
} 

h1, h2, h3, h4, h5, h6, p {
    padding: 0;
    margin: 0;
}

p {
    font-size: 18px;
    line-height: 2;
    color: var(--text-normal-color);
    text-align: justify;
    word-break: break-all;
}

@media screen and (max-width: 768px) {
    p {
        font-size: 16px;
    }
}

button {
    outline: none;
    border: none;
    cursor: pointer;
}

/* layout */

.app {
    opacity: 0;
    background: var(--kv-bg-dark) no-repeat center top/100%, var(--body-bg-primary-dark);
}

@media screen and (max-width: 768px) {
    .app {
        background: var(--kv-bg-m-dark) no-repeat center top/100%, var(--body-bg-primary-dark);
    }
}

.app .is-start {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.app.is-active {
    background: var(--kv-bg) no-repeat center top/100%, var(--body-bg-primary);
}

@media screen and (max-width: 768px) {
    .app.is-active {
        background: var(--kv-bg-m) no-repeat center top/100%, var(--body-bg-primary);
    }
}

@media screen and (max-width: 768px) {
    .app.is-active .nav-list {
        background: var(--menu-color);
    }
}

@media screen and (max-width: 768px) {
    .app.is-active .nav.is-bg-show {
        background: var(--nav-bg-color);
    }
}

.app.is-active .content:nth-of-type(2n) {
    background: var(--body-bg-secondary);
}

.app.is-active .is-start {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.app.is-active .is-finish {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: auto;
}

.bg {
    /* padding-inline: var(--layout-padding); */
}

.content {
    position: relative;
    padding: 80px var(--layout-padding);
}

@media screen and (max-width: 768px) {
    .content {
        padding-block: 64px;
    }
}

.content:nth-of-type(2n) {
    background: var(--body-bg-secondary-dark);
}

.content-info {
    padding: 38px var(--layout-padding);
}

@media screen and (max-width: 768px) {
    .content-info {
        padding-bottom: 22px;
    }
}

.content-info .wrapper {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .content-info .wrapper {
        flex-direction: column;
    }
}

.content-info .wrapper .content-unit {
    width: calc(50% - 7px);
}

@media screen and (max-width: 768px) {
    .content-info .wrapper .content-unit {
        width: 100%;
    }
}

.content-info .wrapper .content-unit:nth-of-type(n) {
    border-radius: 50px 0 0 50px;
}

.content-info .wrapper .content-unit:nth-of-type(2n) {
    border-radius: 0 50px 50px 0;
}

@media screen and (max-width: 768px) {
    .content-info .wrapper .content-unit:nth-of-type(n),
    .content-info .wrapper .content-unit:nth-of-type(2n) {
        border-radius: 50px;
    }
}

.content-unit {
    margin-bottom: 42px;
    padding: 40px 55px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

@media screen and (max-width: 768px) {
    .content-unit {
        padding: clamp(20px, 5.2vw, 40px) min(24px, 7.1vw, 55px);
    }
}

.title-main {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--title-main-color);
}

.title-main.is-deco::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
}

.title-main span {
    display: block;
    line-height: 1.45;
}

.scroll-detector {
    position: absolute;
    top: -60px;
    left: 0;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    z-index: 11;
}

.loading .spin5:before {
    content: "\e838";
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    font-size: 100px;
    color: var(--body-bg-primary);
}

/* tool */

.line-clamp {
    display: inline-block;
    display: -webkit-box;
    overflow: hidden;
    max-height: calc(1em * 1.35 * 2);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.is-hide {
    display: none !important;
}

.is-high-light {
    font-weight: 700;
    color: var(--text-highlight-color);
}

/* nav */

.nav {
    display: flex;
    align-items: center;
    padding-inline: var(--layout-padding);
    width: 100%;
    height: 60px;
    position: relative;
    z-index: 9999;
    position: fixed;
    right: 0;
    top: 0;
}

.nav .wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav.is-bg-show {
    background: var(--nav-bg-color-dark);
}
.nav.is-bg-show .nav-story-logo {
    background-image: var(--logo-with-bg);
}

.nav.is-active .nav-list {
    transform: translateX(0);
}

.nav.is-active .nav-menu > *:nth-child(1) {
    width: 15px;
    transform: rotate(135deg) translate(1px, -2px);
}

.nav.is-active .nav-menu > *:nth-child(2) {
    width: 0;
}

.nav.is-active .nav-menu > *:nth-child(3) {
    transform: rotate(-135deg) translate(2px, 3px);
}

.nav-logo {
    flex:  1 1 0;
}

.nav-story-logo {
    display: block;
    width: 140px;
    height: 39px;
    background: var(--logo) no-repeat center center/contain;
}

.nav-story-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-list {
    display: flex;
    flex: 0 0 330px;
    align-items: center;
    text-wrap: nowrap;
}

@media screen and (max-width: 960px) {
    .nav-list {
        flex: 0 0 304px;
    }
}

@media screen and (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        flex-direction: column;
        transform: translateX(100%);
        padding: 90px 20px 30px;
        width: 320px;
        border-radius: 0 0 8px 8px;;
        background: var(--menu-color-dark);
        transition: transform .3s ease-out;
    }

    .nav-list::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        height: 1px;
        background: var(--nav-hover-color);
    }
}

.nav-link {
    display: inline-block;
    margin-right: 21px;
    padding: 7px;
    text-align: center;
    color: var(--nav-text-color);
    font-size: 20px;
    font-weight: 500;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, .1);
    border-radius: 3px;
}

@media screen and (max-width: 960px) {
    .nav-link {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
        height: 50px;
        font-size: 20px;
        border-radius: 8px;
    }

    .nav-link:last-child {
        margin-bottom: 0;
    }
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--nav-hover-color);
}

.nav-menu {
    position: relative;
    display: none;
    margin-left: 14px;
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid #fff;
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

.nav-menu > * {
    display: block;
    margin-block: 1px;
    width: 15px;
    height: 1px;
    background: #fff;
    transition: all .3s ease-out;
}

.nav-menu > *:first-child {
    width: 70%;
}

.social-btn {
    position: relative;
    display: flex;
    flex: 0 0 74px;
    height: 30px;
}

.social-btn > * {
    display: block;
    width: 30px;
    height: 30px;
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fb-icon {
    margin-right: 14px;
}

/* banner */

.banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 33.4%;
}

@media screen and (max-width:768px) {
    .banner {
        padding-bottom: 90%;
    }
}

.banner-content {
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.slogan {
    margin-bottom: min(80px, 4vw);
    width: clamp(200px, 30vw, 651px);
}

@media screen and (max-width: 1024px) {
    .slogan {
        margin-bottom: min(40px, 2vw);
    }
}

@media screen and (max-width: 768px) {
    .slogan {
        margin-bottom: min(100px, 5vw);
        width: min(80%, 500px);
    }
}

.slogan img {
    display: block;
    margin: auto;
    width: 100%;
}

.counter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
}


.counter > * {
    font-size: 30px;
}

@media screen and (max-width: 1024px) {
    .counter > * {
        font-size: 20PX;
    }
}

@media screen and (max-width: 768px) {
    .counter-start {
        flex-direction: column;
    }
}

.counter-start-time {
    display: flex;
    align-items: center;
    margin-inline: 10px;
}

.counter-start-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5px;
    padding-bottom: 35px;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
}

@media screen and (max-width: 1280px) {
    .counter-start-item {
        padding-bottom: 20px;
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 414px) {
    .counter-start-item {
        width: 19vw;
        height: 19vw;
        border-radius: 7.24vw;
    }
}

.counter-start-number {
    letter-spacing: 5px;
    text-shadow: 5px 0 10px rgba(0, 0, 0, 0.5);
    font-size: 80px;
    font-family: 900;
}

@media screen and (max-width: 1280px) {
    .counter-start-number {
        font-size: 46px;
    }
}

@media screen and (max-width: 414px) {
    .counter-start-number {
        font-size: 11vw;
    }
}

.counter-start-weekday {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    font-size: 16px;
}

@media screen and (max-width: 1280px) {
    .counter-start-weekday {
        bottom: 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 414px) {
    .counter-start-weekday {
        left: calc(50% - 8px);
        bottom: 2vw;
        scale: 0.6;
    }
}

.counter-end {
    padding-right: 30px;
}

@media screen and (max-width: 1024px) {
    .counter-end {
        padding-right: 20px;
    }
}

.counter-end-day.is-two-digits .counter-end-slash {
    left: 20px;
}

.counter-end-day,
.counter-end-item {
    position: relative;
    display: flex;
}

.counter-end-month,
.counter-end-day {
    font-size: 51px;
    font-weight: 700;
}

@media screen and (max-width: 1024px) {
    .counter-end-month,
    .counter-end-day {
        font-size: 30PX;
    }
}

.counter-end-month {
    position: relative;
    top: -30px;
    left: 0;
}

@media screen and (max-width: 1024px) {
    .counter-end-month {
        top: -10px;
    }
}

.counter-end-day {
    position: relative;
    top: 0px;
    left: 20px;
}

@media screen and (max-width: 1024px) {
    .counter-end-day {
        left: 10px;
    }
}

.counter-end-slash {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-65deg) translate(-25px, 20px);
    width: 70px;
    height: 1px;
    background: #fff;
}

@media screen and (max-width: 1024px) {
    .counter-end-slash {
        left: 0;
        transform: rotate(-65deg) translate(-15px, 10px);
        width: 40px;
    }
}

.counter-end-weekday {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 12px;
    font-weight: 400;
}

@media screen and (max-width: 1024px) {
    .counter-end-weekday {
        top: -8px;
        right: -5px;
        transform: scale(0.8);
    }
}

.counter-end-arrow {
    position: relative;
    top: 12px;
    left: 20px;
    margin-inline: 10px;
    font-size: 26px;
}

@media screen and (max-width: 1024px) {
    .counter-end-arrow {
        top: 5px;
        left: 10px;
        margin-inline: 5px;
        font-size: 18px;
    }
}

/* intro */

.intro p {
    text-align: center;
}

/* booklist */

.bk-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-inline: 34px;
}

@media screen and (max-width: 768px) {
    .bk-list {
        padding-inline: min(34px, 4.2vw);
    }
}

.bk-list .list-buffer,
.bk {
    width: calc((100% - min(44px, 2.3vw) * 3) / 4);
}

@media screen and (max-width: 768px) {
    .bk-list .list-buffer,
    .bk {
        width: calc((100% - min(42px, 5.5vw) * 1) / 2);
    }
}

.bk {
    margin-bottom: min(44px, 2.3vw);
    padding: 10px;
    border: 1px solid #fff;
}

@media screen and (max-width: 768px) {
    .bk {
        margin-bottom: min(42px, 5.5vw);
    }
}

.bk:hover img {
    transform: scale(1.2, 1.2);
}

.bk:hover .bk-text {
    color: var(--bk-list-text-hover-color);
}

.bk-list .list-buffer {
    opacity: 0;
    pointer-events: none;
}

.bk-pic {
    position: relative;
    margin-bottom: 2px;
    padding-bottom: 142%;
    width: 100%;
    height: 0;
    overflow: hidden;
    cursor: pointer;
}

.bk-pic a {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.bk-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1, 1);
    transition: transform 1s ease-out;
}

.bk-text {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 52px;
    color: var(--bk-list-text-color);
    background: var(--bk-list-text-bg-color);
}

.notice {
    padding-left: 20px;
}

.notice > * {
    position: relative;
}

.notice > *::before {
    content: '▸';
    position: absolute;
    top: 0;
    left: -20px;
}

.notice .email {
    color: var(--title-main-color);
}

/* go top */
.gotop {
    position: fixed;
    bottom: 8%;
    right: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--go-top-color);
}

@media screen and (max-width: 768px) {
    .gotop {
        width: 50px;
        height: 50px;
    }
}

/* footer */

footer {
    padding: 22px var(--layout-padding);
    text-align: center;
    background-color: var(--footer-color);
    color: #FFF;
    letter-spacing: 1px;
    font-size: 12px;
}
