/* 全站公共样式：字体、缩放、头部导航、页脚、几个页面共用的部件、动效体系。
   设计稿宽 1920。1rem = 设计稿的 100px，整页随屏幕宽度等比缩放（main.js 会按实际可视宽度再校准一次） */
/* 同一个字体文件注册成两个名字，只是“字在行里的上下位置”不同：
   HX Sans    对应设计稿里用 Noto Sans SC 的正文，按 Figma 的算法摆（浏览器默认会低一点）
   HX Display 对应设计稿里用 OPPOSans 的标题。OPPOSans 没法上线，用同一款字代替，
              但 OPPOSans 的字在行里更靠上，这里把位置调到和它一致 */
@font-face {
  font-family: "HX Sans";
  src: url("../assets/fonts/hx-sans-subset.woff2?v=4f10591f") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  ascent-override: 100%;
  descent-override: 20%;
}
@font-face {
  font-family: "HX Display";
  src: url("../assets/fonts/hx-sans-subset.woff2?v=4f10591f") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  ascent-override: 96%;
  descent-override: 20%;
}

:root {
  --font-body: "HX Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "HX Display", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { font-size: calc(100vw / 19.2); }

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #fff;
  font: 400 .16rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
h1, h2, h3,
.nav a,
.hero__points span { font-family: var(--font-display); }
ul { list-style: none; }
img { display: block; }
a { color: inherit; text-decoration: none; }

/* 渐变色的字：设计稿里标题常用 */
.fill-light,
.fill-gold,
.fill-sand {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fill-light { background-image: linear-gradient(to bottom, #fff, #dbcab0); }
.fill-gold { background-image: linear-gradient(to bottom, #fcf6ec, #fab54d); }
.fill-sand { background-image: linear-gradient(to bottom, #dac8ae, #fab54b); }

/* ---------- 分层场景 ----------
   设计稿里几张大图是压扁的，tools/build_assets.py 把它们拆成了几层。
   .scene 占据整张底图在设计稿里的位置，里面的图层用百分比对回原图坐标（数值由脚本打印）。
   不放动画时只看得到最上面的 scene__full（没拆层的原图）。 */
.scene { position: absolute; }
.scene > * { position: absolute; }
.scene__base,
.scene__full {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Banner 外框、头部导航 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #1a0506;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 顶栏固定在屏幕顶部（电脑、手机都是），往下滚后垫一层毛玻璃底。
   Banner 里的内容都是绝对定位，顶栏脱离文档流不会把它们挤走 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 5.02rem auto 1fr;
  align-items: center;
  height: .76rem;
  padding: 0 2.6224rem 0 2.95rem;
}
/* 毛玻璃放在伪元素上：直接给 header 加 backdrop-filter 会让手机版里面 fixed 的菜单只铺满顶栏 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(26, 5, 6, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }

.brand {
  display: flex;
  gap: .1rem;
  align-self: start;
  padding-top: .12rem;
}
.brand__logo { width: .64rem; height: .64rem; }
/* 中英文两行 logo 字：Figma 导出的矢量图，画布就是设计稿里文字组的框（99×50，在 logo 右边 10、下面 11） */
.brand__text {
  width: .99rem;
  height: .5rem;
  margin-top: .11rem;
}

.nav {
  display: flex;
  gap: .42rem;
}
.nav a {
  border-bottom: 1px solid transparent;
  font-size: .16rem;
  line-height: .24rem;
  letter-spacing: -.004rem;
  transition: color .2s;
}
.nav a:hover,
.nav a.is-active { color: #f00; }
.nav a.is-active { border-bottom-color: #f00; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .2676rem;
  justify-self: end;
}
.account img { width: .39rem; height: .32rem; }
.btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.23rem;
  height: .42rem;
  background: #b7000c;
  font-size: .171rem;
  font-weight: 700;
  line-height: .228rem;
  letter-spacing: -.0038rem;
  transition: filter .2s;
}
.btn-open:hover { filter: brightness(1.2); }
.menu-toggle { display: none; } /* 只在手机版出现，见文件末尾 */

/* Banner 上的大标题和“勾 + 卖点”一行（服务项目、关于我们共用，位置和字号各页自己定） */
.hero__copy {
  position: absolute;
  white-space: nowrap;
  filter: drop-shadow(0 .04rem .04rem rgba(0, 0, 0, .25));
}
.hero__title,
.hero__points span {
  line-height: 1.05rem;
  letter-spacing: -.002rem;
}
.hero__title { font-weight: 700; }
.hero__points { display: grid; }
.hero__points li {
  display: flex;
  align-items: center;
}

/* ---------- 下载按钮（首页、软件下载页共用） ---------- */
.dl-btn {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 2.6rem;
  height: .64rem;
  padding-left: .39rem;
  border-radius: .38rem;
  background: linear-gradient(to bottom, #f63538, #b72624);
  color: #fff;
  font-size: .32rem;
  font-weight: 600;
  line-height: .56rem;
  white-space: nowrap;
  transition: filter .2s;
}
.dl-btn:hover { filter: brightness(1.12); }
.dl-btn--android { gap: .14rem; padding-bottom: .04rem; }
.dl-btn--android img { width: .34rem; height: .44rem; }
.dl-btn--ios { gap: .22rem; padding-bottom: .08rem; }
.dl-btn--ios img { width: .31rem; height: .38rem; }

/* ---------- 奖杯 Banner（首页、关于我们共用同一张图） ----------
   图层从下到上：背景（底座保留）→ 奖杯 → 底座（挡在杯脚前面，奖杯升降时从它后面出入）→ 原图 */
.trophy-plate__cup,
.trophy-plate__shine {
  left: 52.8143%;
  top: 13.5%;
  width: 25.6181%;
  height: 73.75%;
}
.trophy-plate__pedestal {
  left: 52.6039%;
  top: 84.5%;
  width: 27.4592%;
  height: 15.5%;
}
.trophy-plate__cup { transform-origin: 50% 100%; }
/* 扫过奖杯的一道高光：用奖杯图当蒙版，光只落在奖杯上 */
.trophy-plate__shine {
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-mask: url("../assets/trophy.webp?v=2980fc70") center / 100% 100% no-repeat;
  mask: url("../assets/trophy.webp?v=2980fc70") center / 100% 100% no-repeat;
  opacity: 0;
}

/* ---------- 深红色大面板（首页“华信优势”、关于我们“马上开户”共用） ---------- */
.panel {
  position: absolute;
  left: -.01rem;
  right: .01rem;
  bottom: 0;
}
/* 面板顶上那圈橙红色的光边（垫在面板底色下面，只露出顶上一圈）；位置各页用 --halo-* 定 */
.panel::before {
  content: "";
  position: absolute;
  left: .03rem;
  right: -.03rem;
  top: var(--halo-top);
  height: var(--halo-height);
  border-radius: .8rem .8rem 0 0;
  background: linear-gradient(to left, #aa010a, #eaa159);
  filter: blur(.1rem);
}
.panel__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: .8rem .8rem 0 0;
  background: linear-gradient(to bottom, #4f0004, #1c0d12);
}
.panel__texture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

/* ---------- “马上开户”（关于我们、服务项目共用；位置各页自己定） ---------- */
.promo {
  position: relative;
  overflow-x: clip; /* 面板的光边和右边的图左右会超出一点，裁掉免得页面能横向滚动 */
}
.promo__desc,
.promo__cta { font-family: var(--font-display); }
.promo__title,
.promo__desc,
.promo__cta,
.promo__art { position: absolute; }
.promo__title {
  font-size: .48rem;
  font-weight: 900;
  line-height: .76rem;
  letter-spacing: -.002rem;
  white-space: nowrap;
}
.promo__desc {
  width: 6.91rem;
  color: #dbcab0;
  font-size: .2rem;
  line-height: .45rem;
}
.promo__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 4.08rem;
  height: .81rem;
  border: 2px solid #f4dfb2;
  border-radius: .6rem;
  background: #070707;
  box-shadow: inset 0 -.06rem .092rem #d3610b;
  font-size: .36rem;
  font-weight: 900;
  line-height: .76rem;
  letter-spacing: -.002rem;
  white-space: nowrap;
  transition: box-shadow .3s;
}
.promo__cta:hover { box-shadow: inset 0 -.06rem .092rem #d3610b, 0 0 .24rem rgba(250, 181, 77, .55); }
.promo__art img {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}

/* ---------- 下载二维码卡片（软件下载页按钮上方、右侧悬浮菜单共用；位置和进出方向各自定） ---------- */
.dl-qr {
  position: absolute;
  z-index: 2;
  padding: .14rem .14rem .1rem;
  border-radius: .16rem;
  background: #fff;
  box-shadow: 0 .2rem .5rem -.1rem rgba(104, 59, 51, .35), 0 0 0 1px rgba(104, 59, 51, .06);
  color: #683b33;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s .35s;
  pointer-events: none;
}
.dl-qr img {
  width: 1.56rem;
  height: 1.56rem;
}
.dl-qr p {
  margin-top: .06rem;
  font-size: .15rem;
  font-weight: 600;
  line-height: .22rem;
}

/* ---------- APP 六要素通知条（四页共用，片段在 partials/sticky-notes.html） ----------
   和顶栏一样固定在屏幕上，条一直贴在顶栏下面（top 要和顶栏高一致：电脑 .76rem、手机 .6rem）。
   电脑版字号跟着整页缩放，窄屏时不小于 12px，免得看不清 */
.sticky-notes {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 0;
}
.sticky-notes__bar {
  position: absolute;
  top: .76rem;
  left: 0;
  right: 0;
  padding: .12rem .8rem;
  background: rgba(26, 5, 6, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #dbcab0;
  font-size: max(.14rem, 12px);
  line-height: max(.24rem, 20px);
  text-align: center;
  transition: opacity .3s, visibility 0s;
}
.sticky-notes__item { white-space: nowrap; }
.sticky-notes__sep { margin: 0 .12rem; opacity: .45; }
.sticky-notes a { color: #fab54d; }
.sticky-notes a:hover { text-decoration: underline; }
.sticky-notes__close {
  position: absolute;
  right: .3rem;
  top: 50%;
  width: max(.3rem, 24px);
  height: max(.3rem, 24px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #dbcab0;
  cursor: pointer;
  translate: 0 -50%;
  transition: background-color .2s;
}
.sticky-notes__close:hover { background: rgba(255, 255, 255, .12); }
/* × 用两条线画 */
.sticky-notes__close::before,
.sticky-notes__close::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
  rotate: 45deg;
}
.sticky-notes__close::after { rotate: -45deg; }
.sticky-notes.is-closed .sticky-notes__bar {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}

/* ---------- 右侧悬浮菜单（四页共用，片段在 partials/right-float-menu.html） ---------- */
.right-float-menu {
  position: fixed;
  right: .3rem;
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  translate: 0 -50%;
}
.right-float-menu__app { position: relative; }
.right-float-menu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .05rem;
  box-sizing: border-box;
  width: .76rem;
  height: .76rem;
  border: 1px solid rgba(250, 181, 77, .7);
  border-radius: .12rem;
  background: #fff;
  box-shadow: 0 .08rem .24rem rgba(104, 59, 51, .18);
  color: #683b33;
  font-size: max(.13rem, 11px);
  line-height: 1.2;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
/* 图标是写在片段里的 SVG，填片段里定义的金色渐变，悬停时换成白色。
   不用“SVG 当 CSS 蒙版”：直接双击打开本地 html 时浏览器会拦掉蒙版图片，图标就空了 */
.right-float-menu__icon {
  width: .3rem;
  height: .3rem;
  fill: url(#right-float-menu-gold);
}
/* 客服图标和顶栏同一个，是横的（39:32），按高度等比放 */
.right-float-menu__service .right-float-menu__icon {
  width: auto;
  aspect-ratio: 39 / 32;
}
.right-float-menu__item:hover,
.right-float-menu__item:focus-visible {
  background: linear-gradient(to bottom, #d3101c, #b7000c);
  color: #fff;
}
.right-float-menu__item:hover .right-float-menu__icon,
.right-float-menu__item:focus-visible .right-float-menu__icon { fill: #fff; }

/* 下载 APP 的两个二维码：卡片在按钮左边，从右往左浮出 */
.right-float-menu .dl-qr {
  right: calc(100% + .16rem);
  top: 50%;
  display: grid;
  grid-template-columns: auto auto;
  gap: .16rem;
  transform: translate(.14rem, -50%) scale(.96);
  transform-origin: 100% 50%;
}
.right-float-menu .dl-qr img {
  width: 1.3rem;
  height: 1.3rem;
}
/* 指向按钮的小三角 */
.right-float-menu .dl-qr::after {
  content: "";
  position: absolute;
  right: -.07rem;
  top: 50%;
  width: .14rem;
  height: .14rem;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.right-float-menu__app:focus-within .dl-qr {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  transition-delay: 0s;
}
@media (hover: hover) {
  .right-float-menu__app:hover .dl-qr {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    transition-delay: 0s;
  }
}

/* ---------- 页脚 ----------
   设计稿四页的页脚底色都是直角（宽 1921、左边多出 1px），玻璃高光层单独带 16px 圆角 */
.site-footer {
  position: relative;
  left: -.01rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(100% + .01rem);
  height: 2.54rem;
  background: linear-gradient(to left, #000, #1e0204);
  font-size: .15rem;
  line-height: .31rem;
  text-align: center;
  white-space: nowrap;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: .16rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  pointer-events: none;
}
.site-footer a { text-decoration: underline; }

/* ---------- 动效 ----------
   只要 main.js 已运行（<html> 上有 js 标记）就生效，不看用户系统的“减少动态效果”设置。
   脚本没运行时页面就是静态的设计稿原样。 */
/* 按要求停用“减少动态效果”判断：动效对所有访客都播放。原来是 @media (prefers-reduced-motion: no-preference) { 包住下面这些规则 */
  /* 滚动到才出现：默认从下往上浮现，data-reveal="left" 从右往左滑入；--i 是先后顺序 */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(.4rem);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1),
      translate .3s, box-shadow .3s, background-color .3s, filter .3s;
    transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s, 0s;
  }
  .js [data-reveal="left"] { transform: translateX(.6rem); }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* 分层场景的起始状态：先藏起原图，主体停在画面外等着入场。
     带 data-scrub 的元素，动画进度由 main.js 跟着滚动位置拨动（is-settled = 已经播到头） */
  .js .scene:not(.is-static) .scene__full { opacity: 0; }

  /* 奖杯：从底座后面升上来 → 落定时换成原图 → 高光每隔几秒扫一遍。
     打开页面时自动播一遍；往下滚奖杯会沉回去，滚回来再升起。
     原图在奖杯落定的同一刻（1.95s）显示完：奖杯一停稳就看原图，不会停在原位露出补出来的背景 */
  .js .trophy-plate:not(.is-static) .trophy-plate__cup { transform: translateY(70%) scale(.92); }
  .trophy-plate.is-playing .trophy-plate__cup { animation: trophy-rise 1.8s .15s cubic-bezier(.33, .55, .55, 1) both; }
  .trophy-plate.is-playing .scene__full { animation: scene-full .2s 1.75s both; }
  .trophy-plate.is-settled .trophy-plate__shine { animation: trophy-shine 4.5s .6s ease-in-out infinite; }

  /* “马上开户”右边的图：跟着滚动从面板里“长”出来 */
  .promo__art.is-playing img { animation: promo-rise 1s linear both; }
/* 停用的 prefers-reduced-motion 外壳到此结束 */

@keyframes scene-full {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes trophy-rise {
  from { transform: translateY(70%) scale(.92); }
  to { transform: none; }
}
@keyframes trophy-shine {
  0% { background-position: 150% 0; opacity: 1; }
  45%, 100% { background-position: -50% 0; opacity: 1; }
}
@keyframes float {
  to { translate: 0 -.14rem; }
}
@keyframes promo-rise {
  from { transform: translateY(24%) scale(.82); opacity: 0; }
  35% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@keyframes float-sm {
  to { translate: 0 -.07rem; }
}

/* =====================================================================
   手机版（宽度 < 1080）
   没有手机设计稿：素材、文案、配色全部沿用桌面稿，排版改成单列文档流。
   1rem = 390 宽手机上的 100px（main.js 里算，320 以下不再缩小、480 以上不再放大），
   平板上内容列居中限宽（--gutter），背景照样铺满。
   各页自己的手机版规则写在各自 CSS 的末尾。
   ===================================================================== */
@media (max-width: 1079.98px) {
  html { font-size: calc(clamp(320px, 100vw, 480px) / 3.9); }
  html.menu-open { overflow: hidden; }
  body {
    --gutter: max(.2rem, calc(50% - 3.4rem));
    padding-bottom: calc(.62rem + env(safe-area-inset-bottom, 0px)); /* 给贴底的悬浮菜单条让位，高度和它一致 */
    font-size: .15rem;
  }
  /* “从右往左滑入”的元素进场前停在屏幕外，手机上 body 的 overflow-x 拦不住横向滚动，在每个区块上裁掉 */
  body > section { overflow-x: clip; }

  /* ---------- 顶栏：吸顶和毛玻璃底见上面电脑版，这里只改排版 ---------- */
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: .06rem;
    height: .6rem;
    padding: 0 var(--gutter);
  }
  .menu-open .site-header::before { opacity: 0; }

  .brand {
    align-self: center;
    align-items: center;
    gap: .07rem;
    padding-top: 0;
  }
  .brand__logo { width: .38rem; height: .38rem; }
  /* 中文字号从 24 缩到 17，整张图按同样比例缩 */
  .brand__text {
    width: .70125rem;
    height: .35417rem;
    margin-top: 0;
  }
  .site-header__actions { gap: .16rem; }
  .account img { width: .27rem; height: .22rem; }
  .btn-open {
    width: auto;
    height: auto;
    padding: .05rem .13rem;
    border-radius: .04rem;
    font-size: .13rem;
    line-height: .2rem;
    letter-spacing: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: .44rem;
    height: .44rem;
    margin-right: -.1rem;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle span {
    grid-area: 1 / 1;
    width: .22rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  }
  .menu-toggle span:first-child { transform: translateY(-.04rem); }
  .menu-toggle span:last-child { transform: translateY(.04rem) scaleX(.64); transform-origin: 100% 50%; }
  .menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: rotate(-45deg); transform-origin: 50% 50%; }

  /* ---------- 全屏菜单 ---------- */
  .nav {
    position: fixed;
    inset: 0;
    z-index: -2;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: .9rem var(--gutter) .8rem;
    background:
      radial-gradient(circle at 88% 8%, rgba(250, 181, 77, .2), transparent 42%),
      radial-gradient(circle at 0% 100%, rgba(170, 1, 10, .45), transparent 55%),
      linear-gradient(165deg, #4f0004, #1c0d12 72%);
    counter-reset: nav;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility 0s .35s;
  }
  .menu-open .nav {
    visibility: visible;
    opacity: 1;
    transition: opacity .35s ease;
  }
  .nav a {
    display: flex;
    align-items: baseline;
    gap: .16rem;
    padding: .18rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: .3rem;
    font-weight: 900;
    line-height: .4rem;
    letter-spacing: .01rem;
    opacity: 0;
    transform: translateY(.3rem);
    transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1), color .2s;
  }
  .nav a::before {
    content: counter(nav, decimal-leading-zero);
    counter-increment: nav;
    min-width: .26rem;
    color: #fab54d;
    font-family: var(--font-body);
    font-size: .12rem;
    font-weight: 700;
    letter-spacing: .02rem;
  }
  /* 右侧小箭头 */
  .nav a::after {
    content: "";
    width: .1rem;
    height: .1rem;
    margin: 0 .04rem 0 auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: .5;
    transform: translateY(-.02rem) rotate(45deg);
  }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; }
  .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; }
  .nav a.is-active {
    border-bottom-color: rgba(250, 181, 77, .5);
    color: #fab54d;
  }
  .nav a:hover { color: #fab54d; }

  /* ---------- Banner：大场景图按竖屏取景 ----------
     各页给 .scene 设 --h（画面高）、--ratio（原图宽高比）、--focus（主体在原图里的横向位置），
     画面按主体居中；平板上图不够宽时贴边，不露底 */
  .hero .scene {
    --w: calc(var(--h) * var(--ratio));
    left: clamp(calc(100% - var(--w)), calc(50% - var(--w) * var(--focus)), 0px);
    width: var(--w);
    height: var(--h);
  }
  /* 下面几条带上 .hero / body 前缀：各页 CSS 比这里后加载，同等优先级会把手机版规则盖掉 */
  .hero .hero__copy {
    left: var(--gutter);
    right: var(--gutter);
  }
  .hero .hero__title,
  .hero .hero__points span { line-height: 1.3; }
  .hero .hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: .06rem .14rem;
    margin-top: .1rem;
  }
  .hero .hero__points li { gap: .05rem; height: auto; }
  .hero .hero__points span { margin-left: 0; font-size: .17rem; }
  .hero .hero__points img { width: .26rem; height: .26rem; }

  /* ---------- 下载按钮 ---------- */
  .dl-btn {
    justify-content: center;
    gap: .1rem;
    width: auto;
    height: .52rem;
    padding: 0 .12rem;
    border-radius: .3rem;
    box-shadow: 0 .08rem .2rem -.06rem rgba(183, 38, 36, .55);
    font-size: .19rem;
    line-height: .52rem;
  }
  .dl-btn--android,
  .dl-btn--ios { gap: .1rem; padding-bottom: 0; }
  .dl-btn--android img { width: .22rem; height: .28rem; }
  .dl-btn--ios img { width: .21rem; height: .26rem; }

  /* ---------- 深红色大面板 ---------- */
  .panel {
    left: 0;
    right: 0;
  }
  .panel::before {
    left: 0;
    right: 0;
    border-radius: .36rem .36rem 0 0;
    filter: blur(.06rem);
  }
  .panel__bg { border-radius: .36rem .36rem 0 0; }

  /* 手机上点按钮直接下载，扫自己屏幕上的码没意义（悬浮菜单那张卡片在电脑版设了 grid，单独点名压住） */
  .dl-qr,
  .right-float-menu .dl-qr { display: none; }

  /* ---------- 通知条：贴在手机版顶栏（高 .6rem）下面，分三块：应用信息 / 四个链接 / 香港网站提示 ---------- */
  .sticky-notes__bar {
    top: .6rem;
    padding: .1rem var(--gutter) .09rem;
    border-bottom: 1px solid rgba(250, 181, 77, .18);
    background: rgba(26, 5, 6, .9);
    box-shadow: 0 .08rem .2rem rgba(0, 0, 0, .25);
    font-size: .115rem;
    line-height: .19rem;
    text-align: left;
  }
  .sticky-notes__sep { display: none; }
  /* 应用信息：标签淡、内容亮，居中；左右都留出 × 的宽度，居中才不会被 × 挤偏 */
  .sticky-notes__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: .14rem;
    padding: 0 .34rem;
    color: #f3e6d3;
  }
  .sticky-notes__label { color: rgba(219, 202, 176, .6); }
  /* 四个链接：一排四个等宽小按钮，手指好点 */
  .sticky-notes__links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .06rem;
    margin-top: .08rem;
  }
  .sticky-notes__links a {
    padding: .03rem 0;
    border: 1px solid rgba(250, 181, 77, .32);
    border-radius: .06rem;
    background: rgba(250, 181, 77, .08);
    font-size: .11rem;
    text-align: center;
  }
  .sticky-notes__links a:hover { text-decoration: none; }
  .sticky-notes__risk {
    margin-top: .08rem;
    padding-top: .07rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(219, 202, 176, .62);
    font-size: .1rem;
    line-height: .16rem;
    text-align: center;
    text-wrap: balance; /* 两行排得一样长，免得第二行只挂一两个字 */
  }
  .sticky-notes__close {
    top: .06rem;
    right: calc(var(--gutter) - .06rem);
    width: .28rem;
    height: .28rem;
    background: rgba(255, 255, 255, .08);
    translate: none;
  }

  /* ---------- 右侧悬浮菜单：变成贴在屏幕底部的一整条，“下载APP”“在线客服”左右并排。
     页面底部垫出同样高的空白（见上面 body 的 padding-bottom），页脚最后几行不会被挡住 ---------- */
  .right-float-menu {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    flex-direction: row;
    gap: .1rem;
    padding: .08rem var(--gutter) calc(.08rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(250, 181, 77, .2);
    background: rgba(26, 5, 6, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    translate: none;
  }
  .right-float-menu__app,
  .right-float-menu__service { flex: 1; }
  .right-float-menu__item {
    flex-direction: row;
    gap: .08rem;
    width: 100%;
    height: .46rem;
    border-radius: .23rem;
    box-shadow: none;
    font-size: .15rem;
    font-weight: 700;
  }
  .right-float-menu__icon { width: .22rem; height: .22rem; }
  /* 下载是主按钮（红底白字），客服是描边按钮 */
  .right-float-menu__app .right-float-menu__item {
    border-color: transparent;
    background: linear-gradient(to bottom, #d3101c, #b7000c);
    color: #fff;
  }
  .right-float-menu__app .right-float-menu__icon { fill: #fff; }
  .right-float-menu__service {
    border-color: rgba(250, 181, 77, .6);
    background: transparent;
    color: #fab54d;
  }

  /* ---------- “马上开户”：右边的图压在面板上沿，文字居中（各页只给图定 aspect-ratio） ---------- */
  body .promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: .3rem var(--gutter) .64rem;
    text-align: center;
  }
  .promo .panel {
    top: 1.3rem;
    bottom: 0;
    --halo-top: -.06rem;
    --halo-height: 1.6rem;
  }
  .promo .promo__title,
  .promo .promo__desc,
  .promo .promo__cta,
  .promo .promo__art {
    position: relative;
    left: auto;
    top: auto;
  }
  .promo .promo__art {
    order: -1; /* 排到最前，绘制顺序也会跟着提前、被面板盖住，所以单独抬一层 */
    z-index: 1;
    width: 100%;
    max-width: 4.6rem;
    height: auto;
    margin-bottom: .08rem;
  }
  .promo__title {
    font-size: .28rem;
    line-height: .4rem;
    white-space: normal;
  }
  .promo__desc {
    width: auto;
    margin-top: .08rem;
    font-size: .14rem;
    line-height: .26rem;
  }
  .promo__cta {
    width: 2.9rem;
    height: .58rem;
    margin-top: .26rem;
    font-size: .22rem;
    line-height: .4rem;
  }

  /* ---------- 页脚 ---------- */
  body .site-footer {
    left: 0;
    gap: .04rem;
    width: auto;
    height: auto;
    padding: .34rem var(--gutter) .4rem;
    font-size: .115rem;
    line-height: .2rem;
    white-space: normal;
  }
  .site-footer p:first-child { margin-bottom: .04rem; font-size: .13rem; }
  .site-footer p:nth-child(2) { margin-bottom: .08rem; }
  .site-footer p:nth-child(n + 3) { color: rgba(255, 255, 255, .62); }
  .site-footer::before { border-radius: .2rem .2rem 0 0; }
}
