* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html {
    min-height: 100vh;
    font-size: calc(100vw / 10.80);
}

@media (min-width: 750px) {
    html {
        font-size: 64px;
    }
}

body {
    margin: 0 auto;
    width: 100%;
    max-width: 750px;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif;
    font-size: .36rem;
    color: #fff;
    line-height: .56rem;
    text-align: center;
    font-weight: normal;
    background: #030a20;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

a {
    text-decoration: none;
    color: #333;
}

img {
    display: block;
    max-width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* iOS 原生长按浮层：禁止“存储图像/拷贝”等菜单 */
    pointer-events: none;
    /* 图片不参与触摸命中：客户端长按识别不到图片元素，不弹保存/识别二维码菜单 */
}

p {
    margin-bottom: .24rem;
    color: #fff;
    line-height: .56rem;
    text-align: center;
}

.pd {
    padding-left: .8rem;
    padding-right: .8rem;
}

.pt180 {
    padding-top: 1.8rem
}

.pt380 {
    padding-top: 3.8rem
}

/* 首页 */
.page {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

#home {
    background: url("../resource/home.jpg") no-repeat center center / cover;
}

/* 音乐开关：固定右上角（全局元素），播放中整体旋转（唱片感），暂停时停在当前角度并变暗 */
.made-btn,
.music-btn {
    position: fixed;
    right: .3rem;
    z-index: 50;
    width: .68rem;
    height: .68rem;
    border-radius: 50%;
    background: rgba(3, 10, 32, .55);
    box-shadow: inset 0 0 0 1px rgba(101, 202, 254, .45), 0 0 .12rem rgba(101, 202, 254, .25);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.music-btn {
    top: .3rem;
    animation: musicSpin 3s linear infinite;
}
.made-btn {
    top: 1.2rem;
    font-size: .24rem;
    color: #65cafe;
    line-height: .68rem;
    text-align: center;
}
/* 中心音符 */
.music-btn::before {
    content: '♪';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: .34rem;
    line-height: 1;
    color: #65cafe;
    text-shadow: 0 0 .12rem rgba(101, 202, 254, .8);
}

/* 装饰虚线圆环：随按钮整体一起旋转 */
.made-btn::after,
.music-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: .5rem;
    height: .5rem;
    margin: -.25rem 0 0 -.25rem;
    border-radius: 50%;
    border: .02rem dashed rgba(101, 202, 254, .65);
}

/* 暂停：整体停在当前角度（动画进度冻结，恢复播放后继续转），圆环与音符变暗 */
.music-btn.paused {
    animation-play-state: paused;
}

.music-btn.paused::after {
    opacity: .35;
}

.music-btn.paused::before {
    color: rgba(101, 202, 254, .5);
    text-shadow: none;
}

@keyframes musicSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 加载页：固定遮罩盖在 swiper 之上，淡出后露出首屏；不占文档流，避免把整屏容器挤下去 */
#loading {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    width: 100%;
    height: 100vh;
    background: #030a20;
}

/* 加载页：文字 + 进度条整体居中（JS 实时更新“加载中... xx%”与进度条宽度），资源全部就绪后进入 home */
.loading-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6rem;
    text-align: center;
}

.loading-text {
    margin-bottom: .36rem;
    font-size: .28rem;
    letter-spacing: .02rem;
    color: #dbeaff;
    text-shadow: 0 0 .24rem rgba(101, 202, 254, .45);
    opacity: .7;
}

/* 进度条轨道：半透明胶囊 + 细光边 + 环境微光 */
.loading-bar {
    position: relative;
    height: .24rem;
    border-radius: .12rem;
    background: rgba(101, 202, 254, .12);
    box-shadow: inset 0 0 0 1px rgba(101, 202, 254, .22), 0 0 .25rem rgba(101, 202, 254, .18);
}

/* 进度填充：站点同款蓝渐变 + 霓虹辉光；宽度由 JS 驱动，.3s 平滑追赶 */
.loading-bar i {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    border-radius: .12rem;
    background: linear-gradient(90deg, #0261cc, #65cafe);
    box-shadow: 0 0 .18rem rgba(101, 202, 254, .7);
    overflow: hidden;
    /* 裁剪流光，避免扫出填充范围 */
    transition: width .3s ease-out;
}

/* 流光扫过：白色柔光带在填充内循环流动，提升质感 */
.loading-bar i::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-100%);
    animation: loadingShine 1.5s ease-in-out infinite;
}

@keyframes loadingShine {
    to {
        transform: translateX(100%);
    }
}


.swiper {
    width: 100%;
    height: 100vh;
}

/* slide 一屏一屏排列：内容超出部分裁剪，避免溢出到相邻屏 */
.swiper-slide {
    overflow: hidden;
}

#home .screen {
    padding-top: 3.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.home-logo {
    position: absolute;
    top: .8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6.81rem;
    height: .83rem;
    z-index: 3;
}

.home-top {
    margin-bottom: .3rem;
    width: 7.92rem;
    height: 4.27rem;
}

.home-btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 4.98rem;
    height: 1.8rem;
    background: transparent url("../resource/btn_start.png") no-repeat center center / 100% 100%;
    cursor: pointer;
    animation: btnBeat 1.8s ease-in-out infinite;
}

/* home 页入场：logo → 主图 → 文案 → 按钮 依次上浮淡入（每项间隔 .3s；loading 淡出完成后由 JS 追加 .show 触发） */
#home.anim .home-top,
#home.anim .screen>p {
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

/* logo 依赖 translateX(-50%) 居中，位移必须与居中量合并，避免入场时横跳 */
#home.anim .home-logo {
    opacity: 0;
    transform: translateX(-50%) translateY(.5rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

/* 按钮只做淡入不碰 transform：btnBeat 心跳动画持续占用 transform，叠加位移会互相干扰 */
#home.anim .home-btn {
    opacity: 0;
    transition: opacity .6s ease-out;
}

#home.anim.show .home-top,
#home.anim.show .screen>p {
    opacity: 1;
    transform: translateY(0);
}

#home.anim.show .home-logo {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#home.anim.show .home-btn {
    opacity: 1;
}

#home.anim.show .home-top {
    transition-delay: .3s;
}

#home.anim.show .screen>p {
    transition-delay: .6s;
}

#home.anim.show .home-btn {
    transition-delay: .9s;
}

/* p2 */
.p1-bgcolor,
#p1 {
    /* background: url("../resource/p2.jpg"); */
    background: linear-gradient(180deg, #295af6 0%, #0e2157 30%, #0e2157 100%);
}

.p1-top {
    position: relative;
    z-index: 2;
    background: url("../resource/p2_top.png") no-repeat 0 0 /100% auto;
}
#p1-2 .p1-top,
#p1 .p1-top {
    padding-top: 1.2rem;
}
.p1-top p {
    margin-bottom: .6rem;
}
/* p1 三段文字入场：滚动进入可视区后由下往上依次淡入（每段间隔 .3s，滚出后再进入会重播） */
.p1-top.anim p {
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.p1-top.anim p:nth-child(2) {
    transition-delay: .3s;
}

.p1-top.anim p:nth-child(3) {
    transition-delay: .6s;
}

.p1-top.anim.show p {
    opacity: 1;
    transform: translateY(0);
}

.p1-top.anim.reset p {
    transition: none;
}

.p1-bg {
    position: absolute;
    top: 8rem;
    left: 0;
    width: 100%;
    height: 10.8rem;
    background: url("../resource/p2_main.jpg") no-repeat center center /100% auto;
    z-index: 1;
}
.p1-bg2 {
    background: url("../resource/p1_bg.jpg") no-repeat center center /100% auto;
}

/* p1 背景图入场：与 p1-top 同步触发，等三段文字出完后（1.2s）由下往上浮现；只播一次，滚出视口不再隐藏 */
.p1-bg.anim {
    opacity: 0;
    transform: translateY(1.1rem);
}

.p1-bg.anim.show {
    animation: p1BgIn .9s ease-out 1.2s both, p1BgBreath 4.5s ease-in-out 2.1s infinite;
}

@keyframes p1BgIn {
    from {
        opacity: 0;
        transform: translateY(1.1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* p1 背景图呼吸：±4% 轻微缩放 */
@keyframes p1BgBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* p1 底部提示：等 p1-bg 浮现完成后再淡入（2.1s = 背景 1.2s 延迟 + 0.9s 时长），只做透明度不碰 transform */
.p1-bg.anim~.bottom {
    opacity: 0;
}

.p1-bg.anim.show~.bottom {
    animation: bottomIn .8s ease-out 2.1s both;
}

@keyframes bottomIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
#p2 {
    background-color: #02080d;
}
.p2-top-bg {
    padding-top: 1rem;
    background: linear-gradient(180deg, #0e2157 0%, #010506 100%);
    overflow: hidden;
}

.p2-con {
    margin-bottom: .3rem;
}

.p2-card {
    padding: 0 .4rem .3rem;
    margin-bottom: .6rem;
    height: 12.15rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    perspective: 12rem;
    background: url("../resource/p2_bg.jpg") no-repeat center center /100% 100%;
}

.pop-box .card img.p2-t {
    margin: 0 auto .6rem;
    height: .55rem;
    border-radius: 0;
}

.p2-card-item {
    margin-bottom: .2rem;
    width: 33.3333%;
    height: 4.28rem;
    cursor: pointer;
    /* 可点击查看详情：桌面端手型提示 */
}

/* p2 六张卡片翻转入场：滑动到该区域后依次翻转出现 */
.p2-card.anim .p2-card-item {
    opacity: 0;
    transform: rotateY(90deg);
    transition: transform .6s ease-out, opacity .6s ease-out;
}

.p2-card.anim.show .p2-card-item {
    opacity: 1;
    transform: rotateY(0deg);
}

/* 重播用重置态：瞬时回到隐藏位置，不播翻转过程 */
.p2-card.anim.reset .p2-card-item {
    transition: none;
}

.p2-card.anim .p2-card-item:nth-child(2) {
    transition-delay: .2s;
}

.p2-card.anim .p2-card-item:nth-child(3) {
    transition-delay: .4s;
}

.p2-card.anim .p2-card-item:nth-child(4) {
    transition-delay: .6s;
}

.p2-card.anim .p2-card-item:nth-child(5) {
    transition-delay: .8s;
}

.p2-card.anim .p2-card-item:nth-child(6) {
    transition-delay: 1s;
}

.p2-tit {
    margin: 0.8rem auto;
    width: 5.39rem;
}

/* p2 标题与文案入场：滚动进入可视区后由下往上淡入（滚出后再进入会重播） */
.p2-tit.anim,
.p2-con.anim {
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.p2-tit.anim.show,
.p2-con.anim.show {
    opacity: 1;
    transform: translateY(0);
}

.p2-tit.anim.reset,
.p2-con.anim.reset {
    transition: none;
}

.p3-bg {
    padding-top: 3.2rem;
    width: 100%;
    height: 10rem;
    background: url("../resource/p3_bg.jpg") no-repeat 0 0 /100% auto;
}

.p3-demo {
    height: 12rem;
}

.card {
    padding: 1rem 1.5rem;
    min-height: 4rem;
    background: url("../resource/card.png") no-repeat 0 0 /100% 100%;
}

.p2-card-pop.card {
    background-image: url("../resource/p2_card.png");

}

.page .card p {
    color: #0f1421;
}

.page .card span {
    color: #2d5cc6;
}

.p-card-t img {
    margin: 0 auto .4rem;
    width: auto;
    height: .55rem;
}

.p4-z {
    height: 4.8rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
}

.p4-z img {
    width: 2.32rem;
    height: 4.71rem;
}

.p4-z-1 {
    margin-right: .35rem;
}

.p5 {
    margin-top: 3rem;
    margin-bottom: 5rem;
}

#p4 {
    background: linear-gradient(180deg, #02080d 0%, #0e2157 30%, #0e2157 70%, #02080d 100%);
}

/* p4/p5 卡片入场：滚动到可视区域后由小到大弹性渐入（缩放 + 淡入，带轻微回弹） */
.p4.card.anim,
.p5.card.anim {
    opacity: 0;
    transform: scale(.5);
    transition: transform .8s cubic-bezier(.34, 1.56, .64, 1), opacity .5s ease-out;
}

.p4.card.anim.show,
.p5.card.anim.show {
    opacity: 1;
    transform: scale(1);
}

/* 重播用重置态：瞬时回到隐藏位置，不播入场过程 */
.p4.card.anim.reset,
.p5.card.anim.reset {
    transition: none;
}

.p5-more {
    font-style: italic;
    color: #fff;
    cursor: pointer;
}

.p5-more-arrow {
    position: relative;
    display: inline-block;
    margin-left: .2rem;
    width: .45rem;
    height: .26rem;
    vertical-align: middle;
}

.p5-more-arrow i {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: .19rem;
    height: .26rem;
    background: url("../resource/arr-r.png") no-repeat 0 0 /100% auto;
    animation: p5ArrowFlow1 2.5s ease-in-out infinite backwards;
}

.p5-more-arrow i:nth-child(2) {
    left: .14rem;
    animation-name: p5ArrowFlow2;
    /* animation-delay: .25s; */
    opacity: .6;
}

.p5-more-arrow i:nth-child(3) {
    left: .28rem;
    animation-name: p5ArrowFlow3;
    /* animation-delay: .5s; */
    opacity: .2;
}

/* p5 更多箭头：三个小箭头透明度依次呼吸（ 1↔.6 / .6↔.2 / .2↔0 ）并向右流动 */
@keyframes p5ArrowFlow1 {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-.06rem);
    }

    50% {
        opacity: .6;
        transform: translateX(.06rem);
    }
}

@keyframes p5ArrowFlow2 {

    0%,
    100% {
        opacity: .6;
        transform: translateX(-.06rem);
    }

    50% {
        opacity: .3;
        transform: translateX(.06rem);
    }
}

@keyframes p5ArrowFlow3 {

    0%,
    100% {
        opacity: .2;
        transform: translateX(-.06rem);
    }

    50% {
        opacity: 0.1;
        transform: translateX(.06rem);
    }
}

.p6,
.p6-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.p9,
.p6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.p6-bg {
    background: url("../resource/p6_bg.jpg") no-repeat 0 0 / 100% auto;
    z-index: 1;
}

#p6 .p6-bg {
    opacity: .26;
}

.p6-con {
    margin: .4rem auto;
    font-size: .5rem;
}

.p6-btn {
    width: 4.96rem;
    height: 1.8rem;
    background: transparent url("../resource/btn_try.png") no-repeat center center / 100% 100%;
    animation: btnBeat 1.8s ease-in-out infinite;
    cursor: pointer;
}

/* p6 两段内容：各自绝对定位铺满整屏，内容垂直居中，互不占位影响居中效果 */
#p6 .p6-m1,
#p6 .p6-m2 {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* m1：默认显示，进度动画播完停留 1s 后由 JS 加 .out 淡出 */
#p6 .p6-m1 {
    transition: opacity .5s ease-out;
}

#p6 .p6-m1.out {
    opacity: 0;
}

/* m2：初始隐藏并下移待命，m1 淡出后由 JS 加 .show，由下往上淡入；
   隐藏期间禁用点击，避免误触不可见按钮直接跳页 */
#p6 .p6-m2 {
    opacity: 0;
    transform: translateY(.8rem);
    pointer-events: none;
    transition: opacity .6s ease-out, transform .6s ease-out;
}

#p6 .p6-m2.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* p6 手型提示：节点点亮完成后浮现于按钮右侧，点按动作引导点击“我要试一试” */
.p6-hand {
    margin-top: -2rem;
    margin-left: 3.4rem;
    opacity: 0;
    animation: handTap 1.6s ease-in-out infinite, handIn .5s ease-out 1.4s both;
}

@keyframes handIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.p7-tip {
    position: absolute;
    left: 0;
    top: 17.8rem;
    width: 100%;
    font-size: .3rem;
    color: #fff;
    text-align: center;
    z-index: 3;
    opacity: .6;
}

.p7-btn {
    position: absolute;
    height: 1.52rem;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    z-index: 3;
}

.p7-btn.ani {
    animation: p7Beat 1.8s ease-in-out infinite;
}

.p7-btn.p7-1 {
    top: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.26rem;
    background-image: url("../resource/p7_1.png");
    animation-name: p7BeatCenter;
}

.p7-btn.p7-2 {
    top: 6.4rem;
    left: .9rem;
    width: 3.06rem;
    background-image: url("../resource/p7_2.png");
}

.p7-btn.p7-3 {
    top: 6.4rem;
    right: .6rem;
    width: 3.47rem;
    background-image: url("../resource/p7_3.png");
}

.p7-btn.p7-4 {
    top: 9.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4.34rem;
    background-image: url("../resource/p7_4.png");
    animation-name: p7BeatCenter;
}

.hand {
    width: .95rem;
    height: 1.01rem;
    /* transform: rotate(-35deg); */
    background: url("../resource/hand.png") no-repeat center center / 100% 100%;
    animation: handTap 1.6s ease-in-out infinite;
}

.p5-btn {
    margin: 0 auto;
    width: .95rem;
    cursor: pointer;
}

.p7-btn .hand {
    position: absolute;
    right: -.2rem;
    bottom: -.35rem;
}

/* p7 按钮心跳：双拍节律（咚-咚）后停顿 */
@keyframes p7Beat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.12);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.06);
    }

    70% {
        transform: scale(1);
    }
}

/* 居中按钮（p7-1 / p7-4）版本：关键帧里保留 translateX(-50%) 居中量 */
@keyframes p7BeatCenter {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    14% {
        transform: translateX(-50%) scale(1.12);
    }

    28% {
        transform: translateX(-50%) scale(1);
    }

    42% {
        transform: translateX(-50%) scale(1.06);
    }

    70% {
        transform: translateX(-50%) scale(1);
    }
}

/* 大按钮（首页“开始探索”、p6/p9“我要试一试”）心跳：双拍缩放 + 光晕随拍呼吸 */
@keyframes btnBeat {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(101, 202, 254, 0));
    }

    14% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 .3rem rgba(101, 202, 254, .9));
    }

    28% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(101, 202, 254, 0));
    }

    42% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 .2rem rgba(101, 202, 254, .6));
    }

    70% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(101, 202, 254, 0));
    }
}

/* 手型提示点击：向按钮方向（左上方）点按一下，缩小模拟按下，之后停顿 */
@keyframes handTap {

    0%,
    40%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    20% {
        transform: translate(-.12rem, -.12rem) scale(.92);
    }
}

/* 六网节点进度：6 个节点代表“六网”，点亮数即学习进度（p6 点亮 3 个 = 50%，finish 全部点亮 = 100%）。
   点亮由 JS 逐节点驱动（.on 类），节点与连线一同亮起并弹跳一下 */
.progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 6rem;
}

.progress-node {
    position: relative;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: rgba(101, 202, 254, .15);
    box-shadow: inset 0 0 0 1px rgba(101, 202, 254, .35);
    transition: background .3s ease-out, box-shadow .3s ease-out;
}

/* 节点间连线：从本节点右缘延伸到下一节点左缘（最后一个节点无连线） */
.progress-node::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -.02rem;
    width: .72rem;
    height: .04rem;
    border-radius: .02rem;
    background: rgba(101, 202, 254, .15);
}

.progress-node:last-child::after {
    display: none;
}

.progress-node.on {
    background: radial-gradient(circle at 32% 28%, #bfe6ff, #0261cc 55%, #65cafe);
    box-shadow: 0 0 .2rem rgba(101, 202, 254, .85), inset 0 0 .08rem rgba(255, 255, 255, .35);
    animation: nodePop .4s ease-out;
}

/* 已点亮节点向右的连线一并亮起（渐隐过渡到下一个未亮节点） */
.progress-node.on::after {
    background: linear-gradient(90deg, rgba(101, 202, 254, .65), rgba(101, 202, 254, .15));
}

@keyframes nodePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.progress-num {
    position: relative;
    padding-bottom: .5rem;
    margin: 0 auto;
    width: fit-content;
    font-size: .56rem;
    font-weight: bold;
    color: #65cafe;
    text-align: center;
    text-shadow: 0 0 .3rem rgba(101, 202, 254, .6);
}

.p9-con {
    margin: 0 auto;
    width: 6rem;
}

.p9-tit {
    margin: 0 auto .5rem;
    width: 8.18rem;
    height: .74rem;
    background: url("../resource/p9_1.png") no-repeat 0 0 / 100% 100%;
}

.p9-bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url("../resource/p9_bg.png") no-repeat center center / 100% auto;
}

.p9-btn {
    width: 4.96rem;
    height: 1.8rem;
    background: transparent url("../resource/btn_end.png") no-repeat center center / 100% 100%;
    animation: btnBeat 1.8s ease-in-out infinite;
    cursor: pointer;
}

/* finish 两屏改为同屏叠层：各自铺满一屏、内容垂直居中（替代原来的上下堆叠滚动） */
#p9-m1,
#p9-m2 {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* m1（星空+进度）：默认显示，进度动画播完停留 1s 后由 JS 淡出。
   注意 m2 嵌套在 m1 内部，不能直接给 m1 降透明度（父级 opacity:0 会连 m2 一起不可见），
   JS 用 jQuery fadeOut 逐帧改 .p9-tit/.p9-con 的 opacity。
   这里不挂 CSS transition：iOS 微信 WebView 里定时器回调中切类触发的 transition 可能被整段跳过，
   会出现"m1 没淡出、之后突然消失"，jQuery 逐帧写法在所有 WebView 里都稳定生效 */

/* m2（证书，嵌套在 m1 内）：初始隐藏并下移待命，m1 内容淡出后由 JS 加 .show 进场；
   隐藏期间禁用点击，避免误触不可见的结束按钮直接跳页。
   入场用 CSS 关键帧动画而非 transition：关键帧动画有固定时间轴、由合成器驱动，
   在 iOS 微信 WebView 里比"切类触发 transition"更可靠 */
#p9-m2 {
    opacity: 0;
    transform: translateY(.8rem);
    pointer-events: none;
}

#p9-m2.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: p9m2In .6s ease-out;
}

/* m2 由下往上淡入：起始位移量与隐藏态保持一致（.8rem） */
@keyframes p9m2In {
    from {
        opacity: 0;
        transform: translateY(.8rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* end */
#end {
    /* padding-top: .8rem; */
    background: linear-gradient(#429bfe 0%, #071022 50%);
}

.p10-top {
    margin: 0 auto .6rem;
    width: fit-content;
    height: 7.2rem;
    /* background: url("../resource/p10-top.png") no-repeat 0 0 / 100% 100%; */
}

.p10-top img {
    height: 100%;
}

.p10-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    background: url("../resource/p10_bg.jpg") no-repeat center center / 100% auto;
    z-index: 1;
}


.p10-con {
    position: relative;
    z-index: 2;
}

.p10-con .song {
    font-style: italic;
    font-weight: bold;
}

.p10-con p {
    margin-bottom: .3rem;
}

.p10-con p:last-child {
    margin-bottom: 0;
}
@media (min-height: 780px) {
    .p10-con p {
        margin-bottom: .8rem;
    }
    .p10-bg {
        height: 8rem;
    }
}

/* p10 内容入场：滚动进入可视区后由下往上淡入（滚出后再进入会重播） */
.p10-top.anim {
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.p10-con.anim p {
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

/* p10 文案：三段依次出场（每段间隔 .3s） */
.p10-con.anim p:nth-child(2) {
    transition-delay: .3s;
}

.p10-con.anim p:nth-child(3) {
    transition-delay: .6s;
}

.p10-top.anim.show,
.p10-con.anim.show p {
    opacity: 1;
    transform: translateY(0);
}

.p10-top.anim.reset,
.p10-con.anim.reset p {
    transition: none;
}

.page p {
    font-size: .4rem;
    line-height: .6rem;
}

.page span {
    color: #72ffbe;
}

.bottom {
    position: absolute;
    /* top: 18.8rem; */
    bottom: .5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* 下滑探索更多：可点击推进到下一页（桌面端手型提示） */
.more {
    cursor: pointer;
}

.more img {
    margin: 0 auto .15rem;
    width: 1.22rem;
    height: 0.86rem;
    animation: nextBob 3s ease-in-out infinite;
}

.more p {
    font-size: .3rem;
    opacity: 0.6;
}

#p4 .more {
    font-style: italic;
}

@keyframes nextBob {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(14px);
        opacity: .6;
    }
}


/* 弹窗 */
.pop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999998;
}

.pop-box {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 10.8rem;
    border-radius: 0.08rem;
    z-index: 999999;
    animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* 弹窗入场：由小到大弹出（关键帧里保留 translate(-50%, -50%) 居中量） */
@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(.6);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.pop-tit img {
    display: block;
    margin: 0 auto .6rem;
    width: auto;
    height: .8rem;
}

.pop-box .card img {
    margin: .6rem auto;
    /* 配合 HTML 的 width/height 属性：首帧即按宽高比预留占位（防弹出后位移），
       并保证宽度被容器缩放时高度始终等比计算，不会套用属性里的固定高度 */
    height: auto;
    border-radius: .3rem;
}

.pop-box h2 {
    margin-bottom: .3rem;
    font-size: 0.5rem;
    color: #094e89;
    text-align: center;
    font-weight: bold;
    font-style: italic;
}

.pop-box h3 {
    margin: 0 auto .2rem;
    padding-left: .6rem;
    width: fit-content;
    height: .6rem;
    font-size: 0.4rem;
    color: #070709;
    text-align: center;
    font-weight: bold;
    background: url("../resource/addr.png") no-repeat 0 0 / .44rem auto;
}

.pop-box p {
    margin-bottom: 0.2rem;
    font-size: 0.36rem;
    color: #000;
    line-height: 0.54rem;
    text-align: justify;
}

.pop-box b {
    display: inline-block;
    margin-right: .2rem;
    padding: 0 .2rem;
    font-size: .34rem;
    line-height: .54rem;
    background: linear-gradient(to right, #d6f765, #7ff874);
    border-radius: .06rem;
}

.pop-close {
    position: relative;
    margin: .1rem auto 0;
    width: .8rem;
    height: .8rem;
    border: .03rem solid #fff;
    border-radius: 50%;
}

.pop-close::before,
.pop-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -.02rem;
    margin-left: -.25rem;
    width: .5rem;
    height: .03rem;
    background-color: #fff;
    border-radius: .02rem;
}

.pop-close::before {
    transform: rotate(45deg);
}

.pop-close::after {
    transform: rotate(-45deg);
}

/* "出品"按钮弹窗：制作团队名单。深色面板 + 蓝色描边光晕（与右上角 made-btn 呼应），
   复用 .pop 遮罩与 .pop-box 的 popIn 入场动画 */
.made-pop {
    width: 8.6rem;
    padding: .6rem;
    background: rgba(3, 10, 32, .92);
    border: .02rem solid rgba(101, 202, 254, .45);
    border-radius: .2rem;
    box-shadow: 0 0 .5rem rgba(101, 202, 254, .22), inset 0 0 .5rem rgba(101, 202, 254, .06);
}

.made-pop p {
    margin-bottom: 0;
    font-size: .32rem;
    color: rgba(255, 255, 255, .92);
    line-height: .72rem;
    text-align: left;
}

.made-pop p span {
    color: #65cafe;
}
.made-pop .pop-close {
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    margin-left: -.4rem;
}
.song,
.pop-box h2,
.pop-box h3 {
    font-family: "Songti SC", "STSong", "SimSun", "宋体", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}