* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Squada One';
    src: url('../fonts/SquadaOne-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

body {
    font-family: 'Kanit';
    background: #000;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x))
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y)
}

*,
::after,
::before {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

header {
    max-width: 1200px;
    margin: auto;
}

header .navbar {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .navbar .nav-links {
    border-radius: 18px;
    background: #18181B;
    padding: 8px 10px;
    display: flex;
}

.logo a {
    color: #FFF;
    font-family: "Squada One";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    /* 125% */
}

header .navbar .nav-links a {
    color: #ECEDEE;
    font-family: 'Kanit';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    text-transform: capitalize;
    padding: 0 10px;
}

header .navbar .nav-links a {
    display: flex;
    align-items: center;
    gap: 4px;
}


.answers-main {
    padding-top: 40px;
    padding-bottom: 40px;
}

.answers-main h1,
.text-foot h1 {
    color: #ECEDEE;
    text-align: center;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 52px;
    font-style: normal;
    font-weight: 500;
    line-height: 52px;
    /* 100% */
}

.answers-main h1 span,
.text-foot h1 span {
    background: linear-gradient(90deg, #FFDB96 57.51%, #9E5D00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 52px;
    font-style: normal;
    font-weight: 500;
    line-height: 52px;
}

.answers-main p,
.text-foot p {
    color: #ECEDEE;
    text-align: center;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.answer-book-bg {
    background: linear-gradient(103deg, #352C1A 0%, #4B2819 51.67%, #3D1E1E 100%);
}

.answer-book {
    margin: auto;
    text-align: center;
    position: relative;
    border-radius: 12px;
    perspective: 1000px;
    /* 设置视角，给翻转效果提供空间 */
    /* 初始状态设置为指针手势 */
}

.answer-book img {
    cursor: pointer;
    max-width: 434px;
    width: 100%;
}


.book-image {
    transition: transform 0.6s, opacity 0.6s;
    /* 翻转时的过渡效果和透明度变化 */
    transform-style: preserve-3d;
    /* 保持3D效果 */
}

.answer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    display: none;
    /* 初始隐藏答案 */
    text-align: center;
    border-radius: 10px;
    width: 80%;
    box-sizing: border-box;
    cursor: default;

    color: #FFF;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    /* 125% */
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* 翻转效果 */
.book-flip .book-image {
    transform: rotateY(180deg);
    /* 图片翻转180度 */
    opacity: 0;
    /* 图片翻转后消失 */
}

.book-flip .answer {
    display: block;
    /* 翻转后显示答案 */
}

.answer-btn {
    margin: auto;
    text-align: center;
}

.answer-btn a {
    color: #fff;
    border-radius: 12px;
    background: #2D271D;
    padding: 8px 20px;
    margin: 0 20px;
}

.answer-btn a img{
    vertical-align: middle;
    padding-left: 4px;
}
.text-box {
    border-radius: 12px;
    background: linear-gradient(90deg, #2E281E 0%, #311F1F 100%);
    padding: 40px 40px 28px;
    margin-bottom: 40px;
}

.text-box h2,
.text-love h2,
.text-faq h2 {
    color: #FFF;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    /* 125% */
    margin-bottom: 12px;
}

.text-box p,
.text-box ul li,
.text-love p {
    color: #ECEDEE;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 133.333% */
    margin-bottom: 12px;
}

.text-box ul {
    padding-left: 30px;
}

.text-love {
    text-align: center;
    margin-bottom: 60px;
}

.text-love p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 40px;
}

.text-love-main {
    border-radius: 12px;
    background: #2A2927;
    max-width: 400px;
    margin: auto;
    padding: 20px 80px;
    text-align: center;
}

.text-love-main .score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.text-love-main .score h1 {
    color: #FFB633;
    text-align: center;
    font-family: 'Kanit';
    font-size: 52px;
    font-style: normal;
    font-weight: 500;
    line-height: 52px;
    /* 100% */
}

.rating-bar {
    padding-bottom: 20px;
}

.rating-bar div {
    display: flex;
    text-align: left;
    align-items: center;
}

.rating-bar div p {
    color: #B4B0A8;
    font-family: 'Kanit';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 128.571% */
    flex: 0 0 50px;
    margin-bottom: 0;
}

.rating-bar .rating-progress {
    background-color: #FFB633;
    height: 6px;
    border-radius: 5px;
}

.rate-your-experience {
    padding: 10px;
    border-top: 1px solid #4A4947;
    ;
}

.rate-your-experience p {
    color: #B4B0A8;
    font-family: 'Kanit';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    /* 137.5% */
    margin-bottom: 10px;
}

.rate-your-experience .rate-star {
    display: inline-block;
    background-image: url(../images/love-n.svg);
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: 15px;
    cursor: pointer;
    margin: 0 2px;
}

.rate-your-experience .rate-star.active {
    background-image: url(../images/love.svg);
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: 15px;
}

.text-faq h2 {
    text-align: center;
}

.text-faq div {
    border-radius: 12px;
    background: #1B1A18;
    padding: 20px;
    margin-bottom: 20px;
}

.text-faq h3 {
    color: #FFF;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 18px;
    font-style: normal;
    font-weight:500 ;
    line-height: 22px;
    margin-bottom: 8px;
}

.text-faq p {
    color: #ECEDEE;
    font-feature-settings: 'pcap' off, 'liga' off;
    font-family: 'Kanit';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 128.571% */
}

.text-foot a {
    border-radius: 12px;
    background: #2D271D;
    color: #fff;
    font-family: 'Kanit';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    padding: 8px 20px;
    display: block;
    margin: auto;
    text-align: center;
    width: max-content;
}

.text-foot {
    padding-bottom: 60px;
    padding-top: 40px;
}

footer {
    max-width: 1400px;
    margin: auto;
    text-align: center;
    border-top: 1px solid #47474A;
    padding: 40px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

footer .share {
    width: calc(50% - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

footer .tp {
    width: calc(50% - 10px);
}

footer .ft {
    width: 100%;
}

footer .share a {
    display: flex;
    background-color: #fff;
    padding: 5px;
    border-radius: 50%;
    width: max-content;
}

footer .tp a {
    color: #FFF;
    font-family: 'Kanit';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 122.222% */
    margin: 0 10px;
}

footer .ft p {
    color: #AAA;
    font-family: 'Kanit';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 137.5% */
}


#copy-message {
    position: fixed;
    z-index: 999;
    bottom: 30%;
    width: 60px;
    height: 28px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #333;
    font-size: 12px;
    text-align: center;
    line-height: 28px;
    font-weight: 400;
    border-radius: 20px;
    font-family: 'Kanit';
}

@media (max-width:768px) {
    .answers-main h1, .text-foot h1,
    .answers-main h1 span, .text-foot h1 span{
        font-size: 36px;
        line-height: 36px;
    }
    .text-box{
        padding: 24px 24px 12px;
    }

    .text-box h2, .text-love h2, .text-faq h2{
        font-size: 20px;
        line-height: 24px;
    }

    .text-box p, .text-box ul li, .text-love p{
        line-height: 22px;
    }

    .text-love-main .score h1{
        font-size: 36px;
        line-height: 36px;
    }
    .rate-your-experience p{
        font-weight: 400;
    }

    .text-love{
        margin-bottom: 32px;
    }

    footer{
        flex-direction: column;
    }

    footer .share,
    footer .tp{
        width: 100%;
    }
}

@media (max-width:550px) {
    .answers-main{
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .answers-main h1, .text-foot h1,
    .answers-main h1 span, .text-foot h1 span {
        font-size: 24px;
        line-height: 24px;
    }

    .answers-main p, .text-foot p{
        font-size: 14px;
        line-height: 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .answer{
        font-size: 18px;
        line-height: 28px;
    }
    .answer-book img{
        width: 70%;
    }

    .answer-btn {
        margin: 10px auto;
    }

    .answer-btn a{
        font-size: 14px;
    }

    .text-box {
        padding: 16px 16px 4px;
        margin-bottom: 16px;
    }

    .text-box h2, .text-love h2, .text-faq h2,
    .text-faq h3 {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 8px;
    }

    .text-box p, .text-box ul li, .text-love p,
    .text-faq p {
        line-height: 16px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .text-love-main{
        padding: 8px 36px;
        margin-top: 16px;
    }

    .rating-bar {
        padding-bottom: 8px;
    }

    .text-love-main .score{
        margin-bottom: 10px;
    }

    .text-faq div{
        padding: 8px;
        margin-bottom: 12px;
    }

    .text-foot {
        padding-bottom: 40px;
        padding-top: 24px;
    }


}