/* ============================================================
   玄机 · AI 相术 — 共享设计系统
   国风奢华暗色：玄墨底 + 朱砂红 + 鎏金；宋体大字 + 无衬线正文 + 等宽数据
   同时承载 iOS（iPhone 15 Pro）与 Android（Pixel）双框架
   ============================================================ */

:root {
  /* ── 墨色阶层 ── */
  --bg:        oklch(16% 0.012 264);
  --surface:   oklch(20% 0.014 264);
  --surface-2: oklch(24% 0.016 264);
  --surface-3: oklch(28% 0.018 264);
  --fg:        oklch(94% 0.014 85);
  --muted:     oklch(70% 0.012 80);
  --muted-2:   oklch(54% 0.012 80);
  --border:    oklch(33% 0.014 268);
  --border-2:  oklch(40% 0.016 268);

  /* ── 国风三色 ── */
  --accent:    oklch(60% 0.17 28);            /* 朱砂红 */
  --gold:      oklch(80% 0.10 82);            /* 鎏金 */
  --jade:      oklch(64% 0.11 162);           /* 翠 — 成功 */
  --amber:     oklch(74% 0.13 70);            /* 琥珀 — 警示 */
  --danger:    oklch(58% 0.20 22);            /* 墨赤 — 错误 */

  --accent-soft: color-mix(in oklch, var(--accent) 20%, transparent);
  --gold-soft:   color-mix(in oklch, var(--gold) 16%, transparent);
  --fg-soft:     color-mix(in oklch, var(--fg) 8%, transparent);
  --on-accent:   oklch(98% 0.01 85);

  /* ── 字族 ── */
  --font-display: 'Noto Serif SC', 'Songti SC', 'STSong', 'Source Han Serif SC', 'SimSun', serif;
  --font-body:    'PingFang SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-h1: 26px; --fs-h2: 20px; --fs-h3: 16px; --fs-body: 15px; --fs-meta: 12px;
  --radius-card: 18px; --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background:
    radial-gradient(70% 50% at 50% -10%, color-mix(in oklch, var(--gold) 7%, transparent) 0%, transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 100vh;
}

/* ── 舞台 / 说明 ── */
.stage { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 8px;
}
.caption strong { color: var(--gold); font-weight: 500; }
.caption .sep { color: var(--border-2); }

/* ============================================================
   设备框架 — iOS（iPhone 15 Pro）
   ============================================================ */
.device {
  position: relative;
  width: 390px; height: 844px;
  border-radius: 56px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a2c 0%, #1a1a1c 50%, #0e0e10 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 0 2px #000 inset,
    0 30px 70px -16px rgba(0,0,0,0.6),
    0 10px 24px -10px rgba(0,0,0,0.45);
  isolation: isolate;
}
.device::before, .device::after {
  content: ''; position: absolute; width: 3px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.06) 8%, transparent 16%, transparent 84%, rgba(255,255,255,0.04) 92%, transparent 100%);
  top: 100px; bottom: 100px; pointer-events: none;
}
.device::before { left: -1px; } .device::after { right: -1px; }
.island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 36px; background: #000; border-radius: 999px; z-index: 5;
}
.btn-rail { position: absolute; width: 4px; background: #0a0a0c; border-radius: 2px; }
.btn-rail.l1 { left: -3px; top: 174px; height: 32px; }
.btn-rail.l2 { left: -3px; top: 220px; height: 60px; }
.btn-rail.l3 { left: -3px; top: 290px; height: 60px; }
.btn-rail.r1 { right: -3px; top: 250px; height: 100px; }

/* ── Android（Pixel）框架 ── */
.platform-android .device {
  width: 412px; height: 900px; border-radius: 52px; padding: 10px;
  background: linear-gradient(160deg, #26272a 0%, #161617 60%, #0b0b0c 100%);
}
.platform-android .device::before, .platform-android .device::after { display: none; }
.platform-android .island {
  width: 14px; height: 14px; border-radius: 50%; top: 16px;
  background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.platform-android .btn-rail { display: none; }
.punch-hole { /* alias handled by .island restyle above */ }

/* ── 屏幕表面 ── */
.screen {
  position: relative; width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.platform-android .screen { border-radius: 42px; }

/* 状态栏 */
.statusbar {
  flex: 0 0 47px;
  padding: 18px 26px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em;
}
.platform-android .statusbar { padding: 16px 22px 0; flex-basis: 40px; }
.statusbar .right { display: inline-flex; align-items: center; gap: 6px; }
.statusbar svg { width: 17px; height: 11px; fill: var(--fg); }
.statusbar .battery { width: 25px; }

/* 内容滚动区 */
.content {
  flex: 1 1 auto;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 24px;
  scrollbar-width: none;
}
.content::-webkit-scrollbar { display: none; }

/* 主屏指示 / 手势条 */
.home-indicator { flex: 0 0 26px; position: relative; }
.home-indicator::after {
  content: ''; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 134px; height: 5px; background: var(--fg); border-radius: 999px; opacity: 0.85;
}
.platform-android .home-indicator::after { width: 148px; height: 5px; bottom: 7px; opacity: 0.7; }

/* ============================================================
   底部导航 — iOS 标签栏
   ============================================================ */
.tabbar {
  flex: 0 0 auto;
  display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr);
  padding: 8px 8px 2px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0; min-height: 50px;
  color: var(--muted-2); font-size: 10px; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; background: none; border: 0;
}
.tab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tab.active { color: var(--accent); }
.tab.active svg { stroke-width: 2; fill: color-mix(in oklch, var(--accent) 18%, transparent); }

/* Android Material 导航栏 */
.platform-android .tabbar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 8px 10px;
}
.platform-android .tab { min-height: 56px; border-radius: 14px; }
.platform-android .tab.active { color: var(--accent); }
.platform-android .tab .nav-icon-wrap {
  display: grid; place-items: center; width: 40px; height: 26px; border-radius: 14px;
}
.platform-android .tab.active .nav-icon-wrap {
  background: var(--accent-soft);
}
.platform-android .tab svg { width: 22px; height: 22px; }

/* ============================================================
   屏幕原语
   ============================================================ */
.pad     { padding-inline: 20px; }
.stack   { display: flex; flex-direction: column; gap: 16px; }
.row     { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.header {
  padding: 10px 20px 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.header h1 {
  font-family: var(--font-display); font-size: var(--fs-h1);
  letter-spacing: -0.01em; line-height: 1.1; margin: 0; font-weight: 600;
}
.header .icon-btn { width: 38px; height: 38px; }
.header .icon-btn svg { width: 18px; height: 18px; }

.greeting {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 6px; font-weight: 500;
}
.h2  { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: -0.01em; line-height: 1.2; margin: 0; font-weight: 600; }
.h3  { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; margin: 0; }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.02em; }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  position: relative;
}
.card.gold-line { border-color: color-mix(in oklch, var(--gold) 35%, var(--border)); }
.card.accent {
  background: linear-gradient(160deg, oklch(62% 0.16 28), oklch(50% 0.14 28));
  color: var(--on-accent); border-color: transparent;
}
.card.accent .meta { color: rgba(255,255,255,0.74); }
.card.flat { background: transparent; border: 0; padding: 12px 0; border-top: 1px solid var(--border); border-radius: 0; }
.card.flat:first-child { border-top: 0; padding-top: 0; }

/* 列表行 */
.list-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--border);
  min-height: 48px;
}
.list-row:first-child { border-top: 0; }
.list-row .body .title { font-size: 15px; font-weight: 500; line-height: 1.25; }
.list-row .body .sub { color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 3px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft)), var(--surface-2);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
}

/* 按钮 */
.btn-primary, .btn-secondary, .btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 14px 20px;
  border-radius: 14px; font: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em; cursor: pointer; border: 0; text-decoration: none;
  transition: transform 0.12s var(--ease), background 0.18s var(--ease), opacity 0.18s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active { transform: scale(0.985); }
.btn-secondary { background: var(--surface-2); color: var(--fg); border: 1px solid var(--border-2); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-2); }
.btn-gold { background: linear-gradient(160deg, oklch(82% 0.10 82), oklch(66% 0.09 76)); color: oklch(18% 0.02 70); }
.btn-primary[disabled], .btn-secondary[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--fg); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* 占位图 */
.ph-img {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 14px;
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
}
.ph-img.square { aspect-ratio: 1 / 1; }
.ph-img.wide { aspect-ratio: 16 / 9; }

/* 标签 / 胶囊 */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.jade { background: color-mix(in oklch, var(--jade) 18%, transparent); color: var(--jade); }
.tag {
  display: inline-flex; padding: 4px 10px; background: transparent;
  color: var(--muted); border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 12px; cursor: pointer;
}
.tag.active { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 45%, var(--border)); background: var(--accent-soft); }

/* 进度 */
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; }

/* ============================================================
   应用专属组件
   ============================================================ */

/* 印章 — decisive flourish */
.seal {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.02em; line-height: 1;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 60%, #000) inset, 0 6px 16px -6px var(--accent-soft);
  transform: rotate(-4deg);
}
.seal.sm { width: 34px; height: 34px; font-size: 14px; border-radius: 8px; }

/* 鎏金细分隔 */
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--gold) 45%, transparent), transparent); border: 0; margin: 4px 0; }

/* 三相入口卡（首页） */
.entry {
  display: grid; grid-template-columns: 56px 1fr 24px;
  align-items: center; gap: 14px;
  padding: 18px; border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: transform 0.14s var(--ease), border-color 0.18s var(--ease);
}
.entry:active { transform: scale(0.99); }
.entry .glyph {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border-2);
}
.entry .glyph svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.entry.featured { border-color: color-mix(in oklch, var(--gold) 40%, var(--border)); }
.entry.featured .glyph { background: linear-gradient(150deg, var(--gold-soft), var(--surface-2)); }
.entry.featured .glyph svg { stroke: var(--gold); }
.entry .ttl { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.01em; }
.entry .desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.entry .chev { color: var(--muted-2); }
.entry .chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* 分段控件 */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 4px;
}
.segmented button {
  padding: 10px 0; min-height: 44px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px;
  font-weight: 500; cursor: pointer; letter-spacing: 0.02em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.segmented button.active { background: var(--accent); color: var(--on-accent); }

/* 取景器 */
.viewfinder {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 30%, oklch(22% 0.014 264), oklch(13% 0.01 264));
  border: 1px solid var(--border-2); overflow: hidden;
  display: grid; place-items: center;
}
.viewfinder .guide { width: 78%; opacity: 0.5; }
.viewfinder .guide svg { width: 100%; height: auto; stroke: var(--gold); fill: none; stroke-width: 1.2; opacity: 0.55; }
.vf-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); opacity: 0.8; }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.vf-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

.capture-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--on-accent); border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold); cursor: pointer;
  transition: transform 0.12s var(--ease);
}
.capture-btn:active { transform: scale(0.92); }

/* 表单字段 */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 13px 14px; min-height: 50px;
  color: var(--fg); font: inherit; font-size: 15px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: color-mix(in oklch, var(--accent) 55%, var(--border-2));
  background: var(--surface-3);
}
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .hint { font-size: 12px; color: var(--muted); min-height: 14px; }
.field.invalid .hint { color: var(--danger); }
.field.valid .hint::before { content: ''; }

/* 分析阶段步骤 */
.stages { display: flex; flex-direction: column; gap: 2px; }
.stage-step {
  display: grid; grid-template-columns: 22px 1fr auto;
  align-items: center; gap: 12px; padding: 11px 0;
  border-top: 1px solid var(--border);
}
.stage-step:first-child { border-top: 0; }
.stage-step .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-2); }
.stage-step.done .dot { background: var(--jade); border-color: var(--jade); }
.stage-step.active .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stage-step .lbl { font-size: 14.5px; }
.stage-step.done .lbl { color: var(--muted); }
.stage-step.active .lbl { color: var(--fg); font-weight: 500; }
.stage-step .st { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; }

/* 评分环 */
.score-ring { position: relative; width: 96px; height: 96px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.score-ring .bar { fill: none; stroke: url(#scoreGrad); stroke-width: 7; stroke-linecap: round; }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.score-ring .val small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: block; text-align: center; margin-top: 2px; }

/* 结果图卷 */
.scroll-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--gold) 8%, var(--surface)) 0%, var(--surface) 30%);
  border: 1px solid color-mix(in oklch, var(--gold) 30%, var(--border));
  padding: 18px;
}
.scroll-card .frame-line { position: absolute; inset: 8px; border: 1px solid color-mix(in oklch, var(--gold) 22%, transparent); border-radius: 12px; pointer-events: none; }
.scroll-card .diagram { width: 100%; }
.scroll-card .diagram svg { width: 100%; height: auto; display: block; }
.anno { position: absolute; display: flex; align-items: center; gap: 6px; }
.anno .pin { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; box-shadow: 0 0 0 3px var(--accent-soft); }
.anno .lab { font-size: 11.5px; background: color-mix(in oklch, var(--surface) 80%, transparent); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-2); white-space: nowrap; backdrop-filter: blur(4px); }

/* 维度小条 */
.dim { display: grid; grid-template-columns: 56px 1fr 34px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.dim:first-child { border-top: 0; }
.dim .nm { font-family: var(--font-display); font-size: 14px; }
.dim .bar { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.dim .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; }
.dim .vl { font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--gold); }

/* 历史条目 */
.hist-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: center; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--border); cursor: pointer;
}
.hist-item:first-child { border-top: 0; }
.hist-thumb { width: 60px; height: 60px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; overflow: hidden; }
.hist-thumb svg { width: 70%; height: 70%; }
.hist-item .ttl { font-size: 14.5px; font-weight: 500; }
.hist-item .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* 套餐卡 */
.tier {
  position: relative; border-radius: 18px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.tier.featured { border-color: color-mix(in oklch, var(--gold) 55%, var(--border)); background: linear-gradient(180deg, color-mix(in oklch, var(--gold) 7%, var(--surface)), var(--surface)); }
.tier .tier-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.tier .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.tier .price small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.tier .feat { display: flex; flex-direction: column; gap: 8px; }
.tier .feat li { list-style: none; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.tier .feat li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: 0 0 6px; }
.tier .badge { position: absolute; top: -10px; right: 16px; }

/* 统计块 */
.stat { text-align: center; padding: 12px 4px; }
.stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.stat .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* 菜单行 */
.menu-row {
  display: grid; grid-template-columns: 32px 1fr 18px;
  align-items: center; gap: 12px; padding: 15px 0;
  border-top: 1px solid var(--border); cursor: pointer; min-height: 48px;
  text-decoration: none; color: inherit;
}
.menu-row:first-child { border-top: 0; }
.menu-row .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; }
.menu-row .ic svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.menu-row .lbl { font-size: 15px; }
.menu-row .arr { color: var(--muted-2); }
.menu-row .arr svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ============================================================
   状态：loading / empty / error
   ============================================================ */
.skeleton { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 200% 100%; border-radius: 8px; animation: shimmer 1.4s var(--ease) infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 34px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; }
.empty-state .ic svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.3; }
.empty-state h3 { font-family: var(--font-display); font-size: 18px; margin: 4px 0 0; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0; max-width: 26ch; }

.error-banner {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px;
  background: color-mix(in oklch, var(--danger) 14%, var(--surface));
  border: 1px solid color-mix(in oklch, var(--danger) 40%, var(--border));
}
.error-banner .ic { color: var(--danger); }
.error-banner .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.error-banner .msg .t { font-size: 13.5px; font-weight: 500; }
.error-banner .msg .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.error-banner .rtry { font-size: 13px; color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 6px 4px; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 入场动画（一次性、有上限） */
.fade-up { opacity: 0; transform: translateY(8px); animation: fadeUp 0.4s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* 无障碍：减弱动效 */
@media (prefers-reduced-motion: reduce) {
  .skeleton, .spinner { animation: none; }
  .fade-up { opacity: 1; transform: none; animation: none; }
  * { transition: none !important; }
}

/* ============================================================
   画廊（index / mobile-android）
   ============================================================ */
body.gallery { display: block; padding: 0; place-items: initial; min-height: 100vh; }
.gallery-wrap { max-width: 1480px; margin: 0 auto; padding: 0 28px 80px; }
.gallery-hero {
  padding: 40px 0 26px; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px;
}
.gallery-hero .brand { display: flex; align-items: center; gap: 14px; }
.gallery-hero h1 { font-family: var(--font-display); font-size: 40px; margin: 0; letter-spacing: 0.02em; font-weight: 600; }
.gallery-hero .sub { color: var(--muted); margin: 8px 0 0; font-size: 14px; max-width: 60ch; }
.gallery-hero .plat-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: var(--fg); text-decoration: none; font-size: 13px; }
.gallery-hero .plat-link svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 30px; padding-top: 28px; justify-items: center;
}
.gallery-grid iframe {
  border: 0; background: transparent; width: 100%; max-width: 440px;
  height: 940px; border-radius: 20px;
}
.gallery-grid.android iframe { height: 1000px; max-width: 470px; }
.gallery-foot { margin-top: 40px; color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
