/* ==========================================================================
   中国生铁、粗钢与钢材产量变化分析（2020—2024年）
   纯本地零依赖样式表 · 与原报告双图配色统一 · 适配桌面 / 移动 / A4打印
   ========================================================================== */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* 与原报告两幅图完全一致的产品配色 */
  --pig-iron: #2e4e68;
  --pig-iron-bg: #eef4f8;
  --crude-steel: #b25426;
  --crude-steel-bg: #fdf3ee;
  --steel-prod: #36765d;
  --steel-prod-bg: #eef7f3;

  /* 语义色 */
  --accent: #1d4ed8;
  --danger: #991b1b;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warn: #854d0e;
  --warn-bg: #fefce8;
  --warn-border: #fde68a;
  --ok: #166534;
  --ok-bg: #f0fdf4;
  --ok-border: #bbf7d0;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.14);
  --max-width: 1200px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: var(--font-sans);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea, code, kbd, pre {
  font-family: var(--font-sans);
}

.num, td.num, th.num { font-variant-numeric: tabular-nums; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.72rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2e4e68 0%, #b25426 52%, #36765d 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-text { min-width: 0; }

.brand-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.89rem;
  font-weight: 500;
  padding: 0.44rem 0.88rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.nav-btn.active { background: #ffffff; color: var(--ink); font-weight: 700; }

/* 主体容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.45rem 1.25rem 3.5rem;
}

.view-panel { display: none; animation: fadeIn 0.18s ease; }
.view-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card-title { margin: 0; font-size: 1.14rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.card-subtitle { margin: 0.25rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 58%, #2e4e68 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.9rem 2rem 1.65rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero h1 { margin: 0 0 0.55rem; font-size: 1.72rem; line-height: 1.28; letter-spacing: -0.01em; }
.hero-lead { margin: 0 0 1.2rem; max-width: 82ch; font-size: 0.94rem; color: #cbd5e1; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.hero-btn-light {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #ffffff;
  font-weight: 600;
}

.hero-btn-light:hover { background: #e2e8f0; border-color: #e2e8f0; }

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding-top: 1rem;
}

.meta-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.72rem;
}

.meta-label { display: block; font-size: 0.72rem; color: #94a3b8; margin-bottom: 0.14rem; }
.meta-value { font-size: 0.85rem; font-weight: 600; color: #f8fafc; }
.meta-value.pending { color: #fde68a; font-weight: 500; }

/* 提示横幅 */
.notice-banner {
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.2rem;
  font-size: 0.87rem;
  line-height: 1.62;
  border: 1px solid var(--border);
}

.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); color: #713f12; }
.notice-danger { background: var(--danger-bg); border-color: var(--danger-border); color: #7f1d1d; }
.notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

/* KPI 网格 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kpi-card[data-product="生铁"] { border-top-color: var(--pig-iron); }
.kpi-card[data-product="粗钢"] { border-top-color: var(--crude-steel); }
.kpi-card[data-product="钢材"] { border-top-color: var(--steel-prod); }

.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

.prod-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
}

.prod-badge.pig-iron { background: var(--pig-iron-bg); color: var(--pig-iron); }
.prod-badge.crude-steel { background: var(--crude-steel-bg); color: var(--crude-steel); }
.prod-badge.steel-prod { background: var(--steel-prod-bg); color: var(--steel-prod); }

.kpi-main-num { font-size: 1.78rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.kpi-unit { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-left: 0.25rem; }
.kpi-delta-row { display: flex; flex-wrap: wrap; gap: 0.42rem; align-items: center; font-size: 0.82rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
}

.pill-pos { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border); }
.pill-neg { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.pill-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.pill-neu { background: var(--surface-subtle); color: var(--ink-secondary); border: 1px solid var(--border); }

.kpi-footnote {
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 0.55rem;
  line-height: 1.52;
}

.sparkline-box { height: 46px; width: 100%; }

/* 重点发现双卡（2022反向证据 + 2021版本差异） */
.highlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.evidence-box {
  background: var(--surface);
  border: 1px solid var(--danger-border);
  border-left: 5px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.version-box {
  background: var(--surface);
  border: 1px solid var(--warn-border);
  border-left: 5px solid #d97706;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.evidence-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.stat-tile {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.stat-tile-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; }
.stat-tile-val { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.stat-tile-sub { font-size: 0.7rem; color: var(--muted); margin-top: 0.16rem; }

/* 边界规则网格 */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.boundary-item {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.92rem 1.05rem;
}

.boundary-item h4 { margin: 0 0 0.32rem; font-size: 0.91rem; color: var(--ink); }
.boundary-item p { margin: 0; font-size: 0.83rem; color: var(--ink-secondary); }

/* 控件条与按钮 */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.8rem 0.95rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.control-group { display: flex; align-items: center; gap: 0.42rem; flex-wrap: wrap; }
.control-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-secondary); }

.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.83rem;
  cursor: pointer;
  user-select: none;
}

.chip-check input { margin: 0; cursor: pointer; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn:hover { background: var(--surface-subtle); border-color: #94a3b8; text-decoration: none; }
.btn-primary { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.btn-primary:hover { background: #1e293b; border-color: #1e293b; color: #ffffff; }

.btn-seg {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.btn-seg.active { background: var(--ink); color: #ffffff; border-color: var(--ink); font-weight: 600; }

select.input-select, input.input-text {
  font-family: inherit;
  font-size: 0.84rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
}

input.input-text { min-width: 220px; }

/* SVG 图表区 */
.chart-stage {
  position: relative;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0.75rem 0.75rem 0.4rem;
}

.chart-svg { display: block; width: 100%; min-width: 560px; height: auto; }

.chart-tooltip {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.chart-tooltip.visible { opacity: 1; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin: 0.72rem 0 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-swatch { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }

.chart-caption {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 表格容器：内部横向滚动，绝不导致整页超宽 */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  margin: 0.6rem 0 0.75rem;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

table.data-table th, table.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.data-table th {
  background: var(--surface-subtle);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: #f8fafc; }
table.data-table tbody tr.row-highlight { background: #fef2f2; }
table.data-table tbody tr.row-warn { background: #fefce8; }
table.data-table th.num, table.data-table td.num { text-align: right; white-space: nowrap; }

.source-chip, .cite-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: var(--ink);
  cursor: pointer;
  border: none;
  vertical-align: baseline;
  margin: 0 1px;
}

.source-chip:hover, .cite-ref:hover { background: var(--ink); color: #ffffff; }

/* 完整报告双栏布局（左侧目录 + 右侧正文） */
.report-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.report-sidebar {
  position: sticky;
  top: 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toc-list a {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1.38;
}

.toc-list a:hover { background: var(--surface-subtle); color: var(--ink); text-decoration: none; }
.toc-list a.toc-sub { padding-left: 1.15rem; font-size: 0.77rem; color: var(--muted); }

.report-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2.4rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.report-cover {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
}

.report-cover h1 { margin: 0 0 0.35rem; font-size: 1.62rem; line-height: 1.3; color: var(--ink); }
.report-subtitle { font-size: 1.04rem; font-weight: 600; color: var(--pig-iron); margin: 0 0 0.9rem; }

.report-meta-lines {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.report-paper h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.38rem;
  border-bottom: 1.5px solid var(--border-strong);
  color: var(--ink);
  scroll-margin-top: 82px;
}

.report-paper h3 {
  font-size: 1.03rem;
  margin: 1.35rem 0 0.5rem;
  color: var(--pig-iron);
  scroll-margin-top: 82px;
}

.report-paper p {
  margin: 0.55rem 0 0.85rem;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.82;
}

.report-table-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.25rem 0 0.35rem;
}

.report-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.25rem 0 1.1rem;
  line-height: 1.62;
}

.report-figure {
  margin: 1.2rem 0 1.35rem;
  padding: 0.95rem 1rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.report-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.report-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.report-figure .fig-note {
  margin-top: 0.35rem;
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.6;
}

.prompt-quote {
  margin: 0.85rem 0 1.1rem;
  padding: 0.95rem 1.15rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--pig-iron);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  color: var(--ink-secondary);
  line-height: 1.72;
}

.prompt-quote p {
  margin: 0.32rem 0;
  font-size: 0.86rem;
  line-height: 1.68;
}

.ref-entry {
  padding: 0.72rem 0.95rem;
  margin-bottom: 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
}

.ref-entry-head { font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.ref-entry-url { font-family: var(--font-mono); font-size: 0.78rem; word-break: break-all; margin-bottom: 0.25rem; }
.ref-entry-loc { font-size: 0.82rem; color: var(--muted); }

/* 来源卡片 */
.source-list { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }

.source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.source-card.cat-monthly { border-left-color: var(--pig-iron); }
.source-card.cat-bulletin { border-left-color: var(--steel-prod); }
.source-card.cat-other { border-left-color: var(--crude-steel); }

.source-card.flash-target {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.26);
  border-color: var(--accent);
}

.source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.42rem;
}

.source-title { margin: 0.18rem 0 0.45rem; font-size: 0.99rem; font-weight: 700; color: var(--ink); }

.source-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-size: 0.81rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.source-loc {
  font-size: 0.83rem;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  padding: 0.48rem 0.72rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.source-sha {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 0.28rem;
}

.source-url { font-family: var(--font-mono); font-size: 0.78rem; word-break: break-all; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* 下载中心 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.85rem;
}

.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.72rem;
}

.download-card.featured {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.download-title { font-weight: 700; font-size: 0.91rem; color: var(--ink); margin-bottom: 0.2rem; word-break: break-word; }
.download-desc { font-size: 0.79rem; color: var(--muted); line-height: 1.5; }
.download-meta { font-size: 0.74rem; color: var(--pig-iron); font-family: var(--font-mono); margin-top: 0.25rem; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.81rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
}

/* 响应式适配 */
@media (max-width: 960px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .report-layout { grid-template-columns: 1fr; }
  .report-sidebar { position: static; max-height: none; }
  .report-paper { padding: 1.45rem 1.15rem; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0.65rem 0.9rem; }
  .container { padding: 1rem 0.85rem 2.5rem; }
  .hero { padding: 1.35rem 1.1rem; }
  .hero h1 { font-size: 1.34rem; }
  .evidence-stats { grid-template-columns: 1fr; }
  .card { padding: 1rem; }
  input.input-text { min-width: 0; width: 100%; }
}

/* 打印样式：完整报告高清 A4 输出 */
@media print {
  @page { size: A4; margin: 14mm 14mm; }
  body { background: #ffffff !important; color: #000000 !important; font-size: 10pt; line-height: 1.6; }
  .site-header, .site-footer, .no-print, .chart-tooltip, .report-sidebar { display: none !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .view-panel { display: none !important; }
  .view-panel.active { display: block !important; }
  .report-layout { display: block !important; }
  .report-paper { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .table-wrap { overflow: visible !important; border: 1px solid #94a3b8 !important; }
  table.data-table { min-width: 0 !important; font-size: 8.6pt !important; }
  table.data-table th, table.data-table td { padding: 4px 6px !important; border-color: #cbd5e1 !important; }
  .report-figure, tr, .ref-entry, .report-cover { break-inside: avoid; page-break-inside: avoid; }
  .prompt-quote { background: #f8fafc !important; border-left: 3px solid #334155 !important; }
  a { color: #000000 !important; text-decoration: none !important; }
  .cite-ref { background: none !important; padding: 0 !important; color: #000000 !important; font-weight: 600 !important; }
}

/* Word 修订版报告的链接与长文本适配 */
.report-paper a { overflow-wrap: anywhere; }
.report-reference { scroll-margin-top: 90px; }
.paper-cite { white-space: nowrap; }
.report-paper .data-table { width: 100%; }

/* 来源交互反馈 */
.btn, .btn-seg, .nav-btn, .source-chip {
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn:active, .btn-seg:active, .nav-btn:active, .source-chip:active { transform: scale(0.97); }
.source-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.source-card:focus-within { border-color: var(--accent); box-shadow: var(--shadow); }
.source-card.cat-auxiliary { border-left-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .source-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .btn:hover, .btn-seg:hover, .nav-btn:hover { transform: translateY(-1px); }
}
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}
.source-details { margin: 0.55rem 0; }
.source-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.48rem 0.72rem; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--pig-iron); background: var(--surface-subtle); font-size: 0.83rem; font-weight: 600;
  list-style: none;
}
.source-details summary::-webkit-details-marker { display: none; }
.source-details summary::after { content: '+'; font-size: 1rem; }
.source-details[open] summary::after { content: '−'; }
.source-details[open] .source-loc { margin-top: 0.45rem; animation: fadeIn 180ms ease; }
.source-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; flex-wrap: wrap; }
.source-actions .source-url { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.source-copy { flex: 0 0 auto; }
.interaction-status {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 100;
  max-width: calc(100vw - 2rem); padding: 0.7rem 1rem; border-radius: var(--radius);
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 0.88rem;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.interaction-status.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .source-details > :not(summary) { display: block !important; }
  .source-details summary, .source-copy { display: none !important; }
  .source-card { transform: none !important; box-shadow: none !important; }
}
