* {
    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: 1;
    text-align: center;
    font-weight: normal;
    background: #f7e7c6;
    -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;
}

/* 音乐，出品按钮 */
.made-btn,
.music-btn {
    position: fixed;
    bottom: .8rem;
    z-index: 50;
    width: 1rem;
    height: 1rem;
    background-image: url("resource/music.png");
    -webkit-tap-highlight-color: transparent;
}

.music-btn {
    right: .6rem;
    animation: musicSpin 3s linear infinite;
}

.made-btn {
    right: 1.8rem;
    background-image: url("resource/prod.png");
}

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

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

.bg {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.ab {
    position: absolute;
}

.re {
    position: relative;
}

.z1 {
    z-index: 1;
}

.z2 {
    z-index: 2;
}

.z3 {
    z-index: 3;
}

.z4 {
    z-index: 4;
}

.z5 {
    z-index: 5;
}

.hide {
    display: none;
}

.show {
    display: block;
}

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

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

.col {
    flex-direction: column;
}

.space-between {
    justify-content: space-between;
}

.screen {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* 加载页：固定遮罩盖在 swiper 之上，淡出后露出首屏；不占文档流，避免把整屏容器挤下去 */
#loading {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* 高于 .video-box(40)：加载完成时淡出才能“露出”下面已在播放的视频 */
    z-index: 45;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-image: url("resource/loading_bg.jpg");
    /* 底色兼底：视频页现在一开始就在渲染树里（否则 iOS 不预加载），
       loading_bg 还没下完的那几帧靠这个颜色挡住它后面的黑底，不会有黑闪 */
    background-color: #f7e7c6;
}

.loading-logo {
    margin-left: 1.1rem;
    width: .48rem;
}

.loading-img {
    margin-left: .2rem;
    width: 1.14rem;
}

.loading-text {
    margin-right: .2rem;
    width: .37rem;
}

.loading-box {
    flex: 1;
    width: 2.6rem;
    text-align: center;
}


/* 进度条轨道：半透明胶囊 + 细光边 + 环境微光 */
.loading-main {
    width: .46rem;
}

.loading-bar {
    position: relative;
    width: .32rem;
    height: 3rem;
    background-color: #fdf9f0;
    border: .04rem solid #fff;
    border-radius: .15rem;
    box-shadow: 0 0.04rem .05rem rgba(248, 170, 149, .6);
}

.loading-num {
    margin-top: .4rem;
    color: #d2392a;
    transform: rotate(90deg);
}

/* 进度填充：站点同款蓝渐变 + 霓虹辉光；宽度由 JS 驱动，.3s 平滑追赶 */
.loading-bar i {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    border-radius: .15rem;
    background: linear-gradient(180deg, #feae78, #f98962);
    overflow: hidden;
    /* 裁剪流光，避免扫出填充范围 */
    transition: height .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: translateY(-100%);
    animation: loadingShine 1.5s ease-in-out infinite;
}

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

/* 视频 */
.video-box {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: #f7e7c6 url("resource/loading_bg.jpg") no-repeat center center / 100% 100%;
    transition: opacity .6s ease;
}

.video-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f7e7c6;
}

.video-btn {
    right: .4rem;
    bottom: .9rem;
    padding: 0 .2rem;
    width: fit-content;
    font-size: .3rem;
    color: #fff;
    line-height: .6rem;
    background-color: rgba(0, 0, 0, .5);
    transform: rotate(90deg);
    border-radius: .3rem;
    z-index: 100;
}

/* 视频无法播放时的提示（点击后进入封面） */
.video-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3rem;
    font-size: .3rem;
    color: rgba(255, 255, 255, .75);
    letter-spacing: .04rem;
    text-align: center;
}

/* 视频 → 封面转场：只做视频淡出，封面直接作为其下方底图呈现 */
#video {
    z-index: 2;
    transition: opacity .6s ease;
}

#video.is-out {
    opacity: 0;
}

/* 封面 */
#home {
    background-image: url("resource/home_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

/* 点击「开始寻找」后首页淡出：抬高层级盖住已就位的 #p0，形成“淡出露出下一页” */
#home.is-out {
    z-index: 3;
    opacity: 0;
}

/* 视频播完后封面元素依次淡入：由 JS 给 #home 加 .is-in 触发 */
#home .home-logo,
#home .home-txt,
#home .home-title,
#home .home-dp,
#home .home-btn {
    opacity: 0;
}

#home.is-in .home-title {
    animation: homeIn .8s ease-out .05s both;
}

#home.is-in .home-txt {
    animation: homeIn .8s ease-out .25s both;
}

#home.is-in .home-logo {
    animation: homeIn .8s ease-out .35s both;
}

/* 大鹏自带 eagleFly、按钮自带呼吸动画：这里并列写，避免 animation 简写把它们覆盖掉 */
#home.is-in .home-dp {
    animation: homeIn .8s ease-out .45s both, eagleFly 8s linear infinite;
}

#home.is-in .home-btn {
    animation: homeIn .8s ease-out .65s both, homeBtnBreath 2.2s ease-in-out infinite;
}

/* 纯透明度淡入，不动布局位置 */
@keyframes homeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.home-main {
    width: 7.8rem;
    padding-left: 0.5rem;
}

.home-logo {
    top: .8rem;
    bottom: .8rem;
    right: .8rem;
}

.home-logo img {
    width: .86rem;
}

.home-21 {
    margin-bottom: 1.8rem;
}

.home-title {
    width: 5.41rem;
}

.home-txt {
    width: .34rem;
}

.home-dp {
    top: -5.2rem;
    right: .8rem;
    width: 4.16rem;
    /* 大鹏飞行：沿一条闭合的滑翔曲线采样，旋转比位移滞后 1/4 周期，像在有气流的空中飘 */
    transform-origin: 55% 45%;
    animation: eagleFly 8s linear infinite;
    will-change: transform;
}

/*
 * 曲线由正弦采样而来（每 30° 一个关键帧，共 12 段）：
 * x = 0.12·sin(2πt)（左右一次漂移）；y = -0.12 + 0.12·cos(4πt)（上下两次起伏）；
 * rotate = 2.4·sin(2πt + π/4)（与位移错相，形成侧倾）；scale = 1.01 - 0.01·cos(4πt)。
 * 统一用 linear 插值：若用 ease-in-out，每段关键帧都会重复一次“加速-减速”，
 * 造成一拍一停的顿挫感，这正是之前看起来生硬的原因。
 */
@keyframes eagleFly {
    0% {
        transform: translate3d(0, 0, 0) rotate(2.3deg) scale(1);
    }

    8.33% {
        transform: translate3d(.06rem, -.06rem, 0) rotate(2.3deg) scale(1.005);
    }

    16.67% {
        transform: translate3d(.1rem, -.18rem, 0) rotate(1.7deg) scale(1.015);
    }

    25% {
        transform: translate3d(.12rem, -.24rem, 0) rotate(.6deg) scale(1.02);
    }

    33.33% {
        transform: translate3d(.1rem, -.18rem, 0) rotate(-.6deg) scale(1.015);
    }

    41.67% {
        transform: translate3d(.06rem, -.06rem, 0) rotate(-1.7deg) scale(1.005);
    }

    50% {
        transform: translate3d(0, 0, 0) rotate(-2.3deg) scale(1);
    }

    58.33% {
        transform: translate3d(-.06rem, -.06rem, 0) rotate(-2.3deg) scale(1.005);
    }

    66.67% {
        transform: translate3d(-.1rem, -.18rem, 0) rotate(-1.7deg) scale(1.015);
    }

    75% {
        transform: translate3d(-.12rem, -.24rem, 0) rotate(-.6deg) scale(1.02);
    }

    83.33% {
        transform: translate3d(-.1rem, -.18rem, 0) rotate(.6deg) scale(1.015);
    }

    91.67% {
        transform: translate3d(-.06rem, -.06rem, 0) rotate(1.7deg) scale(1.005);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(2.3deg) scale(1);
    }
}

.home-btn {
    left: 0.2rem;
    width: 2.54rem;
    /* 全局 img 设了 pointer-events: none，这里单独放开才能接收点击 */
    pointer-events: auto;
    /* 点击引导：呼吸缩放 + 轻微上浮微摆，让“开始寻找”看起来是活的 */
    transform-origin: 40% 55%;
    animation: homeBtnBreath 2.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes homeBtnBreath {

    /* 对称呼吸：放大与回落各占一半时长，避免“快放大、慢回缩”的顿挫感 */
    0%,
    100% {
        transform: scale(1);
    }

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

/* 系统开启“减弱动态效果”时停掉动画，不影响阅读 */
@media (prefers-reduced-motion: reduce) {

    .home-btn,
    .home-dp,
    .p0-dp,
    .p0-prev.is-active,
    .p0-next.is-active {
        animation: none;
    }
}

/* 导读 */
#p0 {
    background-image: url("resource/p0_bg.jpg");
    transition: opacity .5s ease;
}

/* 进入泰国页时导读页淡出：抬高层级盖住已就位的 #p1 */
#p0.is-out {
    z-index: 3;
    opacity: 0;
}

.p0-r {
    right: -0.2rem;
    bottom: .5rem;
    width: 2.8rem;
    height: 7.3rem;
}

.p0-dp {
    top: -0.5rem;
    right: -0.2rem;
    width: 2.78rem;
    height: 4.40rem;
    background-image: url("resource/home_dp.png");
    /* 大鹏飞行：复用封面同一套滑翔曲线，支点定在身体重心 */
    transform-origin: 55% 45%;
    animation: eagleFly 8s linear infinite;
    will-change: transform;
}

.p0-title {
    bottom: 0;
    width: 2.69rem;
    height: 4.71rem;
    /* background-image: url("resource/p0_title.png"); */
}

.p0-main {
    margin-right: 1.5rem;
    padding-right: .2rem;
    width: 5.7rem;
    height: 10.2rem;
}

/* 导读图文：txt1 / txt2 叠在同一位置（右对齐、垂直居中），左右滑动淡入淡出 */
.p0-txt1,
.p0-txt2 {
    position: absolute;
    top: 50%;
    right: .2rem;
    /* 默认停在左侧待入场位 */
    opacity: 0;
    transform: translate3d(-0.6rem, -50%, 0);
    transition: opacity .5s ease, transform .5s ease;
}

.p0-txt1 {
    /* width: 4rem; */
    width: 3.93rem;
    height: 10.06rem;
}

.p0-txt2 {
    /* width: 3.6rem; */
    width: 3.32rem;
    height: 10.16rem;
}

/* 入场：从左向右淡入到位 */
.p0-txt1.is-in,
.p0-txt2.is-in {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
}

/* 退场：向右淡出 */
.p0-txt1.is-out,
.p0-txt2.is-out {
    opacity: 0;
    transform: translate3d(.6rem, -50%, 0);
}

/* 复位用：不做过渡，瞬间回到待入场位，避免反向滑回 */
.p0-txt1.no-trans,
.p0-txt2.no-trans {
    transition: none;
}

.p0-btn {
    width: 1rem;
}

/* 上一张 / 下一张箭头：全局 img 禁用了点击，这里单独放开 */
.p0-prev,
.p0-next {
    pointer-events: auto;
    cursor: pointer;
    transition: opacity .3s ease, filter .3s ease;
}

.p0-next {
    transform: rotate(180deg);
}

/* 置灰：该方向已无内容可翻 */
.p0-prev.is-disabled,
.p0-next.is-disabled {
    opacity: .25;
    filter: grayscale(1);
    pointer-events: none;
}

/* 可点击时呼吸缩放；.p0-next 自带 180° 旋转，关键帧里必须保留否则箭头会翻向 */
.p0-prev.is-active {
    animation: p0PrevPulse 1.6s ease-in-out infinite;
}

.p0-next.is-active {
    animation: p0NextPulse 1.6s ease-in-out infinite;
}

@keyframes p0PrevPulse {

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

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

@keyframes p0NextPulse {

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

    50% {
        transform: rotate(180deg) scale(1.18);
    }
}

.p0-btn-txt {
    width: .72rem;
}

/* 导读页元素依次入场：由 JS 给 #p0 加 .is-in 触发，各元素 animation-delay 不同 */
#p0 .home-logo,
#p0 .p0-dp,
#p0 .p0-title,
#p0 .p0-btn {
    opacity: 0;
}

#p0.is-in .home-logo,
#p0.is-in .p0-dp,
#p0.is-in .p0-title,
#p0.is-in .p0-btn {
    animation: p0In .7s cubic-bezier(.22, .8, .3, 1) both;
}

/* 入场顺序：右侧标题图 → 主文案 → 装饰 → 按钮组 */
#p0.is-in .p0-title {
    animation-delay: .1s;
}

#p0.is-in .p0-dp {
    /* 自带 eagleFly：必须跟入场动画并列写，否则 animation 简写会把飞行覆盖掉 */
    animation: p0In .7s cubic-bezier(.22, .8, .3, 1) .22s both, eagleFly 8s linear infinite;
}

#p0.is-in .home-logo {
    animation-delay: .1s;
}

#p0.is-in .p0-btn {
    animation-delay: .62s;
}

@keyframes p0In {
    from {
        opacity: 0;
        transform: translateY(.5rem);
    }

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

/* 泰国 */
.p-next {
    left: .5rem;
    bottom: .8rem;
    width: .96rem;
}

#p1 {
    background-image: url("resource/p1_bg.jpg");
    /* 独立层叠上下文：内部 z1~z3 子元素被封闭，不会盖到正在淡出的 #p0 */
    z-index: 0;
    transition: opacity .5s ease;
}

/* 进入结尾页时泰国页淡出 */
#p1.is-out {
    z-index: 3;
    opacity: 0;
}

/* 打卡卡片：默认隐藏（.hide），点击按钮后从左侧滑入并居中 */
.p1-card {
    top: 50%;
    left: 50%;
    width: 4.08rem;
    opacity: 0;
    /* 保留居中所需的 -50% 偏移，并额外停在左侧 .9rem 待入场 */
    transform: translate3d(calc(-50% - .9rem), -50%, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p1-card.is-in {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
}

/* 印章：默认不显示，卡片落位后从大到小盖上去 */
.p1-yz {
    top: .15rem;
    left: 1rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑到位要 .6s，盖章再往后等 1s 才落，盖章动作独立于滑动 */
#p1 .p1-card.is-in .p1-yz {
    animation: p1Stamp .8s cubic-bezier(.2, .9, .3, 1) 1.5s both;
}

/* 盖章：由大到小 + 透明度 0→1，落定时轻轻回弹一下 */
@keyframes p1Stamp {
    0% {
        opacity: 0;
        transform: scale(1.8);
    }

    60% {
        opacity: 1;
        transform: scale(.95);
    }

    82% {
        opacity: 1;
        transform: scale(1.02);
    }

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

/* 打卡按钮：呼吸放大 + 投影强调，提示可点 */
.p1-btn {
    top: -2.9rem;
    right: 2rem;
    width: .53rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(255, 105, 20, .75));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

/* 点击后：停掉呼吸，按钮淡出并彻底交不出去点击 */
.p1-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

@keyframes p1BtnBreath {

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

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

.p1-light {
    top: 0.1rem;
    right: 1.5rem;
    width: 1.4rem;
    height: 1.69rem;
    opacity: 0;
    /* 等人物走到位（入场 .25s + 1.4s）后再开始第一次闪光，之后每 4.6s 一次 */
    animation: p1Flash 4.6s ease-out 2s infinite;
}

/* 相机闪光：瞬间打亮 + 快速衰减，其余时间保持熄灭 */
@keyframes p1Flash {
    0% {
        opacity: 0;
        transform: scale(.6);
    }

    3% {
        opacity: 1;
        transform: scale(1.12);
    }

    8% {
        opacity: .55;
        transform: scale(1.05);
    }

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

.p1-2 {
    top: 50%;
    left: -2rem;
    margin-top: 3rem;
    width: 9.33rem;
    height: 3.37rem;
}

.p1-3 {
    top: 50%;
    left: .5rem;
    margin-top: -8rem;
    width: 5.89rem;
    height: 5.26rem;
    background-image: url("resource/p1_3.png");
}

/* 树枝：从画面顶部/左侧长入，以枝条根部为支点缓慢摆动 */
.p1-4 {
    top: -1rem;
    right: -2rem;
    width: 5.93rem;
    height: 8.69rem;
    background-image: url("resource/p1_4.png");
    transform-origin: 25% 0;
    animation: p1FadeIn .6s ease-out both, p1Sway4 6s ease-in-out .6s infinite;
}

/* 紫色花丛：支点在左下枝根，幅度比上方枝条更小、周期更长（更重） */
.p1-5 {
    right: -1rem;
    bottom: -2rem;
    width: 8.15rem;
    height: 6.42rem;
    background-image: url("resource/p1_5.png");
    transform-origin: 6% 100%;
    animation: p1FadeIn .6s ease-out .15s both, p1Sway5 7.5s ease-in-out .75s infinite;
}

/* 花朵：从右上角斜向飘落到画面中部左侧，循环不断 */
.p1-6 {
    top: -1rem;
    right: .6rem;
    width: .78rem;
    height: .79rem;
    background-image: url("resource/p1_6.png");
    /* both：延迟期间保持 from 帧的透明度 0，否则后两朵会在起点静止可见 */
    animation: p1FlowerFall 8s linear infinite both;
}

/* 另两朵：只错开起点与时间，让飘落不显单调；不需要可直接删这两行 */
.p1-6b {
    top: -.6rem;
    right: 2.6rem;
    animation-delay: 2.6s;
}

.p1-6c {
    top: 1.8rem;
    right: .1rem;
    animation-delay: 5.2s;
}

/* 入场：默认先隐形，JS 给 #p1 加 .is-in 后按延迟依次播放 */
#p1 .p1-2,
#p1 .p1-3,
#p1 .home-logo img,
#p1 .p-next {
    opacity: 0;
}

/* 人物：从左侧滑入，像人走进画面 */
#p1.is-in .p1-2 {
    animation: p1InLeft 1.4s cubic-bezier(.22, .8, .3, 1) .25s both;
}

/* 人群：从上往下带小幅位移淡入 */
#p1.is-in .p1-3 {
    animation: p1InTop .9s cubic-bezier(.22, .8, .3, 1) .6s both;
}

/* 泰国标题条：从右侧滑入（.home-logo 容器本身默认就在，不参与入场） */
#p1.is-in .home-logo img {
    animation: p1InRight .8s cubic-bezier(.22, .8, .3, 1) .95s both;
}

/* 下一页：从上往下位移淡入 */
#p1.is-in .p-next {
    animation: p1InTop .7s cubic-bezier(.22, .8, .3, 1) 1.2s both;
}

/* 下一页默认置灰、不可点：等卡片出现后才放开 */
#p1 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p1 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* 优先级高于上面的入场动画，否则 animation 简写改不动；
   关键帧里必须写回 opacity，否则会回落到基础的 opacity:0 而消失 */
#p1.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

@keyframes p1NextNudge {

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

    50% {
        opacity: 1;
        transform: translate3d(0, .16rem, 0);
    }
}

@keyframes p1FadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes p1Sway4 {

    0%,
    100% {
        transform: rotate(-1.3deg);
    }

    50% {
        transform: rotate(1.3deg);
    }
}

@keyframes p1Sway5 {

    0%,
    100% {
        transform: rotate(.9deg);
    }

    50% {
        transform: rotate(-.9deg);
    }
}

/* 飘落：位移与旋转同步推进，首尾淡入淡出避免循环处跳帧 */
@keyframes p1FlowerFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    35% {
        transform: translate3d(-1.4rem, 3rem, 0) rotate(140deg);
    }

    65% {
        transform: translate3d(-3.2rem, 6.4rem, 0) rotate(300deg);
    }

    85% {
        opacity: 1;
        transform: translate3d(-4.5rem, 8.4rem, 0) rotate(420deg);
    }

    100% {
        opacity: 0;
        transform: translate3d(-5.4rem, 9.6rem, 0) rotate(500deg);
    }
}

@keyframes p1InLeft {
    from {
        opacity: 0;
        transform: translate3d(-1.2rem, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes p1InTop {
    from {
        opacity: 0;
        transform: translate3d(0, -.6rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes p1InRight {
    from {
        opacity: 0;
        transform: translate3d(.8rem, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 减弱动态效果：停循环动画，并把靠动画显形的元素直接显出来 */
@media (prefers-reduced-motion: reduce) {

    .p1-4,
    .p1-5,
    .p1-6,
    .p1-light,
    .p1-btn,
    #p1.is-in .p-next.is-ready {
        animation: none;
    }

    #p1 .p1-2,
    #p1 .p1-3,
    #p1 .home-logo img,
    #p1 .p-next {
        opacity: 1;
    }

    #p1 .p1-card.is-in .p1-yz {
        animation: none;
        opacity: 1;
    }
}

/* 新加坡 */

#p2 {
    background-image: url("resource/p2_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

/* 进入结尾页时新加坡页淡出 */
#p2.is-out {
    z-index: 3;
    opacity: 0;
}

.p2-2 {
    left: 1rem;
    bottom: 1.9rem;
    width: 6.71rem;
    height: 5.36rem;
    background-image: url("resource/p2_2.png");
}

.p2-3 {
    left: -.3rem;
    bottom: -2.4rem;
    width: 5.84rem;
    height: 6.81rem;
    background-image: url("resource/p2_3.png");
    /* 枝根在左下角，从这里向外摆 */
    transform-origin: 20% 100%;
}

.p2-4 {
    left: .1rem;
    top: 1rem;
    width: 7.2rem;
    height: 5.76rem;
    background-image: url("resource/p2_4.png");
}

.p2-5 {
    left: .3rem;
    top: 7.2rem;
    width: 6.8rem;
    height: 3.8rem;
    background-image: url("resource/p2_5.png");
}

.p2-light {
    left: 0;
    top: 0;
    width: 6.8rem;
    height: 3.8rem;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    transform-origin: 50% 80%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p2-btn {
    right: .3rem;
    top: 2.85rem;
    width: .53rem;
    height: 2.94rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(15, 145, 245, 0.75));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

/* 点击后：停掉呼吸，按钮淡出并彻底交不出去点击 */
.p2-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 打卡卡片：默认隐藏（.hide），点击按钮后从左侧滑入 */
.p2-card {
    bottom: 1rem;
    left: 3.88rem;
    width: 4.17rem;
    opacity: 0;
    /* 停在中线左侧 .9rem 待入场 */
    transform: translate3d(-.9rem, 0, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p2-card.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* 印章：默认不显示，卡片落位后从大到小盖上去 */
.p2-yz {
    top: .15rem;
    left: 1rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑到位要 .6s，盖章再往后等 1s 才落，与 p1 一致 */
#p2 .p2-card.is-in .p2-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

/* 元素依次入场：由 JS 给 #p2 加 .is-in 触发 */
#p2 .p2-2,
#p2 .p2-3,
#p2 .p2-4,
#p2 .p2-5,
#p2 .home-logo img,
#p2 .p-next {
    opacity: 0;
}

/* 新加坡标题条：从右侧滑入（容器本身不参与入场） */
#p2.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) .05s both;
}

/* 街景：由下往上淡入 */
#p2.is-in .p2-2 {
    animation: p2InUp 1.1s cubic-bezier(.22, .8, .3, 1) .2s both;
}

/* 花枝：由下往上淡入，入场完再接上左右摆（摆动延迟 = 入场延迟 + 时长） */
#p2.is-in .p2-3 {
    animation: p2InUp .8s cubic-bezier(.22, .8, .3, 1) .5s both, p2Sway 7s ease-in-out 1.3s infinite;
}

/* 建筑：由上往下淡入 */
#p2.is-in .p2-4 {
    animation: p2InDown 1s cubic-bezier(.22, .8, .3, 1) .75s both;
}

/* 机器人（连带打卡按钮与光）：由下往上进入 */
#p2.is-in .p2-5 {
    animation: p2InUp 1.1s cubic-bezier(.22, .8, .3, 1) 1.15s both;
}

/* 下一页：跟着入场，卡片出现前一直置灰不可点 */
#p2.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.55s both;
}

#p2 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p2 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* 优先级高于上面的入场动画，否则 animation 简写改不动 */
#p2.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 由下往上淡入 */
@keyframes p2InUp {
    from {
        opacity: 0;
        transform: translate3d(0, 1.2rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 由上往下淡入 */
@keyframes p2InDown {
    from {
        opacity: 0;
        transform: translate3d(0, -1rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 从右侧滑入 */
@keyframes p2InRight {
    from {
        opacity: 0;
        transform: translate3d(.8rem, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 花枝摆动：枝根不动，梢头左右晃 */
@keyframes p2Sway {

    0%,
    100% {
        transform: rotate(-1.1deg);
    }

    50% {
        transform: rotate(1.1deg);
    }
}

/* 光晕：亮起来再慢慢暗下去，中间留一段全黑的时间形成间隔 */
@keyframes p2Glow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 减弱动态效果：停循环与入场动画，并把靠动画显形的元素直接显出来 */
@media (prefers-reduced-motion: reduce) {

    #p2.is-in .home-logo img,
    #p2.is-in .p2-2,
    #p2.is-in .p2-3,
    #p2.is-in .p2-4,
    #p2.is-in .p2-5,
    #p2 .p2-light,
    #p2.is-in .p-next,
    #p2.is-in .p-next.is-ready {
        animation: none;
    }

    #p2 .p2-2,
    #p2 .p2-3,
    #p2 .p2-4,
    #p2 .p2-5,
    #p2 .home-logo img,
    #p2 .p-next,
    #p2 .p2-card.is-in .p2-yz {
        opacity: 1;
    }
}

/* 结尾 */
#last {
    overflow: hidden;
}

.last-f {
    top: 0;
}

.last-l {
    bottom: 0;
}

.last-slide {
    left: .3rem;
    bottom: calc(100vh - 1.2rem);
    width: .68rem;
    height: 2.31rem;
    /* 往下滑的提示：从上方浮现 → 往下搓 → 淡出，循环 */
    opacity: 0;
    animation: lastSlideHint 1.8s ease-in-out 1.6s infinite;
    /* 撤掉动画时从当前帧的透明度过渡到 0，不是硬切 */
    transition: opacity .3s ease;
    will-change: transform, opacity;
}

/* 已经开始往下滑了：收起提示，别再抢注意力；回到顶部再放回来 */
#last.is-slide-hidden .last-slide {
    animation: none;
    opacity: 0;
}

/* 往下滑：上→下位平移 + 尾段淡出，像手指推着页面往下走；尾帧完全透明后再回起点，看不出跳帧 */
@keyframes lastSlideHint {
    0% {
        opacity: 0;
        transform: translate3d(0, -.18rem, 0);
    }

    22% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    66% {
        opacity: 1;
        transform: translate3d(0, .26rem, 0);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, .38rem, 0);
    }
}

/* 澳大利亚 */
#p3 {
    background-image: url("resource/p3_bg.jpg");
    /* 独立层叠上下文 + 淡出过渡：进下一页时抬高层级盖住新页 */
    z-index: 0;
    transition: opacity .5s ease;
}

#p3.is-out {
    z-index: 3;
    opacity: 0;
}

.p3-2 {
    left: 0rem;
    top: -.5rem;
    width: 5.39rem;
    height: 8.42rem;
    background-image: url("resource/p3_2.png");
}

.p3-3 {
    top: 50%;
    left: 50%;
    margin: 0rem 0 0 -2.8rem;
    width: 4.01rem;
    height: 5.67rem;
}

.p3-light {
    top: 0;
    left: 0;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    transform-origin: 50% 50%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p3-btn {
    right: .8rem;
    top: -2.6rem;
    width: .53rem;
    height: 2.92rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(245, 134, 15, 0.5));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

.p3-card {
    bottom: 2rem;
    left: 3.88rem;
    width: 4.71rem;
    opacity: 0;
    transform: translate3d(-.9rem, 0, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p3-yz {
    top: .15rem;
    left: 1.5rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑入：点击打卡后从左侧滑到定位点（p1/p2 同款） */
.p3-card.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* 印章：卡片滑到位（.6s）后等 1s 再盖 */
#p3 .p3-card.is-in .p3-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

/* 点击后：停掉呼吸，按钮淡出并彻底交不出去点击 */
.p3-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 入场：默认先隐形，JS 给 #p3 加 .is-in 后按延迟依次播放 */
#p3 .p3-2,
#p3 .p3-3,
#p3 .home-logo img,
#p3 .p-next {
    opacity: 0;
}

/* 左侧街景：从左边推入，像镜头摇过去 */
#p3.is-in .p3-2 {
    animation: p1InLeft 1.2s cubic-bezier(.22, .8, .3, 1) .2s both;
}

/* 主体（连打卡按钮）：由下往上升起 */
#p3.is-in .p3-3 {
    animation: p2InUp 1s cubic-bezier(.22, .8, .3, 1) .55s both;
}

/* 标题条：从右侧滑入 */
#p3.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) .95s both;
}

/* 下一页：从上往下位移淡入 */
#p3.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.25s both;
}

/* 下一页默认置灰、不可点：等卡片出现后才放开 */
#p3 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p3 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* 优先级高于上面的入场动画；关键帧里写回 opacity，否则会回落到 opacity:0 */
#p3.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 墨西哥 */
#p4 {
    background-image: url("resource/p4_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

#p4.is-out {
    z-index: 3;
    opacity: 0;
}

.p4-2 {
    left: 0rem;
    bottom: -1.2rem;
    width: 7.93rem;
    height: 6.16rem;
    background-image: url("resource/p4_2.png");
}

.p4-4 {
    left: 0rem;
    top: -.2rem;
    width: 8.87rem;
    height: 7.05rem;
    background-image: url("resource/p4_4.png");
}

.p4-5 {
    left: -.2rem;
    top: -.8rem;
    width: 5.96rem;
    height: 6.29rem;
    background-image: url("resource/p4_5.png");
}

.p4-3 {
    top: 50%;
    left: .5rem;
    margin-top: 1rem;
    width: 5.32rem;
    height: 2.98rem;
}

.p4-light {
    top: .95rem;
    left: 2.46rem;
    width: .94rem;
    height: 1.31rem;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    transform-origin: 50% 50%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p4-btn {
    left: 2.7rem;
    top: -2.2rem;
    width: .54rem;
    height: 2.93rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(72, 126, 0, 0.5));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

.p4-card {
    bottom: 3.8rem;
    left: 5.2rem;
    width: 4.29rem;
    opacity: 0;
    transform: translate3d(-.9rem, 0, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p4-yz {
    top: .3rem;
    left: 1.2rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑入 + 盖章 */
.p4-card.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

#p4 .p4-card.is-in .p4-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

.p4-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 入场：远景先落下，近景再推进，主体最后升起来 */
#p4 .p4-2,
#p4 .p4-4,
#p4 .p4-5,
#p4 .p4-3,
#p4 .home-logo img,
#p4 .p-next {
    opacity: 0;
}

/* 地面：由下往上升起 */
#p4.is-in .p4-2 {
    animation: p2InUp 1.1s cubic-bezier(.22, .8, .3, 1) .2s both;
}

/* 远景建筑：从上往下落下 */
#p4.is-in .p4-4 {
    animation: p1InTop 1s cubic-bezier(.22, .8, .3, 1) .4s both;
}

/* 近景：从左侧推入 */
#p4.is-in .p4-5 {
    animation: p1InLeft .9s cubic-bezier(.22, .8, .3, 1) .65s both;
}

/* 主体（连打卡按钮）：由下往上升起 */
#p4.is-in .p4-3 {
    animation: p2InUp 1s cubic-bezier(.22, .8, .3, 1) .9s both;
}

/* 标题条：从右侧滑入 */
#p4.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) 1.2s both;
}

/* 下一页：从上往下位移淡入 */
#p4.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.45s both;
}

#p4 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p4 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#p4.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 美国 */
#p5 {
    background-image: url("resource/p5_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

#p5.is-out {
    z-index: 3;
    opacity: 0;
}

.p5-2 {
    left: 0;
    bottom: 2rem;
    width: 8.75rem;
    height: 5.32rem;
    background-image: url("resource/p5_2.png");
}

.p5-3 {
    left: 2.8rem;
    top: 1rem;
    width: 2.4rem;
    height: 4.25rem;
    background-image: url("resource/p5_3.png");
}

.p5-4 {
    top: 50%;
    right: .5rem;
    margin-top: -1rem;
    width: 2.79rem;
    height: 4.97rem;
}

.p5-light {
    top: 0;
    left: 0;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    transform-origin: 50% 50%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p5-btn {
    right: 3.2rem;
    top: -.2rem;
    width: .53rem;
    height: 2.92rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(15, 145, 245, 0.5));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

.p5-card {
    top: 2.5rem;
    left: 3.88rem;
    width: 3.93rem;
    opacity: 0;
    transform: translate3d(-.9rem, 0, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p5-yz {
    top: .15rem;
    left: 1.2rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑入 + 盖章 */
.p5-card.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

#p5 .p5-card.is-in .p5-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

.p5-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 入场：地面先起，中景与主体从右侧推入 */
#p5 .p5-2,
#p5 .p5-3,
#p5 .p5-4,
#p5 .home-logo img,
#p5 .p-next {
    opacity: 0;
}

/* 地面：由下往上升起 */
#p5.is-in .p5-2 {
    animation: p2InUp 1.1s cubic-bezier(.22, .8, .3, 1) .2s both;
}

/* 中景：从右侧推入 */
#p5.is-in .p5-3 {
    animation: p1InRight .9s cubic-bezier(.22, .8, .3, 1) .5s both;
}

/* 主体（连打卡按钮）：从右侧推入 */
#p5.is-in .p5-4 {
    animation: p1InRight 1s cubic-bezier(.22, .8, .3, 1) .8s both;
}

/* 标题条：从右侧滑入 */
#p5.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) 1.1s both;
}

/* 下一页：从上往下位移淡入 */
#p5.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.35s both;
}

#p5 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p5 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#p5.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 加拿大 */
#p6 {
    background-image: url("resource/p6_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

#p6.is-out {
    z-index: 3;
    opacity: 0;
}

.p6-2 {
    left: 0;
    top: 50%;
    margin-top: -8.46rem;
    width: 8.21rem;
    height: 16.92rem;
    background-image: url("resource/p6_2.png");
}

.p6-light {
    top: 8.03rem;
    left: 0.01rem;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    width: 4.18rem;
    height: 4.39rem;
    transform-origin: 50% 50%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p6-btn {
    left: 3.2rem;
    top: 5.6rem;
    width: .53rem;
    height: 2.94rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(183, 4, 69, 0.5));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

.p6-card {
    top: 1.5rem;
    left: 4.8rem;
    width: 4.22rem;
    opacity: 0;
    transform: translate3d(-.9rem, 0, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p6-yz {
    top: .15rem;
    left: 1.2rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑入 + 盖章 */
.p6-card.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

#p6 .p6-card.is-in .p6-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

.p6-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 入场：这一页只有一块通透竖构图，整体从下往上抬起来 */
#p6 .p6-2,
#p6 .home-logo img,
#p6 .p-next {
    opacity: 0;
}

#p6.is-in .p6-2 {
    animation: p2InUp 1.2s cubic-bezier(.22, .8, .3, 1) .2s both;
}

/* 标题条：从右侧滑入 */
#p6.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) .85s both;
}

/* 下一页：从上往下位移淡入 */
#p6.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.1s both;
}

#p6 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p6 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#p6.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 韩国 */
#p7 {
    background-image: url("resource/p7_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

#p7.is-out {
    z-index: 3;
    opacity: 0;
}

/* 花瓣：从右下角树丛里卷起来，再斜向左上飘出画面，循环不断 */
.p7-2 {
    right: 1rem;
    bottom: 1.6rem;
    width: .5rem;
    height: .49rem;
    background-image: url("resource/p7_2.png");
    /* 花瓣是 div，得自己关掉点击，否则飘过打卡区会抢走点击 */
    pointer-events: none;
    will-change: transform, opacity;
    /* both：延迟期间保持 from 帧的透明度 0，否则后几片会在起点静止可见 */
    animation: p7PetalRise 11s linear infinite both;
}

/* 另几片：只错开起点、时长、大小与节拍，让飘落不显单调；不需要可直接删这几行 */
.p7-2b {
    right: 2.2rem;
    bottom: 1rem;
    width: .38rem;
    height: .37rem;
    animation-duration: 12.6s;
    animation-delay: 2.4s;
}

.p7-2c {
    right: .4rem;
    bottom: 2.6rem;
    width: .58rem;
    height: .57rem;
    animation-duration: 9.8s;
    animation-delay: 4.8s;
}

.p7-2d {
    right: 1.6rem;
    bottom: .6rem;
    width: .44rem;
    height: .43rem;
    animation-duration: 13.4s;
    animation-delay: 7.2s;
}

/* 飘起：位移与旋转同步推进，中途往右回搓一小段形成 S 形漂浮；首尾都不可见避免循环处跳帧 */
@keyframes p7PetalRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-10deg) scale(.85);
    }

    8% {
        opacity: .95;
    }

    35% {
        transform: translate3d(-2.8rem, -3.2rem, 0) rotate(120deg) scale(1);
    }

    55% {
        transform: translate3d(-2.2rem, -5.4rem, 0) rotate(210deg) scale(.95);
    }

    78% {
        transform: translate3d(-5.2rem, -7.8rem, 0) rotate(320deg) scale(1.05);
    }

    100% {
        opacity: 0;
        transform: translate3d(-7.2rem, -10.2rem, 0) rotate(400deg) scale(.9);
    }
}

.p7-3 {
    bottom: -0.2rem;
    right: -.3rem;
    width: 6.27rem;
    height: 10.1rem;
    background-image: url("resource/p7_3.png");
}

.p7-4 {
    left: 0;
    top: 0;
    width: 7.26rem;
    height: 5.42rem;
}

.p7-light {
    top: 3.9rem;
    right: 2.4rem;
    width: 2.28rem;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    transform-origin: 50% 50%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p7-5 {
    left: 0;
    bottom: 0.5rem;
    width: 4.98rem;
    height: 5rem;
    background-image: url("resource/p7_5.png");
}

.p7-6 {
    left: 0;
    top: 50%;
    margin-top: -3.8rem;
    width: 5.71rem;
    height: 6.95rem;
    background-image: url("resource/p7_6.png");
}

.p7-btn {
    right: 2.5rem;
    top: 5.2rem;
    width: .53rem;
    height: 2.97rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(213, 0, 75, 0.5));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

.p7-card {
    top: 3.4rem;
    right: 1.5rem;
    width: 3.46rem;
    opacity: 0;
    transform: translate3d(-.9rem, 0, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p7-yz {
    top: .15rem;
    left: .9rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

/* 卡片滑入 + 盖章 */
.p7-card.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

#p7 .p7-card.is-in .p7-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

.p7-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 右侧大树绕根部摆动，origin 定在底边中点 */
#p7 .p7-3 {
    transform-origin: 50% 100%;
}

/* 入场：元素最多，节拍拉得比前面几页长一点（花瓣不参与，它自带循环飘落） */
#p7 .p7-3,
#p7 .p7-4,
#p7 .p7-5,
#p7 .p7-6,
#p7 .home-logo img,
#p7 .p-next {
    opacity: 0;
}

/* 右侧大树：从右侧推入，入场完再接上轻摆（摆动延迟 = 入场延迟 + 时长） */
#p7.is-in .p7-3 {
    animation: p2InRight 1.1s cubic-bezier(.22, .8, .3, 1) .3s both, p2Sway 7s ease-in-out 1.4s infinite;
}

/* 主体（连打卡按钮）：从左侧推入 */
#p7.is-in .p7-4 {
    animation: p1InLeft 1s cubic-bezier(.22, .8, .3, 1) .6s both;
}

/* 地面：由下往上升起 */
#p7.is-in .p7-5 {
    animation: p2InUp .9s cubic-bezier(.22, .8, .3, 1) .85s both;
}

/* 前景：由下往上升起 */
#p7.is-in .p7-6 {
    animation: p2InUp 1s cubic-bezier(.22, .8, .3, 1) 1.05s both;
}

/* 标题条：从右侧滑入 */
#p7.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) 1.3s both;
}

/* 下一页：从上往下位移淡入 */
#p7.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.5s both;
}

#p7 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p7 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#p7.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 俄罗斯 */
#p8 {
    background-image: url("resource/p8_bg.jpg");
    z-index: 0;
    transition: opacity .5s ease;
}

#p8.is-out {
    z-index: 3;
    opacity: 0;
}

.p8-2 {
    left: 0;
    top: 50%;
    margin-top: -3.6rem;
    width: 6.9rem;
    height: 5.25rem;
}

.p8-light {
    top: 4.2rem;
    left: 2.63rem;
    width: .89rem;
    height: 1.16rem;
    /* 默认不发，进去后按间隔一闪一闪 */
    opacity: 0;
    transform-origin: 50% 50%;
    animation: p2Glow 2s ease-in-out 2.4s infinite;
}

.p8-btn {
    left: 2.8rem;
    top: 5.3rem;
    width: .53rem;
    height: 2.92rem;
    /* 全局 img 禁用了点击，这里单独放开 */
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem rgba(15, 145, 245, 0.5));
    transform-origin: 50% 60%;
    animation: p1BtnBreath 1.8s ease-in-out infinite;
    transition: opacity .35s ease;
    will-change: transform;
}

.p8-card {
    top: 50%;
    left: 50%;
    width: 4.33rem;
    opacity: 0;
    /* 居中量 -50% 与待入场的左侧偏移合在同一个 calc 里，不能分两次设置 */
    transform: translate3d(calc(-50% - .9rem), -50%, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.p8-card.is-in {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
}

.p8-yz {
    top: .15rem;
    left: 1.5rem;
    width: 2rem;
    height: 2.4rem;
    opacity: 0;
}

.p8-3 {
    left: 0;
    bottom: 1.5rem;
    width: 4.92rem;
    height: 4.29rem;
    background-image: url("resource/p8_3.png");
}

.p8-4 {
    bottom: -.5rem;
    right: -.5rem;
    width: 4.67rem;
    height: 8.77rem;
    background-image: url("resource/p8_4.png");
}

/* 卡片滑入 + 盖章 */
.p8-card.is-in {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
}

#p8 .p8-card.is-in .p8-yz {
    animation: p1Stamp .5s cubic-bezier(.2, .9, .3, 1) 1s both;
}

.p8-btn.is-out {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

/* 入场：左下景物先升，右侧建筑推入，主体最后到位 */
#p8 .p8-3,
#p8 .p8-4,
#p8 .p8-2,
#p8 .home-logo img,
#p8 .p-next {
    opacity: 0;
}

#p8.is-in .p8-3 {
    animation: p2InUp 1s cubic-bezier(.22, .8, .3, 1) .2s both;
}

#p8.is-in .p8-4 {
    animation: p1InRight 1.1s cubic-bezier(.22, .8, .3, 1) .4s both;
}

/* 主体（连打卡按钮）：由下往上升起 */
#p8.is-in .p8-2 {
    animation: p2InUp 1s cubic-bezier(.22, .8, .3, 1) .75s both;
}

/* 标题条：从右侧滑入 */
#p8.is-in .home-logo img {
    animation: p2InRight .8s cubic-bezier(.22, .8, .3, 1) 1.05s both;
}

/* 下一页：从上往下位移淡入 */
#p8.is-in .p-next {
    animation: p2InDown .7s cubic-bezier(.22, .8, .3, 1) 1.3s both;
}

#p8 .p-next {
    filter: grayscale(1) opacity(.9);
    pointer-events: none;
    cursor: default;
    transition: filter .35s ease;
}

#p8 .p-next.is-ready {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#p8.is-in .p-next.is-ready {
    animation: p1NextNudge 1.8s ease-in-out infinite;
}

/* 减弱动态效果：#p3~#p8 停动画，并把靠动画显形的元素直接显出来 */
@media (prefers-reduced-motion: reduce) {

    #p3.is-in .p3-2,
    #p3.is-in .p3-3,
    #p3.is-in .home-logo img,
    #p3.is-in .p-next,
    #p4.is-in .p4-2,
    #p4.is-in .p4-4,
    #p4.is-in .p4-5,
    #p4.is-in .p4-3,
    #p4.is-in .home-logo img,
    #p4.is-in .p-next,
    #p5.is-in .p5-2,
    #p5.is-in .p5-3,
    #p5.is-in .p5-4,
    #p5.is-in .home-logo img,
    #p5.is-in .p-next,
    #p6.is-in .p6-2,
    #p6.is-in .home-logo img,
    #p6.is-in .p-next,
    #p7.is-in .p7-3,
    #p7.is-in .p7-4,
    #p7.is-in .p7-5,
    #p7.is-in .p7-6,
    #p7.is-in .home-logo img,
    #p7.is-in .p-next,
    #p8.is-in .p8-3,
    #p8.is-in .p8-4,
    #p8.is-in .p8-2,
    #p8.is-in .home-logo img,
    #p8.is-in .p-next,
    #p3.is-in .p-next.is-ready,
    #p4.is-in .p-next.is-ready,
    #p5.is-in .p-next.is-ready,
    #p6.is-in .p-next.is-ready,
    #p7.is-in .p-next.is-ready,
    #p8.is-in .p-next.is-ready,
    .p3-light,
    .p4-light,
    .p5-light,
    .p6-light,
    .p7-light,
    .p8-light {
        animation: none;
    }

    #p3 .p3-2,
    #p3 .p3-3,
    #p3 .home-logo img,
    #p3 .p-next,
    #p4 .p4-2,
    #p4 .p4-4,
    #p4 .p4-5,
    #p4 .p4-3,
    #p4 .home-logo img,
    #p4 .p-next,
    #p5 .p5-2,
    #p5 .p5-3,
    #p5 .p5-4,
    #p5 .home-logo img,
    #p5 .p-next,
    #p6 .p6-2,
    #p6 .home-logo img,
    #p6 .p-next,
    #p7 .p7-3,
    #p7 .p7-4,
    #p7 .p7-5,
    #p7 .p7-6,
    #p7 .home-logo img,
    #p7 .p-next,
    #p8 .p8-3,
    #p8 .p8-4,
    #p8 .p8-2,
    #p8 .home-logo img,
    #p8 .p-next {
        opacity: 1;
    }

    #p3 .p3-card.is-in .p3-yz,
    #p4 .p4-card.is-in .p4-yz,
    #p5 .p5-card.is-in .p5-yz,
    #p6 .p6-card.is-in .p6-yz,
    #p7 .p7-card.is-in .p7-yz,
    #p8 .p8-card.is-in .p8-yz {
        animation: none;
        opacity: 1;
    }

    /* 花瓣：关掉动画后直接不显示，避免四片静止贴在右下角 */
    .p7-2,
    .p7-2b,
    .p7-2c,
    .p7-2d {
        animation: none;
        opacity: 0;
    }
}

/* 文字 */
.last-txt1 {
    right: 3.5rem;
    top: 1.1rem;
    width: 5.69rem;
    height: 9.77rem;
    background-image: url("resource/last_txt1.png");
}

.last-txt2 {
    top: 12rem;
    right: 1rem;
    width: 3.66rem;
    height: 8.06rem;
    background-image: url("resource/last_txt2.png");
}

.last-txt3 {
    top: 14.8rem;
    right: 5.2rem;
    width: 2.7rem;
    height: 6.14rem;
    background-image: url("resource/last_txt3.png");
}

/* 元素 */
.last-1 {
    top: .46rem;
    right: .3rem;
    width: 3.16rem;
    height: 3.86rem;
    background-image: url("resource/last_1.png");
}

.last-2 {
    top: 5.6rem;
    right: 1.8rem;
    width: 2.21rem;
    height: 2.19rem;
    background-image: url("resource/last_2.png");
}

.last-3 {
    top: 5.8rem;
    right: -.5rem;
    width: 2.94rem;
    height: 4.82rem;
    background-image: url("resource/last_3.png");
}

.last-4 {
    top: 8.5rem;
    right: 4rem;
    width: 2.91rem;
    height: 2.95rem;
    background-image: url("resource/last_4.png");
}

.last-5 {
    top: 10.6rem;
    left: -.83rem;
    width: 5.79rem;
    height: 5.26rem;
    background-image: url("resource/last_5.png");
}

/* 花 */
.last-10 {
    bottom: 0rem;
    left: 0.7rem;
    width: 5.51rem;
    height: 3.76rem;
    background-image: url("resource/last_10.png");
}

.last-11 {
    bottom: 0rem;
    left: 0rem;
    width: 3.35rem;
    height: 12.06rem;
    background-image: url("resource/last_11.png");
}

/* apec */
.last-dp {
    top: 18rem;
    right: -1.38rem;
    width: 8.43rem;
    height: 13.88rem;
    background-image: url("resource/last_dp.png");
    /* 大鹏飞行：图幅比封面的鹏大得多，位移/周期按比例放大，否则看起来像没动 */
    transform-origin: 55% 45%;
    animation: lastDpFly 10s linear infinite;
    will-change: transform;
}

.last-12 {
    top: 21rem;
    left: .3rem;
    width: 5.05rem;
    height: 7.94rem;
    background-image: url("resource/last_12.png");
}

.last-bg {
    left: 0;
    width: 3.09rem;
    height: 100%;
    background-image: url("resource/last_bg2.png");
}

.last-btn {
    left: .6rem;
    bottom: .8rem;
    width: 2.24rem;
    height: 8.96rem;
}

.last-btn div {
    width: 2.24rem;
    height: 2.24rem;
    background: url("resource/last_btn.png") no-repeat 0 0 / 100% auto;
}

.last-btn .last-btn1 {
    background-position: 0 0;
}

.last-btn .last-btn2 {
    background-position: 0 -2.24rem;
}

.last-btn .last-btn3 {
    background-position: 0 -4.48rem;
}

.last-btn .last-btn4 {
    background-position: 0 -6.72rem;
}

/* ===== 结尾页入场 ===== */
/* 结尾页比一屏高（背景图约两屏），无法用“上一页淡出”转场，改为自身淡入 */
#last {
    transition: opacity .45s ease;
}

/* 上半屏：5 个元素 + 3 段文字，JS 给 #last 加 .is-in 后按延迟依次位移淡入 */
#last .last-1,
#last .last-2,
#last .last-3,
#last .last-4,
#last .last-5,
#last .last-txt1,
#last .last-txt2,
#last .last-txt3 {
    opacity: 0;
}

#last.is-in .last-1 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) 0s both;
}

#last.is-in .last-txt1 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .12s both;
}

#last.is-in .last-2 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .26s both;
}

#last.is-in .last-3 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .36s both;
}

#last.is-in .last-4 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .5s both;
}

#last.is-in .last-5 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .64s both;
}

#last.is-in .last-txt2 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .78s both;
}

#last.is-in .last-txt3 {
    animation: lastIn .8s cubic-bezier(.22, .8, .3, 1) .92s both;
}

/* 3 段文字：入场用动画，之后由 opacity 过渡控制，才能来回双向淡入淡出 */
#last .last-txt1,
#last .last-txt2,
#last .last-txt3 {
    transition: opacity .5s ease;
}

/* 入场动画播完后交回给 opacity 过渡接管（否则 fill:both 会一直把 opacity 顶在 1） */
#last.is-texts-live .last-txt1,
#last.is-texts-live .last-txt2,
#last.is-texts-live .last-txt3 {
    animation: none;
    opacity: 1;
}

/* 滑到快接近页底时 3 段文字淡出；往回滑移除该类即淡回来 */
#last.is-top-hidden .last-txt1,
#last.is-top-hidden .last-txt2,
#last.is-top-hidden .last-txt3 {
    opacity: 0;
}

@keyframes lastIn {
    from {
        opacity: 0;
        transform: translate3d(0, .5rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 下半屏：滑下来后由 JS 给 #last 加 .is-bottom 揭开 apec / 花枝 / 按钮 */
#last .last-12,
#last .last-dp,
#last .last-10,
#last .last-11,
#last .last-btn div {
    opacity: 0;
}

/* 花枝的摆动支点扎在画面底边，才不会整片平移 */
.last-10 {
    transform-origin: 12% 100%;
}

.last-11 {
    transform-origin: 50% 100%;
}

#last.is-bottom .last-12 {
    animation: lastBottomIn .9s cubic-bezier(.22, .8, .3, 1) 0s both;
}

/* 大鹏：由小变大淡入，飞行要等入场演完（1.1s + .1s 延迟）再接上 */
#last.is-bottom .last-dp {
    animation: lastDpIn 1.1s cubic-bezier(.22, .8, .3, 1) .1s both, lastDpFly 10s linear 1.2s infinite;
}

/* 自带左右摆动，故与入场动画并列书写，避免 animation 简写把摆动覆盖掉 */
#last.is-bottom .last-10 {
    animation: lastBottomIn .9s cubic-bezier(.22, .8, .3, 1) .15s both, lastSway10 6s ease-in-out 1s infinite;
}

#last.is-bottom .last-11 {
    animation: lastBottomIn .9s cubic-bezier(.22, .8, .3, 1) .3s both, lastSway11 7s ease-in-out 1.2s infinite;
}

@keyframes lastBottomIn {
    from {
        opacity: 0;
        transform: translate3d(0, .6rem, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 入场：从小放大 + 淡入；to 帧的 rotate(1.8deg) scale(1) 与 lastDpFly 的 0% 完全对齐，
   使飞行接手时不会跳一下 */
@keyframes lastDpIn {
    from {
        opacity: 0;
        transform: translate3d(0, .5rem, 0) scale(.6) rotate(-2deg);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(1.8deg);
    }
}

/* 大鹏飞行：与 eagleFly 同源，按 8.43rem 的大图幅等比放大位移、周期放慢到 10s */
@keyframes lastDpFly {
    0% {
        transform: translate3d(0, 0, 0) rotate(1.8deg) scale(1);
    }

    8.33% {
        transform: translate3d(.11rem, -.11rem, 0) rotate(2.5deg) scale(1.005);
    }

    16.67% {
        transform: translate3d(.19rem, -.33rem, 0) rotate(2.5deg) scale(1.015);
    }

    25% {
        transform: translate3d(.22rem, -.44rem, 0) rotate(1.8deg) scale(1.02);
    }

    33.33% {
        transform: translate3d(.19rem, -.33rem, 0) rotate(.7deg) scale(1.015);
    }

    41.67% {
        transform: translate3d(.11rem, -.11rem, 0) rotate(-.7deg) scale(1.005);
    }

    50% {
        transform: translate3d(0, 0, 0) rotate(-1.8deg) scale(1);
    }

    58.33% {
        transform: translate3d(-.11rem, -.11rem, 0) rotate(-2.5deg) scale(1.005);
    }

    66.67% {
        transform: translate3d(-.19rem, -.33rem, 0) rotate(-2.5deg) scale(1.015);
    }

    75% {
        transform: translate3d(-.22rem, -.44rem, 0) rotate(-1.8deg) scale(1.02);
    }

    83.33% {
        transform: translate3d(-.19rem, -.33rem, 0) rotate(-.7deg) scale(1.015);
    }

    91.67% {
        transform: translate3d(-.11rem, -.11rem, 0) rotate(.7deg) scale(1.005);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(1.8deg) scale(1);
    }
}

@keyframes lastSway10 {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes lastSway11 {

    0%,
    100% {
        transform: rotate(1.4deg);
    }

    50% {
        transform: rotate(-1.4deg);
    }
}

/* 4 个按钮依次滑入，随后错开相位呼吸放大，引导点击 */
#last.is-bottom .last-btn1 {
    animation: lastBtnIn .6s cubic-bezier(.22, .8, .3, 1) .8s both, lastBtnPulse 2s ease-in-out 1.4s infinite;
}

#last.is-bottom .last-btn2 {
    animation: lastBtnIn .6s cubic-bezier(.22, .8, .3, 1) 1s both, lastBtnPulse 2s ease-in-out 1.6s infinite;
}

#last.is-bottom .last-btn3 {
    animation: lastBtnIn .6s cubic-bezier(.22, .8, .3, 1) 1.2s both, lastBtnPulse 2s ease-in-out 1.8s infinite;
}

#last.is-bottom .last-btn4 {
    animation: lastBtnIn .6s cubic-bezier(.22, .8, .3, 1) 1.4s both, lastBtnPulse 2s ease-in-out 2s infinite;
}

@keyframes lastBtnIn {
    from {
        opacity: 0;
        transform: translate3d(-.4rem, 0, 0) scale(.92);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes lastBtnPulse {

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

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

/* 减弱动态效果：停掉动画，并把靠动画显形的元素直接显出来 */
@media (prefers-reduced-motion: reduce) {

    #last.is-in .last-1,
    #last.is-in .last-2,
    #last.is-in .last-3,
    #last.is-in .last-4,
    #last.is-in .last-5,
    #last.is-in .last-txt1,
    #last.is-in .last-txt2,
    #last.is-in .last-txt3,
    #last.is-bottom .last-10,
    #last.is-bottom .last-11,
    #last.is-bottom .last-12,
    #last.is-bottom .last-dp,
    #last.is-bottom .last-btn1,
    #last.is-bottom .last-btn2,
    #last.is-bottom .last-btn3,
    #last.is-bottom .last-btn4,
    #last .last-slide {
        animation: none;
    }

    #last .last-1,
    #last .last-2,
    #last .last-3,
    #last .last-4,
    #last .last-5,
    #last .last-txt1,
    #last .last-txt2,
    #last .last-txt3,
    #last .last-12,
    #last .last-dp,
    #last .last-10,
    #last .last-11,
    #last .last-btn div,
    #last .last-slide {
        opacity: 1;
    }
}


.music-btn,
.made-btn,
.video-btn,
.home-btn,
.p0-prev,
.p0-next,
.p-next,
.last-btn1,
.last-btn2,
.last-btn3,
.last-btn4 {
    cursor: pointer;
}

/* 横屏提示：盖在包括弹层在内的所有内容之上 */
.lock-tip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    /* 提示期间不让底下页面跟着滑动 */
    touch-action: none;
}

.lock-tip.show {
    display: flex;
}

/* 尺寸用 vh 不用 rem：横屏下根字号基于 100vw 算，rem 会突然变大 */
.lock-tip img {
    width: 26vh;
}

/* 弹窗 */
.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: 50%;
    left: 50%;
    transform: translate(-45%, -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(-45%, -50%) scale(.6);
    }

    100% {
        transform: translate(-45%, -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: #9b6641;
    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: block;
    font-size: .34rem;
    line-height: .54rem;
    text-align: center;
    font-weight: normal;
}

.pop-close {
    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 遮罩，入场用 popInRot90 */
.made-pop {
    width: 8.6rem;
    padding: .6rem;
    /* 底部留一条给关闭按钮：它若悬在框外，转 90° 后会把整体占位往一侧扩出去 */
    /* padding-bottom: 1.2rem; */
    background: rgba(15, 6, 2, 0.7);
    border: .02rem solid rgba(164, 106, 5, 0.45);
    border-radius: .2rem;
    box-shadow: 0 0 .5rem rgba(101, 202, 254, .22), inset 0 0 .5rem rgba(131, 58, 9, 0.059);
    /* 整体转 90° 看：left/top 50% + translate(-50%,-50%) 把中心钉在屏幕中心，旋转绕自身中心，转完仍居中 */
    top: 50%;
    transform: translate(-45%, -50%) rotate(90deg);
    /* 转过 90° 后元素的「宽」变成屏幕上的高、「高」变成屏幕上的宽，两个上限要对调着写才不会出屏 */
    max-width: calc(100vh - 1.6rem);
    max-height: calc(100vw - 1.6rem);
    animation: popInRot90 .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* 旋转版入场：关键帧里必须把 rotate(90deg) 一起写，否则动画期间 transform 被关键帧接管，
   弹窗会先正着弹出来再啪一下转过去 */
@keyframes popInRot90 {
    0% {
        transform: translate(-45%, -50%) rotate(90deg) scale(.6);
    }

    100% {
        transform: translate(-45%, -50%) rotate(90deg) scale(1);
    }
}

.poster-pop {
    margin: 0 auto;
    padding: 0;
    width: fit-content;
    max-width: calc(100vh - 0rem);
    max-height: calc(100vw - 0rem);
    background: rgba(15, 6, 2, 0.1);
    opacity: 0;
    animation: none;
}

/* 海报图就绪后才入场：此时盒子已是最终尺寸，弹入过程不会再重算居中量 */
.poster-pop.is-loaded {
    opacity: 1;
    animation: popInRot90 .4s cubic-bezier(.34, 1.56, .64, 1);
}

.made-pop img {
    width: 100%;
    height: 100%;
}

/* 海报：转过来以后 img 的「高」就是屏幕的宽，所以上限按 100vw 算，
   再扣掉上下 padding 与底部那条关闭条，留给面板的边框留白 */
.poster-pop img {
    /* 去掉行内 img 基线下方的行距：否则盒子比图高一点，转 90° 后左右余量不对称 */
    display: block;
    max-width: calc(100vh - 4rem);
    max-height: calc(100vw - 4rem);
    /* 海报要能被长按保存：上面 img 全局规则关了三样东西，这里单独放开——
       pointer-events 恢复触摸命中（否则事件落在 <p> 上，客户端识别不到图片）、
       touch-callout 恢复 iOS 长按的「存储图像」浮层、user-select 恢复选中 */
    pointer-events: auto;
    -webkit-touch-callout: default;
    -webkit-user-select: auto;
    user-select: auto;
}

.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: #cf781a;
}

.made-pop .pop-close {
    position: absolute;
    bottom: -1rem;
    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;
}