/* ==========================================================================
   新经济成长股研究专栏 — 设计系统
   纯静态 / 零依赖 / 离线可用 / 亮暗双主题
   ========================================================================== */

/* ---------- 1. 设计令牌 (Design Tokens) ---------- */
:root {
  /* 色板 — 亮色主题 */
  --bg:          #f6f7f9;
  --bg-grad:     radial-gradient(1200px 600px at 85% -10%, #eef3f1 0%, transparent 60%),
                 radial-gradient(900px 500px at 0% 0%, #eef1f6 0%, transparent 55%);
  --surface:     #ffffff;
  --surface-2:   #f1f3f6;
  --surface-3:   #e9edf2;

  --ink:         #0d1626;
  --ink-2:       #46556b;
  --ink-3:       #8a98ac;
  --ink-inv:     #f7fafc;

  --border:      #e4e8ee;
  --border-2:    #d4dae2;

  --brand:       #0f2c4d;   /* 墨蓝主色 */
  --brand-2:     #16487a;
  --accent:      #0c7a66;   /* 翡翠绿 — 成长 */
  --accent-2:    #0e9a80;
  --accent-soft: rgba(12,122,102,.10);
  --gold:        #b07d2b;   /* 高亮 / 白马 */
  --gold-soft:   rgba(176,125,43,.12);

  --up:          #d9342b;   /* 涨 (A股惯例: 红涨) */
  --down:        #1a9e5e;   /* 跌 */
  --up-soft:     rgba(217,52,43,.10);
  --down-soft:   rgba(26,158,94,.10);

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-serif:"Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 间距 / 圆角 / 阴影 */
  --r-sm: 8px;  --r:    14px;  --r-lg: 20px;  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(13,22,38,.04), 0 1px 3px rgba(13,22,38,.06);
  --sh-2: 0 4px 12px rgba(13,22,38,.06), 0 2px 6px rgba(13,22,38,.04);
  --sh-3: 0 18px 40px rgba(13,22,38,.10), 0 6px 14px rgba(13,22,38,.06);

  --maxw: 1200px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --bg:          #0a0f17;
  --bg-grad:     radial-gradient(1200px 600px at 85% -10%, rgba(14,154,128,.10) 0%, transparent 60%),
                 radial-gradient(900px 500px at 0% 0%, rgba(22,72,122,.18) 0%, transparent 55%);
  --surface:     #111927;
  --surface-2:   #0e1622;
  --surface-3:   #1a2434;

  --ink:         #e8eef6;
  --ink-2:       #a3b2c6;
  --ink-3:       #6b7d93;
  --ink-inv:     #0d1626;

  --border:      #1f2a3a;
  --border-2:    #2a394d;

  --brand:       #9cc6f0;
  --brand-2:     #6fa9e0;
  --accent:      #16b394;
  --accent-2:    #1ccfa9;
  --accent-soft: rgba(22,179,148,.14);
  --gold:        #d6ab5c;
  --gold-soft:   rgba(214,171,92,.16);
  --up:          #ff5a4d;
  --down:        #25c277;
  --up-soft:     rgba(255,90,77,.14);
  --down-soft:   rgba(37,194,119,.14);
  --sh-1: 0 1px 2px rgba(0,0,0,.30);
  --sh-2: 0 6px 18px rgba(0,0,0,.35);
  --sh-3: 0 20px 48px rgba(0,0,0,.50);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  font-size: 15.5px;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
/* 内联图标默认尺寸（组件内带 class 的规则会覆盖；.spark/.chart-svg 等亦然） */
:where(svg) { width: 1.15em; height: 1.15em; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent-soft); }

/* 滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ---------- 3. 布局 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- 4. 排版 ---------- */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.display { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.h-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.h-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.serif { font-family: var(--font-serif); }
.center { text-align: center; }

.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 10px; }
.section-head p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }

/* ---------- 5. 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.01em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 120%);
  display: grid; place-items: center; color: #fff; box-shadow: var(--sh-1);
}
.brand .logo svg { width: 19px; height: 19px; }
.brand b { font-size: 16px; color: var(--ink); }
.brand span { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; display: block; margin-top: -3px;}
.brand .brand-text { line-height: 1.15; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links > * { position: relative; }
.nav-link {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); transition: .15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-link .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; opacity: .55; }

/* 下拉 */
.has-menu .dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 196px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh-3); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .16s;
}
.has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); font-weight: 600; }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown a .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-2); display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--border-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; border: 1px solid transparent; transition: .16s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; }
[data-theme="dark"] .btn-primary { background: var(--accent); color: #07130f; }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-accent { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-accent { color: #07130f; }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- 7. 徽章 / 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border);
}
.tag.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag.gold   { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.tag.brand  { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border-color: transparent; }
[data-theme="dark"] .tag.brand { background: rgba(156,198,240,.12); }

.pill-market   { --c: #2b6cb0; }
.pill-style    { --c: #5b7488; }
.pill-industry { --c: #7c4dbf; }
.pill-podcast  { --c: #b07d2b; }
.pill-eval     { --c: #0c7a66; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--c); padding: 3px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c) 11%, transparent);
}
.cat-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* 涨跌数字 */
.chg { font-family: var(--font-mono); font-weight: 700; font-feature-settings: "tnum"; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.up::before { content: "▲ "; font-size: .8em; }
.chg.down::before { content: "▼ "; font-size: .8em; }

/* 评级星/分 */
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-weight: 700; }
.score-chip {
  font-family: var(--font-mono); font-weight: 800; font-size: 15px; padding: 4px 11px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent); letter-spacing: -.02em;
}

/* 马 评级 */
.horse { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: var(--r-pill); }
.horse-white { background: var(--gold-soft); color: var(--gold); }
.horse-gray  { background: var(--surface-3); color: var(--ink-2); }
.horse-black { background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--ink-inv); }
[data-theme="dark"] .horse-black { background: #2a394d; color: var(--ink); }
.horse-turn  { background: color-mix(in srgb, #e0822f 18%, transparent); color: #b8591a; }
[data-theme="dark"] .horse-turn { background: #4a3520; color: #f0a45c; }

/* ---------- 8. 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh-1); transition: .18s; position: relative; overflow: hidden;
}
.card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: var(--border-2); }
.card-pad { padding: 22px; }
.card-link { cursor: pointer; }

/* 文章卡片 */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .ac-body { padding: 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.article-card .ac-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.article-card h3 { font-size: 17.5px; line-height: 1.4; letter-spacing: -.01em; }
.article-card:hover h3 { color: var(--accent); }
.article-card p { color: var(--ink-2); font-size: 14px; line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .ac-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.article-card .ac-foot .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--brand)); opacity: 0; transition: .2s; }
.article-card:hover .ac-accent { opacity: 1; }

/* 横向列表条目 */
.list-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: .15s; box-shadow: var(--sh-1);
}
.list-row:hover { border-color: var(--border-2); box-shadow: var(--sh-2); transform: translateX(2px); }
.list-row .lr-date { text-align: center; font-family: var(--font-mono); }
.list-row .lr-date .d { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1; }
.list-row .lr-date .m { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 3px; }
.list-row .lr-main h3 { font-size: 16.5px; margin-bottom: 5px; }
.list-row:hover .lr-main h3 { color: var(--accent); }
.list-row .lr-main p { color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-row .lr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---------- 9. 数据 / 图表 ---------- */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); }
.stat .label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .value { font-family: var(--font-mono); font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; color: var(--ink); }
.stat .sub { font-size: 12.5px; margin-top: 4px; }

/* 条形图 */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 116px 1fr 58px; gap: 12px; align-items: center; }
.bar-row .bl { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.bar-track { height: 10px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar-fill.brand { background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.bar-fill.gold  { background: linear-gradient(90deg, #caa056, var(--gold)); }
.bar-fill.up    { background: linear-gradient(90deg, #ef6b62, var(--up)); }
.bar-fill.down  { background: linear-gradient(90deg, #3fc78a, var(--down)); }
.bar-row .bv { font-family: var(--font-mono); font-size: 13px; font-weight: 700; text-align: right; color: var(--ink-2); }

/* 风格象限 / 热力 */
.heat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.heat-cell { aspect-ratio: 1.6; border-radius: var(--r-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; padding: 6px; text-align: center; }
.heat-cell .hc-v { font-family: var(--font-mono); font-size: 14px; }

/* SVG 走势容器 */
.spark { width: 100%; height: 56px; }
.chart-card .chart-svg { width: 100%; height: 200px; }

/* 数据表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--font-mono); font-feature-settings: "tnum"; }
table.data .name { font-weight: 700; color: var(--ink); }
table.data .code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ---------- 10. Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero .eyebrow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero .display { max-width: 18ch; }
.hero .display .grad { background: linear-gradient(120deg, var(--accent) 0%, var(--brand) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] .hero .display .grad { background: linear-gradient(120deg, var(--accent-2), var(--brand)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { max-width: 56ch; margin: 22px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-coverage { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-coverage .hc { display: flex; align-items: baseline; gap: 8px; }
.hero-coverage .hc b { font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: var(--ink); }
.hero-coverage .hc span { font-size: 13px; color: var(--ink-3); }
.hero-coverage .div { width: 1px; background: var(--border-2); }

/* 市场快照面板 */
.snapshot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.snapshot-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.snapshot-head .t { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 0 var(--down); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--down) 60%,transparent);} 70%{box-shadow:0 0 0 8px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.snapshot-grid { display: block; }
.snap-row-label { padding: 6px 20px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); background: rgba(127,127,127,.06); border-bottom: 1px solid var(--border); }
.snap-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.snap-item { padding: 13px 14px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.snap-item:nth-child(3n) { border-right: none; }
.snap-item .si-name { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.snap-item .si-val { font-family: var(--font-mono); font-size: 19px; font-weight: 800; margin-top: 3px; }
.snap-item .si-chg { font-size: 12.5px; margin-top: 2px; }

/* ---------- 11. 栏目导航大卡 ---------- */
.column-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; min-height: 210px; }
.column-card .cc-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-1); }
.column-card .cc-icon svg { width: 24px; height: 24px; }
.column-card h3 { font-size: 19px; }
.column-card p { color: var(--ink-2); font-size: 14px; flex: 1; }
.column-card .cc-sub { display: flex; gap: 7px; flex-wrap: wrap; }
.column-card .cc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--accent); }
.column-card:hover .cc-go { gap: 10px; }
.ic-market   { background: linear-gradient(135deg, #2b6cb0, #1a4d85); }
.ic-style    { background: linear-gradient(135deg, #7c4dbf, #5a2f9e); }
.ic-industry { background: linear-gradient(135deg, #8a5cd0, #5a2f9e); }
.ic-eval     { background: linear-gradient(135deg, #12997f, #0a5c4d); }
.ic-book     { background: linear-gradient(135deg, #c06a4a, #8a3f2a); }
.ic-podcast  { background: linear-gradient(135deg, #c5933a, #9c6f1f); }

/* ---------- 12. 页面头部 banner ---------- */
.page-hero { padding: 48px 0 30px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.page-hero .crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); }
.page-hero p { color: var(--ink-2); margin-top: 12px; max-width: 64ch; font-size: 16px; }
/* 名言注脚：放开宽度上限，够宽就一行，不在引文内部换行（人名靠 <br> 仍在下一行） */
.page-hero p.serif { max-width: none; }

/* ---------- 13. Tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab {
  padding: 12px 18px; font-weight: 700; font-size: 14.5px; color: var(--ink-3); border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .cnt { font-family: var(--font-mono); font-size: 11px; background: var(--surface-3); color: var(--ink-3); padding: 1px 7px; border-radius: var(--r-pill); }
.tab.active .cnt { background: var(--accent-soft); color: var(--accent); }
.tab-panel { display: none; animation: fade .3s; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

/* 过滤 / 搜索条 */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); }
.search-box input {
  width: 100%; padding: 10px 14px 10px 40px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-size: 14px; transition: .15s;
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-theme="dark"] .chip.active { background: var(--accent); color: #07130f; border-color: var(--accent); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 14px; opacity: .5; }

/* ---------- 14. 播客 ---------- */
.podcast-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; }
.podcast-row .pp { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: grid; place-items: center; color: #fff; flex: none; position: relative; }
.podcast-row .pp svg { width: 24px; height: 24px; }
.podcast-row .pm h3 { font-size: 16px; }
.podcast-row .pm .pmeta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.podcast-row .pd { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.wave { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.wave i { width: 2.5px; background: var(--accent); border-radius: 2px; animation: wv 1.1s ease-in-out infinite; }
@keyframes wv { 0%,100%{height:30%;} 50%{height:100%;} }

/* ---------- 15. 评估报告专用 ---------- */
.eval-card { padding: 24px; }
.eval-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.eval-logo { width: 52px; height: 52px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--brand); flex: none; }
.eval-head .eh-main { flex: 1; }
.eval-head h3 { font-size: 19px; }
.eval-head .ecode { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.radar-wrap { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.dims { display: flex; flex-direction: column; gap: 9px; }
.dim-row { display: grid; grid-template-columns: 76px 1fr 30px; gap: 10px; align-items: center; font-size: 12.5px; }
.dim-row .dl { color: var(--ink-2); font-weight: 600; }
.dim-track { height: 7px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.dim-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.dim-row .dv { font-family: var(--font-mono); font-weight: 700; text-align: right; color: var(--ink-2); }
.eval-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* 框架展示 */
.framework-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fw-item { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1); }
.fw-item .fw-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.fw-item h4 { font-size: 15px; margin: 7px 0; }
.fw-item p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 16. 文章正文 ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-header { padding: 44px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.article-header h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; margin: 16px 0; }
.article-header .a-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 14px; flex-wrap: wrap; }
.article-header .a-meta .author { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.article-header .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.article-body { font-family: var(--font-serif); font-size: 17.5px; line-height: 1.9; color: var(--ink); }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 { font-family: var(--font-sans); font-size: 24px; margin-top: 1.8em; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.article-body h3 { font-family: var(--font-sans); font-size: 19px; margin-top: 1.5em; }
.article-body p { color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { color: var(--accent); font-style: normal; font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin: .5em 0; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 6px 20px; background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); font-style: italic;
}
.article-body pre {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--brand-2);
  border-radius: var(--r-sm); padding: 14px 18px; overflow-x: auto; white-space: pre;
  color: var(--ink-2); -webkit-text-size-adjust: 100%;
}
.article-body code {
  font-family: var(--font-mono); font-size: .9em; background: var(--surface-2);
  padding: 1px 6px; border-radius: 5px; color: var(--accent); white-space: nowrap;
}
.article-body pre code { background: none; padding: 0; color: inherit; white-space: pre; }
.article-body .callout {
  font-family: var(--font-sans); font-size: 15px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px; display: flex; gap: 14px;
}
.article-body .callout .ci { color: var(--accent); flex: none; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-family: var(--font-sans); font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.article-body .data-callout { font-family: var(--font-mono); }
.tldr { background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 20px 22px; font-family: var(--font-sans); font-size: 15px; }
.tldr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }

/* ---------- 17. 页脚 ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 70px; padding: 50px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer .fdesc { color: var(--ink-2); font-size: 14px; max-width: 52ch; }
/* 专栏式页脚：品牌行 + 五大栏目并列 */
.footer-brand { margin-bottom: 38px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer-brand .fdesc { margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.footer-cols h5 a { color: var(--ink); transition: .15s; }
.footer-cols h5 a:hover { color: var(--accent); }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-cols h5 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14.5px; }
.footer ul li { margin: 9px 0; }
.footer ul a { font-size: 14px; color: var(--ink-2); transition: .15s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--ink-3); }
.disclaimer { font-size: 12px; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px; margin-top: 18px; line-height: 1.6; }

/* ---------- 17b. 书摘 · 荐书 ---------- */
.pill-book { --c: #b0543c; }
.book-cover {
  width: 88px; height: 124px; flex: none; border-radius: 4px 7px 7px 4px;
  background: #33415a; color: #fff; padding: 12px 12px 12px 17px; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  box-shadow: var(--sh-2), inset 0 0 0 1px rgba(255,255,255,.05);
}
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.24); }
.book-cover::after  { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.12); }
.book-cover .bc-cat { font-size: 9.5px; font-weight: 700; letter-spacing: .03em; opacity: .8; position: relative; }
.book-cover .bc-title { font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.book-cover .bc-author { font-size: 10px; opacity: .82; margin-top: 4px; }
.book-cover.lg { width: 134px; height: 190px; padding: 17px 16px 17px 25px; border-radius: 5px 9px 9px 5px; }
.book-cover.lg .bc-cat { font-size: 11px; }
.book-cover.lg .bc-title { font-size: 19px; line-height: 1.28; }
.book-cover.lg .bc-author { font-size: 12px; }

.book-card { display: flex; gap: 16px; padding: 18px; }
.book-card .bk-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.book-card .bk-body h3 { font-size: 16.5px; line-height: 1.35; }
.book-card:hover .bk-body h3 { color: var(--accent); }
.book-card .bk-body p { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card .rating { font-size: 12px; }

.book-feature { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 30px; align-items: center; }
.book-feature .bf-cover { display: grid; place-items: center; }
.book-feature .bf-main h2 { letter-spacing: -.01em; }

.book-detail-head { display: flex; gap: 26px; align-items: flex-start; }
.book-detail-head .bdh-main { flex: 1; min-width: 0; }

/* ---------- 17c. 合规 / 免责声明 ---------- */
.legal-note {
  margin-top: 36px; padding: 16px 18px; background: var(--surface-2);
  border: 1px solid var(--border); border-left: 3px solid var(--ink-3); border-radius: var(--r);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.75;
}
.legal-note p + p { margin-top: 8px; }
.legal-note strong { color: var(--ink-2); }
.legal-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px;
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--r);
  color: var(--ink-2); font-size: 13.5px; line-height: 1.65;
}
.legal-banner .lb-ico { font-size: 17px; flex: none; line-height: 1.4; }
.legal-banner strong { color: var(--ink); }

/* 深度版入口 + 会员专享 */
.deep-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding: 18px 22px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  border: 1px solid var(--gold); transition: .18s;
}
.deep-cta:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.deep-cta .dc-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.deep-cta .dc-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.deep-cta .dc-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.member-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--r);
  font-size: 14px; color: var(--ink-2);
}
.member-banner .mb-ico { font-size: 18px; flex: none; }
.member-banner strong { color: var(--ink); }
@media (max-width: 680px) { .deep-cta { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- 18. 动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } *{ scroll-behavior: auto; } }

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1100px) {
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; box-shadow: var(--sh-3); align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 15px; }
  .has-menu .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 16px; min-width: 0; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .snapshot { margin-top: 8px; }
}
@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .radar-wrap { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 64px 1fr; }
  .list-row .lr-side { grid-column: 2; flex-direction: row; align-items: center; }
  .snap-row { grid-template-columns: repeat(3, 1fr); }
  .snap-item { padding: 11px 8px; }
  .snap-item .si-val { font-size: 15px; }
  .book-feature { grid-template-columns: 1fr; gap: 20px; }
  .book-feature .bf-cover { place-items: start; }
  .book-detail-head { flex-direction: column; align-items: flex-start; }
  .section { padding: 40px 0; }
  .container { padding: 0 18px; }
  body { font-size: 15px; }
}
