/* =========================================================
   主题：Lilac Crystal · 丁香水晶
   与主图同色系：雾紫白底 + 紫晶渐变 + 玻璃质感 + 少量香槟金
   配色全部集中在 :root，可整体换色
   ========================================================= */
:root {
  --bg: #efeafd;
  --bg-deep: #e2d9fb;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(124, 92, 230, 0.14);
  --line-2: rgba(124, 92, 230, 0.26);
  --text: #2a2160;
  --muted: #6d66a0;
  --faint: #a39dc8;

  --violet-1: #5b3fd9;
  --violet-2: #8a63ff;
  --violet-3: #b79bff;
  --pearl: #f7f3ff;
  --brand: linear-gradient(120deg, var(--violet-1) 0%, var(--violet-2) 55%, var(--violet-3) 100%);
  --crystal: conic-gradient(from var(--angle), #ffffff, #cbb9ff, #8a63ff, #f3d7a6, #ffffff, #b79bff, #ffffff);
  --shadow: 0 24px 60px -28px rgba(74, 46, 180, 0.45);

  --radius-lg: 28px;
  --radius: 18px;
  --col: min(100% - 32px, 520px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-latin: "Unbounded", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 34px; height: 34px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--violet-1); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 10px; }

/* ---------- 背景氛围：流动渐变 + 极光 + 丝绸光带 ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(80% 55% at 15% 0%, #f9f2ff 0%, transparent 60%),
    radial-gradient(70% 50% at 100% 30%, #d6ccff 0%, transparent 65%),
    radial-gradient(60% 45% at 0% 75%, #f4d9f2 0%, transparent 65%),
    radial-gradient(70% 50% at 90% 100%, #c9d8ff 0%, transparent 65%),
    linear-gradient(165deg, #f4effe 0%, #e9e0fd 40%, #e3dafc 70%, #ddd3fb 100%); }
.aurora { position: absolute; inset: -30%; opacity: .55; filter: blur(60px);
  background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, rgba(138,99,255,.35) 60deg, rgba(255,170,220,.3) 120deg,
    transparent 170deg, rgba(120,170,255,.3) 240deg, rgba(183,155,255,.35) 300deg, transparent 360deg);
  animation: aurora 40s linear infinite; }
@keyframes aurora { to { transform: rotate(360deg); } }
.ambient::before, .ambient::after { content: ""; position: absolute; left: -20%; right: -20%; height: 46vh; border-radius: 50%;
  border-top: 1px solid rgba(255,255,255,.9); background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 60%);
  rotate: -8deg; animation: silk 18s ease-in-out infinite alternate; }
.ambient::before { top: 12vh; }
.ambient::after { top: 58vh; rotate: 6deg; animation-delay: -9s; opacity: .7; }
@keyframes silk { to { translate: 0 -4vh; } }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 22s var(--ease) infinite alternate; }
.orb-a { width: 46vmax; height: 46vmax; left: -20vmax; top: 4vh; background: radial-gradient(circle, rgba(160,128,255,.45) 0%, transparent 65%); }
.orb-b { width: 40vmax; height: 40vmax; right: -18vmax; top: 36vh; background: radial-gradient(circle, rgba(201,176,255,.55) 0%, transparent 65%); animation-delay: -8s; }
.orb-c { width: 30vmax; height: 30vmax; left: 25vw; bottom: -14vmax; background: radial-gradient(circle, rgba(243,215,166,.4) 0%, transparent 65%); animation-delay: -14s; }
.orb-d { width: 28vmax; height: 28vmax; left: 40vw; top: -10vmax; background: radial-gradient(circle, rgba(255,182,224,.4) 0%, transparent 65%); animation-delay: -4s; animation-duration: 28s; }
.grain { position: absolute; inset: -50%; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(6vw, -5vh, 0) scale(1.12); } }

/* ---------- 版心 ---------- */
.shell { width: var(--col); margin: 0 auto; padding-bottom: 32px; }

/* ① 公告 */
.notice { display: flex; align-items: center; gap: 10px; margin: max(12px, env(safe-area-inset-top)) 0 18px;
  padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(12px); box-shadow: 0 10px 30px -18px rgba(74,46,180,.4); }
.notice-badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 11px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.notice-badge .ic { stroke-width: 2; }
.notice-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.notice-marquee { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.notice-marquee span { padding-right: 48px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.notice:hover .notice-marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ② 中央大图位 */
.stage { position: relative; perspective: 1200px; }
.stage-halo { position: absolute; inset: 4% -3% -3%; z-index: -1; border-radius: 40%;
  background: radial-gradient(closest-side, rgba(138,99,255,.38), rgba(183,155,255,.18) 55%, transparent);
  filter: blur(24px); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .6; transform: scale(.97); } }
.stage-frame { position: relative; padding: 2px; border-radius: var(--radius-lg); background: var(--crystal);
  animation: spin 9s linear infinite; transform-style: preserve-3d; transition: transform .6s var(--ease);
  box-shadow: 0 40px 80px -36px rgba(74,46,180,.6), 0 0 0 6px rgba(255,255,255,.35); }
@keyframes spin { to { --angle: 360deg; } }
.stage-inner { position: relative; overflow: hidden; border-radius: calc(var(--radius-lg) - 2px); background: var(--pearl); }
.stage-img { width: 100%; height: auto; }
.stage-empty { aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, rgba(138,99,255,.05) 0 12px, transparent 12px 24px), linear-gradient(160deg, #fbf9ff, #e9e1fd); }
.stage-empty[hidden] { display: none; }
.stage-empty .ic-lg { stroke: url(#g-holo); width: 46px; height: 46px; stroke-width: 1.3; }
.stage-empty strong { color: var(--text); font-size: 17px; letter-spacing: .1em; }
.stage-empty span { font-size: 12px; }
.stage-sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.85) 45%, rgba(255,240,220,.5) 50%, transparent 65%);
  background-size: 250% 100%; background-position: var(--sx, 120%) 0; transition: background-position .2s; }
.corner { position: absolute; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--glass-strong); backdrop-filter: blur(8px); border: 1px solid #fff; transform: translateZ(30px); }
.corner svg { width: 15px; height: 15px; stroke: url(#g-holo); stroke-width: 2; }
.c-tl { top: 12px; left: 12px; }
.c-br { bottom: 12px; right: 12px; }
.stage-frame.has-image .corner { display: none; }

/* ③ 标题 + 主入口 */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--font-latin); letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.eyebrow .ic { stroke: url(#g-holo); width: 14px; height: 14px; }
.closing h1 { margin-top: 14px; font-size: clamp(30px, 8.4vw, 42px); line-height: 1.18; letter-spacing: .04em; font-weight: 800; color: var(--text); }
.holo-text { background: linear-gradient(110deg, var(--violet-1), var(--violet-2) 40%, #c38bff 70%, var(--violet-1)); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 100%; animation: holo-shift 6s ease-in-out infinite alternate; }
@keyframes holo-shift { to { background-position: 100% 0; } }
.lead { margin-top: 12px; color: var(--muted); font-size: 14px; }

.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.btn { min-width: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 10px 14px 10px 10px; border-radius: var(--radius); text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.btn-ic svg { width: 20px; height: 20px; stroke-width: 1.9; }
.btn-label { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.btn-label strong { font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.btn-label small { font: 600 9.5px/1.4 var(--font-latin); letter-spacing: .26em; opacity: .7; margin-top: 3px; }
.btn-arrow { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
/* 扫光 */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }

.btn-primary { color: #fff; background: var(--brand); background-size: 160% 100%;
  box-shadow: 0 16px 34px -14px rgba(91,63,217,.75), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 6px rgba(50,20,140,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(91,63,217,.85), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-primary .btn-ic { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); }
.btn-primary .btn-ic svg { stroke: #fff; }

.btn-ghost { color: var(--text); background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.5)); border: 1px solid #fff;
  backdrop-filter: blur(10px); box-shadow: 0 14px 30px -18px rgba(74,46,180,.45); }
.btn-ghost::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: var(--crystal); animation: spin 6s linear infinite; opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost:hover::before { opacity: 1; }
.btn-ghost .btn-ic { background: #f1ebff; border: 1px solid var(--line); }
.btn-ghost .btn-ic svg { stroke: url(#g-holo); }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.55); pointer-events: none; animation: ripple .65s ease-out forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* 页脚 */
.footer { margin-top: 48px; padding: 26px 0 10px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; letter-spacing: .08em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.brand-mark svg { width: 16px; height: 16px; stroke: url(#g-holo); stroke-width: 1.8; }
.footer p { margin-top: 10px; }
.footer small { display: block; margin-top: 6px; color: var(--faint); font-family: var(--font-latin); letter-spacing: .12em; }

/* 下载弹窗 */
dialog { width: min(100% - 32px, 400px); padding: 30px 22px 22px; border-radius: 26px; color: var(--text); text-align: center;
  background: linear-gradient(170deg, #ffffff, #efe9ff); border: 1px solid #fff; box-shadow: 0 40px 100px -30px rgba(60,30,160,.6); }
dialog[open] { animation: pop .45s var(--ease); }
dialog::backdrop { background: rgba(60,40,140,.25); backdrop-filter: blur(8px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1ebff; color: var(--muted); }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-mark { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; background: var(--brand); box-shadow: 0 12px 26px -12px rgba(91,63,217,.8); }
.dialog-mark svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 1.7; }
dialog h2 { margin-top: 16px; font-size: 21px; letter-spacing: .06em; }
.dialog-sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
.download-options { display: grid; gap: 10px; margin-top: 22px; }
.download-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; text-align: left;
  background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.download-option:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 12px 24px -16px rgba(74,46,180,.5); }
.download-option > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.download-option strong { font: 600 16px/1.3 var(--font-latin); letter-spacing: .04em; }
.download-option small { color: var(--muted); font-size: 12px; }
.opt-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(150deg, #f6f1ff, #e6dcff); }
.opt-ic svg { width: 22px; height: 22px; stroke: url(#g-holo); stroke-width: 1.7; }
.opt-go { width: 16px; height: 16px; color: var(--faint); }
.download-option.is-unavailable { opacity: .65; }
.dialog-feedback { min-height: 20px; margin-top: 12px; color: var(--violet-1); font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; top: 20px; z-index: 60; transform: translate(-50%, -20px); opacity: 0; padding: 11px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(255,255,255,.92); color: var(--text); backdrop-filter: blur(12px); border: 1px solid #fff; box-shadow: 0 14px 34px -16px rgba(74,46,180,.6);
  transition: opacity .35s, transform .35s var(--ease); white-space: nowrap; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 平板 / 桌面 */
@media (min-width: 640px) {
  :root { --col: min(100% - 48px, 560px); }
}

@media (max-width: 430px) {
  .cta-pair .btn-arrow { display: none; }
  .cta-pair .btn { padding-right: 12px; }
}
@media (max-width: 360px) {
  .btn-ic { display: none; }
  .btn { padding-left: 14px; }
  .btn-label strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .notice-marquee { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 字体个性化 ---------- */
.closing h1, dialog h2, .stage-empty strong {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .06em;
}
.closing h1 { font-size: clamp(32px, 9vw, 46px); line-height: 1.22;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 14px 30px rgba(91,63,217,.18); }
.btn-label strong, .btn.sm, .notice-badge { font-weight: 700; letter-spacing: .08em; }
.eyebrow { letter-spacing: .18em; font-weight: 500; }
.btn-label small { letter-spacing: .16em; font-weight: 500; }
.footer small { letter-spacing: .08em; font-size: 10px; }
.download-option strong { font-weight: 500; font-size: 15px; }

/* ---------- 滚动公告（纯文字，紫晶渐变底，白字清晰） ---------- */
.notice { position: relative; overflow: hidden; padding: 0; height: 40px; gap: 0;
  background: linear-gradient(110deg, #5b3fd9 0%, #7c55f5 45%, #a07dff 75%, #c39cff 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 28px -14px rgba(91,63,217,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.notice::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); animation: notice-sheen 5s ease-in-out infinite; }
@keyframes notice-sheen { 60%, 100% { transform: translateX(100%); } }
.notice-track { height: 100%; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.notice-marquee { animation-duration: 20s; }
.notice-marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-shadow: 0 1px 2px rgba(40,15,120,.35); }
.notice-sep { width: 12px; height: 12px; stroke: #ffe3b0; stroke-width: 2; fill: rgba(255,227,176,.6); }
.closing h1 .holo-text { text-shadow: none; filter: drop-shadow(0 10px 18px rgba(91,63,217,.22)); }

/* ---------- 首屏布局：公告 + 大图 + 注册/下载 一屏放下 ---------- */
:root { --chrome: 200px; }   /* 公告 + 底部按钮栏 + 间距；大图占剩余高度 */
.notice { margin-bottom: 14px; }
.stage-frame { width: fit-content; max-width: 86%; margin-inline: auto; }
.stage-img { width: auto; max-width: 100%; max-height: calc(100vh - var(--chrome)); max-height: calc(100svh - var(--chrome)); margin-inline: auto; }
.stage-empty { width: min(var(--col), calc((100svh - var(--chrome)) * .8)); max-width: 100%; }
.footer { margin-top: 40px; }
@media (min-width: 640px) { :root { --col: min(100% - 48px, 480px); } }

/* =========================================================
   背景装饰层
   ========================================================= */
.notice { margin-bottom: 22px; }
:root { --chrome: 208px; }
.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* 光环轨道 */
.ring { position: absolute; left: 50%; width: min(150vw, 1100px); aspect-ratio: 1; translate: -50% 0;
  fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1; animation: ring-breathe 14s ease-in-out infinite; }
.ring-1 { top: -6vh; rotate: -14deg; }
.ring-2 { top: 38vh; rotate: 10deg; stroke: rgba(138,99,255,.28); animation-delay: -7s; }
.ring-dot { fill: #fff; stroke: none; filter: drop-shadow(0 0 6px #fff); }
.ring-2 .ring-dot { fill: #b79bff; }
@keyframes ring-breathe { 50% { scale: 1.04; opacity: .7; } }

/* 漂浮水晶牌（手机端藏在两侧边缘，桌面端在左右空白处） */
.float-card { position: absolute; width: 74px; aspect-ratio: 5 / 7; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,255,255,.3)); border: 1px solid rgba(255,255,255,.95);
  backdrop-filter: blur(6px); box-shadow: 0 20px 40px -18px rgba(74,46,180,.45), inset 0 0 0 1px rgba(138,99,255,.12);
  animation: bob 9s ease-in-out infinite; }
.float-card svg { width: 28px; height: 28px; stroke: url(#g-holo); stroke-width: 1.5; }
.fc-1 { left: -30px; top: 20vh; --r: -16deg; }
.fc-2 { right: -28px; top: 44vh; --r: 14deg; width: 64px; animation-delay: -3s; }
.fc-3 { left: -24px; top: 72vh; --r: 10deg; width: 60px; animation-delay: -5s; }
.fc-4 { right: -34px; top: 82vh; --r: -10deg; animation-delay: -7s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(calc(var(--r) * -.4)); } }

/* 宝石 */
.gem { position: absolute; filter: drop-shadow(0 14px 18px rgba(91,63,217,.35)); animation: gem-float 8s ease-in-out infinite; }
.gem-a { width: 40px; height: 40px; right: 6vw; top: 9vh; --r: 18deg; }
.gem-b { width: 26px; height: 26px; left: 7vw; top: 56vh; --r: -22deg; animation-delay: -3s; opacity: .85; }
.gem-c { width: 32px; height: 32px; right: 12vw; bottom: 8vh; --r: -8deg; animation-delay: -5s; }
@keyframes gem-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) + 12deg)); } }

/* 闪烁星点 */
.twinkle { position: absolute; color: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); animation: twinkle 3.6s ease-in-out infinite; }
.t1 { width: 14px; height: 14px; left: 12vw; top: 14vh; }
.t2 { width: 10px; height: 10px; right: 18vw; top: 30vh; animation-delay: -1.2s; color: #d9c8ff; }
.t3 { width: 18px; height: 18px; left: 20vw; top: 64vh; animation-delay: -2.1s; }
.t4 { width: 9px; height: 9px; right: 8vw; top: 62vh; animation-delay: -.6s; color: #ffe1b5; }
.t5 { width: 12px; height: 12px; left: 46vw; top: 4vh; animation-delay: -2.8s; }
.t6 { width: 11px; height: 11px; right: 30vw; bottom: 16vh; animation-delay: -1.7s; color: #d9c8ff; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* 光点 */
.bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%); animation: bokeh 12s ease-in-out infinite; }
.b1 { width: 60px; height: 60px; left: 8vw; top: 34vh; }
.b2 { width: 34px; height: 34px; right: 22vw; top: 12vh; animation-delay: -4s; }
.b3 { width: 80px; height: 80px; right: 4vw; top: 70vh; animation-delay: -8s; opacity: .6; }
.b4 { width: 24px; height: 24px; left: 30vw; bottom: 6vh; animation-delay: -2s; }
.b5 { width: 44px; height: 44px; left: 60vw; top: 50vh; animation-delay: -6s; opacity: .5; }
@keyframes bokeh { 50% { transform: translate(10px, -20px) scale(1.2); opacity: .4; } }

@media (min-width: 900px) {
  .float-card { width: 112px; border-radius: 18px; }
  .float-card svg { width: 42px; height: 42px; }
  .fc-1 { left: calc(50% - 500px); top: 18vh; }
  .fc-2 { right: calc(50% - 480px); top: 30vh; width: 92px; }
  .fc-3 { left: calc(50% - 420px); top: 62vh; width: 96px; }
  .fc-4 { right: calc(50% - 520px); top: 70vh; }
  .gem-a { width: 64px; height: 64px; right: calc(50% - 360px); top: 12vh; }
  .gem-b { width: 40px; height: 40px; left: calc(50% - 340px); top: 44vh; }
  .gem-c { width: 52px; height: 52px; right: calc(50% - 400px); bottom: 12vh; }
}

/* 大图周围的前景装饰（压在边框上，增加层次） */
.stage-gem, .stage-card, .stage-star { position: absolute; pointer-events: none; z-index: 2; }
.sg-1 { width: 54px; height: 54px; right: 2%; top: -20px; filter: drop-shadow(0 16px 20px rgba(91,63,217,.4)); animation: gem-float 7s ease-in-out infinite; --r: 16deg; }
.stage-card { width: 50px; aspect-ratio: 5 / 7; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, #fff, rgba(255,255,255,.55)); border: 1px solid #fff; backdrop-filter: blur(6px);
  box-shadow: 0 16px 28px -12px rgba(74,46,180,.5); animation: bob 8s ease-in-out infinite; }
.stage-card svg { width: 20px; height: 20px; stroke: url(#g-holo); stroke-width: 1.8; }
.sc-1 { left: 0; bottom: 16%; --r: -14deg; }
.sc-2 { right: 0; top: 30%; --r: 12deg; width: 42px; animation-delay: -4s; }
.stage-star { color: #fff; filter: drop-shadow(0 0 6px #fff); animation: twinkle 3s ease-in-out infinite; }
.ss-1 { width: 16px; height: 16px; left: 4%; top: 8%; }
.ss-2 { width: 12px; height: 12px; right: 4%; bottom: 8%; animation-delay: -1.5s; }

/* =========================================================
   标题卡片 + 注册/下载 吸底 → 落入卡片
   ========================================================= */
.closing { position: relative; margin-top: 44px; padding: 30px 18px 96px; border-radius: var(--radius-lg); text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(183,155,255,.4), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.5));
  border: 1px solid #fff; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.closing::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  border: 1px solid rgba(138,99,255,.2); box-shadow: 0 0 0 26px rgba(138,99,255,.05), 0 0 0 52px rgba(138,99,255,.03); }
.closing-suits { display: inline-flex; gap: 14px; }
.closing-suits svg { width: 18px; height: 18px; stroke: url(#g-holo); stroke-width: 1.8; }
.closing .eyebrow { display: flex; justify-content: center; margin-top: 14px; }
.closing h1 { margin-top: 12px; font-size: clamp(28px, 8vw, 40px); line-height: 1.22; letter-spacing: .06em; color: var(--text); }
.closing .lead { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* 吸底按钮栏：sticky 实现；--p 由脚本按距离计算（0 = 吸底，1 = 已落入卡片） */
.cta-dock { --p: 0; position: sticky; z-index: 30; bottom: max(12px, env(safe-area-inset-bottom));
  margin: -92px calc(var(--p) * 10px) 0; padding: 8px; border-radius: 24px; isolation: isolate;
  animation: dock-in .9s .3s var(--ease) both; }
.cta-dock::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255,255,255,.68); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid #fff; box-shadow: 0 22px 50px -16px rgba(74,46,180,.55);
  opacity: calc(1 - var(--p)); transform: scale(calc(1 + var(--p) * .04)); }
.cta-dock .cta-pair { margin-top: 0; }
.cta-dock.is-docked .btn-primary { animation: dock-pulse .7s var(--ease); }
@keyframes dock-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes dock-pulse { 40% { transform: scale(1.04); } }
.shell { padding-bottom: 0; }
.footer { margin-top: 36px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  .cta-dock { animation: none; }
}

/* 首屏：主视觉区占满一屏（给吸底按钮留位），标题卡片从第二屏开始 */
.stage { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); padding: 6px 0 112px; display: flex; flex-direction: column; justify-content: center; }
.closing { margin-top: 0; }

/* 前景装饰相对大图边框定位 */
.sg-1 { right: -20px; top: -24px; }
.sc-1 { left: -24px; bottom: 12%; }
.sc-2 { right: -22px; top: 26%; }
.ss-1 { left: -14px; top: 6%; }
.ss-2 { right: -12px; bottom: 6%; }

/* 避免部分移动端浏览器首帧不绘制大图 */
.stage-frame { transform-style: flat; }
.corner { transform: none; }

/* =========================================================
   第二轮装饰：主图更大、间距更紧，周围空白处加层次
   ========================================================= */
:root { --chrome: 196px; }
.notice { margin-bottom: 16px; }
.stage { padding: 4px 0 102px; justify-content: center; }
.stage-wrap { position: relative; width: fit-content; max-width: 92%; margin-inline: auto; }
.stage-frame { position: relative; z-index: 1; max-width: 100%; }
.stage-halo { inset: 0 -10% 80px; }

/* ---- 大图背后 ---- */
.stage-back { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rays { position: absolute; left: 50%; top: 45%; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 72%); mask: radial-gradient(closest-side, #000 20%, transparent 72%);
  opacity: .55; animation: spin-slow 80s linear infinite; }
@keyframes spin-slow { to { rotate: 360deg; } }
.orbit { position: absolute; left: 50%; top: 46%; width: 150%; aspect-ratio: 1; translate: -50% -50%; overflow: visible;
  fill: none; stroke: rgba(255,255,255,.8); stroke-width: .5; animation: spin-slow 60s linear infinite; }
.orbit .dash { stroke: rgba(138,99,255,.35); stroke-dasharray: 1.5 4; stroke-width: .6; }
.orbit .o-dot { fill: #fff; stroke: none; filter: drop-shadow(0 0 3px #fff); }
.orbit .o-dot-2 { fill: #b79bff; }
.back-card { position: absolute; inset: 5% 2%; border-radius: var(--radius-lg); display: flex; align-items: flex-start; padding: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(214,200,255,.45)); border: 1px solid #fff;
  box-shadow: 0 30px 60px -30px rgba(74,46,180,.55); backdrop-filter: blur(4px); }
.back-card svg { width: 22px; height: 22px; stroke: url(#g-holo); stroke-width: 1.8; }
.bc-l { transform: translateX(-11%) rotate(-8deg); animation: fan-l 7s ease-in-out infinite; }
.bc-r { transform: translateX(11%) rotate(8deg); justify-content: flex-end; animation: fan-r 7s ease-in-out infinite; }
@keyframes fan-l { 50% { transform: translateX(-13%) rotate(-10deg); } }
@keyframes fan-r { 50% { transform: translateX(13%) rotate(10deg); } }

/* ---- 大图前景 ---- */
.stage-front { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sg-1 { width: 54px; height: 54px; right: -22px; top: -22px; }
.sg-2 { width: 30px; height: 30px; left: -16px; top: 34%; --r: -24deg; animation: gem-float 9s ease-in-out infinite; animation-delay: -3s; filter: drop-shadow(0 10px 14px rgba(91,63,217,.4)); }
.sg-3 { width: 38px; height: 38px; right: -14px; bottom: -14px; --r: 8deg; animation: gem-float 8s ease-in-out infinite; animation-delay: -5s; filter: drop-shadow(0 12px 16px rgba(91,63,217,.4)); }
.sc-1 { left: -26px; bottom: 10%; }
.sc-2 { right: -24px; top: 24%; }
.chip { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, transparent 35%), conic-gradient(#8a63ff 0 12.5%, #fff 0 25%, #8a63ff 0 37.5%, #fff 0 50%, #8a63ff 0 62.5%, #fff 0 75%, #8a63ff 0 87.5%, #fff 0);
  box-shadow: 0 0 0 2px #fff, 0 10px 18px -6px rgba(74,46,180,.55); animation: chip-spin 10s ease-in-out infinite; }
.ch-1 { width: 26px; height: 26px; left: -10px; top: 6%; }
.ch-2 { width: 20px; height: 20px; right: 10%; bottom: -12px; animation-delay: -4s; }
@keyframes chip-spin { 50% { transform: translateY(-10px) rotate(180deg); } }
.ss-1 { left: -18px; top: 18%; }
.ss-2 { right: -16px; bottom: 30%; }
.ss-3 { width: 10px; height: 10px; left: 30%; top: -14px; animation-delay: -.8s; }
.ss-4 { width: 14px; height: 14px; right: -26px; top: 56%; animation-delay: -2.2s; color: #ffe1b5; }
.ss-5 { width: 12px; height: 12px; left: -24px; bottom: 30%; animation-delay: -1.1s; }

/* ---- 全局背景：丝带、点阵、更多小元素 ---- */
.silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.silk path { fill: none; stroke-linecap: round; animation: silk-move 16s ease-in-out infinite alternate; }
.silk-1 { fill: rgba(255,255,255,.35) !important; stroke: rgba(255,255,255,.9); stroke-width: 1; }
.silk-2 { stroke: rgba(138,99,255,.25); stroke-width: 1.2; animation-delay: -5s !important; }
.silk-3 { stroke: rgba(255,255,255,.85); stroke-width: 1; animation-delay: -8s !important; }
.silk-4 { stroke: rgba(255,200,230,.5); stroke-width: 1; animation-delay: -3s !important; }
@keyframes silk-move { to { transform: translateY(-24px); } }
.dotgrid { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(138,99,255,.35) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(60% 45% at 50% 40%, transparent 30%, #000 75%); mask: radial-gradient(60% 45% at 50% 40%, transparent 30%, #000 75%); }
.gem-d { width: 22px; height: 22px; left: 4vw; top: 12vh; --r: 30deg; animation-delay: -6s; opacity: .8; }
.gem-e { width: 28px; height: 28px; right: 3vw; top: 40vh; --r: -16deg; animation-delay: -2s; }
.t7 { width: 12px; height: 12px; left: 6vw; top: 44vh; animation-delay: -.4s; }
.t8 { width: 16px; height: 16px; right: 6vw; top: 22vh; animation-delay: -1.9s; }
.t9 { width: 10px; height: 10px; left: 10vw; bottom: 22vh; animation-delay: -3.1s; color: #ffe1b5; }
.t10 { width: 13px; height: 13px; right: 5vw; bottom: 30vh; animation-delay: -2.4s; }
.glyph { position: absolute; width: 20px; height: 20px; stroke: rgba(138,99,255,.45); stroke-width: 1.6; animation: glyph 11s ease-in-out infinite; }
.g1 { left: 3vw; top: 30vh; }
.g2 { right: 4vw; top: 8vh; animation-delay: -3s; }
.g3 { left: 5vw; bottom: 14vh; animation-delay: -6s; }
.g4 { right: 3vw; top: 58vh; animation-delay: -8s; }
@keyframes glyph { 50% { transform: translateY(-18px) rotate(20deg); opacity: .5; } }

@media (min-width: 900px) {
  .gem-d { left: calc(50% - 460px); width: 30px; height: 30px; }
  .gem-e { right: calc(50% - 470px); width: 36px; height: 36px; }
  .glyph { width: 28px; height: 28px; }
  .g1 { left: calc(50% - 330px); } .g2 { right: calc(50% - 320px); } .g3 { left: calc(50% - 380px); } .g4 { right: calc(50% - 360px); }
  .t7 { left: calc(50% - 300px); } .t8 { right: calc(50% - 290px); } .t9 { left: calc(50% - 260px); } .t10 { right: calc(50% - 280px); }
}

/* 收紧首屏间距 + 减轻首帧绘制压力 */
:root { --chrome: 184px; }
.stage-wrap { max-width: 96%; }
.back-card { backdrop-filter: none; }
.stage { padding-bottom: 96px; }
.stage-wrap { max-width: 100%; }

/* 统一背景：body 不再铺纯色（否则会盖住渐变背景层），并阻止公告的上边距穿透导致顶部露出一条色带 */
body { background: transparent; }
.shell { display: flow-root; }

/* 隐藏页面滚动条（仍可正常滚动） */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* 主图可点击 */
.stage-frame[data-action] { cursor: pointer; }
.stage-frame[data-action]:active { scale: .99; }

/* =========================================================
   单屏布局（2026-11-24）：页面不滚动，主图 + 底部按钮容器占满一屏，
   滚动公告叠在主图顶部
   ========================================================= */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.shell { width: min(100%, 560px); height: 100vh; height: 100svh; padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
  display: grid; grid-template-rows: minmax(0, 1fr) auto; }
main { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); }

/* 主图区：填满按钮以上的全部高度 */
.stage { min-height: 0; height: 100%; padding: 6px 0 12px; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.stage-halo { inset: 2% 0 4%; }
/* 主图宽度占屏幕 92%；高度按图片比例，屏幕不够高时上下轻微裁切 */
.stage-wrap { width: 92%; max-width: none; aspect-ratio: var(--hero-ratio, 941 / 1672); max-height: 100%; }
.stage-frame { width: 100%; height: 100%; max-width: none; }
.stage-inner { height: 100%; }
.stage-img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.stage-empty { width: 100%; height: 100%; aspect-ratio: auto; }

/* 平板/电脑：不裁切，按可用高度等比缩放 */
@media (min-width: 600px) {
  .stage-wrap { width: min(92%, calc((100svh - 130px) * var(--hero-r, .5628))); }
}

/* 滚动公告叠在主图顶部 */
.stage-wrap > .notice { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; margin: 0; height: 36px;
  box-shadow: 0 10px 24px -10px rgba(60,30,160,.6), inset 0 1px 0 rgba(255,255,255,.45); }
.stage-wrap > .notice .notice-marquee span { font-size: 13px; }

/* 底部按钮容器：固定在屏幕底部区域，不再随滚动变化 */
.cta-dock { position: relative; bottom: auto; margin: 0; animation: dock-in .9s .2s var(--ease) both; }
.cta-dock::before { opacity: 1; transform: none; }

/* 前景装饰收进屏幕内，避免被裁掉一半 */
.sc-1 { left: -14px; }
.sc-2 { right: -14px; }
.sg-1 { right: -10px; top: -16px; z-index: 4; }

/* 触屏没有鼠标悬停，反光改为自动缓慢扫过 */
@media (hover: none) {
  .stage-sheen { animation: sheen-auto 7s ease-in-out infinite; }
  @keyframes sheen-auto { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
}

/* 手机：主图 96% 宽，按钮容器与主图同宽对齐 */
.stage-wrap { width: 96%; }
.cta-dock { margin: 0 2%; }
@media (min-width: 600px) { .stage-wrap { width: min(92%, calc((100svh - 130px) * var(--hero-r, .5628))); } }

/* ---- 单屏尺寸用明确计算，避免百分比高度失效把按钮挤出屏幕 ---- */
:root {
  /* 主图可用高度 = 屏幕高 - 上下留白(20) - 按钮容器(78) - 主图区上下间距(18) - 安全区 */
  --avail: calc(100vh - 116px);
  --hero-ih: 1.7768; /* 图片 高/宽，由脚本按实际图片写入 */
}
@supports (height: 100svh) {
  :root { --avail: calc(100svh - 116px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}
.stage { display: flex; align-items: center; justify-content: center; height: auto; }
/* 手机：宽度固定 96%，高度取「图片原比例高度」与「可用高度」中较小者，不够高时上下轻微裁切 */
.stage-wrap { width: 96%; aspect-ratio: auto; max-height: none;
  height: min(calc(min(100vw, 560px) * .96 * var(--hero-ih)), var(--avail)); }
/* 平板/电脑：按可用高度等比缩放，不裁切 */
@media (min-width: 600px) {
  .stage-wrap { width: min(92%, calc(var(--avail) / var(--hero-ih))); height: auto; aspect-ratio: var(--hero-ratio, 941 / 1672); }
}

/* 手机：主图高度直接占满按钮以上的可用高度（宽 96%），比例不一致时居中裁切边缘 */
@media (max-width: 599px) { .stage-wrap { height: var(--avail); } }

/* 按钮容器不做入场动画，保证任何情况下都立即可见 */
.cta-dock { animation: none; }

/* 手机：主图几乎占满宽度，前景小装饰只放四角，避免遮住主图内容 */
@media (max-width: 599px) {
  .sc-1 { left: -10px; bottom: -12px; width: 40px; }
  .sc-2, .sg-2, .ss-2, .ss-4, .ss-5 { display: none; }
  .sg-3 { right: -8px; bottom: -14px; width: 32px; height: 32px; }
  .ch-2 { right: 18%; bottom: -10px; }
}
