*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;

    background:#000;
    color:#fff;

    font-family:
            -apple-system,
            BlinkMacSystemFont,
            "PingFang SC",
            sans-serif;
}

body{
    position:relative;
}

button{
    border:none;
    outline:none;
}

img{
    display:block;
    width:100%;
}

/* =========================
   封面页
========================= */

#coverPage{
    position:fixed;
    inset:0;
    z-index:10;
    overflow:hidden;
    transition:.4s ease;
    /*apen*/
    /*display: none;*/
}

.cover-bg{
    position:absolute;
    inset:0;
    background:
            url("./images/index.jpg")
            center center / cover no-repeat;
    /*transform:scale(1.08);*/
}

.cover-mask{
    position:absolute;
    inset:0;

    background:
            linear-gradient(
                    rgba(0,0,0,.2),
                    rgba(0,0,0,.85)
            );
}

.cover-content{
    width:100%;
    height:100%;

    position:relative;
}

.arrow{
    position:absolute;

    left:50%;
    bottom:120px;

    transform:translateX(-50%);

    width:100px;
    height:50px;

    background:
            url("./images/arrow.png")
            center center / cover no-repeat;

    animation:float 1.2s infinite;
}

@keyframes float{

    0%{
        transform:
                translateX(-50%)
                translateY(0);
    }

    50%{
        transform:
                translateX(-50%)
                translateY(-10px);
    }

    100%{
        transform:
                translateX(-50%)
                translateY(0);
    }

}

/* =========================
   第二背景
========================= */

#questionBg{
    position:fixed;
    inset:0;
    z-index:1;
    opacity:0;
    transition:.45s ease;
    background: url("./images/bg2.jpg")
            center center / cover no-repeat;
}

/* =========================
   系统文案
========================= */

.intro-text{
    position: absolute;
    right: 50px;
    top: 43%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 5;
    width: 60%;
}

.intro-line{
    opacity:0;
    line-height: 20px;
    transform: translateY(20px);
    transition:.6s ease;
    font-size:14px;
    color:#12d4b6;
}

.intro-line.show{
    opacity:1;
    transform: translateY(0);
}

.intro-line:first-child{
    font-weight: bold;
    font-size: 16px;
    line-height: 30px;
}

.show-icon{
    display: flex;
    align-content: center;
    margin: 30px 0;
}

.show-icon .icon-1, .show-icon .icon-2{
    width: 30px;
    height: 30px;
}

.show-icon .icon-3{
    position: relative;
    height: 30px;
    width: 80px;
    overflow:hidden;
    margin: 0 10px;
    background: url("./images/icon3.png") center center / cover no-repeat;
}
/* 黑色扫描遮罩 */
.start-scan{
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* 初始位置在容器左侧之外 */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1); /* 黑色半透明 */
    /* 核心动画 */
    animation: slideRight 1s infinite linear;
}
@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200%); /* 移动到容器右侧之外 */
    }
}
#startBtn{
    width: 100px;
    height: 32px;
    background: url("./images/btn1.png") center center / cover no-repeat;
}

/* =========================
   题目页
========================= */

#questionPage{
    position: absolute;
    right: 40px;
    top: 43%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 5;
    opacity: 0;
    width: 65%;
    transition:.45s ease;
}

#questionPage.active{
    opacity:1;
}

.question-header{
    margin-top:40px;
    justify-content:flex-end;
    font-size:15px;
}

.question-card{
    margin-top:90px;
}

.question-title{
    font-size:16px;
    line-height:1.5;
    font-weight:bold;
    margin-bottom:10px;
    color: #12d4b6;
}

.options{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.option-btn{
    width: 100%;
    min-height: 25px;
    border-radius: 8px;
    padding: 1px 10px;
    border: 1px solid #12d4b6;
    background: rgba(255,255,255,.0);
    color: white;
    font-size: 12px;
    text-align: left;
    transition: .2s;
}

.option-btn.active{
    transform:scale(.97);
    color: #0a0a0a;
    background:#12d4b6;
}

.bottom-actions{
    font-size: 14px;
    margin-top:28px;
    display:flex;
    justify-content: space-between;
}

#prevBtn{
    display: none;
    align-items: center;
    color: #12d4b6;
}
#progress{
    color: #12d4b6;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #12d4b6;
    margin-right: 5px;
}

/* =========================
   提交
========================= */

#submitModal{
    display: none;
    transition:.45s ease;
    margin: 30px 0;
}

.submit-box{
    width:100%;
}

.submit-title{
    text-align: center;
    font-size:24px;
    font-weight:bold;
    margin-bottom:16px;
    color: #12d4b6;
}

.submit-actions{
    margin-top:34px;
    display:flex;
    gap: 14px;
}

.submit-actions button{
    flex: 1;
    height: 34px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
}

#restartBtn{
    background:#333;
}

#submitBtn{
    background:#12d4b6;
}

/* =========================
   加载页
========================= */
#loadingPage{
    position: absolute;
    right: 50px;
    top: 43%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    z-index: 5;
    width: 60%;
    transition:.45s ease;
}

.loading-title{
    text-align: center;
    font-size:20px;
    font-weight:bold;
    color: #12d4b6;
}
.loading-text{
    text-align: center;
    color: #12d4b6;
    font-size: 20px;
    font-weight: bold;
    animation: flash 1s infinite;
}

.loading-icon{
    width: 33px;
    height: 32px;
    margin: 10px auto;
    animation: flash 1s infinite;
}

@keyframes flash{

    0%{
        opacity:1;
    }

    50%{
        opacity:.2;
    }

    100%{
        opacity:1;
    }

}

.glitch-lines{
    opacity: 0;
    margin-top:60px;
    width:100%;
    padding:0 24px;
}

.glitch-lines span{
    display:block;
    width:100%;
    height:6px;

    background:white;

    opacity:.08;

    margin-bottom:14px;

    animation:lineFlash .5s infinite alternate;
}

@keyframes lineFlash{

    from{
        opacity:.05;
        transform:scaleX(.7);
    }

    to{
        opacity:.45;
        transform:scaleX(1);
    }

}

/* =========================
   结果页
========================= */

#resultPage{
    background:
            url("./images/resultBg.jpg")
            center center / cover no-repeat;
    position:fixed;
    inset:0;
    z-index:50;
    /*apen*/
    display:none;
    flex-direction:column;
}

.poster{
    position:relative;
    width:100%;
}

.poster img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.poster-content{
    position:absolute;
    left:24px;
    right:24px;
    bottom:40px;
}

#saveBtn{
    margin: 0 auto 40px auto;
    color: #12d4b6;
    font-size: 14px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.save-icon{
    width: 20px;
    height: 20px;
    margin-right: 5px;
}
.create-btn{
    border: 1px solid #12d4b6;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    width: 300px;
    height: 50px;
    line-height: 50px;
    color: #12d4b6;
    margin: 20px auto;
    border-radius: 10px;
}
.gift-btn{
    background: #12d4b6;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    width: 300px;
    height: 50px;
    line-height: 50px;
    margin: 0 auto;
    border-radius: 10px;
}

.poster-bottom{
    position: fixed;
    z-index: 16;
    bottom: 0;
    left: 0;
    background: #000;
    width: 100%;
    padding: 10px 0 40px 0;
}

/* =========================
   弹窗
========================= */
.gift-box{
    z-index: 88;
    background: rgba(0,0,0,.7);
    width: 100%;
    height: 100%;
    position: fixed;
    transition:.4s ease;
    top: 0;
    left: 0;
    display: none;
}
.close-gift{
    position: absolute;
    top: 23%;
    width: 30px;
    height: 30px;
    right: 0;
}
.gift-popup{
    position: absolute;
    background:
            url("./images/popup.png")
            center center / cover no-repeat;
    inset:0;
    z-index:50;
    padding:20px;
    /*display:none;*/
    flex-direction:column;
    width: 80%;
    background-size: 100%;
    left: 10%;
}
.copy-box{
    position: relative;
    align-items: center;
    background: #0a0a0a;
    border-radius: 10px;
    width: fit-content;
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 7px;
    top: 36%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.result-title{
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
}
.copy-btn{
    background: #c52729;
    color: #fff;
    height: 35px;
    font-weight: bold;
    line-height: 35px;
    width: 80px;
    border-radius: 5px;
    margin-left: 20px;
    text-align: center;
}

.arrow-down {
    position: absolute;
    width: 15px;
    height: 15px;
    border-left: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(-45deg);
    margin: 50px;
    bottom: -58px;
    background: #000;
    left: 24%;
}
.app-jump{
    display: block;
    width: 80%;
    height: 80px;
    top: 60%;
    position: relative;
    margin: 0 auto;
}
