/* ============================================================
   打新罗盘 · 设计系统
   全新视觉：深蓝 + 青色，侧边栏导航，卡片化布局
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- 字号体系（顶栏 A 切换 小/中/大） ---------- */
html { font-size: 16px; }
body { font-size: 15.2px; }
html[data-fs="s"] body { font-size: 14px; }
html[data-fs="m"] body { font-size: 15.2px; }
html[data-fs="l"] body { font-size: 16.8px; }
html[data-fs="s"] table.dt td, html[data-fs="s"] table.dt th { font-size: 12.4px; }
html[data-fs="l"] table.dt td, html[data-fs="l"] table.dt th { font-size: 14.6px; }
html[data-fs="l"] .stat .v { font-size: 23px; }
html[data-fs="l"] .hint, html[data-fs="l"] .site-foot, html[data-fs="l"] .footnote { font-size: 13.2px; }
html[data-fs="l"] .card-h .ct { font-size: 16.2px; }
html[data-fs="s"] .stat .v { font-size: 19px; }

:root {
  --bg: #f3f6fb;
  --bg-soft: #e9eef7;
  --card: #ffffff;
  --border: #e2e9f3;
  --text: #1b2537;
  --muted: #64748f;
  --faint: #94a3b8;
  --primary: #1b5cc6;
  --primary-weak: #e8effc;
  --accent: #0e9f9f;
  --accent-weak: #e2f6f6;
  --up: #d93a3a;
  --up-weak: #fdeeee;
  --down: #0a9d6d;
  --down-weak: #e6f7f1;
  --warn: #d97706;
  --warn-weak: #fdf3e3;
  --shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 6px 20px rgba(16, 32, 64, .06);
  --shadow-lg: 0 8px 30px rgba(16, 32, 64, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 236px;
  --topbar-h: 58px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

/* ---------- 配色方案（顶栏 ✦ 按钮切换） ---------- */
html[data-scheme="fashion"] {
  --primary: #be123c; --primary-weak: #fdf2f4;
  --accent: #f59e0b; --accent-weak: #fef3c7;
}
html[data-scheme="fresh"] {
  --primary: #0d9488; --primary-weak: #f0fdfa;
  --accent: #34d399; --accent-weak: #ecfdf5;
}
html[data-scheme="tech"] {
  --primary: #1b5cc6; --primary-weak: #e8effc;
  --accent: #0e9f9f; --accent-weak: #e2f6f6;
}
html[data-scheme="finance"] {
  --primary: #1e3a5f; --primary-weak: #e8edf4;
  --accent: #c9a227; --accent-weak: #fbf3d9;
}
html[data-theme="dark"][data-scheme="fashion"] {
  --primary: #fb7185; --primary-weak: #1f1428;
  --accent: #fbbf24; --accent-weak: #2b1f0a;
}
html[data-theme="dark"][data-scheme="fresh"] {
  --primary: #2dd4bf; --primary-weak: #0c1a1a;
  --accent: #6ee7b7; --accent-weak: #0a1f14;
}
html[data-theme="dark"][data-scheme="tech"] {
  --primary: #60a5fa; --primary-weak: #122036;
  --accent: #22d3ee; --accent-weak: #0a1a20;
}
html[data-theme="dark"][data-scheme="finance"] {
  --primary: #93b5e8; --primary-weak: #0f1a28;
  --accent: #e8c547; --accent-weak: #1a1808;
}

html[data-theme="dark"] {
  --bg: #0d1420;
  --bg-soft: #121b2a;
  --card: #16202f;
  --border: #253349;
  --text: #dbe5f3;
  --muted: #8394ae;
  --faint: #5c6c88;
  --primary: #5b93f0;
  --primary-weak: #1a2a45;
  --accent: #2fc6c6;
  --accent-weak: #10302f;
  --up: #ef5350;
  --up-weak: #331d1d;
  --down: #26b586;
  --down-weak: #12302a;
  --warn: #e8a23d;
  --warn-weak: #33270f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .45);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: #fff; }

/* ---------- 布局骨架 ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.brand .logo { width: 36px; height: 36px; flex: none; }
.brand .name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

.nav { flex: 1; padding: 10px 12px; overflow-y: auto; }
.nav-group { font-size: 11px; color: var(--faint); padding: 12px 10px 4px; letter-spacing: 1px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 2px;
  border: 1px solid transparent;
  transition: all .15s;
  user-select: none;
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item:hover { background: var(--bg-soft); color: var(--text); }
.nav-item.active {
  background: var(--primary-weak);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  font-weight: 600;
}
.nav-item .new-tag {
  margin-left: auto;
  font-size: 10px;
  background: var(--accent-weak);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 600;
}

.sidebar-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--faint); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .hamburger { display: none; }
.topbar .title { font-size: 16px; font-weight: 700; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 16px; height: 16px; }

.content { max-width: 1180px; margin: 0 auto; padding: 22px 24px 80px; }

/* ---------- 视图切换 ---------- */
.view { display: none; }
.view.active { display: block; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.card-h .ct { font-size: 15px; font-weight: 700; }
.card-h .cd { font-size: 12px; color: var(--muted); }
.card-h .spacer { flex: 1; }
.card-b { padding: 16px 18px; }
.card-b.flush { padding: 0; }
.hint { font-size: 12px; color: var(--muted); }
.hint b { color: var(--text); }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  box-shadow: var(--shadow);
}
.stat .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 21px; font-weight: 750; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 11px; color: var(--faint); margin-top: 1px; }
.stat.hero { background: linear-gradient(135deg, var(--primary), var(--accent)); border: none; }
.stat.hero .k, .stat.hero .v, .stat.hero .s { color: #fff; }
/* 暖色晕光变体（首日复盘等红色系页面） */
.stat.hero-warm {
  background:
    radial-gradient(120% 140% at 85% 12%, rgba(255, 255, 255, .28), transparent 55%),
    radial-gradient(100% 150% at 12% 95%, rgba(245, 158, 11, .35), transparent 58%),
    linear-gradient(135deg, #be123c 0%, #d64545 55%, #f59e0b 115%);
  box-shadow: 0 10px 28px rgba(190, 18, 60, .28);
}
.stat.hero-warm::after {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 143, .5), transparent 68%);
  pointer-events: none;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13.2px; white-space: nowrap; }
table.dt th {
  position: sticky; top: 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  font-size: 12.2px;
}
table.dt th.no-sort { cursor: default; }
table.dt th:first-child, table.dt td:first-child { text-align: left; }
table.dt td {
  padding: 8px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.dt tbody tr:hover td { background: color-mix(in srgb, var(--primary-weak) 45%, transparent); }
table.dt .name-cell { font-weight: 600; }
table.dt .sub-cell { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }
.table-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.table-foot .info { font-size: 12px; color: var(--muted); }
.pager { margin-left: auto; display: flex; gap: 6px; }

.up { color: var(--up); }
.down { color: var(--down); }
.num-neg::before { content: ""; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--muted);
}
.badge.b-primary { background: var(--primary-weak); color: var(--primary); }
.badge.b-accent { background: var(--accent-weak); color: var(--accent); }
.badge.b-up { background: var(--up-weak); color: var(--up); }
.badge.b-down { background: var(--down-weak); color: var(--down); }
.badge.b-warn { background: var(--warn-weak); color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.live { background: var(--up); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 表单 ---------- */
.input, .select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
  transition: border .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.input.w-sm { width: 110px; }
.input.w-md { width: 190px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.soft { background: var(--primary-weak); color: var(--primary); border: none; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; }

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 320px; }
.chart.sm { height: 240px; }
.chart.lg { height: 420px; }
.chart-box { padding: 8px 10px 12px; }

/* ---------- 时间轴（日历/资金规划） ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 8px 0 14px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -17px; top: 15px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--card);
}
.tl-item.t-apply::before { background: var(--primary); }
.tl-item.t-list::before { background: var(--accent); }
.tl-item.t-release::before { background: var(--warn); }
.tl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-title { font-weight: 650; }
.tl-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 日历网格 ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { text-align: center; font-size: 11.5px; color: var(--faint); padding: 4px 0; }
.cal .cell {
  min-height: 76px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 7px;
  background: var(--card);
  font-size: 11.5px;
}
.cal .cell.out { opacity: .35; }
.cal .cell.today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.cal .cell .dnum { font-size: 12px; color: var(--muted); font-weight: 600; }
.cal .ev { margin-top: 3px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.apply { background: var(--primary-weak); color: var(--primary); }
.cal .ev.list { background: var(--accent-weak); color: var(--accent); }
.cal .ev.release { background: var(--warn-weak); color: var(--warn); }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cal-legend .ev { margin-right: 4px; }

/* ---------- 结果框 ---------- */
.result {
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.result .rk { font-size: 12.5px; color: var(--muted); }
.result .rv { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.result.ok { background: var(--accent-weak); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.result.warn { background: var(--warn-weak); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* ---------- 我的打新（账本） ---------- */
.ledger-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ledger-empty { text-align: center; padding: 34px 10px; color: var(--muted); font-size: 13px; }
dialog.sheet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  padding: 0;
  width: min(480px, 92vw);
}
dialog.sheet::backdrop { background: rgba(8, 14, 26, .45); }
.sheet .card-h { border-bottom: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; align-items: center; }
.form-grid label { font-size: 13px; color: var(--muted); text-align: right; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-q::before { content: "?"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 18px; font-size: 13.5px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 420px; padding-bottom: 14px; }

/* ---------- 规则速查表 ---------- */
table.rule { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.rule th, table.rule td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.rule th { color: var(--muted); font-weight: 600; width: 128px; background: var(--bg-soft); }
table.rule tr:last-child td { border-bottom: none; }

/* ---------- 子页签 ---------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 12.8px;
  cursor: pointer;
  font-family: var(--font);
}
.subtab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ---------- 回放滑块 ---------- */
.slider-wrap { padding: 14px 18px 18px; }
input[type="range"].replay {
  width: 100%;
  accent-color: var(--primary);
  height: 26px;
  cursor: ew-resize;
}
.slider-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- 雷达状态 ---------- */
.radar-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; }
.radar-head .stock-title { font-size: 19px; font-weight: 750; }
.radar-head .code { color: var(--muted); font-weight: 500; font-size: 13px; }
.kv { display: flex; gap: 18px; flex-wrap: wrap; }
.kv .kv-item { font-size: 12.5px; color: var(--muted); }
.kv .kv-item b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; margin-left: 4px; }

.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.match-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-soft);
}
.match-card .mc-name { font-weight: 650; font-size: 13.5px; display: flex; justify-content: space-between; }
.match-card .mc-sim { font-size: 11px; color: var(--accent); font-weight: 700; }
.match-card .mc-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- 杂项 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .card { margin-bottom: 0; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } }
.footnote { font-size: 12px; color: var(--faint); padding: 10px 2px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.chart-empty { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 13px; height: 100%; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mb8 { margin-bottom: 8px; } .mb14 { margin-bottom: 14px; }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- 移动端 ---------- */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .topbar .hamburger { display: inline-flex; }
  .content { padding: 16px 13px 70px; }
  .stat .v { font-size: 18px; }
  table.dt { font-size: 12.4px; }
  .chart { height: 260px; }
}
#drawer-mask { position: fixed; inset: 0; background: rgba(8, 14, 26, .4); z-index: 45; display: none; }
#drawer-mask.show { display: block; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--faint) 45%, transparent); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 页脚 */
.site-foot { text-align: center; padding: 26px 10px 10px; font-size: 12px; color: var(--faint); line-height: 1.9; }

/* ============================================================
   时尚科技风增强层（v2）
   ============================================================ */

/* ---------- 全站氛围底色 ---------- */
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
    radial-gradient(760px 480px at -10% 30%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%),
    radial-gradient(700px 500px at 55% 115%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 62%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(1100px 700px at 60% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 700px at 60% 0%, #000 0%, transparent 78%);
  opacity: .5;
  pointer-events: none;
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 520px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(760px 480px at -10% 30%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(700px 500px at 55% 115%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%);
}

/* ---------- 卡片玻璃化 + 悬浮 ---------- */
.card, .stat {
  backdrop-filter: blur(10px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover, .stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
}
.card-h .ct { position: relative; padding-left: 13px; }
.card-h .ct::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* ---------- 按钮 ---------- */
.btn.lg { padding: 12px 24px; font-size: 15px; border-radius: 13px; }
.btn { position: relative; overflow: hidden; }
.btn:not(.ghost):not(.soft)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:not(.ghost):not(.soft):hover::after { transform: translateX(120%); }
.btn.ghost:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.btn.soft:hover { filter: brightness(1.03); }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  background:
    radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    radial-gradient(120% 150% at 0% 100%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 16s ease-in-out infinite alternate;
}
.aurora.a1 { width: 420px; height: 420px; left: -80px; top: -140px; background: var(--primary); opacity: .28; }
.aurora.a2 { width: 380px; height: 380px; right: 6%; top: -160px; background: var(--accent); opacity: .24; animation-delay: -5s; }
.aurora.a3 { width: 300px; height: 300px; left: 38%; bottom: -180px; background: var(--primary); opacity: .16; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 26px) scale(1.12); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 100% at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 100% at 70% 20%, #000 0%, transparent 75%);
  opacity: .5;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 18px;
  padding: 46px 44px 42px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  padding: 5px 14px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 16px 0 12px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 2px;
}
.hero-sub { color: var(--muted); font-size: 15px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--faint); }

/* 罗盘动效 */
.hero-visual { position: relative; height: 320px; }
.hero-compass {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 300px; height: 300px;
  color: var(--text);
  filter: drop-shadow(0 10px 40px color-mix(in srgb, var(--primary) 35%, transparent));
  animation: floaty 7s ease-in-out infinite;
}
.hero-compass .needle { transform-origin: 100px 100px; animation: swing 9s ease-in-out infinite; }
@keyframes swing {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--primary) 30%, transparent);
}
.orbit.o1 { width: 250px; height: 250px; animation: spin 26s linear infinite; }
.orbit.o2 { width: 300px; height: 300px; animation: spin 40s linear infinite reverse; border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.orbit.o3 { width: 348px; height: 348px; opacity: .5; }
.orbit::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.orbit.o2::before { background: var(--primary); box-shadow: 0 0 12px var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-chip {
  position: absolute;
  padding: 9px 14px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.hero-chip b { display: block; font-size: 10.5px; color: var(--faint); font-weight: 600; }
.hero-chip span { font-size: 15px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-chip.c1 { left: -4%; top: 14%; animation-delay: -1.5s; }
.hero-chip.c2 { right: -3%; top: 42%; animation-delay: -3s; }
.hero-chip.c3 { left: 6%; bottom: 8%; animation-delay: -4.5s; }

/* ---------- 首日速览条（静态） ---------- */
.glance-strip {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.glance-strip .ticker-tag {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: 0;
}
.glance-items { display: flex; flex-wrap: wrap; align-items: center; padding: 6px 12px; gap: 4px 22px; }
.tk-item { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; padding: 3px 0; }
.tk-item .n { font-weight: 650; color: var(--text); }
.tk-item .c { color: var(--faint); font-size: 11px; }
.tk-item .v { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 数字滚动统计 ---------- */
.stat .v { transition: color .2s; }
.stat.hero { box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 35%, transparent); }
.stat:not(.hero) .v { background: none; }

/* ---------- 工具展示卡 ---------- */
.tools-showcase .stat { cursor: pointer; position: relative; overflow: hidden; }
.tools-showcase .stat::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
}
.tools-showcase .stat:hover::before { opacity: 1; }
.tool-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--primary);
  margin-bottom: 8px;
}
.tool-icon svg { width: 19px; height: 19px; }
.tool-t { font-weight: 700; font-size: 14.5px; }
.tool-d { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- 入场动效 ---------- */
.view.active > * { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
.view.active > *:nth-child(2) { animation-delay: .06s; }
.view.active > *:nth-child(3) { animation-delay: .12s; }
.view.active > *:nth-child(4) { animation-delay: .18s; }
.view.active > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .aurora, .orbit, .hero-compass, .needle, .hero-chip, .ticker-track, .view.active > * { animation: none !important; }
}

/* ---------- 暗色英雄区微调 ---------- */
html[data-theme="dark"] .hero {
  background:
    radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    radial-gradient(120% 150% at 0% 100%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%),
    var(--card);
}
html[data-theme="dark"] .hero-chip { background: color-mix(in srgb, var(--card) 88%, transparent); }

/* ---------- 暖色调罗盘主题（总览英雄区 · 玫红→琥珀金 专业配色） ---------- */
.hero {
  border-color: color-mix(in srgb, #be123c 20%, var(--border));
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(245, 158, 11, .10), transparent 55%),
    radial-gradient(130% 160% at 0% 100%, rgba(190, 18, 60, .10), transparent 55%),
    var(--card);
}
.hero .aurora.a1 { background: #be123c; opacity: .17; }
.hero .aurora.a2 { background: #f59e0b; opacity: .15; }
.hero .aurora.a3 { background: #f43f5e; opacity: .11; }
html[data-theme="dark"] .hero .aurora.a1 { opacity: .26; }
html[data-theme="dark"] .hero .aurora.a2 { opacity: .2; }
.hero-compass { filter: drop-shadow(0 12px 44px rgba(190, 18, 60, .32)); }
.hero .grid-overlay {
  background-image:
    linear-gradient(rgba(190, 18, 60, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 18, 60, .1) 1px, transparent 1px);
}
.hero .orbit { border-color: rgba(190, 18, 60, .28); }
.hero .orbit.o2 { border-color: rgba(245, 158, 11, .3); }
.hero .orbit::before { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.hero .orbit.o2::before { background: #be123c; box-shadow: 0 0 12px #be123c; }
.hero-chip {
  border-color: color-mix(in srgb, #be123c 20%, var(--border));
  box-shadow: 0 6px 18px rgba(190, 18, 60, .12);
}
.hero-chip span { color: #be123c; }
html[data-theme="dark"] .hero-chip span { color: #fb7185; }
html[data-theme="dark"] .hero {
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(245, 158, 11, .09), transparent 55%),
    radial-gradient(130% 160% at 0% 100%, rgba(190, 18, 60, .16), transparent 55%),
    var(--card);
}

/* ---------- 新手 10 步流程 ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.step { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); position: relative; }
.step:last-child, .step:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.s-no {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 30%, transparent);
}
.s-body b { display: block; font-size: 13.8px; }
.s-body span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 图表小标题 / 推广卡 ---------- */
.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-card {
  border: 1px solid color-mix(in srgb, #be123c 24%, var(--border));
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(245, 158, 11, .1), transparent 60%),
    radial-gradient(120% 160% at 0% 100%, rgba(190, 18, 60, .1), transparent 60%),
    var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo-card .card-b { border-radius: var(--radius); }
.promo-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #be123c, #f59e0b);
  box-shadow: 0 6px 16px rgba(190, 18, 60, .28);
}
.promo-icon svg { width: 21px; height: 21px; }
.promo-t { font-weight: 750; font-size: 15px; }
.promo-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 英雄区移动端 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 30px 22px 26px; }
  .hero-visual { height: 230px; order: -1; }
  .hero-compass { width: 210px; height: 210px; }
  .orbit.o1 { width: 180px; height: 180px; }
  .orbit.o2 { width: 216px; height: 216px; }
  .orbit.o3 { width: 250px; height: 250px; }
  .hero-chip.c1 { left: 0; top: 4%; }
  .hero-chip.c2 { right: 0; top: 30%; }
  .hero-chip.c3 { left: 4%; bottom: 2%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .ticker-tag { padding: 0 10px; font-size: 11px; }
}
