/* 衬线字体只保留 index.html 与 ios.html 里标题 / 按钮 / 小标题 / 版本名称用到的字（由 Noto Serif SC 可变字重版 NotoSerifSC-VF.ttf 精简而来）；
   改了这些文字或 CONFIG 里的版本名称后需重新生成，否则新加的字会用系统字体显示 */
@font-face {
  font-family: "BrandSerif";
  src: url("assets/serif-subset.woff2") format("woff2"), url("https://cdn.waimaimingtang.com/file/images/bwc/20261028010552-a8dfd0aa85.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --navy: #1f3184;
  --navy-2: #2c43a8;
  --navy-deep: #111b4d;
  --royal: #0d1640;
  --royal-2: #16225e;
  --ink: #1c1b2c;
  --text: #3d4058;
  --muted: #7b7f96;
  --gold-1: #a8772e;
  --gold-2: #e9c983;
  --gold-3: #b98a3e;
  --gold-hi: #fff2c8;
  --gold-line: #c9a35a;
  --pearl: #f4f5fb;
  --foil: linear-gradient(100deg, #9a6a26 0%, #c49448 25%, #f0d491 42%, #fff6dc 50%, #f0d491 58%, #c49448 75%, #9a6a26 100%);
  --serif: "BrandSerif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --oct: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); line-height: 1.6; background: var(--pearl); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.foil { background: var(--foil); background-size: 300% 100%; background-position: 100% 0;
  /* Keep the text readable in WebViews that do not implement background-clip:text. */
  color: var(--gold-2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
.shine { animation: shine 3.4s 1.2s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ============ 主视觉 ============ */
/* overflow: clip 不会生成滚动容器；hidden 时旋转的光芒会撑出可滚动区域，点锚点 / 聚焦时整块主视觉会被“卷”走 */
.hero { position: relative; overflow: hidden; overflow: clip; color: #fff;
  background: radial-gradient(700px 500px at 80% 60%, rgba(44,67,168,.45), transparent 70%), radial-gradient(500px 400px at 10% 90%, rgba(44,67,168,.35), transparent 70%), var(--royal); }
.hero-art { position: absolute; left: 0; right: 0; top: 0; height: 80vh; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
@supports (height: min(122vw, 80vh)) {
  .hero-art { height: min(122vw, 80vh); }
}
@supports (height: min(122vw, 80svh)) {
  .hero-art { height: min(122vw, 80svh); }
}
.hero-art img { width: 100%; height: 108%; object-fit: cover; object-position: 64% 16%; animation: art-in 1.6s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,22,64,.15) 0%, rgba(13,22,64,0) 22%, rgba(13,22,64,0) 42%, rgba(13,22,64,.55) 66%, rgba(13,22,64,.92) 84%, var(--royal) 100%); }
/* 光芒是纯白色，普通叠加和 screen 混合效果相同，不用 mix-blend-mode，省掉每帧的混合计算 */
.rays { position: absolute; left: -60%; top: -70%; width: 160%; aspect-ratio: 1; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.55) 3deg, rgba(255,255,255,0) 8deg, rgba(255,255,255,0) 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 58%); mask-image: radial-gradient(circle, #000 0%, transparent 58%);
  animation: rays 24s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.frame { position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(233,201,131,.35); animation: frame-in 1.6s .3s var(--ease) both; }
.frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(233,201,131,.15); }
.frame i { position: absolute; width: 34px; height: 34px; border: 2px solid var(--gold-2); }
.frame i::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--gold-2); transform: rotate(45deg); }
.frame i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.frame i:nth-child(1)::after { left: 6px; top: 6px; }
.frame i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; }
.frame i:nth-child(2)::after { right: 6px; top: 6px; }
.frame i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; }
.frame i:nth-child(3)::after { left: 6px; bottom: 6px; }
.frame i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.frame i:nth-child(4)::after { right: 6px; bottom: 6px; }
@keyframes frame-in { from { opacity: 0; clip-path: inset(50% 50%); } to { opacity: 1; clip-path: inset(0 0); } }

.bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.brand { display: flex; flex-direction: column; line-height: 1; filter: drop-shadow(0 1px 8px rgba(255,255,255,.7)); }
.brand b { font-family: var(--serif); font-weight: 900; font-size: 21px; color: var(--navy); letter-spacing: 3px; }
/* 主视觉、版本卡片后面都有动画，毛玻璃（backdrop-filter）会每帧重新模糊背景，改用不透明度更高的纯色底 */
.ver-tag { font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 3px 11px; white-space: nowrap; background: rgba(13,22,64,.55); }

.hero-inner {
  position: relative;
  z-index: 4;
  /* Older iOS/Android WebViews do not understand svh or min(). Keep a
     usable top offset there so the copy does not render under the artwork. */
  padding: 140px 0 56px;
}
@supports (padding-top: calc(122vw - 250px)) {
  .hero-inner { padding-top: calc(122vw - 250px); }
}
@supports (padding-top: max(140px, 1px)) {
  .hero-inner { padding-top: max(140px, calc(min(122vw, 80vh) - 250px)); }
}
@supports (height: 1svh) {
  .hero-inner { padding-top: max(140px, calc(min(122vw, 80svh) - 250px)); }
}
.copy { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 6px; color: var(--gold-2); }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.eyebrow::after { transform: scaleX(-1); }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(54px, 15.5vw, 104px); line-height: 1.12; letter-spacing: 5px; margin-top: 4px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
/* 标题逐字入场，每个字单独加金箔流光 */
.hero h1 .ch { display: inline-block; animation: char-in .9s calc(.25s + var(--i) * .09s) var(--ease) both, shine 3.4s calc(1.5s + var(--i) * .09s) ease-in-out infinite; }
@keyframes char-in { from { opacity: 0; transform: translateY(36px) scale(1.25); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.sub { font-family: var(--serif); font-weight: 900; font-size: clamp(21px, 6vw, 34px); letter-spacing: 5px; line-height: 1.3; color: #fff; text-indent: 5px;
  animation: fade-up .9s .75s var(--ease) both; }
.launch { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--gold-2); border: 1px solid rgba(233,201,131,.55); background: rgba(13,22,64,.55);
  animation: fade-up .9s .85s var(--ease) both; }
.launch i { width: 6px; height: 6px; background: var(--gold-2); transform: rotate(45deg); }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============ 下载卡片 ============ */
.decree-wrap { position: relative; margin: 30px auto 0; max-width: 520px; padding: 1.5px; border-radius: 20px; overflow: hidden; overflow: clip; isolation: isolate;
  background: rgba(201,163,90,.5); box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); animation: fade-up 1s 1s var(--ease) both; }
.decree-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 230deg, rgba(255,242,200,.2) 270deg, var(--gold-hi) 320deg, var(--gold-3) 345deg, transparent 360deg);
  animation: spin 4.5s linear infinite; }
.decree { position: relative; border-radius: 18.5px; padding: 24px 20px 20px; color: var(--text); background: linear-gradient(180deg, #fffdf7, #f5f1e6); }
.decree::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,163,90,.45); border-radius: 13px; pointer-events: none; }
.decree .dia { position: absolute; width: 8px; height: 8px; background: var(--gold-3); transform: rotate(45deg); }
.decree .dia.a { left: 50%; top: 2px; margin-left: -4px; }
.decree .dia.b { left: 50%; bottom: 2px; margin-left: -4px; }
.d-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.d-title { min-width: 0; }
.d-title b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--ink); letter-spacing: 1px; }
.d-title span { font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.chips span { font-size: 12px; color: var(--navy); background: rgba(31,49,132,.06); border: 1px solid rgba(31,49,132,.12); border-radius: 999px; padding: 3px 10px; }
.chips b { font-weight: 600; }
.cta-wrap { position: relative; }
.cta-wrap::before, .cta-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid rgba(214,173,96,.75); animation: ring 2.4s ease-out infinite; pointer-events: none; }
.cta-wrap::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.08, 1.35); opacity: 0; } }
.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 18px; border-radius: 999px;
  font-family: var(--serif); font-weight: 900; font-size: clamp(17px, 4.9vw, 20px); letter-spacing: 2px; white-space: nowrap; transition: transform .15s ease; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.98); }
.btn.primary { color: #fff; text-shadow: 0 1px 2px rgba(110,70,10,.45);
  background: linear-gradient(180deg, #e3bd6f 0%, #c39143 48%, #a8772e 52%, #b88a3e 100%); border: 1.5px solid #f6e1a8;
  box-shadow: 0 10px 26px rgba(168,119,46,.45), inset 0 1px 0 rgba(255,255,255,.5); }
/* 扫光用 transform 平移（GPU 合成），不改 left，避免每帧重新排版 */
.btn.primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%); animation: gleam 3s 1.6s ease-in-out infinite; }
@keyframes gleam { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.btn.disabled { color: var(--muted); background: #f1f2f6; border: 1.5px dashed #cfd2de; pointer-events: none; }
.hint { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
.hint b { color: var(--navy); font-weight: 600; }
.sha { margin-top: 8px; font-size: 11.5px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.sha code { font-family: ui-monospace, Consolas, monospace; color: var(--text); }
.d-qr { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; z-index: 4; width: 30px; margin-left: -15px; color: rgba(233,201,131,.8); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* 八角徽章 */
.oct { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; color: var(--gold-2);
  clip-path: var(--oct); background: linear-gradient(135deg, #f6e1a8, #a8772e 60%, #e9c983); }
.oct::before { content: ""; position: absolute; inset: 2px; clip-path: var(--oct); background: radial-gradient(circle at 35% 28%, #3a51b5, var(--navy-deep) 75%); }
.oct svg { position: relative; width: 22px; height: 22px; }

/* ============ 深色区：全部版本 / 亮点 ============ */
.royal { position: relative; color: #e8eaf6; padding: 64px 0 96px; overflow: hidden; overflow: clip;
  background: radial-gradient(600px 400px at 90% 10%, rgba(44,67,168,.5), transparent 70%), radial-gradient(500px 500px at 0% 80%, rgba(44,67,168,.35), transparent 70%), linear-gradient(180deg, var(--royal), var(--royal-2)); }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255,236,190,.8); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; display: block; }

.sec-head { text-align: center; margin-bottom: 26px; }
.sec-head h2 { display: inline-flex; align-items: center; gap: 14px; margin-top: 4px; font-family: var(--serif); font-weight: 900; font-size: 27px; letter-spacing: 6px; color: var(--navy); }
.sec-head h2::before, .sec-head h2::after { content: ""; width: 40px; height: 9px;
  background: linear-gradient(90deg, transparent, var(--gold-3)) left center / calc(100% - 10px) 1px no-repeat, linear-gradient(45deg, transparent 32%, var(--gold-3) 32% 68%, transparent 68%) right center / 9px 9px no-repeat; }
.sec-head h2::after { transform: scaleX(-1); }
.royal .sec-head h2 { color: #fff; }

.apps { display: grid; gap: 12px; }
.app { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(233,201,131,.22);
  transition: transform .3s var(--ease), border-color .3s, opacity .8s var(--ease); }
.app:hover { border-color: rgba(233,201,131,.55); }
.app.mine { border-color: rgba(233,201,131,.7); box-shadow: 0 0 0 1px rgba(233,201,131,.35), 0 12px 30px rgba(0,0,0,.3); }
.app .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app .name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: 15.5px; color: #fff; }
.badge { font-size: 10.5px; font-weight: 600; color: #3a2606; padding: 0 7px; border-radius: 4px; line-height: 18px; letter-spacing: 0; font-family: var(--sans); background: linear-gradient(90deg, #f6e1a8, #d1a85c); }
.badge.me { color: #fff; background: rgba(255,255,255,.18); }
.decree .badge.me { color: #fff; background: var(--navy); }
.app .desc { font-size: 12.5px; color: rgba(232,234,246,.65); }
.app .get { flex: none; font-size: 13.5px; font-weight: 600; padding: 7px 15px; border-radius: 999px; color: #3a2606; background: linear-gradient(180deg, #f3d996, #c9a35a); }
.app .get.off { color: rgba(232,234,246,.5); background: transparent; border: 1px dashed rgba(232,234,246,.25); pointer-events: none; }

.feats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 44px; border-top: 1px solid rgba(233,201,131,.2); border-left: 1px solid rgba(233,201,131,.2); }
.feat { text-align: center; padding: 22px 8px; border-right: 1px solid rgba(233,201,131,.2); border-bottom: 1px solid rgba(233,201,131,.2); }
.feat b { display: block; font-family: var(--serif); font-weight: 900; font-size: 34px; letter-spacing: 3px; line-height: 1.2; }
.feat span { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(232,234,246,.65); letter-spacing: 1px; }

/* ============ 浅色区 ============ */
.pearl { padding: 40px 0 10px; background: radial-gradient(700px 500px at 100% 0%, rgba(222,229,250,.9), transparent 70%), var(--pearl); }
.grid2 { display: grid; gap: 16px; }
.card { position: relative; background: #fff; border-radius: 18px; padding: 22px 20px; box-shadow: 0 14px 40px rgba(30,40,90,.07); border: 1px solid rgba(201,163,90,.28); }
.card h3 { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-weight: 900; font-size: 19px; color: var(--navy); letter-spacing: 2px; margin-bottom: 14px; }

.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold-line), rgba(201,163,90,.15)); }
.timeline li { position: relative; margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 7px; width: 9px; height: 9px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-2), var(--gold-1)); box-shadow: 0 0 0 3px #fff; }
.v-label { display: inline-block; font-size: 12px; color: var(--gold-1); border: 1px solid var(--gold-line); border-radius: 4px; padding: 0 6px; margin-bottom: 12px; }

.steps { list-style: none; counter-reset: s; margin-bottom: 6px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 14px; color: #fff; background: radial-gradient(circle at 35% 30%, #3a51b5, var(--navy-deep)); border: 1.5px solid var(--gold-line); }
.steps li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 1px; background: rgba(201,163,90,.45); }
.steps li:last-child { padding-bottom: 4px; }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--ink); font-size: 14.5px; }
.steps span { color: var(--muted); font-size: 13px; }

details { border-top: 1px dashed rgba(31,49,132,.14); }
.faq details:first-of-type { border-top: 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; font-weight: 600; color: var(--ink); font-size: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1;
  color: var(--gold-1); border: 1px solid rgba(201,163,90,.5); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p, details .req { padding: 0 0 12px; font-size: 14px; }
details a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.req div { display: flex; gap: 10px; margin: 4px 0; }
.req dt { flex: none; width: 60px; font-weight: 600; color: var(--navy); }

.mirrors { list-style: none; }
.mirrors li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: var(--pearl); border: 1px solid rgba(31,49,132,.08); }
.mirrors .host { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.mirrors .cur { font-family: var(--sans); font-size: 11px; color: #fff; background: var(--gold-3); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.mini { flex: none; font-size: 13px; padding: 5px 12px; border-radius: 999px; color: var(--navy); border: 1px solid rgba(31,49,132,.3); background: #fff; }
.mini.go { color: #fff; background: var(--navy); border-color: var(--navy); }
.lead { font-size: 13px; color: var(--muted); margin: -6px 0 4px; }

/* ============ 页脚舞台 ============ */
.stage { position: relative; overflow: hidden; text-align: center; padding: 30px 0 96px;
  background: radial-gradient(60% 50% at 50% 70%, rgba(255,255,255,1), rgba(255,255,255,0) 70%), radial-gradient(40% 18% at 50% 88%, rgba(201,163,90,.25), transparent 70%), var(--pearl); }
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .stage { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.stage img { width: min(460px, 92%); margin: 0 auto; mix-blend-mode: multiply; }
.stage p { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.petals { position: absolute; inset: 0; pointer-events: none; }
.petals i { position: absolute; top: -20px; width: 14px; height: 10px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffd9e3, #f29bb2); opacity: .85; animation: fall linear infinite; }
@keyframes fall { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-140px, 640px) rotate(540deg); } }

/* 安装帮助始终显示在右下角，方便随时打开。 */
.help { position: fixed; right: 14px; bottom: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600;
  background: rgba(13,22,64,.95); border: 1px solid rgba(233,201,131,.45);
  box-shadow: 0 6px 18px rgba(13,22,64,.3); }
@supports (bottom: env(safe-area-inset-bottom)) {
  .help { bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.help svg { width: 18px; height: 18px; color: var(--gold-2); }

/* 区块滚出视口时暂停其中的动画 */
.off *, .off *::before, .off *::after { animation-play-state: paused !important; }

/* 滚动浮现。页面默认可读，只有脚本确认 IntersectionObserver 可用后
   才隐藏待入场元素，避免旧浏览器或脚本异常时正文整页消失。 */
.rv { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready .rv:not(.in) { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; }

/* 微信 / QQ 引导遮罩 */
.inapp { position: fixed; inset: 0; z-index: 100; background: rgba(9,14,40,.92); color: #fff; padding: 18px 22px; display: none; }
.inapp.show { display: block; }
.inapp .arrow { position: absolute; top: 8px; right: 18px; width: 110px; height: 110px; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
.inapp .box { margin-top: 120px; }
.inapp h3 { font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: 2px; }
.inapp ol { margin-top: 16px; list-style: none; counter-reset: s; }
.inapp li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-size: 17px; margin: 14px 0; }
.inapp li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1)); color: var(--royal); }
.inapp li b { color: var(--gold-2); }
.inapp .why { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.65); }
.inapp .close { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 20px; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); opacity: 0; z-index: 120; background: rgba(13,22,64,.92); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* inset landed after top/right/bottom/left in older mobile WebViews. Keep
   explicit edges as a fallback for full-bleed overlays and pseudo-elements. */
.hero-art::after, .dust, .stars, .petals, .inapp {
  top: 0; right: 0; bottom: 0; left: 0;
}
.frame { top: 10px; right: 10px; bottom: 10px; left: 10px; }
.frame::before { top: 5px; right: 5px; bottom: 5px; left: 5px; }
.decree::before { top: 6px; right: 6px; bottom: 6px; left: 6px; }
.cta-wrap::before, .cta-wrap::after, .btn.primary::after { top: 0; right: 0; bottom: 0; left: 0; }

/* ============ 平板 / 电脑 ============ */
@media (min-width: 720px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(4, 1fr); }
  .grid2 { display: block; columns: 2; column-gap: 16px; }
  .grid2 > .card { break-inside: avoid; margin-bottom: 16px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  .hero-art { right: auto; width: 60%; height: 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, #000 72%, transparent 100%); }
  .hero-art img { height: 100%; object-position: 62% 22%; }
  .hero-art::after { background: linear-gradient(90deg, rgba(13,22,64,0) 45%, rgba(13,22,64,.7) 80%, var(--royal) 100%), linear-gradient(180deg, rgba(13,22,64,0) 70%, rgba(13,22,64,.6) 100%); }
  .rays { width: 110%; left: -40%; top: -60%; }
  .bar { padding: 30px 48px 0; }
  .brand b { font-size: 28px; }
  .hero-inner { flex: 1; display: flex; align-items: center; padding: 30px 0 70px; }
  .hero-inner .wrap { display: grid; grid-template-columns: 47% 53%; }
  .hero-main { grid-column: 2; }
  .copy { text-align: left; }
  .hero h1 { font-size: clamp(64px, 6.6vw, 100px); white-space: nowrap; }
  .eyebrow::before { display: none; }
  .sub { text-indent: 0; }
  .decree-wrap { margin: 30px 0 0; max-width: 560px; }
  .decree { display: grid; grid-template-columns: 1fr auto; gap: 0 22px; padding: 26px; }
  .d-qr { display: block; grid-column: 2; grid-row: 1 / span 5; align-self: center; text-align: center; padding-left: 22px; border-left: 1px dashed rgba(201,163,90,.6); }
  .d-qr img { width: 140px; height: 140px; padding: 8px; background: #fff; border: 1.5px solid var(--gold-line); }
  .d-qr p { margin-top: 8px; font-size: 13px; color: var(--navy); font-weight: 600; letter-spacing: 1px; }
  .hint, .sha { text-align: left; }
  .apps { grid-template-columns: repeat(4, 1fr); }
  .app { flex-direction: column; text-align: center; padding: 26px 16px 20px; }
  .app .name { justify-content: center; }
  .app .get { margin-top: 6px; }
  .royal { padding: 90px 0 130px; }
  .pearl { padding-top: 60px; }
  .stage { padding-bottom: 40px; }
}

/* 手机保留标题流光，其他循环装饰保持静态，减少持续绘制。 */
@media (max-width: 719px) {
  .rays,
  .decree-wrap::before,
  .cta-wrap::before,
  .cta-wrap::after,
  .stars i,
  .petals i,
  .scroll-cue,
  .btn.primary::after { animation: none; }
  .cta-wrap::before,
  .cta-wrap::after { opacity: .35; transform: none; }
  .stars i { opacity: .45; }
  .petals i { display: none; }
  .hero h1 .ch { animation: char-in .9s calc(.25s + var(--i) * .09s) var(--ease) both; }
  .shine { animation: none; background-position: 50% 0; }
}

/* Five Chinese glyphs plus tracking can wrap on 320px screens. Shrink the
   title only at the narrowest width and keep it as one visual lockup. */
@media (max-width: 380px) {
  .hero h1 { white-space: nowrap; font-size: 46px; letter-spacing: 2px; }
}

/* 横屏触屏设备同样减少循环装饰。 */
@media (pointer: coarse) and (max-width: 1023px) {
  html { scroll-behavior: auto; }
  .rays,
  .decree-wrap::before,
  .cta-wrap::before,
  .cta-wrap::after,
  .stars i,
  .petals i,
  .scroll-cue,
  .btn.primary::after,
  .shine { animation: none; }
  .cta-wrap::before,
  .cta-wrap::after { opacity: .35; transform: none; }
  .stars i { opacity: .45; }
  .petals i { display: none; }
  .hero-art img, .frame, .decree-wrap, .sub, .launch {
    animation-duration: .5s;
    animation-delay: 0s;
  }
  .hero h1 .ch {
    animation-name: char-in;
    animation-duration: .5s;
    animation-delay: calc(.05s + var(--i) * .04s);
  }
}

/* 手机上以一层完整标题承载流光，逐字入场结束后再显示。 */
@media (max-width: 719px), (pointer: coarse) and (max-width: 1023px) {
  .hero h1 .ch { animation: char-in .9s calc(.25s + var(--i) * .09s) var(--ease) both; }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 { position: relative; }
    .hero h1::after { content: attr(aria-label); position: absolute; inset: 0; pointer-events: none;
      background: var(--foil); background-size: 300% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
      opacity: 0; animation: title-glow-in .2s 1.6s forwards, shine 6s 1.6s ease-in-out infinite; }
  }
}
@keyframes title-glow-in { to { opacity: 1; } }
.hero.dust-off h1 .ch, .hero.dust-off h1::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1::after { display: none; }
  .rv { opacity: 1; transform: none; }
}
