/* Touchdown · 官方主页样式（Sky Toybox 版，对齐游戏菜单）
   玩具天空渐变 + 漂浮白云 + 不透明玩具卡 + 糖果按钮 + 玻璃导航层
   游戏设计令牌来源：scripts/menu_art.gd / assets/shaders/menu_backdrop.gdshader */

:root {
  --sky-top: #5596c7;
  --sky-mid: #83b3d1;
  --sky-low: #a5c9d8;
  --horizon: #b6d2cc;
  --cloud: #dbe7ef;
  --cloud-shade: #b9d1e2;
  --ink: #13234a;
  --ink-2: #3e4c6b;
  --ink-3: #6e7c99;
  --blue: #1f6ff2;
  --blue-text: #0f5fd6;
  --blue-deep: #1550c0;
  --blue-top: #4f9bff;
  --gold: #9a5b00;
  --gold-bright: #ffb21e;
  --surface: #e6edf3;
  --surface-lip: #adbed2;
  --hairline: rgba(19, 35, 74, 0.1);
  --toy-shadow: 0 18px 38px rgba(19, 35, 74, 0.14);
  --radius: 24px;
  --blur: blur(20px) saturate(160%);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Segoe UI", "Helvetica Neue", "Noto Sans Arabic",
    "Noto Sans Thai", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-low) 85%, var(--horizon) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(31, 111, 242, 0.25); }

/* ---------- 背景层：右上日光 + 两层漂移白云 ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(560px 420px at 86% 4%, rgba(255, 255, 255, 0.30), transparent 62%);
}
/* 云朵：胶囊主体 + 两个鼓包，平底；顶部受光、底部带蓝灰影 */
.blob {
  position: absolute;
  background: linear-gradient(180deg, #fdfeff 0%, #eef4f9 55%, var(--cloud) 100%);
  border-radius: 999px;
  box-shadow: inset 0 -12px 16px -8px var(--cloud-shade);
  filter: drop-shadow(0 16px 26px rgba(19, 35, 74, 0.12));
  will-change: transform;
  animation: cloud-drift linear infinite;
}
.blob::before, .blob::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #fdfeff 0%, #eef4f9 55%, var(--cloud) 100%);
  border-radius: 50%;
  box-shadow: inset 0 -10px 14px -8px var(--cloud-shade);
}
.blob::before { width: 58%; height: 0; padding-bottom: 58%; left: 16%; bottom: 34%; }
.blob::after { width: 42%; height: 0; padding-bottom: 42%; right: 12%; bottom: 28%; }
.blob-a { width: 300px; height: 74px; left: -340px; top: 16%; animation-duration: 95s; animation-delay: -12s; }
.blob-b { width: 220px; height: 56px; left: -260px; top: 44%; animation-duration: 120s; animation-delay: -55s; }
.blob-c { width: 340px; height: 84px; left: -380px; top: 68%; animation-duration: 150s; animation-delay: -90s; }
@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 420px)); }
}

/* ---------- 通用 ---------- */
.section { padding: clamp(76px, 10vw, 132px) 24px; position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; position: relative; }

.kicker {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.35em;
  font-size: 13px;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  font-weight: 800;
}
.lead { color: var(--ink-2); font-size: 17px; max-width: 640px; }

/* 玻璃层配方（导航、chips、徽章）：白玻璃 + 上亮下透 + 底部焦散 */
.lang-switch,
.chip,
.clip-tab,
.race-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(185, 209, 226, 0.55),
    0 10px 26px rgba(19, 35, 74, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-ico { width: 20px; height: 20px; }
/* 蓝色糖果按钮：渐变主体 + 深色底唇 + 上半光泽 + 外发光；按下下沉 */
.btn-gold {
  background: linear-gradient(180deg, var(--blue-top), var(--blue));
  color: #fff;
  box-shadow:
    0 5px 0 0 var(--blue-deep),
    0 14px 30px rgba(31, 111, 242, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 7px 0 0 var(--blue-deep), 0 20px 40px rgba(31, 111, 242, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 2px 0 0 var(--blue-deep), 0 8px 18px rgba(31, 111, 242, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
/* 上半光泽（糖果按钮的 gloss） */
.btn-shine::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 3px;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.03));
  pointer-events: none;
}
/* 白色糖果按钮 */
.btn-ghost {
  background: linear-gradient(180deg, var(--surface), #d4e0ed);
  color: var(--ink);
  box-shadow:
    0 4px 0 0 var(--surface-lip),
    0 12px 26px rgba(19, 35, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover { filter: brightness(1.02); transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--surface-lip), 0 18px 34px rgba(19, 35, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--surface-lip), 0 8px 16px rgba(19, 35, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-sm.btn-gold { box-shadow: 0 3px 0 0 var(--blue-deep), 0 10px 22px rgba(31, 111, 242, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-sm.btn-gold:active { box-shadow: 0 1px 0 0 var(--blue-deep), 0 6px 14px rgba(31, 111, 242, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-sm.btn-ghost { box-shadow: 0 3px 0 0 var(--surface-lip), 0 8px 18px rgba(19, 35, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85); }

/* ---------- 导航：玻璃胶囊 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 24px 0;
}
.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(185, 209, 226, 0.5),
    0 14px 34px rgba(19, 35, 74, 0.18);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled .nav-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(185, 209, 226, 0.55),
    0 18px 44px rgba(19, 35, 74, 0.22);
}
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand-logo { display: block; width: 180px; height: auto; filter: drop-shadow(0 2px 3px rgba(19, 35, 74, 0.16)); }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--blue); }
.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
}
/* 语言下拉：玻璃药丸套原生 select，选项为母语名 */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: 700 13px/1.2 var(--font);
  min-width: 132px;
  max-width: 160px;
  padding: 7px 24px 7px 12px;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e7c99' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select:hover { color: var(--ink); }
.lang-select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 999px;
}
.lang-select option {
  font: 600 14px/1.4 var(--font);
  color: var(--ink);
  background: #fff;
}
html[dir="rtl"] .lang-select {
  padding: 7px 12px 7px 24px;
  background-position: left 10px center;
}
/* 阿拉伯语 RTL：徽章换边 */
html[dir="rtl"] .race-badge {
  left: auto;
  right: 16px;
}

/* ---------- 主视觉 ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 24px 70px;
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-copy, .hero-stage { min-width: 0; }
.hero-kicker {
  color: #f7fbff;
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 8px rgba(19, 35, 74, 0.35);
}
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7cd3ff;
  box-shadow: 0 0 0 0 rgba(124, 211, 255, 0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(124, 211, 255, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(124, 211, 255, 0); }
}
.hero-logo { margin-bottom: 22px; }
.hero-logo img {
  width: min(560px, 94%);
  height: auto;
  filter:
    drop-shadow(0 16px 30px rgba(19, 35, 74, 0.28))
    drop-shadow(0 2px 4px rgba(19, 35, 74, 0.18));
}
.hero-tagline { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.hero-tagline em {
  font-style: normal;
  background: linear-gradient(180deg, var(--blue-top), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--ink-2); max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- 3D 舞台 ---------- */
.hero-stage { position: relative; }
.stage-ring {
  position: absolute;
  inset: 4% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 46%, transparent 64%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 20px 60px rgba(19, 35, 74, 0.1);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}
.stage3d {
  position: relative;
  height: min(560px, 62vw);
  cursor: grab;
  touch-action: pan-y;
}
.stage3d:active { cursor: grabbing; }
.stage3d canvas { display: block; width: 100%; height: 100%; }
.stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #f2f8fd;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 8px rgba(19, 35, 74, 0.4);
}
.stage-loading i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7cd3ff;
  animation: bounce 1.2s ease-in-out infinite;
}
.stage-loading i:nth-child(2) { animation-delay: 0.15s; }
.stage-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 1; }
}
.stage-chips {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.stage-status:empty { display: none; }
.stage-status {
  min-height: 18px;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
}
.chip:focus-visible, .stage3d:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, var(--blue));
  box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--blue)) 70%, transparent);
}
.chip:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)); }
/* 选中 chip = 实心白水滴 + 角色色描边（游戏 white_pill） */
.chip.active {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--blue)) 55%, transparent),
    0 8px 20px rgba(19, 35, 74, 0.2);
}
.stage-hint {
  text-align: center;
  color: #f2f8fd;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  margin-top: 12px;
  text-shadow: 0 1px 8px rgba(19, 35, 74, 0.4);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7fbff;
  opacity: 0.85;
  animation: cue 2s ease-in-out infinite;
  filter: drop-shadow(0 1px 6px rgba(19, 35, 74, 0.4));
}
.scroll-cue svg { width: 26px; height: 26px; }
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 0.95; }
}

/* ---------- 玩法：玩具卡 ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
  perspective: 900px;
}
.steps li {
  background: linear-gradient(180deg, #f4f8fb 0%, var(--surface) 100%);
  border-radius: 22px;
  padding: 30px 26px 32px;
  position: relative;
  box-shadow:
    0 4px 0 0 var(--surface-lip),
    var(--toy-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.steps li:hover {
  transform: translateY(-4px);
  box-shadow:
    0 7px 0 0 var(--surface-lip),
    0 26px 50px rgba(19, 35, 74, 0.2);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--blue-top), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow:
    0 3px 0 0 var(--blue-deep),
    0 8px 18px rgba(31, 111, 242, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateZ(30px);
}
.steps h3 { font-size: 19px; margin-bottom: 8px; font-weight: 800; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* 冲线演示：玩具面板 */
.race-wrap {
  position: relative;
  margin-top: 26px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 4px 0 0 var(--surface-lip),
    var(--toy-shadow);
}
#raceCanvas { display: block; width: 100%; height: 230px; }
.race-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
}
.race-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0352b;
  margin-right: 8px;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- 实机演示：手机壳里的战斗片段 + 场景切换 ---------- */
.clips {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 340px);
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 40px;
  perspective: 1200px;
}
.clip-phone { position: relative; cursor: pointer; }
.clip-phone video { background: #cbd8e4; }
.clip-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 10px 26px rgba(19, 35, 74, 0.22);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.clip-play[hidden] { display: none; }
.clip-play svg { width: 20px; height: 20px; color: var(--blue); }
.clip-tabs { display: grid; gap: 12px; }
.clip-tab {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  padding: 14px 18px 16px;
  border-radius: 18px;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.clip-tab b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.clip-tab small { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.clip-tab:hover { transform: translateY(-2px); }
.clip-tab:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
/* 选中 = 实心白卡（同 .chip.active）；底边进度条跟着播放走 */
.clip-tab.active {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1.5px rgba(31, 111, 242, 0.35), 0 8px 20px rgba(19, 35, 74, 0.2);
}
.clip-tab.active b { color: var(--blue-text); }
.clip-bar {
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-top), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .clip-bar { transform-origin: right; }
.clip-tab:not(.active) .clip-bar { visibility: hidden; }
.clip-caption { margin-top: 16px; min-height: 3.4em; color: var(--ink-2); font-size: 15px; }

/* 手机壳：玩具白边框 */
.phone {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  border: 6px solid #f7fafc;
  outline: 0;
  overflow: hidden;
  background: #d6e2f0;
  box-shadow:
    0 4px 0 0 var(--surface-lip),
    0 26px 60px rgba(19, 35, 74, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(83, 128, 168, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: 92vh;
  border-radius: 28px;
  border: 5px solid #f7fafc;
  box-shadow: 0 40px 100px rgba(19, 35, 74, 0.4);
}

/* ---------- 下载 ---------- */
.download { text-align: center; }
.download .lead { margin: 0 auto 34px; }
.dl-crown-wrap { position: relative; width: 96px; margin: 0 auto 30px; }
.dl-crown {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 4px 0 0 var(--surface-lip),
    0 24px 50px rgba(19, 35, 74, 0.3);
}
/* 晴空图标的冷色光环：白 ↔ 浅天蓝交替旋转（不用琥珀色：菜单只用冷色，见 docs/app-icon.md §8） */
.halo {
  position: absolute;
  inset: -26px;
  border-radius: 40px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.75), transparent 25%,
    rgba(140, 196, 236, 0.55) 50%, transparent 75%,
    rgba(255, 255, 255, 0.75)
  );
  animation: spin 5s linear infinite;
  filter: blur(14px);
  opacity: 0.85;
}
@keyframes spin { to { transform: rotate(360deg); } }
.store-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; perspective: 900px; }
/* 商店卡 = 玩具卡 */
.store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #f4f8fb 0%, var(--surface) 100%);
  border-radius: 18px;
  padding: 14px 26px;
  min-width: 208px;
  text-align: left;
  color: var(--ink);
  box-shadow:
    0 4px 0 0 var(--surface-lip),
    0 14px 30px rgba(19, 35, 74, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store:hover {
  transform: translateY(-3px);
  box-shadow:
    0 7px 0 0 var(--surface-lip),
    0 24px 48px rgba(19, 35, 74, 0.22);
}
.store svg { width: 34px; height: 34px; color: var(--ink); }
.store small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.store b { display: block; font-size: 17px; line-height: 1.4; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  padding: 40px 24px 46px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-right: auto; }
.footer-brand .brand-logo { width: 170px; }
.footer-links { display: flex; gap: 22px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { width: 100%; color: rgba(19, 35, 74, 0.62); font-size: 13px; margin-top: 8px; }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .halo, .scroll-cue, .pulse-dot { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 120px; }
  .stage3d { height: min(480px, 88vw); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .clips { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; justify-items: center; }
  .clip-phone { width: min(280px, 74vw); }
  .clip-side { width: 100%; max-width: 440px; }
  .clip-tabs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .clip-tab { padding: 11px 14px 13px; border-radius: 16px; }
  .clip-tab b { font-size: 15px; }
  .clip-tab small { font-size: 12px; }
  .clip-caption { margin-top: 12px; text-align: center; min-height: 3em; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .stage3d { height: min(420px, 92vw); }
  .stage-hint { letter-spacing: 0.1em; }
  #raceCanvas { height: 180px; }
  .nav-inner { gap: 14px; padding: 8px 10px; padding-inline-start: 14px; }
  .nav { padding: 12px 12px 0; }
  .nav .brand { gap: 8px; }
  .nav .brand-logo { width: 142px; }
  .nav .lang-select { min-width: 118px; max-width: 140px; padding-block: 7px; font-size: 12px; }
  .nav .btn-sm { padding: 8px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .blob-a { width: 200px; height: 50px; }
  .blob-c { width: 230px; height: 58px; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 6px; padding: 8px; }
  .nav .brand { gap: 6px; }
  .nav .brand-logo { width: 128px; }
  .nav .lang-select { min-width: 106px; padding-inline: 8px; }
  .nav .btn-sm { padding: 8px; }
}
