/* reset */
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,fieldset,legend,button,input,textarea,form,th,td{margin:0;padding:0;}
body{font:14px SimHei,Noto Sans SC,system-ui,-apple-system,Segoe UI,sans-serif;word-wrap:break-word;-webkit-overflow-scrolling:touch;}
html,body{ position:relative;height:100%;}
.div,a,img{-webkit-user-select:none;user-select:none;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
ol,ul{list-style:none outside;}
address,caption,cite,code,dfn,em,strong,u,i,th,var{font-style:normal;}
abbr[title], acronym[title]{border-bottom:1px dotted;cursor:help;}
:focus{outline:0;}
q:before, q:after{content:''; }
abbr,acronym,fieldset,img,fieldset{border:none;}
table{border-collapse:collapse;border-spacing:0;}
a{text-decoration:none;}
a:hover{outline:none;}
a,button,input,textarea{-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}

html {max-width: 500px;margin: 0 auto;}
* {-webkit-tap-highlight-color: rgba(0,0,0,0);}
body {font-family:Microsoft YaHei,Helvetica Neue,Helvetica,STHeiTi,Arial,sans-serif; max-width: 500px; margin: 0 auto;}
.clearfix:after {
    content: '\0020';
    display: block;
    height: 0;
    clear: both;
}
.none{ display: none;}
.hide {display: none!important;}

body{
  height: 100%;
  overflow: hidden;
}
body>div{
  width: 100%;
  height: 100%;
}
body>div>div{
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.page {
    position: relative;
    /* 页面叠化过渡（fadeToPage）用 */
    transition: opacity .5s ease-in-out;
}

.logo-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

/* ---------------- page 1 封面 ---------------- */
#page-1 {
    display: block;
    background-color: #faf4f4;
    /* 固定屏幕高度：图片超出部分裁切且不可滚动（clip 不支持时退回 hidden） */
    overflow: hidden;
    overflow: clip;
}
/* 封面图上下居中的深色兜底块，超高屏顶部补色 */
#page-1 .pg1-top {
    height: 50%;
    background: #941c01;
}
/* 封面图整体上移 45%，超高时上下等比裁切，不滚动 */
#page-1 .cover {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    transform: translateY(-45%);
}
.cover-answer {
    /* 跟随封面图定位：图上沿 = 50% - 45% × 15.5rem，+10.18rem 即按钮位置 */
    position: absolute;
    top: calc(50% + 3.205rem);
    left: 50%;
    width: 4.3rem;
    transform: translateX(-50%);
    border: 0;
    background: none;
    cursor: pointer;
    animation: answerPulse 1.2s infinite ease-in-out;
}
.cover-answer img {
    display: block;
    width: 100%;
    height: auto;
}
.cover-answer:focus-visible {
    outline: 2px solid #891901;
}
@keyframes answerPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
}

/* ---------------- page 2 来电页 ---------------- */
#page-2 {
    background: #8b7f55 url(https://n.sinaimg.cn/sina_client/gsk20261128/2-1.jpg) center center / 100% 100% no-repeat;
}
#page-2.cover-entering {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.pg2-top {
    position: absolute;
    top: 2.78rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.43rem;
    height: auto;
}
.pg2-icons {
    position: absolute;
    top: 8.93rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5.45rem;
    height: auto;
}
.pg2-answer {
    position: absolute;
    top: 10.82rem;
    left: .77rem;
    width: 5.97rem;
    height: 1.53rem;
}
.pg2-answer-circle {
    position: absolute;
    top: 10.89rem;
    left: 4.69rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    z-index: 2;
}
.pg2-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.4rem;
    height: 1.4rem;
    transform: translate(-50%, -50%);
    animation: callPulse 1.2s infinite ease-in-out;
}
@keyframes callPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}
#ringtone {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------------- 视频占位 ---------------- */
#page-3 {
    background: #000;
}
#video3 {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    /* 首帧就绪前保持透明，避免看到从无到有的加载过程 */
    opacity: 0;
    transition: opacity .3s ease;
}
#video3.ready {
    opacity: 1;
}

/* ---------------- page 4 进入自测弹窗（透明浮层，压在视频最后一帧上） ---------------- */
#page-4 {
    position: absolute;
    top: 0;
    left: 0;
    /* 无背景图：透出 page-3 的视频画面 */
    opacity: 0;
    transition: opacity .5s ease;
}
#page-4.show-popup {
    opacity: 1;
}
.popup-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .55);
    z-index: 6;
}
.popup {
    position: absolute;
    /* 在弹窗层内上下居中 */
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    z-index: 7;
}
.popup > img {
    display: block;
    width: 100%;
    height: auto;
}
.popup-enter {
    position: absolute;
    left: 50%;
    top: 6.78rem;
    width: 4.1rem;
    height: 1.3rem;
    transform: translateX(-50%);
}

/* ---------------- page 5 题目页 ---------------- */
#page-5 {
    background: #f28b24 url(https://n.sinaimg.cn/sina_client/gsk20261128/5-1.jpg) center center / 100% 100% no-repeat;
}
.quiz {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.quiz2 {
    display: none;
}
.qcard-wrap {
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: 100%;
    height: auto;
}
.qcard {
    display: block;
    width: 100%;
    height: auto;
}
.opt {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4.48rem;
    height: auto;
    cursor: pointer;
    transition: transform .1s;
}
.opt:active {
    transform: translateX(-50%) scale(.98);
}
.quiz1 .opt-a { top: 4.62rem; }
.quiz1 .opt-b { top: 6.2rem; }
.quiz2 .opt-a { top: 3.92rem; }
.quiz2 .opt-b { top: 5.52rem; }
.quiz2 .opt-c { top: 6.91rem; }
.next-btn,
.sub-btn {
    position: absolute;
    left: 22%;
    top: 8.77rem;
    width: 56%;
    height: 1.15rem;
    cursor: pointer;
}

/* ---------------- page 6 结果页 ---------------- */
#page-6 {
    background: #fe8733 linear-gradient(to right, #fead51, #ff8736, #f8772a);
}
.result-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}
.result-btn {
    position: absolute;
    left: 18%;
    top: 10.2rem;
    width: 64%;
    height: 1.7rem;
    cursor: pointer;
}
/* 指引手势：指向前上方的“科普官留言”按钮 */
.result-hand {
    position: absolute;
    top: 11.6rem;
    left: 5rem;
    width: 1rem;
    height: auto;
    z-index: 2;
    pointer-events: none;
    animation: handPoint 1.1s infinite ease-in-out;
}
@keyframes handPoint {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-.06rem, -.12rem); }
}

/* ---------------- page 7 分享页 ---------------- */
#page-7 {
    background: #f28b24  url(https://n.sinaimg.cn/sina_client/gsk20261128/4-1.jpg)  center center / 100% 100% no-repeat;
    /* 竖版视频撑高时允许滚动，保证底部 6-5.png 完整可见 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.share-title {
    position: absolute;
    top: .45rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.4rem;
    height: auto;
}
.share-video {
    /* 改为常规流，撑开 #page-7 高度，超高时可滚动 */
    position: relative;
    margin: 1.5rem 0 0;
    width: 100%;
    height: auto;
    text-align: center;
}
.share-box {
    position: relative;
    margin: 0 auto;
    width: 5.08rem;
    height: auto;
    border: .04rem solid #fff;
    box-sizing: border-box;
    border-radius: .24rem;
    background: #3a1a0a;
    overflow: hidden;
}
#video7 {
    display: block;
    width: 100%;
    height: auto;
}
.share-video.playing .play-icon {
    display: none;
}
/* 视频播放中：分享按钮占位但不可见；播完/暂停后再出现时淡入 */
.share-video.playing .sharebtn {
    opacity: 0;
    visibility: hidden;
    /* 播放开始时立即隐藏，不做淡出 */
    transition: none;
}
.share-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%, -50%);
    border: .12rem solid rgba(230, 70, 20, .85);
    border-radius: 50%;
}
.share-video .play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: .62rem solid rgba(230, 70, 20, .9);
    border-top: .4rem solid transparent;
    border-bottom: .4rem solid transparent;
}
.sharebtn {
    position: relative;
    margin: -0.7rem auto 0;
    width: 4.31rem;
    height: 1.9rem;
    z-index: 6;
    cursor: pointer;
    /* 恢复正常显示时淡入 */
    opacity: 1;
    transition: opacity .3s ease;
}
.share-text {
    margin-top: -0.2rem;
    width: 100%;
    height: auto;
}
.share-banner {
    margin-top: -0.36rem;
    width: 100%;
    height: auto;
}

/* ---------------- 微信分享引导 ---------------- */
.wxlayer {
    /* #page-7 可滚动，用 fixed 保证浮层始终铺满可视区 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    display: none;
    z-index: 100;
}
.wxlayer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* ---------------- toast ---------------- */
#toast {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    top: 50%;
    left: 50%;
    padding: 0 20px;
    width: auto;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .7);
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 100;
}

/* ---------------- 横屏提示 ---------------- */
#zhezhao {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #333;
    left: 0;
    top: 0;
    color: #FFFFFF;
    z-index: 9999;
    font-size: 14px;
    text-align: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    display: none;
}
#zhezhao .bg {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    margin-bottom: 20px;
    background: url(https://n.sinaimg.cn/auto/goodme20250328/zhezhaobg.png) 0 0 no-repeat;
    -webkit-background-size: 67px auto;
    background-size: 67px auto;
    -webkit-animation: lock 3s infinite 1.5s linear;
    animation: lock 3s infinite 1.5s linear;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}
@-webkit-keyframes lock {
    0% { -webkit-transform: rotate(90deg); }
    20% { -webkit-transform: translate(0); }
    80% { -webkit-transform: translate(0); }
    100% { -webkit-transform: translate(0); }
}
@keyframes lock {
    0% { transform: rotate(90deg); }
    20% { transform: translate(0); }
    80% { transform: translate(0); }
    100% { transform: translate(0); }
}

@media (orientation: portrait) {
    #zhezhao { display: none; }
}
@media (orientation: landscape) {
    #zhezhao { display: flex; }
}
.InPC #zhezhao {
    display: none;
}
