@property --stage-r {
  syntax: "<number>";
  inherits: true;
  initial-value: 214;
}

@property --stage-g {
  syntax: "<number>";
  inherits: true;
  initial-value: 189;
}

@property --stage-b {
  syntax: "<number>";
  inherits: true;
  initial-value: 133;
}

:root {
  color-scheme: dark;
  --bg: #080908;
  --text: #eee7d8;
  --accent: #d6bd85;
  --accent-rgb: 214, 189, 133;
  --stage-r: 214;
  --stage-g: 189;
  --stage-b: 133;
  --ambient-strength: 0.42;
  --glint: 0;
  --header-glint: 0;
  --timeline-progress: 0;
  --dial-rotation: 0deg;
  --cta-sweep: 0;
  --header-h: 76px;
  --side: clamp(28px, 4.2vw, 76px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
}

body[data-rarity="normal"] { --accent: #d8d3c8; --accent-rgb: 216, 211, 200; }
body[data-rarity="magic"] { --accent: #8da7ff; --accent-rgb: 141, 167, 255; }
body[data-rarity="rare"] { --accent: #e8c84d; --accent-rgb: 232, 200, 77; }
body[data-rarity="unique"] { --accent: #db7f32; --accent-rgb: 219, 127, 50; }
body[data-rarity="brand"] { --accent: #d6bd85; --accent-rgb: 214, 189, 133; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px; transform: translateY(-160%); border-radius: 8px;
  background: var(--text); color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

/* ── 顶部导航 ───────────────────────────────── */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  min-height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--side); border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(8, 9, 8, 0.76); backdrop-filter: blur(18px);
  transition: border-color 240ms ease;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px; width: max-content;
  color: #ead9ad; font-size: 15px; font-weight: 800; text-decoration: none;
}
.brand-copy { display: grid; gap: 1px; line-height: 1.05; }
.brand-name { font-size: 15px; }
.brand-kind {
  color: rgba(214, 189, 133, 0.72); font-size: 9px; font-weight: 750;
  letter-spacing: 0.12em; white-space: nowrap;
}
.brand-mark, .hero-mark { position: relative; display: inline-grid; place-items: center; }
.brand-mark { width: 38px; height: 38px; }
.brand-mark img { width: 34px; height: 34px; }

/* 顶部小 Logo 光晕：克制 */
.brand-glint {
  position: absolute; left: 73%; top: 30.5%; z-index: 2;
  width: 54%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,
    rgba(225, 253, 255, 0.9) 0 5%,
    rgba(85, 220, 242, 0.6) 9%,
    rgba(85, 220, 242, 0.18) 20%,
    rgba(85, 220, 242, 0.05) 34%,
    transparent 58%);
  opacity: calc(var(--header-glint) * 0.78);
  transform: translate(-50%, -50%) scale(calc(0.82 + var(--header-glint) * 0.18));
  filter: blur(calc(0.2px + var(--header-glint) * 0.5px));
  mix-blend-mode: screen;
}

/* Hero Logo 光晕：完整强度，多层 */
.hero-glint {
  position: absolute; left: 73%; top: 30.5%; z-index: 2;
  width: 54%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle,
      rgba(235, 253, 255, 1) 0 4%,
      rgba(160, 235, 250, 0.95) 7%,
      rgba(85, 220, 242, 0.82) 12%,
      rgba(85, 220, 242, 0.42) 24%,
      rgba(85, 220, 242, 0.14) 42%,
      transparent 66%);
  opacity: calc(var(--glint) * 0.94);
  transform: translate(-50%, -50%) scale(calc(0.72 + var(--glint) * 0.34));
  mix-blend-mode: screen;
}
/* 下载高潮外圈扩展 */
.scene-closing .hero-glint {
  transform: translate(-50%, -50%) scale(calc(0.72 + var(--glint) * 0.52));
}

.story-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.story-nav a {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  color: #77736b; font-size: 12px; text-decoration: none; transition: color 180ms ease;
}
.story-nav a > i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 transparent; transition: box-shadow 180ms ease;
}
.story-nav a.is-active { color: var(--accent); }
.story-nav a.is-active > i { box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8); }

.download-link {
  justify-self: end; min-width: 84px; min-height: 44px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid rgba(214, 189, 133, 0.36);
  border-radius: 999px; color: #e4d5af; font-size: 13px; font-weight: 700; text-decoration: none;
}

/* ── 时间轴舞台 ────────────────────────────── */

.timeline { height: 1127svh; position: relative; }
.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: linear-gradient(180deg, #090a09, #070807);
  isolation: isolate;
}

.stage::before {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(var(--stage-r), var(--stage-g), var(--stage-b), 0.025), transparent 42%),
    radial-gradient(circle at 74% 50%, rgba(var(--stage-r), var(--stage-g), var(--stage-b), 0.045), transparent 42vw);
  content: "";
}

/* ── 巨型罗盘刻度背景 ──────────────────────── */

.dial-field {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(980px, 96vw, 1380px); aspect-ratio: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: rgb(var(--stage-r), var(--stage-g), var(--stage-b));
}
.dial-frame { opacity: 0.10; transform: none; }
.dial-rotor {
  opacity: 0.09;
  transform: rotate(var(--dial-rotation));
  transform-origin: 400px 400px;
  will-change: transform;
  shape-rendering: geometricPrecision;
}

/* ── 环境光 ────────────────────────────────── */

.ambient-light {
  position: absolute; left: 48%; top: 16%; z-index: -1;
  width: 66vw; height: 70vh; border-radius: 50%; pointer-events: none;
  opacity: var(--ambient-strength);
  transform: translateZ(0) scale(calc(0.96 + var(--ambient-strength) * 0.05));
  background: radial-gradient(ellipse at center,
    rgba(var(--stage-r), var(--stage-g), var(--stage-b), 0.19) 0%,
    rgba(var(--stage-r), var(--stage-g), var(--stage-b), 0.07) 34%,
    transparent 72%);
  filter: blur(30px);
  will-change: opacity, transform, background;
}

/* ── 场景通用 ──────────────────────────────── */

.scene {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.scene[data-rarity="brand"] { --scene-r: 214; --scene-g: 189; --scene-b: 133; }
.scene[data-rarity="normal"] { --scene-r: 216; --scene-g: 211; --scene-b: 200; }
.scene[data-rarity="magic"] { --scene-r: 141; --scene-g: 167; --scene-b: 255; }
.scene[data-rarity="rare"] { --scene-r: 232; --scene-g: 200; --scene-b: 77; }
.scene[data-rarity="unique"] { --scene-r: 219; --scene-g: 127; --scene-b: 50; }

.scene-opening, .scene-closing {
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) var(--side) 48px;
  text-align: center;
}
.scene-opening::before, .scene-closing::before {
  position: absolute; width: min(56vw, 820px); aspect-ratio: 1;
  border: 1px solid rgba(214, 189, 133, 0.07); border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(214, 189, 133, 0.018), 0 0 0 180px rgba(214, 189, 133, 0.012);
  content: "";
}

/* ── 0: 品牌开场 ──────────────────────────── */

.opening-mark, .scene-closing > * { position: relative; z-index: 1; }
.hero-mark img { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.58)); }
.product-kicker {
  color: #c7ad70; font-size: 12px; font-weight: 750; letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(214, 189, 133, 0.16);
}
.opening-mark .product-kicker { margin: 28px 0 10px; }
h1 { margin: 0; color: #f0d99f; font-size: clamp(64px, 8.6vw, 138px); letter-spacing: -0.075em; line-height: 1; }
.scroll-cue {
  position: absolute; bottom: 34px; z-index: 2; min-width: 72px; min-height: 54px;
  display: grid; place-items: center; gap: 7px; color: #756f63; font-size: 11px;
}
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(#d6bd85, transparent); }

/* ── 1: 价值表达幕 ────────────────────────── */

.scene-value {
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) var(--side) 48px;
  text-align: center;
}
.value-copy {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
}
.value-label {
  margin: 0 0 12px;
  color: #9a917e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.value-copy h2 {
  margin: 0;
  color: #f0d99f;
  font-size: clamp(38px, 5.2vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1.12;
  max-width: 16em;
}
.value-sub {
  margin: 22px 0 0;
  color: #7a7467;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ── 物品场景 ─────────────────────────────── */

.scene-item {
  display: grid; grid-template-columns: minmax(220px, 0.52fr) minmax(700px, 1.48fr);
  align-items: center; gap: clamp(34px, 4vw, 86px);
  padding: calc(var(--header-h) + 5vh) var(--side) 5vh;
}

.story-copy { align-self: center; }
.rarity-index { margin: 0 0 42px; color: #59564f; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; }
.rarity-name { margin: 0 0 16px; color: rgb(var(--scene-r), var(--scene-g), var(--scene-b)); font-size: 14px; font-weight: 800; letter-spacing: 0.38em; }
.story-copy h2 {
  margin: 0; color: rgb(var(--scene-r), var(--scene-g), var(--scene-b));
  font-size: clamp(38px, 4.8vw, 74px); letter-spacing: -0.055em; line-height: 1.06;
  text-shadow: 0 0 34px rgba(var(--scene-r), var(--scene-g), var(--scene-b), 0.1);
}
.price-note { margin: 28px 0 0; color: rgb(var(--scene-r), var(--scene-g), var(--scene-b)); font-size: clamp(20px, 2vw, 30px); font-weight: 750; }
[data-part] { opacity: var(--part-opacity, 1); transform: translateY(var(--part-y, 0)); will-change: opacity, transform; }

/* ── 截图悬浮展台 ─────────────────────────── */

.capture {
  width: 100%; max-width: 1260px; aspect-ratio: 1.61; position: relative; margin: 0;
  overflow: hidden; border: 1px solid rgba(var(--scene-r), var(--scene-g), var(--scene-b), 0.42); border-radius: 18px;
  background-repeat: no-repeat; background-position: var(--capture-x, 50%) var(--capture-y, 49%);
  background-size: var(--capture-zoom, 151%) auto;
  transform: perspective(1200px)
    translate3d(0, var(--capture-lift, 0), 0)
    rotateX(var(--capture-tilt-x, 0deg))
    rotateY(var(--capture-tilt-y, 0deg))
    scale(var(--capture-scale, 1));
  transform-origin: 50% 58%;
  box-shadow:
    0 var(--capture-shadow-y, 44px) var(--capture-shadow-blur, 116px) rgba(0, 0, 0, var(--capture-shadow-alpha, 0.58)),
    0 0 var(--capture-glow-blur, 82px) rgba(var(--scene-r), var(--scene-g), var(--scene-b), var(--capture-glow-alpha, 0.12));
  will-change: opacity, transform;
}
.js .capture { background-image: var(--capture-image, none); }
.capture::before {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), inset 0 -70px 90px rgba(0, 0, 0, 0.18);
  content: ""; pointer-events: none;
}
.capture::after {
  position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.09), transparent 18% 76%, rgba(var(--scene-r), var(--scene-g), var(--scene-b), 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%);
  content: ""; pointer-events: none;
}
.capture-normal { background-image: url("assets/screenshots/normal.webp"); --capture-x: 45%; --capture-y: 35%; }
.capture-magic { background-image: url("assets/screenshots/magic.webp"); --capture-x: 41%; --capture-y: 26%; }
.capture-rare { background-image: url("assets/screenshots/rare.webp"); --capture-x: 41%; --capture-y: 26%; }
.capture-unique-belt { background-image: url("assets/screenshots/unique-belt.webp"); --capture-x: 49%; --capture-y: 19%; }
.capture-unique-focus { background-image: url("assets/screenshots/unique-focus.webp"); --capture-x: 51%; --capture-y: 18%; }

/* ── 7: 下载收尾 ──────────────────────────── */

.scene-closing { align-content: center; gap: 16px; }
.scene-closing .product-kicker { margin: 2px 0 -6px; }
.scene-closing h2 { margin: 8px 0 0; color: #f0d99f; font-size: clamp(52px, 7vw, 100px); letter-spacing: -0.065em; line-height: 1; }
.slogan-slot { margin: 4px 0 28px; color: #a09884; font-size: 14px; letter-spacing: 0.12em; font-weight: 500; }

.button-primary {
  position: relative;
  min-width: 240px; min-height: 56px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 28px; border: 1px solid #e7c779; border-radius: 10px;
  background: linear-gradient(135deg, #f2c762, #d99936); box-shadow: 0 16px 40px rgba(189, 126, 38, 0.2);
  color: #171109; font-size: 16px; font-weight: 850; text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
/* 按钮扫光：青蓝 → 香槟金，由 --cta-sweep 控制 */
.button-primary::after {
  position: absolute; inset: -2px; z-index: -1; border-radius: 12px;
  background: conic-gradient(
    from calc(var(--cta-sweep) * 360deg - 90deg),
    rgba(85, 220, 242, 0.7),
    rgba(214, 189, 133, 0.5),
    rgba(85, 220, 242, 0.7),
    rgba(214, 189, 133, 0.18),
    rgba(85, 220, 242, 0.7)
  );
  opacity: clamp(0, 1, calc(var(--cta-sweep) * 3) * calc(3 - var(--cta-sweep) * 3));
  content: ""; pointer-events: none;
  filter: blur(3px);
}

.trust-lines { margin-top: 20px; }
.trust-lines p {
  margin: 4px 0; color: #666159; font-size: 12px; letter-spacing: 0.04em; line-height: 1.6;
}

.release-line { margin: 2px 0 0; color: #726d63; font-size: 12px; }

/* ── 进度条 ────────────────────────────────── */

.timeline-progress {
  position: absolute; left: var(--side); right: var(--side); bottom: 14px; z-index: 20;
  height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.06); pointer-events: none;
}
.timeline-progress i {
  display: block; width: 100%; height: 100%; transform: scaleX(var(--timeline-progress)); transform-origin: left center;
  background: linear-gradient(90deg, #d6bd85, rgb(var(--stage-r), var(--stage-g), var(--stage-b)));
  box-shadow: 0 0 8px rgba(var(--stage-r), var(--stage-g), var(--stage-b), 0.35);
  will-change: transform;
}

/* ── 页脚 ──────────────────────────────────── */

.site-footer {
  min-height: 92px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 24px;
  padding: 20px var(--side); border-top: 1px solid rgba(214, 189, 133, 0.12);
  background: #060706; color: #666159; font-size: 11px;
}
.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; text-align: right; }

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 26px;
    text-align: center;
  }
  .site-footer p:last-child { justify-self: center; text-align: center; }
}

/* ── ≤1000px 窄桌面 ──────────────────────── */

@media (max-width: 1000px) {
  .scene-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 18px;
    padding: calc(var(--header-h) + 28px) var(--side) 22px;
  }
  .story-copy { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; }
  .story-copy, .capture { width: min(760px, 100%); justify-self: center; }
  .rarity-index { display: none; }
  .rarity-name, .story-copy h2, .price-note { margin: 0; }
  .story-copy h2 { font-size: clamp(32px, 5vw, 44px); }
  .capture { max-width: 760px; max-height: 56svh; }
  .value-copy h2 { font-size: clamp(32px, 4.4vw, 52px); }
  .dial-field { width: clamp(780px, 112vw, 1050px); }
}

/* ── ≤680px ────────────────────────────────── */

@media (max-width: 680px) {
  :root { --header-h: 64px; --side: 18px; }
  .site-header { grid-template-columns: 1fr auto; }
  .story-nav { display: none; }
  .product-kicker { font-size: 11px; letter-spacing: 0.1em; }
  .scene-item { min-height: auto; padding-block: calc(var(--header-h) + 48px) 64px; }
  .story-copy { grid-template-columns: 1fr auto; }
  .rarity-name { grid-column: 1 / -1; }
  .story-copy h2 { font-size: 34px; }
  .price-note { font-size: 18px; }
  .capture { aspect-ratio: 1.45; border-radius: 10px; --capture-zoom: 170%; }
  .value-copy h2 { font-size: 34px; }
  .value-label { font-size: 11px; }
  .value-sub { font-size: 13px; }
  .trust-lines p { font-size: 12px; }
}

/* ── ≤520px 手机 / 减少动态效果 ────────────── */

@media (max-width: 520px) {
  html { overflow-x: hidden; }
  .timeline { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; }
  .ambient-light, .timeline-progress { display: none; }
  .dial-field { width: min(760px, 150vw); }
  .dial-rotor { transform: none !important; }
  .scene { position: relative; min-height: 100svh; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  [data-part] { opacity: 1 !important; transform: none !important; }
  .button-primary::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .timeline { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; }
  .ambient-light, .timeline-progress { display: none; }
  .dial-rotor { transform: none !important; }
  .scene { position: relative; min-height: 100svh; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  [data-part] { opacity: 1 !important; transform: none !important; }
  .capture { transform: none !important; }
  .button-primary::after { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
