/* =========================================================
   Anchored · 投研视觉系统 v3
   方向:媒体级阅读 + 工具混搭(财新 / Stratechery / Bloomberg.com)
   字体:Source Serif 4 标题 · Inter Tight 正文 · JetBrains Mono 数字
   色板:象牙白纸 + 深炭灰品牌 + 暖琥珀强调(替代旧 navy+gold)
   ========================================================= */

/* ---------- 字体 ---------- */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- 设计 token (Anchored Design System v1) ---------- */

:root {
  /* ===== 背景层 5 级 (深→浅) ===== */
  --bg-canvas: #0b1220;          /* 暗色头/admin top */
  --bg-surface: #ffffff;          /* 主卡 */
  --bg-elevated: #fbfaf6;         /* hover / popover */
  --bg-muted: #f1ede3;            /* 表头 / 标签底 / 隔行 */
  --bg-overlay: rgba(11,18,32,0.62);

  /* paper / surface 别名,向后兼容旧 CSS */
  --paper: var(--bg-elevated);
  --paper-2: var(--bg-muted);
  --surface: var(--bg-surface);
  --surface-2: var(--bg-muted);

  /* ===== 文字 5 级 (强→弱) ===== */
  --ink-strong: #0d1421;          /* H1-H3 / 数字 */
  --ink: #1f2937;                  /* 正文 */
  --ink-soft: #4b5563;            /* 副本 */
  --ink-muted: #8b95a3;           /* 元信息 */
  --ink-on-dark: #f3f0e7;
  --ink-on-gold: #1a1408;
  /* 旧别名 */
  --muted: var(--ink-muted);

  /* ===== 边线 ===== */
  --line: #e3dcc8;
  --line-strong: #cdc4a8;
  --line-soft: #efeadb;

  /* ===== 品牌:深炭灰 (editorial 调,去 luxury) ===== */
  --brand: #232830;            /* 深炭灰 */
  --brand-soft: #353c47;
  --brand-glow: rgba(35,40,48,0.22);
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  /* 暖琥珀 / 棕橙 — 替代金色,降低 luxury 调,提升编辑气质 */
  --accent-warm: #d97441;
  --accent-warm-soft: #f3c8a6;
  --accent-warm-hover: #b85d2e;
  /* 兼容旧 --gold 别名(指向暖琥珀,避免破坏旧 CSS) */
  --accent-gold: var(--accent-warm);
  --accent-gold-soft: var(--accent-warm-soft);
  --gold: var(--accent-warm);
  --gold-soft: var(--accent-warm-soft);

  /* ===== 涨跌 (CN 惯例:红涨绿跌) ===== */
  --up: #d33b3b;
  --down: #2f8f6a;
  --flat: #8b95a3;

  /* ===== 状态色 ===== */
  --info-bg: #e8f0fa;     --info-fg: #1d3557;
  --warn-bg: #fff3d6;     --warn-fg: #8a6822;
  --error-bg: #fde8e6;    --error-fg: #b3261e;
  --success-bg: #e6f4ed;  --success-fg: #1f6f53;
  /* 旧别名 */
  --warn: var(--warn-fg);
  --risk: var(--error-fg);

  /* ===== 形状 ===== */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --border: 1px solid var(--line);
  --border-strong: 1px solid var(--line-strong);

  /* ===== 阴影 elevation 三档 (节制使用) ===== */
  --shadow-1: 0 1px 2px rgba(13, 20, 33, 0.04);
  --shadow-2: 0 4px 12px rgba(13, 20, 33, 0.08);
  --shadow-3: 0 24px 48px -8px rgba(13, 20, 33, 0.20);
  --ring: 0 0 0 3px var(--brand-glow);
  --focus: var(--ring);

  /* ===== 间距 (4-base 节奏,固定 7 档) ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* ===== 字号 / 行高 (8 级层级) ===== */
  --fs-display: 44px;   --lh-display: 1.18;
  --fs-h1: 32px;        --lh-h1: 1.25;
  --fs-h2: 24px;        --lh-h2: 1.33;
  --fs-h3: 18px;        --lh-h3: 1.44;
  --fs-body: 15px;      --lh-body: 1.6;
  --fs-small: 13px;     --lh-small: 1.54;
  --fs-caption: 12px;   --lh-caption: 1.5;
  --fs-mono-l: 14px;

  /* 字体栈 */
  --serif: "Source Serif 4", "Source Han Serif SC", "Noto Serif CJK SC",
    "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui,
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    "Source Han Mono SC", monospace;

  /* 节奏 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 14px;
  --space-4: 22px;
  --space-5: 36px;
  --space-6: 56px;
  --nav-height: 60px;
}

/* ===== v85 · Dark mode token 覆盖 =====
   触发条件: <html data-theme="dark"> 或 (无 data-theme + 系统 prefers-color-scheme: dark)
   保留品牌 token: --brand 仍为深炭灰(已是 dark friendly),accent-warm 暖琥珀;
   仅翻转背景、文字、line。 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg-canvas: #050a13;
    --bg-surface: #1a1f28;
    --bg-elevated: #232830;
    --bg-muted: #2c333d;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --paper: #1a1f28;
    --paper-2: #2c333d;
    --surface: #1a1f28;
    --surface-2: #2c333d;
    --ink-strong: #f3f0e7;
    --ink: #d8d3c4;
    --ink-soft: #b0aa9b;
    --ink-muted: #7d7868;
    --line: #353c47;
    --line-strong: #4d5562;
    --line-soft: #2c333d;
    --info-bg: rgba(29, 53, 87, 0.32);
    --warn-bg: rgba(138, 104, 34, 0.30);
    --error-bg: rgba(179, 38, 30, 0.28);
    --success-bg: rgba(31, 111, 83, 0.30);
  }
}
html[data-theme="dark"] {
  --bg-canvas: #050a13;
  --bg-surface: #1a1f28;
  --bg-elevated: #232830;
  --bg-muted: #2c333d;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --paper: #1a1f28;
  --paper-2: #2c333d;
  --surface: #1a1f28;
  --surface-2: #2c333d;
  --ink-strong: #f3f0e7;
  --ink: #d8d3c4;
  --ink-soft: #b0aa9b;
  --ink-muted: #7d7868;
  --line: #353c47;
  --line-strong: #4d5562;
  --line-soft: #2c333d;
  --info-bg: rgba(29, 53, 87, 0.32);
  --warn-bg: rgba(138, 104, 34, 0.30);
  --error-bg: rgba(179, 38, 30, 0.28);
  --success-bg: rgba(31, 111, 83, 0.30);
}

/* ---------- 全局 reset ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-height);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

/* ---------- 文本层级 ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.4; }

p { margin: 0; line-height: 1.7; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top .eyebrow { color: var(--gold); }

.mono, .ticker, .num, code, pre {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* ---------- 控件 ---------- */

button, select, input, textarea {
  font: inherit;
  color: inherit;
}

button, select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

button {
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 0.14s ease, color 0.14s ease,
    border-color 0.14s ease, transform 0.08s ease;
}

button:hover:not(:disabled):not([disabled]) {
  border-color: var(--accent);
}

button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: 0.7; }

input[type="email"], input[type="text"], input[type="search"] {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  min-height: 42px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

::selection {
  background: var(--accent-warm-soft);
  color: var(--ink-strong);
}

/* ---------- 顶部 nav ---------- */

.top {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #ece7df;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--nav-height);
  padding: 0 24px;
  background: rgba(21, 25, 31, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(229, 140, 79, 0.22);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-on-dark);
  letter-spacing: -0.01em;
}

.nav-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--accent-warm-hover));
  color: var(--ink-on-gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(241, 235, 214, 0.96);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.14s ease;
}

.nav a:hover { color: #fff; }

.nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover::after { transform: scaleX(1); }

.nav select {
  margin-left: auto;
  min-height: 38px;
  min-width: 180px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(241, 235, 214, 0.45);
  background:
    linear-gradient(45deg, transparent 50%, rgba(241,235,214,0.85) 50%) calc(100% - 16px) 16px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(241,235,214,0.85) 50%, transparent 50%) calc(100% - 10px) 16px / 6px 6px no-repeat,
    rgba(241, 235, 214, 0.16);
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.nav select:hover { background-color: rgba(241, 235, 214, 0.22); border-color: rgba(241,235,214,0.58); }
.nav select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav option { color: var(--ink); background: var(--paper); font-family: var(--sans); }

/* v85 · dark-mode 切换按钮 */
.nav-theme {
  margin-left: 8px;
  width: 36px; height: 36px;
  border: 1px solid rgba(241, 235, 214, 0.32);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-on-dark);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.nav-theme:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent-warm); color: var(--accent-warm); }

.nav-auth {
  margin-left: 10px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(241, 235, 214, 0.32);
  background: transparent;
  color: var(--ink-on-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.nav-auth:hover { background-color: rgba(241, 235, 214, 0.10); border-color: var(--gold); color: var(--gold); }
.nav-auth.is-authenticated { background: rgba(201, 164, 94, 0.16); border-color: var(--gold); color: var(--gold); }

/* nav 链接外壳:桌面行内,移动端隐藏(改用 burger drawer) */
.nav-links { display: contents; }
.nav-burger { display: none; }

/* ---------- Mobile drawer (≤920) ---------- */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; display: flex; }
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(11,18,32,0.62);
  animation: drawerFade 160ms ease;
}
.mobile-drawer-panel {
  position: relative;
  margin-left: auto;
  width: min(86vw, 360px);
  height: 100%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: var(--ink-on-dark);
  display: flex; flex-direction: column;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom)) 22px;
  box-shadow: -12px 0 32px rgba(0,0,0,0.32);
  animation: drawerSlide 200ms cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.mobile-drawer-brand {
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  color: var(--ink-on-dark); display: inline-flex; align-items: center; gap: 8px;
}
.mobile-drawer-close {
  width: 38px; height: 38px;
  border: 1px solid rgba(241,235,214,0.22);
  background: transparent; color: var(--ink-on-dark);
  font-size: 22px; line-height: 1;
  border-radius: 8px; cursor: pointer;
}
.mobile-drawer-links {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(241,235,214,0.12);
}
.mobile-drawer-links a {
  display: block;
  padding: 14px 12px;
  border-radius: 8px;
  color: rgba(241,235,214,0.86);
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  min-height: 44px;
}
.mobile-drawer-links a:hover,
.mobile-drawer-links a:active { background: rgba(241,235,214,0.08); color: var(--gold); }
.mobile-drawer-locale {
  display: grid; gap: 6px;
  margin: 16px 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: rgba(241,235,214,0.6);
  text-transform: uppercase;
}
.mobile-drawer-locale select {
  min-height: 44px; width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(241,235,214,0.22);
  background: rgba(241,235,214,0.06);
  color: var(--ink-on-dark);
  font-family: var(--mono); font-size: 14px;
  border-radius: 8px;
  appearance: none; -webkit-appearance: none;
}
.mobile-drawer-auth {
  margin-top: auto;
  min-height: 48px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--gold);
  background: var(--gold); color: var(--ink-on-gold);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 8px; cursor: pointer;
}
.mobile-drawer-auth.is-authenticated { background: transparent; color: var(--gold); }

@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawerSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ---------- Mobile bottom tab (≤620) ---------- */
.bottom-tab {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(21, 25, 31, 0.96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid rgba(229, 140, 79, 0.22);
  padding: 6px 4px env(safe-area-inset-bottom);
}
.bottom-tab a {
  flex: 1 1 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  min-height: 52px;
  text-decoration: none;
  color: rgba(241,235,214,0.62);
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  transition: color 140ms ease;
}
.bottom-tab a:active { color: var(--gold); }
.bottom-tab a.is-active { color: var(--gold); }
.bottom-tab .bt-icon {
  font-size: 18px; line-height: 1;
  font-family: var(--mono);
}
.bottom-tab .bt-label { letter-spacing: 0.02em; }

/* ---------- Auth modal ---------- */
.auth-modal[hidden],
[hidden] { display: none !important; }
.auth-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 18, 14, 0.62);
  backdrop-filter: blur(4px);
}
.auth-modal-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--paper);
  border-radius: 14px;
  padding: 36px 32px 24px;
  box-shadow: 0 32px 64px -16px rgba(8,18,14,0.5);
  font-family: var(--sans);
}
.auth-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 24px; color: var(--ink-soft);
  border-radius: 8px;
}
.auth-modal-close:hover { background: var(--surface-2); color: var(--ink); }
.auth-modal-card .eyebrow { color: var(--gold); }
.auth-modal-card h2 { font-family: var(--serif); font-size: 22px; margin: 8px 0 8px; }
.auth-modal-lead { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.auth-form {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
}
.auth-form input {
  height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: var(--surface);
}
.auth-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.auth-form button {
  height: 44px; padding: 0 18px;
  border: 0; border-radius: 8px;
  background: var(--accent); color: var(--ink-on-dark);
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.auth-form button:hover { background: var(--accent-hover, #243559); }
.auth-form button:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-form-status { font-size: 13px; color: var(--ink-soft); min-height: 18px; margin: 10px 0 4px; }
.auth-form-status.is-success { color: var(--up); }
.auth-form-status.is-error { color: var(--down); }
.auth-form-status a { color: var(--accent); }
.auth-providers { display: grid; gap: 8px; margin-top: 14px; }
.auth-separator {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 10px; color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: 8px 0 4px;
}
.auth-separator::before, .auth-separator::after {
  content: ""; height: 1px; background: var(--line);
}
.auth-provider {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.auth-provider:hover { background: var(--surface-2); border-color: var(--ink-soft); }
.auth-provider-icon {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent); color: var(--ink-on-dark);
  font-weight: 700; font-size: 11px;
}
.auth-wechat .auth-provider-icon { background: #1aad19; }
.auth-modal-foot {
  color: var(--muted); font-size: 11px; margin: 16px 0 0;
  text-align: center;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.6fr);
  gap: 56px;
  max-width: 1240px;
  min-height: 540px;
  margin: 0 auto;
  padding: 88px 28px 116px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  color: var(--ink-on-dark);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero-copy p {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(241, 235, 214, 0.78);
  font-size: 17px;
  line-height: 1.78;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background-color 0.14s ease;
}

.cta-primary {
  background: var(--gold);
  color: var(--ink-on-gold);
}

.cta-primary:hover {
  background: var(--accent-warm-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.cta-secondary {
  background: transparent;
  color: var(--ink-on-dark);
  border: 1px solid rgba(241, 235, 214, 0.32);
}

.cta-secondary:hover {
  background: rgba(241, 235, 214, 0.08);
  border-color: rgba(241, 235, 214, 0.6);
}

.hero-subscribe {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(241, 235, 214, 0.05);
  border: 1px solid rgba(241, 235, 214, 0.14);
  max-width: 520px;
}

.hero-subscribe label {
  display: block;
  margin-bottom: 10px;
  color: rgba(241, 235, 214, 0.7);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-subscribe > div { display: flex; gap: 10px; }

.hero-subscribe input {
  flex: 1;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(241, 235, 214, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.hero-subscribe button {
  min-width: 100px;
  background: var(--gold);
  color: var(--ink-on-gold);
  border-color: var(--gold);
  font-weight: 600;
}

.hero-subscribe button:hover { background: var(--accent-warm-hover); }

.subscribe-status {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: rgba(241, 235, 214, 0.7);
}

.subscribe-status[data-state="ok"] { color: #91d8b5; }
.subscribe-status[data-state="error"] { color: #f0b1aa; }
.subscribe-status[data-state="loading"] { color: var(--gold-soft); }

.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-board {
  display: grid;
  gap: var(--space-3);
}

.hero-board-loading {
  padding: var(--space-6);
  text-align: center;
  color: rgba(243, 240, 231, 0.5);
  font-family: var(--mono); font-size: var(--fs-caption);
}

.anchor-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(243, 240, 231, 0.06);
  border: 1px solid rgba(243, 240, 231, 0.14);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.anchor-card:hover {
  border-color: rgba(201, 164, 94, 0.42);
  background: rgba(243, 240, 231, 0.09);
}
.anchor-card > header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
}
.anchor-name {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}
.anchor-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.anchor-status-pending   { background: rgba(243, 240, 231, 0.12); color: rgba(243, 240, 231, 0.78); }
.anchor-status-prefiling { background: rgba(243, 240, 231, 0.18); color: rgba(243, 240, 231, 0.92); border: 1px dashed rgba(243, 240, 231, 0.35); }
.anchor-status-active    { background: rgba(201, 164, 94, 0.20); color: var(--accent-gold-soft); }
.anchor-status-listed    { background: rgba(47, 143, 106, 0.24); color: #93dab9; }
.anchor-status-lockup    { background: rgba(217, 116, 65, 0.24); color: var(--accent-warm-soft); }

.anchor-metric { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.anchor-metric-label {
  font-family: var(--mono);
  font-size: var(--fs-caption);
  color: rgba(243, 240, 231, 0.5);
}
.anchor-metric-value {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--ink-on-dark);
}
.anchor-ticker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(243, 240, 231, 0.10);
  color: var(--accent-gold);
  letter-spacing: 0.06em;
}
.anchor-metric-sub {
  margin: 0;
  font-size: var(--fs-small);
  color: rgba(243, 240, 231, 0.65);
  line-height: var(--lh-small);
}

.anchor-event {
  display: flex; align-items: baseline; gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(243, 240, 231, 0.10);
  text-decoration: none;
  color: rgba(243, 240, 231, 0.82);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  transition: color 160ms ease;
}
.anchor-event:hover { color: var(--accent-gold-soft); }
.anchor-event-date {
  flex-shrink: 0;
  font-family: var(--mono); font-size: var(--fs-caption);
  color: rgba(243, 240, 231, 0.4);
}
.anchor-event-headline { flex: 1; }
.anchor-event-empty { color: rgba(243, 240, 231, 0.32); font-style: italic; }

.anchor-spark {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 4px;
  padding: 6px 0;
  border-top: 1px solid rgba(243, 240, 231, 0.08);
  border-bottom: 1px solid rgba(243, 240, 231, 0.08);
}
.anchor-spark svg { flex: 1; min-width: 0; }
.anchor-spark-label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-pricing {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(241, 235, 214, 0.06);
  border: 1px solid rgba(241, 235, 214, 0.14);
}

.hero-pricing .eyebrow { color: var(--gold); margin: 0; }

.mini-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-plan {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 6px;
  background: rgba(241, 235, 214, 0.04);
  border: 1px solid rgba(241, 235, 214, 0.14);
  color: var(--ink-on-dark);
  text-decoration: none;
  text-align: center;
}

.mini-plan:hover {
  background: rgba(241, 235, 214, 0.12);
  border-color: rgba(241, 235, 214, 0.32);
}

.mini-plan span { color: rgba(241, 235, 214, 0.6); font-size: 12px; }
.mini-plan strong { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.mini-plan.is-rec {
  border-color: var(--gold);
  background: rgba(201, 164, 94, 0.14);
}

.mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 164, 94, 0.4);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.mini-cta:hover {
  background: rgba(201, 164, 94, 0.14);
  border-color: var(--gold);
}

/* ---------- Main layout ---------- */

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

.section { margin: 0 0 var(--space-5); }

/* ---------- Trust ---------- */

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: var(--space-5);
}

.trust h3 { margin: 6px 0 10px; font-size: 22px; }
.trust p { margin: 0; color: var(--ink-soft); line-height: 1.75; }

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.trust-logos li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- KPI ---------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -64px;
  position: relative;
  z-index: 2;
}

.kpis article {
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.kpis span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.kpis strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.015em;
}

.kpis small { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Panel ---------- */

.panel {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.panel-head h2 { font-size: clamp(20px, 2.2vw, 26px); }

/* ---------- Visual panel ---------- */

.visual-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.visual-copy { align-self: center; }
.visual-copy h2 { max-width: 520px; margin-bottom: 12px; }
.visual-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.7;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.market-map, .factor-visual, .event-visual {
  position: relative;
  min-height: 226px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.market-map {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}

.market-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.factor-visual, .event-visual {
  min-height: 168px;
  padding: 18px;
}

.factor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.factor-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.factor-head strong {
  font-family: var(--mono);
  font-size: 30px;
  color: var(--accent);
}

.factor-bars { display: grid; gap: 12px; }

.factor-bar div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.factor-bar { position: relative; }

.factor-bar::before, .factor-bar i {
  content: "";
  display: block;
  height: 6px;
  border-radius: 999px;
}

.factor-bar::before { background: var(--paper-2); }

.factor-bar i {
  position: absolute;
  left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.event-visual { display: grid; align-content: center; }

.event-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.event-step:last-child { border-bottom: 0; }

.event-step span {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.event-step strong { font-size: 13px; line-height: 1.35; font-weight: 600; }

/* ---------- IPO 状态分栏 ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.split .eyebrow { color: var(--accent-soft); }
.split h2 { margin-bottom: 14px; }

.lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.status-grid, .logic-grid, .risk-grid { display: grid; gap: 14px; }

.status-card, .logic-card, .risk-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.status-card:hover, .risk-card:hover, .logic-card:hover:not(.locked-card) {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.status-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
}

.status-card > div:first-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

.status-card span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.status-card p { margin: 0 0 10px; color: var(--ink-soft); }
.status-card small { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- Badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 40, 69, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.warn { background: rgba(180, 130, 24, 0.14); color: var(--warn); }
.badge.risk { background: rgba(179, 73, 61, 0.14); color: var(--risk); }

/* ---------- Logic / Risk ---------- */

.logic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.logic-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.logic-head h3 { margin: 0; font-size: 18px; }

.logic-card.locked-card {
  background: repeating-linear-gradient(
    -45deg, var(--surface) 0 12px, var(--surface-2) 12px 24px
  );
  border-style: dashed;
}

.logic-card.locked-card p { color: var(--muted); }

.logic-card p, .risk-card p, .bullets p, .scenario p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.risk-card h3 { margin: 0 0 10px; font-size: 18px; }

/* ---------- Segmented & filters ---------- */

.segmented, .actions, .filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink-soft);
}

.segmented button.active {
  background: var(--accent);
  color: var(--ink-on-dark);
  border-color: var(--accent);
}

.actions button { background: var(--surface); color: var(--ink); font-size: 13px; }
.actions button:hover { background: var(--surface-2); }

.actions button:first-child, #loadDeepReport {
  background: var(--accent);
  color: var(--ink-on-dark);
  border-color: var(--accent);
}

.actions button:first-child:hover, #loadDeepReport:hover {
  background: #082e26;
}

#exportReport {
  background: var(--gold);
  color: var(--ink-on-gold);
  border-color: var(--gold);
}

#exportReport:hover { background: var(--accent-warm-hover); }

.filters { margin-bottom: 14px; }

.filters label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.filters select {
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 行情状态 ---------- */

.quote-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.quote-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.quote-status[data-status="live"] {
  background: rgba(31, 138, 94, 0.14);
  color: var(--up);
}

.quote-status[data-status="live"]::before {
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.quote-status[data-status="loading"] {
  background: rgba(180, 130, 24, 0.14);
  color: var(--warn);
}

.quote-status[data-status="snapshot"] {
  background: rgba(179, 73, 61, 0.12);
  color: var(--down);
}

.quote-status[data-status="preview"] {
  background: var(--surface-2);
  color: var(--muted);
}

/* ---------- 模型控制台 ---------- */

.model-console {
  display: grid;
  gap: 18px;
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.model-copy {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.model-copy h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.model-copy p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

.weight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.weight-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.weight-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.weight-grid strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.model-console .muted {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 100%;
}

/* min-width 仅作用于股票池这类宽表;tier-matrix 等小表自适应 */
.table-wrap > table {
  width: 100%;
  min-width: 960px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

tbody tr {
  transition: background-color 0.12s ease;
  cursor: pointer;
}

tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }

.ticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink-on-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stock-row.is-open {
  background: var(--surface-2);
  position: relative;
}

.stock-row.is-open td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}

.row-detail {
  background: var(--surface-2);
}

.row-detail td { padding: 24px 28px; }

.row-detail-meta { margin-top: 8px; }
.row-event { margin-top: 12px; font-size: 13px; line-height: 1.6; }
.row-ir {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 40, 69, 0.32);
  font-size: 13px;
  font-weight: 600;
}
.row-ir:hover { border-bottom-color: var(--accent); }

.sparkline-wrap {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.row-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.row-detail h4 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 700;
}

.factor-bars-detail { display: grid; gap: 10px; }

.factor-line {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.factor-line span { font-size: 13px; color: var(--ink-soft); }
.factor-line strong {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.factor-line .track {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.factor-line .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.sparkline {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  height: 22px;
}

.sparkline-big {
  width: 100%;
  height: 90px;
}

.sparkline path { fill: none; }
.sparkline .line { stroke: var(--accent); stroke-width: 1.6; }
.sparkline .area { fill: rgba(26, 40, 69, 0.1); stroke: none; }

.price-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 600;
}

.price-cell small {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
}

.change-up { color: var(--up); }
.change-down { color: var(--down); }

.model-score {
  display: grid;
  gap: 8px;
  min-width: 110px;
}

.model-score strong {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}

.score {
  width: 110px;
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.score i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.signal-box { display: grid; gap: 6px; min-width: 220px; }
.signal-box small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.factor-row { display: flex; gap: 5px; flex-wrap: wrap; }
.factor-row span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Membership ---------- */

.billing-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.billing-controls select {
  min-height: 40px;
  padding: 0 12px;
  font-weight: 500;
}

.billing-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.billing-region-hint {
  color: var(--ink-soft);
  font-weight: 500;
}

.billing-region-edit {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.billing-region-edit:hover { text-decoration: underline; }

.subscription-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.account-card .eyebrow { color: var(--accent-soft); margin: 0; }

.account-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.account-card dl { display: grid; gap: 10px; margin: 0; }
.account-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.account-card dt { color: var(--muted); font-size: 13px; }
.account-card dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
  font-weight: 600;
}

.account-card button {
  width: 100%;
  background: var(--ink);
  color: var(--ink-on-dark);
  border-color: var(--ink);
}

.account-card button:hover { background: #0c1a16; }

.account-entitlements { display: flex; gap: 8px; flex-wrap: wrap; }
.account-entitlements span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 138, 94, 0.14);
  color: var(--up);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.plan.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.plan.recommended {
  border-color: var(--gold);
}

.plan.recommended::before {
  content: "推荐";
  position: absolute;
  top: -10px;
  left: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-on-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body[data-locale="en-US"] .plan.recommended::before { content: "Recommended"; }
body[data-locale="ja-JP"] .plan.recommended::before { content: "おすすめ"; }
body[data-locale="zh-Hant"] .plan.recommended::before { content: "推薦"; }

.plan span {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.plan strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.1;
}

.plan.recommended strong { color: var(--accent-warm); }

.plan p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 14px;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 16px;
  color: var(--ink);
  line-height: 1.55;
  font-size: 14px;
}

.plan ul li::marker { color: var(--gold); }

.plan button {
  background: var(--accent);
  color: var(--ink-on-dark);
  border-color: var(--accent);
  font-weight: 600;
}

.plan button:hover:not(:disabled) { background: #082e26; }

.plan button:disabled {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

.plan.recommended button {
  background: var(--gold);
  color: var(--ink-on-gold);
  border-color: var(--gold);
}

.plan.recommended button:hover:not(:disabled) { background: var(--accent-warm-hover); }

.entitlement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.entitlement-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entitlement-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.entitlement-card.unlocked {
  border-color: rgba(31, 138, 94, 0.4);
  background: linear-gradient(180deg, var(--surface), rgba(31, 138, 94, 0.04));
}

.entitlement-card h3 { margin: 0; font-size: 17px; }
.entitlement-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; font-size: 14px; }

.premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 22px;
  min-width: 0;
}

/* tier 对比表用小字 + 自适应,不强制 960 宽 */
.tier-matrix { font-size: 12px; }
.tier-matrix th, .tier-matrix td { padding: 8px 6px; }
@media (max-width: 620px) {
  .tier-matrix { font-size: 11.5px; table-layout: fixed; }
  .tier-matrix th, .tier-matrix td { padding: 8px 4px; word-break: break-word; }
  .tier-matrix tbody th[scope="row"] {
    white-space: normal !important;
    padding: 8px 6px;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .tier-matrix thead th { padding: 8px 4px; font-size: 10px; letter-spacing: 0.04em; }
  .tier-matrix thead th.tier-col { font-size: 12px; }
  .tier-matrix .tier-cell { padding: 8px 4px; font-size: 11px; line-height: 1.4; }
}

.premium-box {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;        /* 防被内嵌 min-width 撑爆 */
  max-width: 100%;
  overflow-wrap: anywhere;
}

.premium-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.premium-head h3 { margin: 0; font-size: 20px; }

/* 深度报告主题 tab */
.topic-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 14px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--surface-2);
  flex-wrap: wrap;
}

.topic-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.topic-tab:hover { background: var(--surface); color: var(--accent); }

.topic-tab.is-active {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}

.topic-tab .topic-icon {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 12px;
}

.topic-tab .topic-tier {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-2);
}

.topic-tab.is-active .topic-tier {
  background: rgba(201, 164, 94, 0.18);
  color: #8a6822;
}

/* paywall */
/* ---------- 股票行内事件 feed ---------- */
.row-events {
  margin-top: 16px; padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 10px;
}
.row-events h4 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.row-events-list { display: grid; gap: 10px; }
.row-event-item {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.row-event-head {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  margin-bottom: 6px;
}
.row-event-date { color: var(--ink-soft); }
.row-event-kind {
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.row-event-impact { padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.row-event-impact.impact-high { background: rgba(201,164,94,0.2); color: #8a6822; }
.row-event-impact.impact-mid  { background: rgba(47,143,106,0.16); color: var(--up); }
.row-event-impact.impact-low  { background: var(--surface-2); color: var(--muted); }
.row-event-item h5 {
  margin: 0 0 4px; font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.4;
}
.row-event-item p {
  margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.55;
}
.row-event-src {
  display: inline-block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); text-decoration: none;
}
.row-event-src:hover { text-decoration: underline; }
.row-event-locked {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding: 12px 16px;
  border: 1px dashed var(--gold); border-radius: 8px;
  background: linear-gradient(135deg, rgba(201,164,94,0.10), transparent);
}
.row-event-locked p { margin: 0; font-size: 13px; color: var(--ink); }
.row-event-locked .paywall-cta {
  padding: 6px 14px; font-size: 12px; min-height: auto;
}

/* ---------- Mobile ≤620 加强:股票池表更紧凑 + filter 单列 + 触摸友好 ---------- */
@media (max-width: 620px) {
  .filters {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .filters label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .filters select { min-height: 44px; font-size: 16px; width: 100%; }

  /* === 股票池:表格→卡片 (≤620) === */
  .table-wrap { overflow: visible; }
  .table-wrap::after { display: none; }
  .table-wrap > table { display: block; min-width: 0; width: 100%; font-size: 13px; }
  .table-wrap > table thead { display: none; }
  .table-wrap > table tbody { display: block; }
  tr.stock-row {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank ticker price"
      "name name   name"
      "logic logic logic"
      "score signal call";
    column-gap: 10px;
    row-gap: 8px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    cursor: pointer;
  }
  tr.stock-row.is-open { border-color: var(--accent-warm); box-shadow: 0 0 0 1px var(--accent-warm); }
  tr.stock-row td { display: block; border: 0; padding: 0; vertical-align: top; }
  tr.stock-row td:nth-child(1) {
    grid-area: rank;
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    color: var(--ink-muted);
    align-self: center;
  }
  tr.stock-row td:nth-child(2) {
    grid-area: ticker;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    align-self: center;
    justify-content: flex-start;
  }
  tr.stock-row td:nth-child(2) .ticker { margin: 0; }
  tr.stock-row td:nth-child(3) {
    grid-area: name;
    font-family: var(--serif); font-size: 15px; font-weight: 600;
    color: var(--ink-strong); line-height: 1.35;
  }
  tr.stock-row td:nth-child(3) small,
  tr.stock-row td:nth-child(3) br + * {
    font-family: var(--mono); font-size: 10.5px; font-weight: 400;
    color: var(--ink-muted); letter-spacing: 0.04em;
  }
  tr.stock-row td:nth-child(4) {
    grid-area: logic;
    font-size: 12.5px; line-height: 1.55; color: var(--ink-soft);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  tr.stock-row td:nth-child(5) {
    grid-area: price;
    text-align: right;
    font-family: var(--mono); font-size: 13px; font-weight: 600;
    color: var(--ink-strong);
    white-space: nowrap;
    align-self: center;
  }
  tr.stock-row td:nth-child(6) {
    grid-area: score;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
  }
  tr.stock-row td:nth-child(7) {
    grid-area: signal;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-size: 11.5px;
    color: var(--ink-soft);
    text-align: center;
  }
  tr.stock-row td:nth-child(8) {
    grid-area: call;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-size: 12px; font-weight: 600;
    color: var(--accent-warm);
    text-align: right;
    align-self: center;
  }
  /* sparkline / score 内部紧凑 */
  tr.stock-row .sparkline { width: 56px; height: 18px; }
  tr.stock-row .score-num { font-size: 13px; }
  tr.stock-row .score-delta { font-size: 10px; padding: 1px 5px; margin-left: 4px; }
  /* expanded 详情行:占整行 */
  tr.row-detail { display: block; width: 100%; margin: -10px 0 14px; }
  tr.row-detail td { display: block; width: 100%; max-width: 100%; padding: 14px; background: var(--surface-2); border-radius: 0 0 10px 10px; }
  tr.row-detail .row-detail-grid { grid-template-columns: 1fr !important; gap: 16px; }
  tr.row-detail .sparkline-wrap svg { width: 100%; height: auto; }
  tr.row-detail .factor-bars-detail .factor-line {
    grid-template-columns: 90px 1fr 32px;
    font-size: 12px;
  }
  .upgrade-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
  }
  .upgrade-banner-cta { text-align: center; width: 100%; }
  /* Hero 三卡 stack 间距收紧 */
  .anchor-card { padding: 14px; }
  .anchor-metric-value { font-size: var(--fs-h3); }
}

/* ---------- 30 日 score delta chip + spark empty ---------- */
.score-delta {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.score-delta-up { background: rgba(211,59,59,0.12); color: var(--up); }
.score-delta-down { background: rgba(47,143,106,0.14); color: var(--down); }
.spark-empty {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.2em;
}

/* ---------- v73 · Hero quick-nav 锚链(首屏 5 入口) ---------- */
.hero-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hero-quicknav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(241, 235, 214, 0.18);
  border-radius: 999px;
  background: rgba(241, 235, 214, 0.04);
  color: rgba(241, 235, 214, 0.78);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.hero-quicknav a:hover {
  background: rgba(241, 235, 214, 0.10);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}
@media (max-width: 620px) {
  .hero-quicknav { gap: 6px; margin-top: 14px; }
  .hero-quicknav a { padding: 7px 11px; font-size: 11.5px; }
}

/* ---------- v76 · Comparables 估值表(替代假 slider) ---------- */
#ipoComparablesCard { display: flex; flex-direction: column; gap: 14px; }
.comparables-anchor {
  padding: 16px 18px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-warm);
}
.comparables-anchor-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.comparables-anchor-value { font-size: 28px; font-weight: 700; color: var(--ink-strong); }
.comparables-anchor-label { font-size: 13px; color: var(--ink-soft); font-family: var(--mono); letter-spacing: 0.04em; }
.comparables-anchor-note { margin: 8px 0; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.comparables-anchor-note a { color: var(--brand); font-family: var(--mono); font-size: 12px; }
.comparables-anchor-note a:hover { color: var(--accent-warm); }
.comparables-metric { font-size: 13px; color: var(--ink); margin-top: 6px; }
.comparables-metric strong { color: var(--accent-warm); font-size: 14px; }
.comparables-peers-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 6px; }
.comparables-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.comparables-table th { padding: 8px 6px; text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.comparables-table td { padding: 10px 6px; border-bottom: 1px dashed var(--line); }
.comparables-table tr:last-child td { border-bottom: 0; }
.comparables-ticker a { color: var(--brand); font-family: var(--mono); font-weight: 700; text-decoration: none; }
.comparables-ticker a:hover { color: var(--accent-warm); }
.comparables-mult { color: var(--ink-strong); font-weight: 700; }
.comparables-src { color: var(--ink-muted); font-size: 11px; }
.comparables-disclaimer { font-size: 11px; color: var(--ink-muted); font-style: italic; margin: 4px 0 0; }
@media (max-width: 620px) {
  .comparables-table th, .comparables-table td { padding: 6px 4px; font-size: 11.5px; }
  .comparables-anchor-value { font-size: 22px; }
}

/* ---------- v73 · Deep Report permalink (替代 "读取深度报告" 按钮) ---------- */
.deep-report-permalink {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 160ms ease, color 160ms ease;
  align-self: flex-start;
}
.deep-report-permalink:hover {
  background: var(--brand);
  color: var(--ink-on-dark);
}

/* ---------- v70 · review stale 徽章 (经得起检验) ---------- */
.review-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  vertical-align: middle;
  transition: background 160ms ease;
}
.review-badge.review-stale {
  background: rgba(211, 59, 59, 0.12);
  color: var(--up);
  border: 1px solid rgba(211, 59, 59, 0.32);
}
.review-badge.review-stale:hover { background: rgba(211, 59, 59, 0.22); }

/* ---------- ER countdown chip (股票行内) ---------- */
.er-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg-muted);
  color: var(--ink-soft);
  text-decoration: none;
  vertical-align: middle;
  transition: background 160ms ease;
}
.er-chip:hover { background: var(--line); }
.er-chip.er-soon {
  background: var(--accent-warm);
  color: var(--ink-on-gold);
}

/* ---------- Watchlist ★ button ---------- */
.watch-star {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  width: 22px; height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-muted);
  border-radius: 4px;
  transition: color 160ms ease, transform 100ms ease;
  vertical-align: middle;
}
.watch-star:hover { color: var(--accent-warm); transform: scale(1.15); }
.watch-star.is-on { color: var(--accent-warm); }
.watch-star:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 1px; }

/* ---------- 7 天免费试用 badge ---------- */
.trial-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-warm) !important;
  color: #fff !important;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}

/* ---------- Free → Pro 转化 banner ---------- */
.upgrade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 16px 0 22px; padding: 18px 22px 18px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(217,116,65,0.18), rgba(217,116,65,0.04));
  border: 1px solid var(--accent-warm);
  box-shadow: 0 6px 14px rgba(217,116,65,0.10);
  font-size: 14px;
  position: relative;
}
.upgrade-banner::before {
  content: "★";
  position: absolute; top: -10px; left: 18px;
  background: var(--accent-warm); color: var(--ink-on-gold);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(217,116,65,0.32);
}
.upgrade-banner > div { display: grid; gap: 4px; }
.upgrade-banner strong {
  font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--ink);
}
.upgrade-banner span { color: var(--ink-soft); }
.upgrade-banner-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--gold); color: var(--ink-on-gold);
  text-decoration: none; font-weight: 700;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  transition: background-color 160ms ease, transform 80ms ease;
}
.upgrade-banner-cta:hover { background: var(--accent-warm-hover); transform: translateY(-1px); }
@media (max-width: 640px) {
  .upgrade-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .upgrade-banner-cta { width: 100%; text-align: center; }
}

.deep-report.is-locked { position: relative; }
.deep-report.is-locked .deep-locked p.blurred {
  filter: blur(5px);
  user-select: none;
  color: var(--muted);
}

.paywall-overlay {
  margin-top: 12px;
  padding: 22px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201, 164, 94, 0.08), rgba(26, 40, 69, 0.04));
  text-align: center;
}

.paywall-overlay strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}

.paywall-overlay p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.6; }

.paywall-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink-on-gold);
  text-decoration: none;
  font-weight: 600;
}

.paywall-cta:hover { background: var(--accent-warm-hover); }

.deep-report section {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
}

.deep-report h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 17px;
}

.deep-report p { margin: 0; color: var(--ink-soft); line-height: 1.7; }

.deep-report { display: grid; gap: 12px; }

/* ---------- 报告归档 ---------- */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}

.archive-date {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.archive-card strong { font-family: var(--serif); font-size: 16px; line-height: 1.4; font-weight: 600; }
.archive-card small { color: var(--muted); font-size: 12px; }

/* v82 · 报告 author 信号:AI 自动 / AI 草拟人审 / 人工 */
.archive-author-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.archive-author-badge.is-auto { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.archive-author-badge.is-ai-curated { background: rgba(217, 116, 65, 0.16); color: var(--accent-warm); }
.archive-author-badge.is-editorial { background: rgba(47, 143, 106, 0.16); color: var(--down); }

/* v88 · anchor card 动效:进场 sparkline + count-up + hover 三轴高亮 */
@keyframes anchor-spark-in {
  to { stroke-dashoffset: 0; }
}
@keyframes onbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* v88 · 全局 toast */
.anchored-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--brand);
  color: var(--ink-on-dark);
  padding: 12px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  z-index: 9500;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.16,1,.3,1), opacity .25s ease;
}
.anchored-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.anchored-toast[data-kind="success"] { background: var(--down); }
.anchored-toast[data-kind="error"] { background: var(--up); }

/* v88 · stock-row hover 增强 */
.stock-row {
  transition: background .15s ease;
}
.stock-row:hover {
  background: var(--bg-elevated);
}
.stock-row .watch-star {
  opacity: .55;
  transition: opacity .15s ease, transform .15s ease;
}
.stock-row:hover .watch-star,
.stock-row .watch-star.is-on {
  opacity: 1;
}
.stock-row .watch-star:hover {
  transform: scale(1.2);
}

/* v88 · 空状态视觉升级 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.empty::before {
  content: "◌";
  display: block;
  font-size: 30px;
  color: var(--accent-warm-soft);
  margin-bottom: 10px;
  opacity: .6;
  animation: empty-pulse 3s ease-in-out infinite;
}
@keyframes empty-pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.08); opacity: .8; }
}
/* 不要给所有 empty 都加图标(例如表格 td>p.empty) */
td .empty::before, .stock-row .empty::before, .small-empty::before { display: none; }
.anchor-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.anchor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(217, 116, 65, 0.45);
}
.anchor-card:hover .anchor-metric-value {
  color: var(--accent-warm);
  transition: color .2s ease;
}

/* v88 · 今日观察时间线 */
/* v95 · 首次 AI Brief CTA banner (审计 #15) */
.first-brief-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px auto 0;
  max-width: 980px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(217,116,65,0.16), rgba(217,116,65,0.04));
  border: 1px solid var(--accent-warm);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(217,116,65,0.10);
}
.first-brief-banner .fbb-icon {
  font-size: 28px;
  color: var(--accent-warm);
  flex-shrink: 0;
}
.first-brief-banner .fbb-body { flex: 1; }
.first-brief-banner .fbb-eyebrow {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent-warm);
  font-weight: 700;
}
.first-brief-banner .fbb-title {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
}
.first-brief-banner .fbb-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.first-brief-banner .fbb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.first-brief-banner .btn-primary {
  padding: 10px 18px;
  background: var(--accent-warm);
  color: var(--ink-on-gold);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.first-brief-banner .btn-primary:hover { background: var(--accent-warm-hover); }
.first-brief-banner .btn-primary:disabled { opacity: 0.6; cursor: wait; }
.first-brief-banner .btn-ghost-sm {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.first-brief-banner .btn-ghost-sm:hover { border-color: var(--ink-strong); color: var(--ink-strong); }
@media (max-width: 720px) {
  .first-brief-banner { flex-wrap: wrap; padding: 14px 16px; }
  .first-brief-banner .fbb-body { width: 100%; }
  .first-brief-banner .fbb-actions { margin-top: 8px; }
}

/* v94 · Research Hub 6 主题 grid (审计 #9) */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent-warm);
}
.topic-card .topic-icon {
  font-size: 22px;
  color: var(--accent-warm);
  margin-bottom: 6px;
  font-family: var(--serif);
}
.topic-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink-strong);
  line-height: 1.3;
}
.topic-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
  flex: 1;
}
.topic-card .topic-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.topic-card .topic-tier {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.topic-card .topic-tier.pro { color: var(--accent-warm); }
.topic-card .topic-tier.research { color: var(--gold); }
.topic-card .topic-arrow { font-size: 14px; transition: transform 0.15s ease; }
.topic-card:hover .topic-arrow { transform: translateX(4px); color: var(--accent-warm); }

.today-timeline {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 16px;
}
.today-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.today-head .eyebrow {
  margin: 0;
  color: var(--accent-warm);
}
.today-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(211, 59, 59, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(211, 59, 59, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(211, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 59, 59, 0); }
}
.today-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.today-item {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.today-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent-warm);
  box-shadow: var(--shadow-1);
}
.today-item-tag {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  font-weight: 700;
}
.today-item-tag.event { background: rgba(217, 116, 65, 0.18); color: var(--accent-warm); }
.today-item-tag.mover-up { background: rgba(211, 59, 59, 0.16); color: var(--up); }
.today-item-tag.mover-down { background: rgba(47, 143, 106, 0.18); color: var(--down); }
.today-item-headline {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-strong);
}
.today-item-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .today-list { grid-template-columns: 1fr; }
}

.archive-cta {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  min-height: 38px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.archive-cta:hover { background: var(--accent); color: var(--ink-on-dark); }

/* ---------- Delivery / checkout ---------- */

.checkout-status {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 14px;
}

/* 会员功能对比矩阵 */
.tier-matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13px;
}

.tier-matrix thead th {
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tier-matrix thead th.tier-col {
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.tier-matrix thead th.tier-recommended {
  background: rgba(201, 164, 94, 0.16);
  color: #8a6822;
}

.tier-matrix tbody th[scope="row"] {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.tier-matrix .tier-cell {
  padding: 12px 14px;
  text-align: center;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.45;
}

.tier-matrix .tier-cell .check {
  color: var(--up);
  font-weight: 700;
  margin-right: 2px;
}

.tier-matrix .tier-cell.is-empty {
  color: var(--line-strong);
  font-family: var(--mono);
}

.tier-matrix .tier-cell.is-current {
  background: rgba(26, 40, 69, 0.06);
  font-weight: 600;
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}

.tier-matrix tbody tr:last-child th,
.tier-matrix tbody tr:last-child td {
  border-bottom: none;
}

.delivery-list { display: grid; gap: 10px; }

.delivery-list > div {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.delivery-list span {
  width: 8px; height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.delivery-list p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 14px;
}

/* ---------- IPO 事件池 ---------- */

.ipo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.ipo-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ipo-card h3 { margin: 0; font-size: 22px; }

.bullets { display: grid; gap: 12px; }

.bullets > div {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.scenario {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  min-height: 170px;
}

.scenario strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.slider-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--paper-2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-1);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--surface);
}

/* ---------- Risk grid / sources ---------- */

.risk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sources a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  text-decoration: none;
  background: var(--surface);
  font-size: 14px;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

/* v75 · 真数据 source cards */
.source-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 4px;
}
.source-card-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.source-icon { font-size: 14px; }
.source-label { font-weight: 700; }
.source-value { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--ink-strong); margin-top: 2px; }
.source-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.source-honest-link { display: inline-block; grid-column: 1 / -1; margin-top: 8px; padding: 12px 16px; border: 1px dashed var(--accent-warm); border-radius: var(--radius); text-align: center; color: var(--accent-warm); text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; transition: background 160ms ease; }
.source-honest-link:hover { background: rgba(217,116,65,0.08); }

.sources a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

footer {
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 32px 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
}

.footer-grid > div {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 13px;
}

.footer-grid > div strong { color: var(--ink); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.footer-nav a:hover { border-bottom: 1px solid var(--accent); }

.footer-meta {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- DEV ---------- */

body.is-dev::before {
  content: "DEV";
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 40;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(180, 130, 24, 0.92);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  box-shadow: var(--shadow-2);
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

body.is-dev:hover::before { opacity: 1; }

/* ---------- Skeleton ---------- */

.skeleton {
  display: inline-block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--paper-2), var(--surface-2), var(--paper-2));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state, .error-state {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
}

.error-state {
  border-color: rgba(179, 73, 61, 0.32);
  background: rgba(179, 73, 61, 0.04);
  color: var(--down);
}

/* ---------- Locale 自适应字号 ---------- */

body[data-locale="ja-JP"] .hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.18;
}

body[data-locale="en-US"] .hero-copy h1 {
  font-size: clamp(34px, 4vw, 56px);
}

body[data-locale="ja-JP"] .nav a,
body[data-locale="en-US"] .nav a {
  font-size: 13px;
  padding: 8px 10px;
}

body[data-locale="ja-JP"] h2,
body[data-locale="en-US"] h2 {
  font-size: clamp(20px, 2vw, 26px);
}

/* ---------- 法务页 ---------- */

body.legal-page {
  padding-top: 0;
  background: var(--paper);
}

body.legal-page .legal-header {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: var(--ink-on-dark);
  padding: 64px 28px 48px;
  border-bottom: 1px solid rgba(201, 164, 94, 0.2);
}

body.legal-page .legal-header h1 {
  max-width: 960px;
  margin: 14px auto 8px;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--ink-on-dark);
}

body.legal-page .legal-header .muted {
  max-width: 960px;
  margin: 0 auto;
  color: rgba(241, 235, 214, 0.7);
  font-size: 13px;
}

body.legal-page .back-link {
  display: inline-block;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.legal-page .legal-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}

body.legal-page .legal-main section {
  margin: 0 0 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body.legal-page .legal-main h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--ink);
}

body.legal-page .legal-main p,
body.legal-page .legal-main li {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 15px;
}

body.legal-page .legal-main ul,
body.legal-page .legal-main ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

body.legal-page .legal-main code {
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 13px;
}

body.legal-page .legal-main a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 40, 69, 0.32);
}

body.legal-page .legal-main a:hover { border-bottom-color: var(--accent); }

body.legal-page .legal-callout {
  background: linear-gradient(180deg, rgba(201, 164, 94, 0.1), var(--surface)) !important;
  border-color: var(--gold) !important;
}

body.legal-page footer { border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .logic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entitlement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero,
  .split,
  .visual-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 6vw, 38px);
  }

  .nav {
    padding: 0 14px;
    gap: 8px;
  }
  .nav-brand { margin-right: auto; }
  .nav-links { display: none; }
  .nav > select#localeSelect { display: none; }
  .nav-auth { display: none; }
  .nav-burger {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-left: 4px;
    border: 1px solid rgba(241,235,214,0.22);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    gap: 4px;
  }
  .nav-burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ink-on-dark);
    border-radius: 2px;
    margin: 2px 0;
    transition: transform 0.18s ease;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .kpis,
  .visual-grid,
  .plans,
  .premium-grid,
  .ipo-layout,
  .sources,
  .trust,
  .subscription-shell {
    grid-template-columns: 1fr 1fr;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  main { padding: 0 16px 32px; }

  .hero { padding-left: 16px; padding-right: 16px; }

  .hero-subscribe { max-width: none; }
  .hero-subscribe > div { flex-direction: column; }
  .hero-subscribe button { width: 100%; }

  .hero-pricing { display: none; }

  .cta-primary, .cta-secondary { flex: 1 1 100%; }

  .kpis,
  .logic-grid,
  .risk-grid,
  .plans,
  .entitlement-grid,
  .premium-grid,
  .ipo-layout,
  .sources,
  .trust,
  .subscription-shell,
  .archive-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .status-card { grid-template-columns: 1fr; }

  .panel { padding: 22px 18px; }

  .table-wrap { position: relative; }
  .table-wrap::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 32px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--surface));
  }

  table { font-size: 13px; }
  th, td { padding: 12px 10px; }

  body.legal-page .legal-header { padding: 40px 18px 30px; }
  body.legal-page .legal-main { padding: 24px 16px 40px; }
  body.legal-page .legal-main section { padding: 18px 20px; }

  /* bottom tab 显示 + body 给 tab 让位 */
  .bottom-tab { display: flex; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

  /* === 触摸友好:防 iOS 输入框自动放大(font-size ≥ 16px)+ 触摸目标 ≥ 44px === */
  input[type="text"], input[type="email"], input[type="search"],
  input[type="tel"], input[type="url"], input[type="password"],
  input[type="number"], textarea, select {
    font-size: 16px;
  }
  button, .cta-primary, .cta-secondary, .paywall-cta, .upgrade-banner-cta {
    min-height: 44px;
  }
  .auth-form { grid-template-columns: 1fr; }
  .auth-form input, .auth-form button { width: 100%; }
  .auth-modal { padding: 12px; }
  .auth-modal-card { padding: 28px 22px 20px; max-height: calc(100vh - 24px); overflow-y: auto; }

  /* 表单 hero-subscribe 输入框防缩放 */
  .hero-subscribe input { font-size: 16px; }

  /* 详情面板 sparkline 防溢出 */
  .row-detail svg, .factor-bars-detail svg { max-width: 100%; height: auto; }

  /* membership panel-head 调整 */
  .billing-controls { width: 100%; }
  .premium-head h3 { font-size: 17px; }
}

/* === safe-area 兜底:所有视口都给 .nav 顶部留刘海空间 === */
.nav { padding-top: env(safe-area-inset-top); }
.mobile-drawer-panel { padding-top: calc(22px + env(safe-area-inset-top)); }
