/* ============ 基础与变量 ============ */
:root {
  --bg-deep: #07090f;
  --bg: #0b0f1a;
  --bg-card: #131829;
  --bg-card-2: #1a2138;
  --bg-elev: #1e2540;
  --line: #232b45;
  --line-soft: #1b2236;

  --text: #e8eaed;
  --text-mute: #9aa3b8;
  --text-dim: #6c7488;

  --blue: #4f9eff;
  --blue-dim: #2e5f9e;
  --green: #4fd49a;
  --green-dim: #2a8a64;
  --orange: #ffa940;
  --orange-dim: #b06d1e;
  --red: #ff6b6b;
  --red-dim: #a83838;
  --yellow: #f5d76e;
  --purple: #b794f6;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;

  --sidebar-w: 280px;

  --font-cn: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-en: -apple-system, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-cn), var(--font-en);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 背景星点纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(79, 158, 255, 0.06) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(79, 212, 154, 0.05) 0, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--blue); text-decoration: none; }
b, strong { color: #fff; font-weight: 600; }

::selection { background: var(--blue); color: #fff; }

/* ============ 顶部进度条 ============ */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line-soft);
  z-index: 100;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.1s linear;
}

/* ============ 侧边导航 ============ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-right: 1px solid var(--line);
  padding: 28px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 158, 255, 0.3);
}
.logo-title { font-size: 15px; font-weight: 600; color: #fff; }
.logo-sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

.toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc li { counter-increment: none; }
.toc-link {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-mute);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.18s ease;
  line-height: 1.45;
}
.toc-link:hover {
  background: var(--bg-card);
  color: var(--text);
}
.toc-link.active {
  background: var(--bg-card);
  color: #fff;
  border-left-color: var(--blue);
}

.toc-part {
  list-style: none;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--blue);
  padding: 14px 12px 6px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.toc-part:first-child { border-top: none; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
kbd {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text);
}

/* ============ 主内容区 ============ */
.content {
  margin-left: var(--sidebar-w);
  padding: 0 56px;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.chapter {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 60vh;
}
.chapter:last-child { border-bottom: none; }

.chapter-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: var(--blue);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--blue-dim);
  border-radius: 4px;
  background: rgba(79, 158, 255, 0.06);
}

.chapter-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 780px;
}

/* ============ 引言专属 ============ */
.chapter-intro {
  padding-top: 100px;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chapter-intro .chapter-title {
  font-size: 42px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
  margin-bottom: 60px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-dim);
}
.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}
.card p {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.7;
}

.scroll-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 30px;
  animation: bobUp 2s ease-in-out infinite;
}
@keyframes bobUp {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============ 高亮色 ============ */
.hl-blue { color: var(--blue); font-weight: 600; }
.hl-green { color: var(--green); font-weight: 600; }
.hl-orange { color: var(--orange); font-weight: 600; }
.hl-red { color: var(--red); font-weight: 600; }
.hl-yellow { color: var(--yellow); font-weight: 600; }

/* ============ 动画框架 ============ */
.anim-frame {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.anim-frame.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.anim-svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.anim-controls {
  margin-bottom: 18px;
}
.control-group {
  margin-bottom: 14px;
}
.control-label {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-tool {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-tool:hover {
  background: var(--bg-card-2);
  border-color: var(--blue-dim);
  color: #fff;
}
.btn-tool.active {
  background: rgba(79, 158, 255, 0.12);
  border-color: var(--blue);
  color: var(--blue);
}

.anim-legend {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-mute);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.dot-red { background: var(--red); box-shadow: 0 0 8px var(--red); }

.anim-readout {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg-deep);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}

/* ============ 滑块 ============ */
.slider-block {
  margin-bottom: 22px;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.slider-label > span:first-child {
  font-size: 13px;
  color: var(--text-mute);
}
.slider-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  font-family: var(--font-mono);
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elev);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.5);
  transition: transform 0.1s ease;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.slider-inline {
  width: calc(100% - 90px);
  display: inline-block;
  vertical-align: middle;
}
.slider-value-inline {
  display: inline-block;
  width: 80px;
  text-align: right;
  margin-left: 8px;
  font-family: var(--font-mono);
  color: var(--blue);
  vertical-align: middle;
  font-size: 13px;
}
.slider-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ============ 指标 / 数字 ============ */
.metric-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.metric {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.metric-label {
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}

/* ============ 条形图 ============ */
.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mute);
}
.bar-row > span:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 13px;
}
.bar {
  height: 18px;
  background: var(--bg-deep);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.bar-fill {
  height: 100%;
  width: 10%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}
.bar-blue { background: linear-gradient(90deg, var(--blue-dim), var(--blue)); }
.bar-green { background: linear-gradient(90deg, var(--green-dim), var(--green)); }
.bar-orange { background: linear-gradient(90deg, var(--orange-dim), var(--orange)); }

/* ============ 提示框 ============ */
.callout {
  background: rgba(245, 215, 110, 0.06);
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-top: 14px;
}

/* ============ 关键认知 ============ */
.key-points {
  background: var(--bg-card);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 20px;
}
.key-points h4 {
  font-size: 14px;
  color: var(--green);
  margin-bottom: 10px;
  font-weight: 600;
}
.key-points ul {
  list-style: none;
  padding-left: 0;
}
.key-points li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.7;
}
.key-points li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--green);
}
.key-points li b { color: var(--text); }

/* ============ DCF 读数 ============ */
.dcf-readout {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.dcf-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-mute);
}
.dcf-line b {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
}

.section-sub {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.clock-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.phase-btn {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all 0.15s;
}
.phase-btn:hover { border-color: var(--blue-dim); }
.phase-btn.active { border-color: var(--yellow); background: rgba(245, 215, 110, 0.06); }
.phase-btn b {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}
.phase-btn span {
  font-size: 11.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ============ 实战推演 Worksheet ============ */
.worksheet-frame { padding: 24px; }

.ws-intro {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.ws-section {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.ws-section-head {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.ws-hint {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-bottom: 12px;
  font-style: italic;
}

.ws-asset-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}
.ws-asset-row {
  display: grid;
  grid-template-columns: 24px 110px 1fr 50px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.ws-asset-icon { font-size: 16px; text-align: center; }
.ws-asset-name {
  font-size: 12.5px;
  color: var(--text);
}
.ws-asset-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.ws-asset-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
}
.ws-asset-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.ws-asset-pct {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  text-align: right;
  font-weight: 600;
}
.ws-asset-pct.active { color: var(--green); }

.ws-sum-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  background: var(--bg-card);
  border-radius: 4px;
  font-size: 13px;
}
.ws-sum-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-right: auto;
}
.ws-sum-value.warning { color: var(--orange); }
.ws-sum-value.error { color: var(--red); }

.ws-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}
.ws-preset-label {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.ws-preset, .ws-macro-preset {
  font-size: 11px !important;
  padding: 4px 9px !important;
}

.ws-factor-row {
  margin-bottom: 14px;
}
.ws-factor-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.ws-factor-slider-wrap { position: relative; }
.ws-macro-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 25%, var(--text-mute) 50%, var(--green) 75%, var(--blue) 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.ws-macro-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.ws-factor-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.ws-results-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}
.ws-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ws-metric {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.ws-metric-label {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.ws-metric-value {
  font-size: 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 2px;
}
.ws-metric-value.bad { color: var(--red); }
.ws-metric-value.warning { color: var(--orange); }
.ws-metric-value.good { color: var(--green); }
.ws-metric-sub { font-size: 11px; color: var(--text-mute); }

.ws-radar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.ws-recommendations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ws-rec {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.7;
}
.ws-rec.good { border-left-color: var(--green); }
.ws-rec.warning { border-left-color: var(--orange); }
.ws-rec.danger { border-left-color: var(--red); }
.ws-rec.info { border-left-color: var(--blue); }
.ws-rec b { color: #fff; }

@media (max-width: 1024px) {
  .worksheet-grid, .ws-results-grid { grid-template-columns: 1fr; }
  .ws-metrics { grid-template-columns: 1fr 1fr; }
}

/* ============ 误区破除卡（通用） ============ */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.myth-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  position: relative;
}
.myth-wrong {
  color: var(--red);
  font-size: 13.5px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  line-height: 1.6;
}
.myth-wrong b { color: var(--red); font-weight: 700; }
.myth-right {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.myth-right b { color: var(--green); font-weight: 700; }
.myth-key {
  font-size: 12px;
  color: var(--yellow);
  padding: 8px 10px;
  background: rgba(245,215,110,0.05);
  border-left: 2px solid var(--yellow);
  border-radius: 0 3px 3px 0;
  line-height: 1.65;
}
.myth-key b { color: #fff; }
@media (max-width: 1024px) {
  .myth-grid { grid-template-columns: 1fr; }
}

/* ============ Kelly Sizing Calculator ============ */
.kelly-calc {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.kc-section { margin-bottom: 20px; }
.kc-label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.kc-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
}
.kc-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue);
  text-align: right;
}
.kc-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kc-result {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.kcr-label {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.kcr-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
}
.kcr-value.highlight { color: var(--green); }
.kcr-value.bad { color: var(--red); }
.kc-formula {
  font-size: 12px;
  color: var(--text-mute);
  padding: 14px 16px;
  background: var(--bg-card);
  border-left: 3px solid var(--yellow);
  border-radius: 0 4px 4px 0;
  line-height: 1.8;
}
.kc-formula b { color: var(--yellow); }
@media (max-width: 1024px) {
  .kc-result-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ 期权波动率专属样式 ============ */
.vol-glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.vol-term {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.vt-key {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
  align-self: center;
}
.vt-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.vt-desc {
  grid-column: 2;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.65;
}
.vt-desc b { color: var(--text); }

.iv-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.ivr-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ivr-card.ivr-low { border-top-color: var(--green); }
.ivr-card.ivr-mid { border-top-color: var(--yellow); }
.ivr-card.ivr-high { border-top-color: var(--red); }
.ivr-num {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.ivr-card.ivr-low .ivr-num { color: var(--green); }
.ivr-card.ivr-mid .ivr-num { color: var(--yellow); }
.ivr-card.ivr-high .ivr-num { color: var(--red); }
.ivr-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.ivr-action {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.ivr-warn {
  font-size: 11.5px;
  color: var(--orange);
  line-height: 1.6;
}
.ivr-warn b { color: var(--text); }
@media (max-width: 1024px) {
  .iv-rank-grid { grid-template-columns: 1fr; }
}

/* ============ 进阶认知卡片（点击展开） ============ */
.key-points li[data-wisdom] {
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 4px;
  padding-right: 30px !important;
  position: relative;
}
.key-points li[data-wisdom]:hover {
  background: rgba(79, 158, 255, 0.06);
  padding-left: 28px !important;
}
.key-points li[data-wisdom]::after {
  content: '↗';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.15s;
}
.key-points li[data-wisdom]:hover::after {
  opacity: 1;
  color: var(--blue);
}

/* Wisdom modal · 复用 case-modal 样式但有些定制 */
.wm-essay {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}
.wm-essay p { margin-bottom: 12px; }
.wm-essay p b { color: #fff; }
.wm-essay p em { color: var(--yellow); font-style: italic; }
.wm-snippet-box {
  background: rgba(245, 215, 110, 0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 14px 0 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}
.wm-snippet-box b { color: var(--yellow); font-style: normal; }

.wm-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.wm-related-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.wm-related-col-head {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.wm-related-col a {
  display: block;
  font-size: 12.5px;
  color: var(--blue);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.wm-related-col a:hover { color: var(--green); }
@media (max-width: 1024px) {
  .wm-related-grid { grid-template-columns: 1fr; }
}

/* ============ 案例详情 Modal ============ */
.case-modal[hidden] { display: none !important; }
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  animation: cmFadeIn 0.2s ease;
}
.cm-content {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: cmSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cm-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.cm-close:hover { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(90deg); }

.cm-body { padding: 28px 32px; }

/* Header */
.cm-tag {
  display: inline-block;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.cm-tag.success { background: rgba(79,212,154,0.15); color: var(--green); border: 1px solid var(--green-dim); }
.cm-tag.failed { background: rgba(255,107,107,0.15); color: var(--red); border: 1px solid var(--red-dim); }
.cm-tag.mixed { background: rgba(255,169,64,0.15); color: var(--orange); border: 1px solid var(--orange-dim); }

.cm-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.cm-subtitle {
  font-size: 14.5px;
  color: var(--text-mute);
  font-style: italic;
  margin-bottom: 12px;
}
.cm-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 6px;
  margin-bottom: 24px;
}
.cm-meta span { display: flex; align-items: center; gap: 4px; }
.cm-meta b { color: var(--yellow); font-weight: 600; }

/* Section heads */
.cm-section { margin-bottom: 26px; }
.cm-section-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.05em;
}
.cm-section p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 10px;
}
.cm-section p b { color: #fff; }

/* Timeline */
.cm-timeline-svg { width: 100%; height: auto; }

/* Key metrics grid */
.cm-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.cm-metric {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 6px;
  padding: 12px 14px;
}
.cm-metric-label {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cm-metric-value {
  font-size: 20px;
  color: var(--yellow);
  font-weight: 700;
  font-family: var(--font-mono);
}
.cm-metric-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* Lessons list */
.cm-lessons {
  list-style: none;
  padding-left: 0;
}
.cm-lessons li {
  padding: 8px 12px 8px 32px;
  position: relative;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-card);
  border-radius: 4px;
  margin-bottom: 6px;
}
.cm-lessons li::before {
  content: '💡';
  position: absolute;
  left: 10px;
  top: 8px;
}
.cm-lessons li b { color: #fff; }

/* Related */
.cm-related {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cm-related a {
  background: rgba(79,158,255,0.08);
  border: 1px solid var(--blue-dim);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  text-decoration: none;
  transition: all 0.15s;
}
.cm-related a:hover { background: var(--blue); color: #fff; }

/* Stub state */
.cm-stub {
  text-align: center;
  padding: 40px 20px;
}
.cm-stub-icon { font-size: 56px; margin-bottom: 14px; }
.cm-stub-text { font-size: 14px; color: var(--text-mute); line-height: 1.8; }
.cm-stub-text b { color: var(--text); }

/* Case card hover indicator */
.case-card { cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.case-card:hover { transform: translateY(-1px); border-color: var(--blue-dim); box-shadow: 0 6px 20px rgba(79,158,255,0.08); }
.case-card::after {
  content: '→ 详情';
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.15s;
}
.case-card { position: relative; }
.case-card:hover::after { opacity: 1; }
.case-card[data-case]:not([data-case="stub"])::after {
  content: '→ 深度详情';
  color: var(--green);
  opacity: 0.7;
}
.case-card[data-case]:not([data-case="stub"]):hover::after { opacity: 1; }

@media (max-width: 720px) {
  .cm-body { padding: 20px; }
  .cm-title { font-size: 22px; }
}

/* ============ 历史案例卡片（通用） ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.case-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 3px solid;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.case-card.case-success { border-left-color: var(--green); }
.case-card.case-failed { border-left-color: var(--red); }
.case-card.case-mixed { border-left-color: var(--orange); }
.case-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.case-tag.success { background: rgba(79,212,154,0.12); color: var(--green); border: 1px solid var(--green-dim); }
.case-tag.failed { background: rgba(255,107,107,0.12); color: var(--red); border: 1px solid var(--red-dim); }
.case-tag.mixed { background: rgba(255,169,64,0.12); color: var(--orange); border: 1px solid var(--orange-dim); }
.case-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.case-body {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.7;
}
.case-body b { color: var(--text); }
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ============ 已定价 vs 未定价 卡片 ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.pricing-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 4px solid;
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card.priced { border-left-color: var(--red); }
.pricing-card.priced-partial { border-left-color: var(--orange); }
.pricing-card.unpriced {
  border-left-color: var(--green);
  background: linear-gradient(135deg, var(--bg-deep) 0%, rgba(79, 212, 154, 0.04) 100%);
}

.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.pc-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  flex: 1;
}
.pc-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pc-tag.priced { background: rgba(255, 107, 107, 0.12); color: var(--red); border: 1px solid var(--red-dim); }
.pc-tag.priced-partial { background: rgba(255, 169, 64, 0.12); color: var(--orange); border: 1px solid var(--orange-dim); }
.pc-tag.unpriced { background: rgba(79, 212, 154, 0.12); color: var(--green); border: 1px solid var(--green-dim); }

.pc-section {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.65;
  padding: 8px 10px;
  background: var(--bg-card);
  border-radius: 4px;
  margin-bottom: 10px;
}
.pc-section b { color: #fff; }

.pc-chain {
  margin-bottom: 10px;
  padding-left: 4px;
}
.pc-chain .pc-step {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  padding: 4px 8px;
  margin-bottom: 4px;
  border-left: 2px solid var(--blue);
  background: rgba(79, 158, 255, 0.04);
  border-radius: 0 3px 3px 0;
}
.pricing-card.unpriced .pc-chain .pc-step { border-left-color: var(--green); background: rgba(79, 212, 154, 0.04); }
.pricing-card.priced .pc-chain .pc-step { border-left-color: var(--red); background: rgba(255, 107, 107, 0.04); }
.pricing-card.priced-partial .pc-chain .pc-step { border-left-color: var(--orange); background: rgba(255, 169, 64, 0.04); }
.pc-step b { color: #fff; }

.pc-uncertain {
  font-size: 12px;
  color: var(--text-mute);
  padding: 8px 10px;
  background: rgba(245, 215, 110, 0.04);
  border-left: 2px solid var(--yellow);
  border-radius: 0 3px 3px 0;
  line-height: 1.7;
  margin-bottom: 10px;
}
.pc-uncertain b { color: var(--yellow); }

.pc-action {
  font-size: 12px;
  color: var(--text);
  padding: 8px 10px;
  background: rgba(79, 212, 154, 0.06);
  border-left: 2px solid var(--green);
  border-radius: 0 3px 3px 0;
  line-height: 1.7;
}
.pc-action b { color: #fff; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============ AI 应用层渗透率 ============ */
.adoption-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.adoption-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.adop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.adop-icon { font-size: 22px; }
.adop-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}
.adop-stage {
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.adop-stage.stage-hot { background: rgba(79,212,154,0.12); color: var(--green); border: 1px solid var(--green-dim); }
.adop-stage.stage-mid { background: rgba(255,169,64,0.12); color: var(--orange); border: 1px solid var(--orange-dim); }
.adop-stage.stage-slow { background: rgba(245,215,110,0.12); color: var(--yellow); border: 1px solid rgba(245,215,110,0.4); }

.adop-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.adop-bar-bg {
  flex: 1;
  height: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.adop-bar-current {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 4px;
  z-index: 2;
  transition: width 0.6s ease;
}
.adop-bar-target {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: rgba(255, 107, 107, 0.2);
  border-right: 2px dashed var(--red);
  z-index: 1;
}
.adop-pct {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  white-space: nowrap;
}
.adop-pct b { color: #fff; font-weight: 700; }
.adop-detail {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.7;
}
.adop-detail b { color: var(--text); }
.adop-detail > div { margin-bottom: 2px; }
.adop-risk {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--orange);
  font-size: 11.5px;
}
@media (max-width: 1024px) {
  .adoption-grid { grid-template-columns: 1fr; }
}

/* ============ 投资清单 Tabs ============ */
.invest-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.invest-tab {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-mute);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.invest-tab:hover { color: var(--text); border-color: var(--blue-dim); }
.invest-tab.active {
  background: rgba(79,158,255,0.1);
  border-color: var(--blue);
  color: var(--blue);
}
.invest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.invest-row {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: start;
  font-size: 13px;
}
.invest-row.layer-silicon { border-left-color: #4f9eff; }
.invest-row.layer-power { border-left-color: #ffa940; }
.invest-row.layer-cool { border-left-color: #4fd49a; }
.invest-row.layer-app { border-left-color: #b794f6; }
.invest-row.layer-broad { border-left-color: #f5d76e; }
.invest-row.layer-mat { border-left-color: #ff8c5a; }
.invest-ticker {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
}
.invest-name {
  color: var(--text);
  line-height: 1.55;
}
.invest-name b { color: #fff; }
.invest-thesis {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 4px;
  line-height: 1.6;
}
.invest-rating {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--yellow);
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .invest-grid { grid-template-columns: 1fr; }
  .invest-row { grid-template-columns: 80px 1fr; }
  .invest-rating { grid-column: 2; padding-top: 4px; }
}

/* ============ 周期阶段建议 ============ */
.timing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.timing-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.timing-card.timing-now { border-top-color: var(--green); }
.timing-card.timing-mid { border-top-color: var(--yellow); }
.timing-card.timing-late { border-top-color: var(--blue); }
.timing-stage {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.timing-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.timing-card p {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 12px;
}
.timing-meta {
  font-size: 12px;
  color: var(--text-mute);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.timing-meta b { color: var(--green); font-family: var(--font-mono); }
@media (max-width: 1024px) {
  .timing-grid { grid-template-columns: 1fr; }
}

/* ============ AI 电力危机 ============ */
.power-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-card {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.ps-label {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.ps-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--font-mono);
  margin: 2px 0;
}
.ps-sub { font-size: 11.5px; color: var(--text-mute); }
.power-source {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 6px;
}
.ps-src-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 8px;
}
.ps-src-list {
  list-style: none;
  padding-left: 0;
}
.ps-src-list li {
  font-size: 12px;
  color: var(--text);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.65;
}
.ps-src-list li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--yellow);
}

/* ============ 历史类比卡片 ============ */
.historical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.historical-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
}
.historical-card.era-electric { border-top: 3px solid #f5d76e; }
.historical-card.era-internet { border-top: 3px solid #4f9eff; }
.historical-card.era-ai { border-top: 3px solid #b794f6; }
.historical-card.current {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(183, 148, 246, 0.08) 100%);
  box-shadow: 0 4px 18px rgba(183, 148, 246, 0.1);
}
.historical-card.current::after {
  content: '当前周期';
  position: absolute;
  top: 14px; right: 16px;
  background: var(--purple);
  color: #000;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.hist-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.hist-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.hist-driver {
  font-size: 12px;
  color: var(--text-mute);
  font-style: italic;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hist-list {
  list-style: none;
  padding-left: 0;
}
.hist-list li {
  font-size: 12.5px;
  color: var(--text-mute);
  padding: 5px 0 5px 14px;
  position: relative;
  line-height: 1.7;
}
.hist-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text);
}
.hist-list li b { color: var(--text); }
@media (max-width: 1024px) {
  .historical-grid { grid-template-columns: 1fr; }
}

/* ============ AI 基建受益板块 ============ */
.ai-beneficiary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.ai-card:hover { transform: translateY(-2px); }
.ai-card.silicon { border-top-color: #4f9eff; }
.ai-card.memory { border-top-color: #b794f6; }
.ai-card.power { border-top-color: #ffa940; }
.ai-card.cool { border-top-color: #4fd49a; }
.ai-card.land { border-top-color: #f5d76e; }
.ai-card.material { border-top-color: #ff8c5a; }
.ai-card.app { border-top-color: #6ec6ff; }
.ai-card.risk { border-top-color: #ff6b6b; }

.ai-cat {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.ai-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.ai-card p {
  font-size: 12px;
  color: var(--text);
  line-height: 1.65;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.ai-note {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.65;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1024px) {
  .ai-beneficiary-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ LLM 推演工具 ============ */
.llm-frame { padding: 20px 24px; }

.api-setup {
  margin-bottom: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.api-setup summary {
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  user-select: none;
}
.api-setup summary::-webkit-details-marker { display: none; }
.api-setup[open] summary { border-bottom: 1px solid var(--line); }
.api-status { color: var(--orange); }
.api-status.ok { color: var(--green); }
.api-setup-body { padding: 14px 18px; }
.api-info {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.75;
  margin-bottom: 12px;
}
.api-info code, .api-cors-note code {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: var(--blue);
  font-family: var(--font-mono);
}
.api-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.api-input {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.15s;
  flex: 1;
  min-width: 200px;
}
.api-input:focus { border-color: var(--blue); }
.api-select { flex: 0 1 200px; cursor: pointer; }
.api-msg {
  font-size: 12.5px;
  color: var(--text-mute);
  min-height: 18px;
  margin-top: 4px;
  font-family: var(--font-mono);
}
.api-msg.error { color: var(--red); }
.api-msg.ok { color: var(--green); }
.api-cors-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.7;
}

.llm-modes { margin-bottom: 14px; }

.preset-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-bottom 0.3s ease;
}
.preset-chips.show {
  max-height: 600px;
  margin-bottom: 16px;
}
.preset-chip {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  line-height: 1.5;
  transition: all 0.15s;
}
.preset-chip:hover {
  border-color: var(--blue);
  background: rgba(79, 158, 255, 0.06);
  color: #fff;
}

.llm-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-cn);
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 12px;
}
.llm-input:focus { border-color: var(--blue); }
.llm-input::placeholder { color: var(--text-dim); }

.llm-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(79, 158, 255, 0.3);
  transition: transform 0.1s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(79, 158, 255, 0.4); }
.btn-primary:disabled {
  background: var(--bg-elev);
  cursor: not-allowed;
  box-shadow: none;
  color: var(--text-dim);
}
.llm-meta {
  font-size: 11.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-left: auto;
}

.llm-output {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  min-height: 200px;
  max-height: 800px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}
.llm-placeholder {
  text-align: center;
  color: var(--text-mute);
  padding: 40px 0;
  font-size: 13px;
}
.llm-output h1, .llm-output h2, .llm-output h3 {
  color: #fff;
  margin: 18px 0 10px;
  line-height: 1.4;
}
.llm-output h1 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.llm-output h2 {
  font-size: 16px;
  color: var(--blue);
  border-left: 3px solid var(--blue);
  padding-left: 10px;
}
.llm-output h3 { font-size: 14.5px; color: var(--green); }
.llm-output p { margin-bottom: 10px; }
.llm-output strong, .llm-output b { color: #fff; font-weight: 600; }
.llm-output em { color: var(--yellow); font-style: italic; }
.llm-output code {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange);
}
.llm-output ul, .llm-output ol { margin: 8px 0 12px 24px; }
.llm-output li { margin-bottom: 6px; padding-left: 4px; }
.llm-output ul li::marker { color: var(--green); }
.llm-output blockquote {
  border-left: 3px solid var(--yellow);
  padding: 6px 14px;
  background: rgba(245,215,110,0.04);
  margin: 10px 0;
  font-size: 13px;
}
.llm-output hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.llm-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: var(--blue);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.llm-error {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid var(--red-dim);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 13px;
}
.llm-user-query {
  background: rgba(79, 158, 255, 0.06);
  border-left: 3px solid var(--blue);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.7;
}

/* ============ 货币演化时代卡片 ============ */
.era-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.era-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.era-card:hover { transform: translateY(-2px); }
.era-card.active { box-shadow: 0 4px 14px rgba(255,255,255,0.06); }
.era-icon { font-size: 24px; margin-bottom: 6px; }
.era-name { font-size: 14.5px; font-weight: 600; color: #fff; }
.era-period { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); margin-bottom: 8px; }
.era-anchor { font-size: 12px; color: var(--text); line-height: 1.6; }
@media (max-width: 1024px) {
  .era-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ 超级周期 driver cards ============ */
.cycle-driver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.driver-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
}
.driver-card.current {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 169, 64, 0.06) 100%);
}
.driver-card.current::before {
  content: '当前';
  position: absolute;
  top: 12px; right: 14px;
  font-size: 10px;
  background: var(--orange);
  color: #000;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.driver-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--font-mono);
  line-height: 1;
  opacity: 0.6;
}
.driver-period {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.1em;
  margin: 8px 0 4px;
}
.driver-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.driver-card p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
}
@media (max-width: 1024px) {
  .cycle-driver-grid { grid-template-columns: 1fr; }
}

/* ============ 行为金融 · 仪表与卡片 ============ */
.gauge-snaps {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.gauge-snap {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 11px;
  font-size: 11.5px;
  cursor: pointer;
  color: var(--text-mute);
  font-family: var(--font-mono);
  transition: all 0.15s;
}
.gauge-snap:hover { border-color: var(--blue-dim); color: var(--text); }
.gauge-snap.active { border-color: var(--yellow); color: var(--yellow); background: rgba(245,215,110,0.06); }

.gauge-info {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.gi-state {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.gi-value {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 14px;
}
.gi-bar {
  height: 8px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ffa940 30%, #f5d76e 50%, #50d896 75%, #4fd49a 100%);
  border-radius: 4px;
  position: relative;
  margin-bottom: 16px;
}
.gi-bar-fill {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-2px);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.gi-meaning { font-size: 13px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.gi-section { border-top: 1px solid var(--line); padding-top: 14px; }
.gi-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.gi-list { list-style: none; padding-left: 0; }
.gi-list li {
  font-size: 12px;
  color: var(--text-mute);
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.65;
}
.gi-list li::before { content: '·'; position: absolute; left: 4px; color: var(--blue); }

/* 行为偏差卡片 */
.bias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bias-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.bias-card:hover { transform: translateY(-2px); border-color: var(--blue-dim); }
.bias-icon { font-size: 26px; margin-bottom: 6px; }
.bias-name { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.bias-en {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.bias-card p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.bias-fix {
  font-size: 12px;
  color: var(--green);
  background: rgba(79, 212, 154, 0.06);
  border-left: 2px solid var(--green);
  padding: 8px 10px;
  border-radius: 3px;
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .bias-grid { grid-template-columns: 1fr; }
}

.reverse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reverse-item {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
}
.ri-num { font-size: 22px; }
.ri-text { font-size: 12.5px; color: var(--text); line-height: 1.65; }
@media (max-width: 1024px) {
  .reverse-grid { grid-template-columns: 1fr; }
}

/* ============ 库存周期 ============ */
.cycle-controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.phase-box {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-left-color 0.4s ease;
}
.phase-num {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.phase-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.phase-axes {
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.phase-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}
.phase-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.phase-section-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.phase-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.phase-tag {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--text);
}
.phase-tag.win { color: var(--green); border-color: var(--green-dim); background: rgba(79, 212, 154, 0.08); }
.phase-tag.lose { color: var(--red); border-color: var(--red-dim); background: rgba(255, 107, 107, 0.06); }
.phase-text {
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-mono);
}

/* ============ BTC 减半 ============ */
.halving-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.hs-card {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.hs-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.hs-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  font-family: var(--font-mono);
  margin: 4px 0 2px;
}
.hs-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
@media (max-width: 720px) {
  .halving-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ 利率曲线 ============ */
.curve-snapshots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.curve-snap {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 11px;
  font-size: 11.5px;
  cursor: pointer;
  color: var(--text-mute);
  font-family: var(--font-mono);
  transition: all 0.15s;
}
.curve-snap:hover { border-color: var(--blue-dim); color: var(--text); }
.curve-snap.active {
  border-color: currentColor;
  background: rgba(255,255,255,0.04);
}
.curve-readout {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.cr-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.cr-date {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.cr-spread {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-mute);
}
.cr-spread b {
  font-size: 22px;
  font-family: var(--font-mono);
  color: var(--green);
}
.cr-spread b.inverted { color: var(--red); }
.cr-shape {
  font-size: 13px;
  color: var(--blue);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.cr-meaning {
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
}

/* ============ 资产宇宙矩阵 ============ */
.matrix-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-mute);
}
.ml-item { display: inline-flex; align-items: center; gap: 6px; }
.ml-chip {
  display: inline-block;
  width: 16px; height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.08);
}

.asset-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.asset-detail, .scenario-detail {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.ad-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ad-flag { font-size: 28px; }
.ad-name { font-size: 16px; font-weight: 600; color: #fff; }
.ad-sym { font-size: 11.5px; font-family: var(--font-mono); color: var(--text-mute); letter-spacing: 0.05em; }
.ad-cat {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--orange);
  border: 1px solid var(--orange-dim);
  background: rgba(255, 169, 64, 0.08);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.1em;
}
.ad-body { display: flex; flex-direction: column; gap: 14px; }
.ad-section { }
.ad-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.ad-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.sd-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sd-name { font-size: 16px; color: #fff; font-weight: 600; }
.sd-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.sd-body { font-size: 13px; line-height: 1.85; color: var(--text-mute); }
.sd-body p { margin-bottom: 6px; }

@media (max-width: 1024px) {
  .asset-detail-grid { grid-template-columns: 1fr; }
}

/* ============ 三元悖论卡片 ============ */
.trilemma-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trilemma-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all 0.18s ease;
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 2px;
}
.trilemma-card:hover { border-color: var(--blue-dim); transform: translateX(2px); }
.trilemma-card.active {
  border-color: var(--yellow);
  background: rgba(245, 215, 110, 0.06);
  box-shadow: 0 2px 12px rgba(245, 215, 110, 0.08);
}
.tri-flag {
  grid-row: 1 / span 3;
  font-size: 24px;
  align-self: center;
}
.tri-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.tri-combo {
  font-size: 12px;
  color: var(--blue);
  font-family: var(--font-mono);
}
.tri-cost {
  font-size: 11.5px;
  color: var(--text-mute);
  font-style: italic;
}

/* ============ 工具卡片网格 ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.tool-acro {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
  background: rgba(255, 169, 64, 0.1);
  border: 1px solid var(--orange-dim);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.tool-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ============ 事件章节统计 ============ */
.event-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.stat {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* ============ 结语 ============ */
.chapter-summary {
  background: linear-gradient(180deg, transparent 0%, rgba(79, 158, 255, 0.04) 100%);
}
.checklist {
  margin: 32px 0;
}
.checklist h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.check-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.check-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--blue);
  background: rgba(79, 158, 255, 0.1);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.check-card ul {
  list-style: none;
}
.check-card li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.7;
}
.check-card li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--blue);
}

.closing-note {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 36px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.closing-note .signoff {
  margin-top: 12px;
  text-align: right;
  font-style: italic;
  color: var(--text-mute);
  font-size: 13.5px;
}

/* ============ 交易卡库（Ch22）============ */
.trade-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}
.trade-filter {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-mute);
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  transition: all .18s ease;
}
.trade-filter:hover {
  border-color: var(--blue);
  color: var(--text);
}
.trade-filter.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 8px rgba(79,158,255,0.4);
}
.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}
.trade-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px 14px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.trade-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 12px rgba(79,158,255,0.18);
}
.trade-card.trade-hidden { display: none; }
.trade-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.trade-card-icon {
  font-size: 28px;
  line-height: 1;
}
.trade-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.trade-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.trade-tag-long { background: rgba(79,212,154,0.15); color: var(--green); border: 1px solid rgba(79,212,154,0.4); }
.trade-tag-short { background: rgba(255,107,107,0.15); color: var(--red); border: 1px solid rgba(255,107,107,0.4); }
.trade-tag-cal { background: rgba(255,169,64,0.15); color: var(--orange); border: 1px solid rgba(255,169,64,0.4); }
.trade-tag-skew { background: rgba(178,128,255,0.15); color: var(--purple); border: 1px solid rgba(178,128,255,0.4); }
.trade-tag-hedge { background: rgba(79,158,255,0.15); color: var(--blue); border: 1px solid rgba(79,158,255,0.4); }
.trade-tag-event { background: rgba(255,212,79,0.15); color: var(--yellow); border: 1px solid rgba(255,212,79,0.4); }
.trade-tag-contrarian { background: rgba(178,128,255,0.15); color: var(--purple); border: 1px solid rgba(178,128,255,0.4); }
.trade-tag-perm { background: rgba(154,163,184,0.15); color: var(--text-mute); border: 1px solid var(--line); }
.trade-tag-mech { background: rgba(154,163,184,0.15); color: var(--text-mute); border: 1px solid var(--line); }
.trade-tag-trigger { background: rgba(255,169,64,0.15); color: var(--orange); border: 1px solid rgba(255,169,64,0.4); }
.trade-tag-yield { background: rgba(79,212,154,0.15); color: var(--green); border: 1px solid rgba(79,212,154,0.4); }
.trade-card-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.trade-card-sub {
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.55;
}
.trade-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}
.trade-meta-item {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---- 交易卡 Modal 内部 ---- */
.tm-hero {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-deep);
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.tm-hero-icon { font-size: 56px; line-height: 1; }
.tm-hero-meta { flex: 1; }
.tm-hero-title { color: var(--text); font-size: 20px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.tm-hero-sub { color: var(--text-mute); font-size: 13.5px; line-height: 1.55; }
.tm-hero-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.tm-section {
  margin: 22px 0;
}
.tm-section-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.tm-section-h-icon { font-size: 18px; }

/* 5 因子雷达 */
.tm-radar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.tm-radar-svg {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}
.tm-radar-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tm-radar-item {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.tm-radar-label { color: var(--text); font-weight: 600; }
.tm-radar-bar {
  height: 7px;
  background: var(--bg-deep);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.tm-radar-fill { height: 100%; border-radius: 4px; }
.tm-radar-val { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; text-align: right; }

/* 期权结构 */
.tm-legs {
  display: grid;
  grid-template-columns: 80px 1fr 70px 70px 70px;
  gap: 0;
  background: var(--bg-deep);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tm-legs-row {
  display: contents;
}
.tm-legs-cell {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text);
}
.tm-legs-row:last-child .tm-legs-cell {
  border-bottom: none;
}
.tm-legs-head {
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
}
.tm-leg-action-sell { color: var(--red); font-weight: 700; font-family: var(--font-mono); }
.tm-leg-action-buy { color: var(--green); font-weight: 700; font-family: var(--font-mono); }
.tm-leg-num { font-family: var(--font-mono); color: var(--text-mute); }
.tm-net-credit {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(79,212,154,0.08);
  border: 1px solid rgba(79,212,154,0.3);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
.tm-net-debit {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

/* P/L 数学 */
.tm-pnl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.tm-pnl-cell {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.tm-pnl-cell-label {
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.tm-pnl-cell-value {
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.tm-pnl-pos { color: var(--green); }
.tm-pnl-neg { color: var(--red); }
.tm-pnl-neutral { color: var(--text); }

/* 风险星 */
.tm-risk-stars-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-deep);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.tm-risk-stars {
  font-size: 22px;
  letter-spacing: 2px;
}
.tm-risk-desc {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

/* 历史类比 */
.tm-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tm-history-item {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border-radius: 6px;
  border-left: 3px solid var(--blue);
  font-size: 12.5px;
  align-items: center;
}
.tm-history-date {
  font-family: var(--font-mono);
  color: var(--blue);
  font-weight: 600;
  font-size: 12px;
}
.tm-history-event { color: var(--text); line-height: 1.5; }
.tm-history-pnl {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  font-size: 13px;
}

/* 反例 */
.tm-counter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tm-counter-item {
  padding: 10px 14px;
  background: rgba(255,107,107,0.06);
  border: 1px solid rgba(255,107,107,0.25);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}

/* 执行 checklist */
.tm-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tm-checklist-group {
  background: var(--bg-deep);
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.tm-checklist-stage {
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.tm-checklist-item {
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.tm-checklist-item::before {
  content: "☐";
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.4;
}

/* ============ 术语悬浮卡（全站通用）============ */
.term {
  border-bottom: 1px dashed rgba(79, 158, 255, 0.55);
  cursor: help;
  transition: color .15s, border-color .15s;
}
.term:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
#term-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease;
}
#term-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}
#term-tooltip .tt-term {
  color: var(--blue);
  font-weight: 700;
  font-size: 12.5px;
  display: block;
  margin-bottom: 3px;
  letter-spacing: 0.03em;
}
#term-tooltip .tt-analogy {
  color: var(--yellow);
  font-style: italic;
  margin-top: 6px;
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
}

/* ============ 传导链动画增强（Ch1 样板）============ */
/* 节点脉冲光晕 —— 只用 opacity 动画，SVG 安全 */
@keyframes nodePulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.55; }
}
.node-glow-active {
  animation: nodePulse 1.6s ease-in-out infinite;
}
/* count-up 数字读数条 */
.flow-metric {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 4px 0 2px;
}
.flow-metric-item {
  text-align: center;
  min-width: 110px;
}
.flow-metric-label {
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}
.flow-metric-value {
  font-size: 21px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  transition: color .3s;
  line-height: 1.1;
}
.flow-metric-delta {
  font-size: 11px;
  font-family: var(--font-mono);
  margin-top: 1px;
}
/* 生活类比条 */
.flow-analogy {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(245, 215, 110, 0.07);
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.flow-analogy b { color: var(--yellow); }
/* "只记一句话" takeaway 块 */
.takeaway {
  margin: 22px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(79, 158, 255, 0.1), rgba(79, 212, 154, 0.06));
  border: 1px solid rgba(79, 158, 255, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.takeaway-icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.takeaway-text { font-size: 15px; line-height: 1.6; color: var(--text); }
.takeaway-text b { color: var(--blue); }

/* 通用滚动入场（全站图表淡入上浮）*/
.reveal-init { opacity: 0; transform: translateY(22px); }
.reveal-in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
    padding: 20px 14px;
  }
  :root { --sidebar-w: 220px; }
  .content { padding: 0 32px; }
  .anim-frame.two-col { grid-template-columns: 1fr; gap: 22px; }
  .intro-grid, .check-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 0 18px; }
  .chapter-title { font-size: 24px; }
  .chapter-intro .chapter-title { font-size: 28px; }
  .event-stats, .metric-block { grid-template-columns: 1fr; }
}
