@font-face {
    font-family: "SourceHanSerifCN";
    src: url("../fonts/SourceHanSerifCN-Bold.otf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-size-adjust: 100% !important;
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -o-text-size-adjust: 100% !important;
}

* img {
    display: block;
    width: 100%;
}

html {
    margin: 0 auto;
    background-color: #fdf3f3;
}

.wrap {
    width: 7.5rem;
    /* height: 14.8rem; */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.hide {
    display: none;
}

.usn {
    user-select: none;
}

.pointer {
    cursor: pointer;
}


::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    background-color: #FFFFFF;
}

/*定义滚动条轨道内阴影+圆⾓*/
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 .01rem rgba(212, 207, 204, 1);
    border-radius: 10px;
    background-color: #ffb8b8;
}

/*定义滑块内阴影+圆⾓*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 .01rem rgba(124, 0, 0, 1);
    background-color: #DE322D;
}

.page-loader {
    background: rgba(0, 0, 0, .4);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.page-loader .loader {
    display: flex;
    width: 4rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    margin-left: -2rem;
    top: 50%;
    margin-top: -1.5rem;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-duration: 3000ms;
    animation-duration: 3000ms;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    justify-content: center;
    align-items: center;
}

.page-loader .loader img {
    width: 1.6rem;
}

/* modal */
.overlayer {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.625em;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color .1s;
    background-color: rgba(0, 0, 0, .6);
    -webkit-overflow-scrolling: touch;
}

.modal {
    position: fixed;
    width: 6.53rem;
    height: 8.3rem;
    background: url('../img/modal_bg.png') no-repeat center top;
    background-size: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: .6rem;
    margin: auto;
    z-index: 101;
    overflow: auto;
    font-size: .32rem;
    padding: 1.5rem 0.35rem 0.1rem;
    color: #DE322D;
    font-family: 'SourceHanSerifCN';
}

.close {
    position: absolute;
    right: 50%;
    margin-right: -0.26rem;
    bottom: 0.05rem;
    width: 0.52rem;
    height: 0.52rem;
    background: url('../img/modal_btn_close.png') no-repeat center center;
    background-size: 100%;
}

.modal input {
    border-radius: .15rem;
    border: .02rem solid #FB413E;
    background: #FFFFFF;
    height: .6rem;
    line-height: .6rem;
    text-indent: .2rem;
    font-family: 'SourceHanSerifCN';
}

.modal input:focus-visible {
    outline: none;
    border-color: #FB413E;
}

.rule_content {
    font-weight: bold;
    line-height: .48rem;
    height: 83%;
    overflow: auto;
}

.login_title {
    width: 2.52rem;
    height: 1.12rem;
    margin: 0 auto .69rem;
}

.login_box {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    margin: .4rem 0;
}

.login_label {
    width: 1.3rem;
    font-size: .36rem;
    line-height: .6rem;
    font-weight: 600;
    flex: 0 0 auto;
}

.login_box input {
    width: 100%;
    font-size: .26rem;
}

.login_code_img {
    width: 2.58rem;
    height: .62rem;
    margin-left: .1rem;
    cursor: pointer;
}

.login_btn {
    width: 3.4rem;
    height: .81rem;
    margin: 1.1rem auto 0;
    cursor: pointer;
}

.countdown {
    font-size: .2rem;
    position: absolute;
    right: .1rem;
    bottom: .4rem;
    font-weight: bold;
    color: #FF8B8A;
}

.reward_desc {
    font-weight: bold;
    line-height: .48rem;
    margin: .4rem 0 1.4rem;
}

.cdkey {
    width: 100%;
    background-color: #FFFFFF;
    border: .02rem solid #FB413E;
    padding: .15rem .1rem;
    text-align: center;
    font-size: .36rem;
    font-weight: 600;
    color: #DE322D;
    line-height: .6rem;
    border-radius: .15rem;
    margin: .5rem 0 .5rem;
}

.reward_btn {
    width: 3.4rem;
    height: 0.81rem;
    margin: 0 auto;
    cursor: pointer;
}

.qrcode {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto .3rem;
    border-radius: .1rem;
    border: .01rem solid #FFCC51;
    background: #FFFFFF;
}

.share_desc {
    font-size: .32rem;
    color: #DE322D;
    font-weight: 600;
    text-align: center;
    line-height: .6rem;
    margin-bottom: .45rem;
    font-family: initial;
}

.share_btn {
    width: 5.59rem;
    height: .81rem;
    margin: 0 auto;
}


/* first */
.first_page {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('../img/first_bg.jpg') no-repeat center top;
    background-size: 100%;
    cursor: pointer;
}

.first_icon {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -1.43rem;
    margin-top: -1.79rem;
    width: 2.86rem;
    height: 3.58rem;
}

/* home */
.home {
    display: none;
    width: 100%;
    height: 100%;
    background: url('../img/home_bg.jpg') no-repeat center top;
    background-size: 100%;
    padding: 1.2rem .48rem 0;
    min-height: 100vh;
}

.home_top {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
}

.home_logo {
    width: 1.4rem;
    height: .78rem;
}

.home_top_info {
    display: flex;
    flex-flow: column;
}

.home_top_btns {
    display: flex;
    margin-bottom: .2rem;
}

.home_btn_rule,
.home_btn_download {
    width: 1.91rem;
    height: .45rem;
    margin-left: .1rem;
    cursor: pointer;
}

.home_btn_download {
    background: url('../img/home_btn_download.png') no-repeat center center;
    background-size: 100% 100%;
}

.home_top_login {
    display: flex;
    justify-content: end;
    font-size: .24rem;
    color: #FF5555;
    font-family: 'SourceHanSerifCN';
}

.home_user,
.home_login,
.home_logout {
    display: none;
    cursor: pointer;
}

.home_slogan {
    width: 5.41rem;
    height: 2.84rem;
    margin: 2rem auto 1rem;
}

.home_btn_start {
    width: 3.6rem;
    height: .87rem;
    margin: 0 auto .2rem;
    cursor: pointer;
    -webkit-animation: btnMove 1.5s linear infinite;
    -moz-animation: btnMove 1.5s linear infinite;
    -ms-animation: btnMove 1.5s linear infinite;
    -o-animation: btnMove 1.5s linear infinite;
    animation: btnMove 1.5s linear infinite;
}

.share,
.claim {
    display: none;
    float: left;
    margin: .2rem 14% .3rem;
    font-size: .3rem;
    color: #FF5555;
    text-decoration: underline;
    text-underline-offset: .1rem;
    text-align: center;
    cursor: pointer;
}

.claim {
    display: block;
    float: right;
}

/* questions */
.questions {
    display: none;
}

.question_progress {
    width: 6.58rem;
    height: .24rem;
    margin: 0.8rem auto 0.6rem;
    background: url('../img/question_progress_bg.png') no-repeat center center;
    background-size: 100% 100%;
}

.question_cur {
    position: relative;
    width: 10%;
    height: 100%;
    background: url('../img/question_progress_cur.png') no-repeat left center;
    background-size: auto 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: .3rem;
}

.question_progress_num {
    position: absolute;
    top: -.6rem;
    right: -.46rem;
    width: .91rem;
    height: .36rem;
}

.question_progress_icon {
    position: absolute;
    top: -.1rem;
    right: -.21rem;
    width: .42rem;
    height: .38rem;
}

.question_item {
    display: flex;
    flex-flow: column;
    align-items: center;
    word-break: break-all;
    font-family: 'SourceHanSerifCN';
}

.question_item_title {
    font-weight: bold;
    font-size: .37rem;
    color: #DE322D;
    line-height: .51rem;
    margin-bottom: .6rem;
}

.answers {
    margin-bottom: .6rem;
    width: 100%;
}

.answer {
    font-weight: 600;
    font-size: .28rem;
    color: #DE322D;
    line-height: .6rem;
    cursor: pointer;
    width: 5.19rem;
    height: .66rem;
    margin: .3rem auto;
    padding: .09rem .32rem 0 0;
    background: url('../img/question_ans_bg.png') no-repeat left bottom;
    background-size: 4.87rem .57rem;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    left: .16rem;
}

.answer.active {
    background: url('../img/question_ans_bg_active.png') no-repeat center center;
    background-size: 5.19rem .66rem;
}

.question_btns {
    display: flex;
    justify-content: center;
    width: 100%;
}

.question_btn_pre,
.question_btn_next,
.question_btn_result {
    width: 3.01rem;
    height: .71rem;
    cursor: pointer;
    -webkit-animation: btnMove 1.5s linear infinite;
    -moz-animation: btnMove 1.5s linear infinite;
    -ms-animation: btnMove 1.5s linear infinite;
    -o-animation: btnMove 1.5s linear infinite;
    animation: btnMove 1.5s linear infinite;
}

/* result */
.result {
    display: none;
    font-family: 'SourceHanSerifCN';
}

.result_icon {
    width: 2.58rem;
    height: 2.58rem;
    margin: .3rem auto .15rem;
}

.result_type {
    font-weight: 600;
    font-size: .38rem;
    color: #DE322D;
    line-height: .6rem;
    text-align: center;
    margin-bottom: .4rem;
}

.result_chat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.1rem;
    height: .7rem;
    margin-bottom: .4rem;
    font-weight: bold;
    font-size: .32rem;
    color: #D2241F;
    background: url('../img/result_chat1.png') no-repeat center center;
    background-size: 100% 100%;
}

.result_chat2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: .7rem;
    margin-left: auto;
    font-weight: bold;
    font-size: .32rem;
    color: #D2241F;
    background: url('../img/result_chat2.png') no-repeat center center;
    background-size: 100% 100%;
}

.result_tip {
    font-weight: bold;
    font-size: .32rem;
    color: #DE322D;
    line-height: .48rem;
    margin: .5rem 0;
}

.result_btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result_btn_share,
.result_btn_retry {
    width: 3.01rem;
    height: .71rem;
    cursor: pointer;
    -webkit-animation: btnMove 1.5s linear infinite;
    -moz-animation: btnMove 1.5s linear infinite;
    -ms-animation: btnMove 1.5s linear infinite;
    -o-animation: btnMove 1.5s linear infinite;
    animation: btnMove 1.5s linear infinite;
}

@-webkit-keyframes btnMove {
    0% {
        -webkit-transform: scale(1.0);
    }

    25% {
        -webkit-transform: scale(1.02);
    }

    50% {
        -webkit-transform: scale(1.0);
    }

    75% {
        -webkit-transform: scale(0.98);
    }

    100% {
        -webkit-transform: scale(1.0);
    }
}

@-moz-keyframes btnMove {
    0% {
        -moz-transform: scale(1.0);
    }

    25% {
        -moz-transform: scale(1.02);
    }

    50% {
        -moz-transform: scale(1.0);
    }

    75% {
        -moz-transform: scale(0.98);
    }

    100% {
        -moz-transform: scale(1.0);
    }
}

@-o-keyframes btnMove {
    0% {
        -o-transform: scale(1.0);
    }

    25% {
        -o-transform: scale(1.02);
    }

    50% {
        -o-transform: scale(1.0);
    }

    75% {
        -o-transform: scale(0.98);
    }

    100% {
        -o-transform: scale(1.0);
    }
}

@-ms-keyframes btnMove {
    0% {
        -ms-ransform: scale(1.0);
    }

    25% {
        -ms-transform: scale(1.02);
    }

    50% {
        -ms-transform: scale(1.0);
    }

    75% {
        -ms-transform: scale(0.98);
    }

    100% {
        -ms-transform: scale(1.0);
    }
}

@keyframes btnMove {
    0% {
        transform: scale(1.0);
    }

    25% {
        transform: scale(1.02);
    }

    50% {
        transform: scale(1.0);
    }

    75% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1.0);
    }
}