/* reset */
body,
dl,
dd,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
header,
section,
article,
footer {
  margin: 0;
}
body,
button,
input,
select,
textarea {
  font:
    12px/1.5 "FZXS12",
    "Microsoft YaHei",
    sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
}
em,
b {
  font-style: normal;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  border: 0;
}
button,
input,
select,
textarea {
  font-size: 100%;
  outline: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td,
th,
ul,
ol {
  padding: 0;
}

/* 像素字体（方正像素12，设计稿字体 FZXS12） */
@font-face {
  font-family: "FZXS12";
  src: url("https://game.gtimg.cn/images/dnfc/web202611/fonts/fzxs.ttf") format("truetype");
  font-display: swap;
}

/* public */
html,
body {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  color: #fff;
  background: #000;
  overflow: hidden;
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
/* 设计稿基准 2560x1440：
   1rem = 100 设计像素（0.01rem = 1 设计像素），宽度优先、超高屏时按可用高度收缩（contain），保证每屏内容等比铺满且不溢出 */
:root {
  font-size: calc(min(100vw - 0px, 100vh * 16 / 9) / 2560 * 100);
}
.container {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.container-swiper {
  width: 100%;
  height: 100%;
}
.section-box {
  background: #222;
  overflow: hidden;
}

/* footer */
.section-foot {
  display: none;
  /* 必须给固定高度：swiper 初始化时页脚内容尚未由 foot.js 注入（高度为 0），
     高度为 0 的 slide 不进 snapGrid，页脚将永远滚不出来 */
  height: 160px !important;
  box-sizing: border-box;
  background: #000;
}
/* 页脚自定义区：左侧开发商标识图 */
#gfooter .dev-logo {
  width: 234px;
  height: 50px;
  margin: 0 0 0 20px;
  background: url("https://game.gtimg.cn/images/dnfc/web202611/images/dev-logo.png") no-repeat 0 0 / 100% 100%;
}
.section-foot,
.section-foot a,
.section-foot a:visited {
  color: #666;
}

/* ================= 全局固定导航栏 ================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2.15rem;
  /* 导航背景阴影：按设计稿要求用 CSS 渐变实现（顶部深色向下淡出） */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* 首次进入淡入：顶部导航与右侧社媒图标初始隐藏，开场 KV 切换到首屏背景视频时开始淡入
   （无开场 KV 的场景由 JS 在页面就绪后立即触发） */
.site-nav,
.social-list {
  opacity: 0;
  transition: opacity 1s ease;
}
body.page-enter .site-nav,
body.page-enter .social-list {
  opacity: 1;
}
.site-nav a {
  pointer-events: auto;
}
.nav-logo {
  position: absolute;
  left: 0.63rem;
  top: 0.23rem;
  width: 1.79rem;
  height: 1.23rem;
}
.nav-logo img {
  width: 100%;
  height: 100%;
  display: block;
}
/* 导航列表：按设计稿 5 个 250x72 槽位绝对定位（槽中心 x：436/648/852/1056/1260） */
.nav-list {
  position: absolute;
  left: 3.11rem;
  top: 0.41rem;
  width: 10.74rem;
  height: 0.72rem;
}
.nav-item {
  position: absolute;
  top: 0;
  width: 2.5rem;
  height: 0.72rem;
  cursor: pointer;
}
.nav-item-home { left: 0; }
.nav-item-notice { left: 2.12rem; }
.nav-item-intro { left: 4.16rem; }
.nav-item-memory { left: 6.2rem; }
.nav-item-end { left: 8.24rem; }
/* 高亮背景光效（统一使用 nav-item-light.png，铺满槽位） */
.nav-light {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
/* 状态切图（默认/高亮），按设计稿坐标摆放在槽位内，切换时交叉淡入淡出 */
.nav-img {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.nav-img-default { opacity: 1; }
.nav-img-active { opacity: 0; }
/* 各项切图几何（相对槽位 left/top/width/height，设计 px） */
.nav-item-home .nav-img-default { left: 0.69rem; top: 0.22rem; width: 1.1rem; height: 0.37rem; }
.nav-item-home .nav-img-active { left: 0.67rem; top: 0.19rem; width: 1.13rem; height: 0.38rem; }
.nav-item-notice .nav-img-default { left: 0.7rem; top: 0.23rem; width: 1.1rem; height: 0.36rem; }
.nav-item-notice .nav-img-active { left: 0.69rem; top: 0.19rem; width: 1.12rem; height: 0.38rem; }
.nav-item-intro .nav-img-default { left: 0.7rem; top: 0.23rem; width: 1.1rem; height: 0.36rem; }
.nav-item-intro .nav-img-active { left: 0.69rem; top: 0.19rem; width: 1.12rem; height: 0.38rem; }
.nav-item-memory .nav-img-default { left: 0.7rem; top: 0.22rem; width: 1.1rem; height: 0.37rem; }
.nav-item-memory .nav-img-active { left: 0.69rem; top: 0.19rem; width: 1.12rem; height: 0.38rem; }
.nav-item-end .nav-img-default { left: 0.7rem; top: 0.22rem; width: 1.1rem; height: 0.37rem; }
.nav-item-end .nav-img-active { left: 0.69rem; top: 0.19rem; width: 1.12rem; height: 0.38rem; }
/* hover：默认/高亮切图均仅轻微上移 */
.nav-item:hover .nav-img-default,
.nav-item.active:hover .nav-img-active {
  transform: translateY(-0.02rem);
}
/* 高亮态（当前屏）：光效常亮 + 呼吸动效，两态切图交叉淡切 */
.nav-item.active .nav-img-default {
  opacity: 0;
}
.nav-item.active .nav-img-active {
  opacity: 1;
}
.nav-item.active .nav-light {
  opacity: 1;
  animation: navLightBreath 2.4s ease-in-out infinite;
}
@keyframes navLightBreath {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.09);
  }
}

/* 导航右侧：登录区 + 音乐开关 */
.nav-right {
  position: absolute;
  right: 0.56rem;
  top: 0.54rem;
  height: 0.56rem;
  display: flex;
  align-items: center;
}
.login-box {
  margin-right: 0.24rem;
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 0.2rem;
  color: #ffd7aa;
  /* 黑色描边：八方向 text-shadow 叠加（纯黑、零模糊，清晰锐利）；
     可继承，覆盖登录区全部文案（含 JS 动态插入的 [同时登录QQ号] / QQ 身份信息），
     兼容性优于 -webkit-text-stroke（描边镂空文字）与 filter（性能/兼容差） */
  text-shadow:
    -0.02rem -0.02rem 0 #000,
    0 -0.02rem 0 #000,
    0.02rem -0.02rem 0 #000,
    -0.02rem 0 0 #000,
    0.02rem 0 0 #000,
    -0.02rem 0.02rem 0 #000,
    0 0.02rem 0 #000,
    0.02rem 0.02rem 0 #000;
  white-space: nowrap;
}
.login-box a,
.login-box a:visited {
  color: #ffd7aa;
  margin: 0 0.05rem;
}
.login-box a:hover {
  color: #fff3a6;
  text-decoration: none;
}
.login-title {
  /* margin-right: 0.1rem; */
}
.music-btn {
  position: relative;
  width: 0.56rem;
  height: 0.56rem;
  cursor: pointer;
}
.music-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.music-btn .music-icon-off {
  display: block;
}
.music-btn.playing .music-icon-off {
  display: none;
}
.music-btn.playing .music-icon-on {
  display: block;
}

/* ================= 第一屏：首页预约 ================= */
.section-screen1 {
  position: relative;
}
/* 背景媒体层：静态图 + 视频（视频加载完成后淡入替换）
   翻页入场：当前屏背景从 1.08 缓推回 1（Ken Burns），切出缓慢复位待下次重播 */
.bg-media,
.bg-media .bg-img,
.bg-media .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bg-media {
  transform: scale(1.08);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.section-box.screen-enter .bg-media {
  transform: scale(1);
}
.bg-img,
.bg-video {
  object-fit: cover;
  transition: opacity 0.8s ease;
}
.bg-video {
  display: none;
  opacity: 0;
  z-index: 1;
}
.bg-video.show {
  opacity: 1;
}
.bg-img.hide {
  opacity: 0;
}

/* ================= 开场 KV 视频覆盖层（播完直接切换进入页面，无透明度过渡） ================= */
/* 与 .bg-video 保持完全一致的缩放定位方式（absolute inset 0 + 100% + object-fit:cover），保证首尾衔接不错位 */
.kv-start-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
}
.kv-start-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 内容舞台：等比缩放（0.01rem = 1 设计像素），视口内水平垂直居中 */
.screen-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25.6rem;
  height: 14.4rem;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.screen-stage img {
  user-select: none;
}
.shadow-title-btn {
  position: absolute;
  left: 6.46rem;
  top: 0.86rem;
  width: 12.03rem;
  height: 10.22rem;
  opacity: 0.6;
  pointer-events: none;
}
.title-box img {
  position: absolute;
  display: block;
}
.title-main {
  left: 10.75rem;
  top: 4.23rem;
  width: 4.16rem;
  height: 1.13rem;
}
/* 现已开启预约（序列帧动图 1117x266）：
   与原静态图 title-sub-reserve-open.png（1074x228 @ 7.46rem,4.89rem）文字内容对齐——
   原静态图文字内容偏移 (9,8)，序列帧文字内容偏移 (36,18)，内容尺寸一致（1058x212），
   故序列帧位置 = 746+9-36=719 / 489+8-18=479，保证文字与原静态图完全重合 */
.title-sub-mv {
  left: 7.19rem;
  top: 4.79rem;
  width: 11.17rem;
  height: 2.66rem;
}
.reserve-box {
  position: absolute;
  left: 10.27rem;
  top: 6.79rem;
  width: 5.09rem;
  height: 1.54rem;
}
.btn-reserve {
  position: absolute;
  left: 0;
  top: 0.37rem;
  width: 5.09rem;
  height: 1.17rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  background: url(https://game.gtimg.cn/images/dnfc/web202611/images/btn-reserve.png) no-repeat; background-size: 100% 100%;
}
/* 已预约-未绑定 */
.btn-reserve.yyy { background: url(https://game.gtimg.cn/images/dnfc/web202611/images/btn-reserve-bind.png) no-repeat; background-size: 100% 100%; }
/* 已预约-未唤醒 */
.btn-reserve.whx { background: url(https://game.gtimg.cn/images/dnfc/web202611/images/btn-reserve-wake.png) no-repeat; background-size: 100% 100%; }
/* 已绑定 已唤醒 */
.btn-reserve.ybd { background: url(https://game.gtimg.cn/images/dnfc/web202611/images/btn-reserve-done.png) no-repeat; background-size: 100% 100%; }
/* .btn-reserve img {
  width: 100%;
  height: 100%;
  display: block;
} */
/* 预约按钮状态切图（已预约/待唤醒/待绑定）：默认隐藏，绝对定位叠放在默认按钮上，JS 加 .show 显示 */
/* .btn-reserve img.reserve-state {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
}
.btn-reserve img.reserve-state.show {
  display: block;
} */
.btn-reserve:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.btn-reserve:active {
  transform: scale(0.98);
}
.reward-tips {
  position: absolute;
  left: 2.96rem;
  top: 0;
  width: 3.22rem;
  height: 0.73rem;
  z-index: 1;
  animation: tips-float 2.4s ease-in-out infinite;
}
.tips-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tips-text {
  position: absolute;
  left: 0.28rem;
  top: 0.15rem;
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 0.22rem;
  line-height: 0.36rem;
  color: #ffd7aa;
  white-space: nowrap;
}
.btn-recruit {
  position: absolute;
  left: 11.34rem;
  top: 8.46rem;
  width: 2.97rem;
  height: 0.73rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.btn-recruit img {
  width: 100%;
  height: 100%;
  display: block;
}
.btn-recruit:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.btn-recruit:active {
  transform: scale(0.97);
}

/* 全局社媒图标（页面框架层，所有屏可见，固定于右侧；容器透明区不拦截下层点击） */
.social-list {
  position: fixed;
  right: 0.34rem;
  top: 4.65rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.social-list .social-item {
  pointer-events: auto;
}
.social-item {
  position: relative;
  width: 1rem;
  height: 1rem;
  /* 设计稿图标框逐项重叠 18px，视觉步进 82px */
  margin-bottom: -0.18rem;
  cursor: pointer;
}
.social-item:last-child {
  margin-bottom: 0;
}
.social-item > img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s;
}
.social-item:hover > img {
  transform: scale(1.08);
}

/* ---- 悬停展示二维码 tips（第1/3项单码、第2项双码；背景切图含发光外扩边距） ---- */
.social-tips {
  position: absolute;
  /* 容器含切图右侧约 0.19rem 发光余量，右移使箭头尖贴近图标可见区域左缘（不遮挡可见图标） */
  right: 0.73rem;
  top: 50%;
  transform: translateY(calc(-50% + 0.3rem));
  display: none;
  pointer-events: none;
}
/* 单码整体再上移 0.1rem */
.social-tips-single {
  transform: translateY(calc(-50% + 0.2rem));
}
.social-item:hover .social-tips {
  display: block;
}
/* 单码：背景图 1x 239x266（含四向约12px发光边距），框体本体 213x240 位于图中 (12,12) */
.social-tips-single {
  width: 2.37rem;
  height: 2.66rem;
  background: url(https://game.gtimg.cn/images/dnfc/web202611/images/social/social-tips-single-bg.png) no-repeat 0 0;
  background-size: 100% 100%;
}
.social-tips-single .social-tips-qrcode {
  left: 0.36rem;
  top: 0.38rem;
}
.social-tips-single .social-tips-text {
  left: 0.36rem;
  top: 2rem;
}
/* 双码：与单码统一宽度与内容坐标系（背景图 1x 237x432），整体上移 0.04rem */
.social-tips-double {
  width: 2.37rem;
  height: 4.32rem;
  transform: translateY(calc(-50% + 0.26rem));
  background: url(https://game.gtimg.cn/images/dnfc/web202611/images/social/social-tips-double-bg.png) no-repeat 0 0;
  background-size: 100% 100%;
}
.social-tips-double .social-tips-qrcode1 {
  left: 0.36rem;
  top: 0.3rem;
}
.social-tips-double .social-tips-text1 {
  left: 0.353rem;
  top: 1.866rem;
}
.social-tips-double .social-tips-qrcode2 {
  left: 0.4rem;
  top: 2.2rem;
}
.social-tips-double .social-tips-text2 {
  left: 0.353rem;
  top: 3.746rem;
}
.social-tips .social-tips-qrcode {
  position: absolute;
  width: 1.46rem;
  height: 1.46rem;
  display: block;
}
.social-tips .social-tips-text {
  position: absolute;
  width: 1.564rem;
  margin: 0;
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 0.18rem;
  line-height: 0.28rem;
  font-weight: 400;
  text-align: center;
  color: #d9a45e;
}

/* ================= 翻页入场动效 =================
   js 在每次翻到某屏时给该屏加 .screen-enter（切出移除，回切整屏重播）：
   初始态 opacity:0，切出经 transition 平滑淡出；动画 fill-mode backwards 使 delay 期间保持 from 帧，
   结束后释放 transform（不锁定），hover 缩放等交互不受影响 */
.section-screen1 .shadow-title-btn,
.section-screen1 .title-main,
.section-screen1 .title-sub-mv,
.section-screen1 .reserve-box,
.section-screen1 .btn-recruit,
.section-screen2 .pv-box,
.section-screen2 .news-box,
.section-screen3 .feature-swiper,
.section-screen3 .feature-shadow,
.section-screen3 .feature-arrow,
.section-screen3 .feature-pagination,
.section-screen4 .memory-title-img,
.section-screen4 .memory-viewport,
.section-screen4 .memory-tip-text,
.section-screen4 .memory-upload-btn,
.section-foot #gfooter {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.section-box.screen-enter .title-main,
.section-box.screen-enter .title-sub-mv,
.section-box.screen-enter .reserve-box,
.section-box.screen-enter .btn-recruit,
.section-box.screen-enter .pv-box,
.section-box.screen-enter .news-box,
.section-box.screen-enter .feature-swiper,
.section-box.screen-enter .feature-shadow,
.section-box.screen-enter .feature-arrow,
.section-box.screen-enter .feature-pagination,
.section-box.screen-enter .memory-title-img,
.section-box.screen-enter .memory-viewport,
.section-box.screen-enter .memory-tip-text,
.section-box.screen-enter .memory-upload-btn,
.section-screen4.screen-enter ~ .section-foot #gfooter {
  opacity: 1;
}
/* 标题阴影本底透明度 0.6，入场后恢复原值 */
.section-screen1.screen-enter .shadow-title-btn {
  opacity: 0.6;
}

/* 第一屏：主标题回弹放大，其余毛玻璃聚焦/上浮错落入场 */
.section-screen1.screen-enter .shadow-title-btn {
  animation: screen-blur-in 1s ease 0.05s backwards;
}
.section-screen1.screen-enter .title-main {
  animation: screen-zoom-in 0.85s cubic-bezier(0.34, 1.56, 0.5, 1) 0.2s backwards;
}
.section-screen1.screen-enter .title-sub-mv {
  animation: screen-zoom-in 0.8s cubic-bezier(0.34, 1.56, 0.5, 1) 0.45s backwards;
}
.section-screen1.screen-enter .reserve-box {
  animation: screen-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s backwards;
}
.section-screen1.screen-enter .btn-recruit {
  animation: screen-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.75s backwards;
}

/* 第二屏：PV 从左滑入、资讯从右滑入 */
.section-screen2.screen-enter .pv-box {
  animation: screen-slide-left 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s backwards;
}
.section-screen2.screen-enter .news-box {
  animation: screen-slide-right 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s backwards;
}

/* 第三屏：卖点舞台柔和缩放进场（无过冲，避免回弹顿挫感），前景与分页错落浮现（卖点内部分层动效见 .feature-slide.reveal） */
.section-screen3.screen-enter .feature-swiper {
  animation: screen-soft-zoom-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s backwards;
}
.section-screen3.screen-enter .feature-shadow {
  animation: screen-fade-in 1.1s ease 0.35s backwards;
}
.section-screen3.screen-enter .feature-pagination {
  animation: screen-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.55s backwards;
}

/* 第四屏：标题从上落下聚焦，相框集从右滑入，文案与按钮上浮/回弹收尾 */
.section-screen4.screen-enter .memory-title-img {
  animation: screen-drop-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s backwards;
}
.section-screen4.screen-enter .memory-viewport {
  animation: screen-slide-in-view 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s backwards;
}
.section-screen4.screen-enter .memory-tip-text {
  animation: screen-fade-up 0.7s ease 0.55s backwards;
}
.section-screen4.screen-enter .memory-upload-btn {
  animation: screen-soft-zoom-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.7s backwards;
}

/* 页脚：与第四屏同屏可见（realIndex 不会单独到达页脚），入场挂在第四屏 enter 上、略滞后于滑动节奏 */
.section-screen4.screen-enter ~ .section-foot #gfooter {
  animation: screen-fade-up 0.8s ease 0.3s backwards;
}

/* 入场动画集 */
@keyframes screen-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes screen-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* 回弹放大：仅两帧，靠贝塞尔曲线的进度过冲（y>1）自然实现"放大→回落"，
   避免中间帧+过冲曲线双重作用造成的速度突变顿挫 */
@keyframes screen-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes screen-blur-in {
  from {
    opacity: 0;
    filter: blur(0.3rem);
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}
/* 柔和缩放进场：无过冲回弹，缓出曲线，观感更顺滑 */
@keyframes screen-soft-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes screen-slide-left {
  from {
    opacity: 0;
    transform: translateX(-0.8rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes screen-slide-right {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes screen-drop-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.92);
    filter: blur(0.15rem);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
/* memory-viewport 自身带 translateX(-50%) 居中，入场需保留该偏移 */
@keyframes screen-slide-in-view {
  from {
    opacity: 0;
    transform: translateX(calc(-50% + 0.8rem));
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}
@keyframes tips-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.08rem);
  }
}

/* ================= 框架全局下滑提示（第一~三屏显示，第四屏起隐藏） ================= */
.scroll-down-hint {
  position: fixed;
  right: 0.52rem;
  bottom: 0.56rem;
  z-index: 101;
  width: 0.46rem;
  height: 0.26rem;
  cursor: pointer;
  animation: hint-bounce 1.6s ease-in-out infinite;
  transition: opacity 0.3s, visibility 0.3s;
}
.scroll-down-hint img {
  width: 100%;
  height: 100%;
  display: block;
}
.scroll-down-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.08rem);
  }
}

/* ================= 第二屏：游戏公告及PV ================= */
/* PV录像播放区域：底边框(z1) < 视频/缩略图(z2) < 前边框(z3) */
.pv-box {
  position: absolute;
  left: 3.21rem;
  top: 3.43rem;
  width: 13.55rem;
  height: 8.29rem;
}
.pv-frame-base {
  position: absolute;
  left: 0;
  top: 0;
  width: 13.55rem;
  height: 8.29rem;
  z-index: 1;
}
.pv-screen {
  position: absolute;
  left: 0.36rem;
  top: 0.58rem;
  width: 12.62rem;
  height: 7.1rem;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border-radius: 0.4rem 0.2rem 0 0.4rem;
}
.pv-thumbnail,
.pv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-play-btn {
  position: absolute;
  left: 4.72rem;
  top: 2.44rem;
  width: 3.04rem;
  height: 2.56rem;
  transition: opacity 0.3s, transform 0.2s;
}
.pv-play-btn:hover {
  transform: scale(1.05);
}
.pv-play-icon {
  width: 100%;
  height: 100%;
  display: block;
}
.pv-play-text {
  position: absolute;
  left: 0.5rem;
  top: 1.53rem;
  width: 2.09rem;
  text-align: center;
  font-size: 0.24rem;
  line-height: 0.36rem;
  color: #ffd7aa;
  white-space: nowrap;
  filter:
    drop-shadow(0 -0.02rem 0 #000)
    drop-shadow(0 0.02rem 0 #000)
    drop-shadow(-0.02rem 0 0 #000)
    drop-shadow(0.02rem 0 0 #000)
    drop-shadow(0 0.03rem 0.02rem rgba(0, 0, 0, 0.6));
}
.pv-frame-front {
  position: absolute;
  left: 0.06rem;
  top: 0.33rem;
  width: 13.19rem;
  height: 7.68rem;
  z-index: 3;
  pointer-events: none;
}
/* 播放中：缩略图与播放按钮淡出，视频置于最前 */
.pv-thumbnail {
  transition: opacity 0.4s ease;
}
.pv-play-btn {
  transition: opacity 0.4s ease, transform 0.2s;
}
.pv-screen.playing .pv-thumbnail,
.pv-screen.playing .pv-play-btn {
  opacity: 0;
  pointer-events: none;
}
.pv-screen.playing .pv-play-btn {
  transform: none;
}
.pv-video {
  z-index: 0;
}
.pv-thumbnail {
  z-index: 1;
}
.pv-play-btn {
  z-index: 2;
}

/* 官方资讯 */
.news-box {
  position: absolute;
  left: 16.71rem;
  top: 3.95rem;
  width: 5.67rem;
  height: 7.31rem;
}
.news-title {
  position: absolute;
  left: 0.06rem;
  top: 0;
  width: 2.21rem;
  height: 0.95rem;
}
.news-list {
  position: absolute;
  left: 0;
  top: 1.14rem;
  width: 5.67rem;
}
/* 资讯空态：接口无数据时居中显示"敬请期待"（默认隐藏，js 控制显隐） */
.news-empty {
  position: absolute;
  left: 0;
  top: 1.14rem;
  width: 5.67rem;
  height: 5.25rem;
  display: none;
  text-align: center;
  line-height: 5.25rem;
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 0.3rem;
  font-weight: 400;
  color: #c9b489;
  text-shadow:
    -0.02rem 0 0 #090909,
    0.02rem 0 0 #090909,
    0 -0.02rem 0 #090909,
    0 0.02rem 0 #090909;
}
.news-item {
  position: relative;
  display: block;
  width: 5.67rem;
  height: 1.75rem;
  margin-bottom: 0.12rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.news-item:last-child {
  margin-bottom: 0;
}
.news-item:hover {
  transform: translateY(-0.04rem);
  filter: brightness(1.15);
}
.news-item-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.news-item-title {
  position: absolute;
  left: 0.41rem;
  top: 0.33rem;
  width: 4.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.22rem;
  line-height: 0.26rem;
  font-weight: normal;
  color: #ffbd49;
  filter:
    drop-shadow(0 -0.02rem 0 rgba(26, 21, 15, 0.8))
    drop-shadow(0 0.02rem 0 rgba(26, 21, 15, 0.8))
    drop-shadow(-0.02rem 0 0 rgba(26, 21, 15, 0.8))
    drop-shadow(0.02rem 0 0 rgba(26, 21, 15, 0.8))
    drop-shadow(0 0.02rem 0.02rem rgba(0, 0, 0, 0.5));
}
.news-item-date {
  position: absolute;
  right: 0.44rem;
  top: 0.36rem;
  font-size: 0.22rem;
  line-height: 0.26rem;
  color: #bababa;
  filter:
    drop-shadow(0 -0.02rem 0 rgba(26, 21, 15, 0.8))
    drop-shadow(0 0.02rem 0 rgba(26, 21, 15, 0.8))
    drop-shadow(-0.02rem 0 0 rgba(26, 21, 15, 0.8))
    drop-shadow(0.02rem 0 0 rgba(26, 21, 15, 0.8));
}
.news-item-summary {
  position: absolute;
  left: 0.55rem;
  top: 0.86rem;
  width: 4.58rem;
  height: 0.48rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.18rem;
  line-height: 0.24rem;
  color: #ffd7aa;
  text-shadow: 0.01rem 0.01rem 0 rgba(0, 0, 0, 0.68);
}
/* 资讯翻页切换淡入 */
.news-list.news-switching {
  animation: news-fade 0.35s ease;
}
@keyframes news-fade {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

/* 资讯分页 */
.news-pagination {
  position: absolute;
  left: 1.31rem;
  top: 6.82rem;
  width: 2.93rem;
  height: 0.49rem;
}
.page-btn {
  position: absolute;
  display: block;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.page-btn:hover {
  transform: scale(1.12);
  filter: brightness(1.2);
}
/* 首页/末页不可再翻：箭头置灰且不可点 */
.page-btn.disabled {
  opacity: 0.35;
  filter: grayscale(1);
  pointer-events: none;
}
.page-prev {
  left: 0;
  top: 0;
  width: 0.45rem;
  height: 0.49rem;
}
.page-next {
  left: 2.54rem;
  top: -0.03rem;
  width: 0.48rem;
  height: 0.54rem;
}
.page-btn img {
  width: 100%;
  height: 100%;
  display: block;
}
.page-dots {
  position: absolute;
  /* 始终居中于左右箭头正中间；页点过多时在两箭头间自动换行 */
  left: 50%;
  top: 0.17rem;
  transform: translateX(-50%);
  width: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.12rem;
}
.page-dot {
  width: 0.14rem;
  height: 0.14rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.page-dot:hover {
  transform: scale(1.2);
}
.page-dot img {
  width: 100%;
  height: 100%;
  display: block;
}
.page-dot .dot-active {
  display: none;
}
.page-dot.active .dot-active {
  display: block;
}
/* 分页窗口省略号（与页点同行） */
.page-ellipsis {
  line-height: 0.14rem;
  font-size: 0.14rem;
  color: #cab588;
}
.page-dot.active .dot-default {
  display: none;
}

/* ================= 第三屏：卖点轮播 ================= */
/* 像素字体（方正像素12，第三屏卖点介绍文案使用） */
@font-face {
  font-family: "FZXS12";
  src: url("https://game.gtimg.cn/images/dnfc/web202611/fonts/fzxs.ttf") format("truetype");
  font-display: swap;
}
/* 通用背景全屏，轮播层全屏叠加 */
.feature-swiper {
  position: absolute;
  inset: 0;
  width: 25.6rem;
  height: 14.4rem;
}
.feature-slide {
  position: relative;
  width: 25.6rem;
  height: 14.4rem;
  /* overflow: hidden; */
}
.feature-slide img {
  position: absolute;
  display: block;
  user-select: none;
}
/* 窗口比例比 16:9 更"高"（宽度变窄）时舞台垂直居中会留出上下空隙；
   卖点图设计上均以舞台底边为基准（底部坐标均为 1440），
   按空隙量整体下移，使卖点图始终贴齐视口底部（宽屏时空隙为 0，无变化） */
.section-screen3 .feature-art {
  margin-top: calc((100vh - 14.4rem) / 2);
}

/* 各卖点分层坐标（20261115 补充卖点设计稿，2560x1440，绝对坐标÷100）
   顺序按设计稿图层：赛丽亚→机械牛→土罐→漫游→剑魂→索西雅 */
/* 卖点1：赛丽亚 */
.feature-slide-1 .feature-art {
  left: 3.63rem;
  top: 1.31rem;
  width: 11.18rem;
  height: 13.09rem;
}
.feature-slide-1 .feature-title {
  left: 12.66rem;
  top: 4.85rem;
  width: 8.58rem;
  height: 2.40rem;
}
/* 卖点2：机械牛 */
.feature-slide-2 .feature-art {
  left: 2.01rem;
  top: 1.12rem;
  width: 17.50rem;
  height: 13.91rem;
}
.feature-slide-2 .feature-title {
  left: 12.16rem;
  top: 5.77rem;
  width: 8.66rem;
  height: 1.48rem;
}
/* 卖点3：土罐 */
.feature-slide-3 .feature-art {
  left: 4.46rem;
  top: 1.44rem;
  width: 10.91rem;
  height: 17.55rem; /* 设计稿即超出画布底部，随舞台裁切 */
}
.feature-slide-3 .feature-title {
  left: 13.38rem;
  top: 4.85rem;
  width: 6.57rem;
  height: 2.39rem;
}
/* 卖点4：漫游 */
.feature-slide-4 .feature-art {
  left: 3.39rem;
  top: 0.09rem;
  width: 16.83rem;
  height: 14.53rem;
}
.feature-slide-4 .feature-title {
  left: 13.81rem;
  top: 4.86rem;
  width: 5.71rem;
  height: 2.39rem;
}
/* 卖点5：剑魂 */
.feature-slide-5 .feature-art {
  left: 1.07rem;
  top: -0.07rem;
  width: 13.79rem;
  height: 15.55rem;
}
.feature-slide-5 .feature-title {
  left: 13.98rem;
  top: 4.85rem;
  width: 5.40rem;
  height: 2.40rem;
}
/* 卖点6：索西雅 */
.feature-slide-6 .feature-art {
  left: 6.26rem;
  top: 1.00rem;
  width: 8.45rem;
  height: 13.80rem;
}
.feature-slide-6 .feature-title {
  left: 12.64rem;
  top: 5.78rem;
  width: 8.05rem;
  height: 1.46rem;
}

/* 介绍文案框（CSS 双线圆角框 + 半透明底 + 像素字体文字，替代整体切图）
   尺寸严格取自设计稿可见框（高 94px），框宽随各卖点文案长度不同（见各 slide 定位） */
.feature-intro {
  position: absolute;
  top: 7.39rem;
  height: 0.94rem;
  box-sizing: border-box;
  border: 1px solid rgba(201, 181, 140, 0.9); /* 外框亮金线 */
  border-radius: 0.08rem; /* 圆角 */
  background: rgba(0, 0, 0, 0.5); /* 黑色半透明底 */
  display: flex;
  align-items: center;
  justify-content: center;
  /* 设计稿框体投影：DROP_SHADOW offset(2,2) radius 13 rgba(8,6,4,0.68) */
  box-shadow: 0.02rem 0.02rem 0.13rem rgba(8, 6, 4, 0.68);
}
.feature-intro::before {
  content: "";
  position: absolute;
  inset: 0.02rem; /* 内线框（设计稿内框 inset 2px） */
  border: 1px solid rgba(26, 21, 15, 0.68);
  border-radius: 0.06rem;
  pointer-events: none;
}
.feature-intro .feature-intro-t {
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 0.30rem;
  line-height: 1;
  color: #c9b58c;
  white-space: nowrap;
}
/* 各卖点文案框位置与宽度（设计稿框宽随文案自适应） */
.feature-slide-1 .feature-intro {
  left: 13.07rem;
  width: 6.89rem;
}
.feature-slide-2 .feature-intro {
  left: 12.99rem;
  width: 6.97rem;
}
.feature-slide-3 .feature-intro {
  left: 13.07rem;
  width: 6.89rem;
}
.feature-slide-4 .feature-intro {
  left: 13.84rem;
  width: 5.68rem;
}
.feature-slide-5 .feature-intro {
  left: 13.84rem;
  width: 5.68rem;
}
.feature-slide-6 .feature-intro {
  left: 13.85rem;
  width: 5.67rem;
}

/* 卖点左右切换箭头（垂直居中于舞台，层级高于前景阴影） */
.feature-arrow {
  position: absolute;
  top: 6.71rem;
  width: 0.90rem;
  height: 1.01rem;
  z-index: 7;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.2s ease;
}
.feature-arrow-prev {
  left: 2.92rem;
}
.feature-arrow-next {
  left: 21.77rem;
}
.feature-arrow:hover {
  transform: scale(1.08);
}
.feature-arrow:active {
  transform: scale(0.95);
}

/* 分层进场动效：切换到当前页时卖点图从左滑入，标题/文案依次从右滑入 */
.feature-slide .feature-art,
.feature-slide .feature-title,
.feature-slide .feature-intro {
  opacity: 0;
}
.feature-slide.reveal .feature-art {
  animation: feat-art-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.feature-slide.reveal .feature-title {
  animation: feat-text-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}
.feature-slide.reveal .feature-intro {
  animation: feat-text-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s forwards;
}
@keyframes feat-art-in {
  from {
    opacity: 0;
    transform: translateX(-0.8rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes feat-text-in {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 前景阴影：与背景图同规则——直接铺满整个视口（object-fit: cover），
   避免舞台 contain 缩放时左右露出遮罩边缘的裁切线 */
.feature-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  pointer-events: none;
}

/* 卖点分页点（用 ID 提升特异性，覆盖 swiper-bundle.css 的 .swiper-pagination 全局样式） */
/* 20261115：卖点扩为 6 个，容器按设计稿加宽（6 点 = 6x0.43 + 5x0.22 = 3.68rem ≈ 设计稿 369px） */
#featureDots.feature-pagination {
  position: absolute;
  left: 14.66rem;
  top: 11.77rem;
  width: 3.69rem;
  height: 0.42rem;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.22rem;
}
/* 用 ID 级选择器压制 swiper-bundle.css 的 .swiper-pagination-bullet 默认样式（width/opacity/黑底） */
#featureDots .feature-dot {
  position: relative;
  width: 0.43rem;
  height: 0.42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  /* 严格还原设计稿：清除 swiper bullet 默认样式（opacity .2、黑圆底、圆角） */
  background: none;
  border-radius: 0;
  opacity: 1;
}
.feature-dot img {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
}
.feature-dot .dot-active {
  display: none;
}
.feature-dot-active .dot-active,
.feature-dot.swiper-pagination-bullet-active .dot-active {
  display: block;
}
.feature-dot-active .dot-default,
.feature-dot.swiper-pagination-bullet-active .dot-default {
  display: none;
}

/* ================= 第四屏：阿拉德记忆 ================= */
.memory-title-img {
  position: absolute;
  left: 10.62rem;
  top: 2.52rem;
  width: 4.46rem;
  height: 0.95rem;
}

/* 相框集滚动视口：宽度贴合浏览器视口（不随舞台 contain 缩放留边），滚动由 js 驱动（支持拖拽/hover暂停）
   尺寸体系：viewport 上以 font-size 挂载缩放基准（1 设计px = 1em），子级定位全部用 em，无需 calc 实时计算 */
.memory-viewport {
  position: absolute;
  left: 50%;
  top: 356em;
  width: 100vw;
  height: 800em;
  overflow: hidden;
  transform: translateX(-50%);
  font-size: 0.01rem;
  cursor: grab;
}
.memory-viewport.memory-dragging {
  cursor: grabbing;
}
.memory-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 11105em;
  height: 100%;
  will-change: transform;
}
/* 组容器：5 组（3组数据 + 2组首尾衔接副本），组间间距 15 设计px（与组内图间距一致） */
.memory-group {
  position: absolute;
  top: 0;
  width: 2221em;
  height: 100%;
}
.memory-group:nth-child(1) {
  left: 0;
}
.memory-group:nth-child(2) {
  left: 2221em;
}
.memory-group:nth-child(3) {
  left: 4442em;
}
.memory-group:nth-child(4) {
  left: 6663em;
}
.memory-group:nth-child(5) {
  left: 8884em;
}

/* 组内 16 个槽位（设计稿“图片框定位演示”坐标，单位设计px → em） */
.mi-p1 {
  left: 0;
  top: 0;
  width: 429em;
  height: 525em;
}
.mi-p2 {
  left: 887em;
  top: 0;
  width: 210em;
  height: 258em;
}
.mi-p3 {
  left: 444em;
  top: 0;
  width: 427em;
  height: 258em;
}
.mi-p4 {
  left: 1554em;
  top: 0;
  width: 427em;
  height: 258em;
}
.mi-p5 {
  left: 1111em;
  top: 0;
  width: 429em;
  height: 525em;
}
.mi-p6 {
  left: 1996em;
  top: 0;
  width: 210em;
  height: 258em;
}
.mi-p7 {
  left: 444em;
  top: 267em;
  width: 210em;
  height: 258em;
}
.mi-p8 {
  left: 668em;
  top: 273em;
  width: 428em;
  height: 525em;
}
.mi-p9 {
  left: 1553em;
  top: 267em;
  width: 210em;
  height: 258em;
}
.mi-p10 {
  left: 1779em;
  top: 267em;
  width: 427em;
  height: 258em;
}
.mi-p11 {
  left: 0;
  top: 542em;
  width: 210em;
  height: 258em;
}
.mi-p12 {
  left: 226em;
  top: 540em;
  width: 427em;
  height: 258em;
}
.mi-p13 {
  left: 1111em;
  top: 540em;
  width: 210em;
  height: 258em;
}
.mi-p14 {
  left: 1336em;
  top: 540em;
  width: 427em;
  height: 258em;
}
.mi-p15 {
  left: 1774em;
  top: 540em;
  width: 210em;
  height: 258em;
}
.mi-p16 {
  left: 1996em;
  top: 540em;
  width: 210em;
  height: 258em;
}

/* 相框（结构按设计稿“图片框样式集合”：图片 + 淡黑蒙层 + 标题阴影 + 主/副标题 + 相框边框） */
.memory-item {
  position: absolute;
  cursor: pointer;
}
.memory-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 用户上传图片宽高比不定：短边放大、长边两端裁切 */
  display: block;
}
/* 默认淡黑蒙层，hover 变亮 */
.memory-item .memory-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s;
  z-index: 1;
}
.memory-item:hover .memory-mask {
  opacity: 0;
}
.memory-item:hover .memory-photo {
  filter: brightness(1.15);
}
.memory-item .memory-title-shadow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
/* 标题定位壳：em 定位相对自身 font-size，为避免文字元素自设字号后定位基准被放大，
   统一由 .memory-caption（font-size: 1em，即 1 设计px）承担定位，内部文字用 em 定字号 + 无单位行高 */
.memory-caption {
  position: absolute;
  z-index: 3;
  font-size: 1em;
  pointer-events: none;
}
.memory-subtitle,
.memory-title {
  position: absolute;
  left: 0;
  width: 100%;
  font-family: "Noto Serif SC", "Source Han Serif CN", "SimSun", serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 #000, 0 0 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.memory-title {
  color: #fff;
  font-weight: 700;
  bottom: 0;
}
.memory-subtitle {
  color: #c9aa80;
  font-weight: 400;
  top: 0;
}
.memory-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

/* 样式1：大框 429x525（caption 高度 = 副标题顶到主标题底；主标题 bottom:0 定位，避免 em 相对自身字号被放大） */
.memory-item-s1 .memory-title-shadow {
  left: 0;
  top: 369em;
  width: 429em;
  height: 156em;
}
.memory-item-s1 .memory-caption {
  left: 29em;
  top: 449em;
  width: 380em;
  height: 44em;
}
/* 样式2：小框 210x258（无标题阴影条） */
.memory-item-s2 .memory-title-shadow {
  display: none;
}
.memory-item-s2 .memory-caption {
  left: 30em;
  top: 177em;
  width: 160em;
  height: 47em;
}
/* 样式3：宽框 427x258 */
.memory-item-s3 .memory-title-shadow {
  left: 1em;
  top: 101em;
  width: 425em;
  height: 156em;
}
.memory-item-s3 .memory-caption {
  left: 30em;
  top: 176em;
  width: 360em;
  height: 48em;
}
/* 文字字号/行高（相对 caption 的 1em 基准；行高用无单位倍数，避免 em 叠乘放大） */
.memory-subtitle {
  font-size: 16em;
  line-height: 1.1875;
}
.memory-title {
  font-size: 20em;
  line-height: 1.2;
}

/* 前景遮罩：与背景图同规则全屏铺满（避免舞台缩放时左右露出裁切线） */
.memory-fg-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  pointer-events: none;
}
/* 像素字体说明文案（设计稿 28px FZXS12 右对齐 + 深色描边） */
.memory-tip-text {
  position: absolute;
  left: 5.11rem;
  top: 11.7rem;
  width: 15.96rem;
  height: 0.32rem;
  text-align: right;
  font-family: "FZXS12", "Microsoft YaHei", sans-serif;
  font-size: 0.28rem;
  line-height: 0.32rem;
  color: #cab588;
  white-space: nowrap;
  filter:
    drop-shadow(0 -0.03rem 0 #090909)
    drop-shadow(0 0.03rem 0 #090909)
    drop-shadow(-0.03rem 0 0 #090909)
    drop-shadow(0.03rem 0 0 #090909);
}
.memory-rule-link {
  background: linear-gradient(180deg, #fbb944 0%, #fff5d1 50%, #e4ce79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.memory-rule-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #330707;
  z-index: -1;
}
.memory-upload-btn {
  position: absolute;
  left: 10.86rem;
  top: 12.13rem;
  width: 3.89rem;
  height: 1.09rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.memory-upload-btn img {
  width: 100%;
  height: 100%;
  display: block;
}
.memory-upload-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}
.memory-upload-btn:active {
  transform: scale(0.98);
}

/* ================= 图片预览弹窗 ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox-img {
  position: relative;
  z-index: 1;
  /* 小于可视区域时按原尺寸显示；大于时等比缩放至可视区域内，完整可见 */
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  z-index: 2;
  width: 0.56rem;
  height: 0.56rem;
  line-height: 0.52rem;
  text-align: center;
  /* 关闭符号不使用像素字体（× 在像素字体中显示异常），恢复常规字体 */
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.4rem;
  color: #cab588;
  border: 0.02rem solid rgba(202, 181, 136, 0.6);
  border-radius: 50%;
  transition: all 0.2s;
}
.lightbox-close:hover {
  color: #fff3a6;
  border-color: #fff3a6;
  transform: rotate(90deg);
  text-decoration: none;
}
/* 弹窗打开时暂停相框集滚动（由 js isMemoryActive 统一判断） */
