:root {
  --primary: #475569;
  --primary-light: #b45309;
  --primary-bg: #f1f5f9;
  --success: #059669;
  --success-bg: #ecfdf5;
  --neutral: #64748b;
  --neutral-bg: #f9fafb;
  --glossary-accent: #b45309;
  --glossary-accent-bg: #fff7ed;
  --comparison-amber: #d97706;
  --comparison-amber-bg: #fffbeb;
  --footnote-amber: #fef3c7;
  --warning-bg: #fffbeb;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --heading: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --sidebar-width: 280px;
  --content-max-width: 1100px;
  --tooltip-bg: #1e293b;
  --tooltip-text: #f1f5f9;
}

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

/* 阅读器正文（仅在 reader-root 内生效，避免污染全局） */
#reader-root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.88;
  color: var(--text);
  background: var(--bg);
  counter-reset: footnote-counter;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--sidebar-width);
}

#progress-bar-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 2000;
  background: rgba(0,0,0,0.03);
}
#progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #475569, #64748b, #b45309);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(71,85,105,0.35);
}

#sidebar {
  position: fixed; left: 0; top: 0; width: var(--sidebar-width); height: 100vh;
  overflow-y: auto; z-index: 1000;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
#sidebar h3 {
  font-size: 14px; margin-bottom: var(--space-lg); color: var(--heading);
  padding-bottom: var(--space-sm); border-bottom: 2px solid var(--primary);
  letter-spacing: 0.5px; font-weight: 700;
}
#sidebar .toc-controls { display: flex; gap: 6px; margin-bottom: var(--space-md); }
#sidebar .toc-controls button {
  font-size: 11px; padding: 4px 12px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 14px; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s; font-family: inherit;
}
#sidebar .toc-controls button:hover {
  background: var(--primary-bg); color: var(--primary); border-color: #cbd5e1;
}

.toc-tree { list-style: none; }
.toc-part { margin-bottom: 2px; }

.toc-chapter-row { display: flex; align-items: center; gap: 2px; }
.toc-chapter-row .arrow {
  display: inline-block; width: 14px; font-size: 9px; transition: transform 0.2s;
  flex-shrink: 0; color: var(--text-tertiary); cursor: pointer;
  text-align: center; user-select: none;
}
.toc-chapter-row .arrow.collapsed { transform: rotate(-90deg); }

.toc-chapter {
  display: block; flex: 1; padding: 6px 10px; cursor: pointer; border-radius: 4px;
  color: var(--text-secondary); text-decoration: none; font-size: 13px;
  transition: all 0.15s; border-left: 2px solid transparent; margin: 1px 0;
  font-weight: 600;
}
.toc-chapter:hover { background: #f1f5f9; color: var(--text); }
.toc-chapter.active {
  color: var(--primary); background: var(--primary-bg); border-left-color: var(--primary);
  font-weight: 700; box-shadow: inset 0 0 0 1px rgba(71,85,105,0.08);
}

.toc-sections { list-style: none; padding-left: 18px; }
.toc-sections.collapsed { display: none; }

.toc-section {
  display: block; padding: 3px 10px 3px 18px; cursor: pointer; border-radius: 4px;
  color: var(--text-tertiary); text-decoration: none; font-size: 11px;
  transition: all 0.15s; border-left: 2px solid transparent; margin: 0;
}
.toc-section:hover { background: #f8fafc; color: var(--text-secondary); }
.toc-section.active {
  color: var(--primary-light); background: var(--glossary-accent-bg);
  border-left-color: var(--primary-light); font-weight: 500;
}

/* 付费截断场景下被锁定章节的目录项（🔒 标记，点击跳付费墙） */
.toc-chapter--locked,
.toc-section--locked {
  color: var(--text-tertiary); cursor: pointer; opacity: 0.75;
}
.toc-chapter--locked:hover,
.toc-section--locked:hover { background: var(--primary-bg); color: var(--primary); }

#main-content {
  margin: 0 auto;
  max-width: var(--content-max-width);
  /* 顶部留白 48→24（2026-08-11 头部空间压缩），底部 80 保留给长文结尾 */
  padding: var(--space-6) 40px 80px;
}

.report-header {
  text-align: center; padding: var(--space-3xl) var(--space-2xl);
  margin-bottom: var(--space-3xl);
  background: linear-gradient(135deg, #0f172a 0%, #475569 50%, #7c2d12 100%);
  border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.report-header::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.report-header::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(5,150,105,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.report-header h1 {
  font-size: 32px; font-weight: 800; letter-spacing: 3px; margin-bottom: var(--space-md);
  position: relative; text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.report-header .subtitle {
  font-size: 14px; color: rgba(255,255,255,0.65); position: relative;
  letter-spacing: 1px; font-weight: 400;
}
.report-header .period-range {
  font-size: 13px; color: rgba(255,255,255,0.5); position: relative;
  margin-top: var(--space-xs); letter-spacing: 0.5px; font-weight: 300;
}
.report-header .report-publisher {
  display: inline-block;
  font-size: 12px; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 16px; border-radius: 20px;
  letter-spacing: 1.5px; font-weight: 500;
  margin-top: var(--space-md);
  position: relative;
}
.report-header .meta-row {
  margin-top: var(--space-md);
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--space-md); position: relative;
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.report-header .meta-row span strong { color: #ffd700; margin-left: 4px; font-weight: 600; }

/* 封面装饰背景（app.js 渲染阅读器后注入，双标题去重 2026-08-11）：
   绝对定位铺满横幅，文字元素均有 position:relative 故天然在上层 */
.report-header .cover-backdrop {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.exec-summary {
  background: linear-gradient(135deg, rgba(180,83,9,0.05) 0%, rgba(5,150,105,0.05) 100%);
  border-left: 4px solid var(--primary-light);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.exec-summary h2 {
  font-size: 22px; font-weight: 700; color: var(--heading);
  margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: 10px;
}
.exec-summary h2::before {
  content: '★'; color: var(--primary-light); font-size: 20px;
}

.part-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-2xl) 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
}
.part-title .part-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.chapter-title {
  font-size: 21px; font-weight: 700; color: var(--heading);
  margin: 40px 0 20px; padding: 10px 0 10px 16px;
  border-left: 4px solid var(--success);
  background: linear-gradient(90deg, rgba(5,150,105,0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.section-title {
  font-size: 18px; font-weight: 600; color: #334155;
  margin: var(--space-lg) 0 var(--space-md); padding-left: 4px;
}

.content-paragraph {
  margin-bottom: 14px;
  text-indent: 2em;
  text-align: justify;
  color: var(--text);
  line-height: 1.85;
}

.src-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55em;
  font-weight: 600;
  line-height: 1;
  vertical-align: super;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-indent: 0;
  letter-spacing: 0;
  white-space: nowrap;
  border: 1px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #dc2626;
  border-color: #fecaca;
  background: rgba(220, 38, 38, 0.06);
}
.src-ref:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}
.src-ref:active { transform: scale(0.95); }
.src-ref + .src-ref { margin-left: 10px; }

.src-ref[data-tier="2"] {
  color: #059669; border-color: #a7f3d0; background: rgba(5, 150, 105, 0.06);
}
.src-ref[data-tier="2"]:hover {
  color: #fff; background: #059669; border-color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.src-ref[data-tier="3"] {
  color: #2563eb; border-color: #bfdbfe; background: rgba(37, 99, 235, 0.06);
}
.src-ref[data-tier="3"]:hover {
  color: #fff; background: #2563eb; border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}
.src-ref[data-compare-group].highlighted {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #d97706 !important;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.provenance-tooltip {
  position: fixed; z-index: 3000; max-width: 380px;
  background: var(--tooltip-bg); color: var(--tooltip-text);
  padding: 16px 18px; border-radius: 10px; font-size: 13px;
  line-height: 1.65; pointer-events: none; opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.provenance-tooltip.visible { opacity: 1; transform: translateY(0); }
.provenance-tooltip .source-org { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: #fff; }
.provenance-tooltip .source-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px;
}
.provenance-tooltip .source-desc { font-size: 12px; color: #cbd5e1; margin-bottom: 4px; }
.provenance-tooltip .source-url { font-size: 11px; color: #94a3b8; word-break: break-all; margin-top: 6px; }
.provenance-tooltip .click-hint {
  font-size: 11px; color: #fbbf24; margin-top: 6px; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.tooltip-action {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.tooltip-action a {
  color: #fbbf24; font-weight: 600; text-decoration: none; font-size: 12px;
}
.tooltip-action a:hover { text-decoration: underline; }

.reliability-badge {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.reliability-badge.official { background: #dc2626; color: #fff; }
.reliability-badge.authoritative { background: #059669; color: #fff; }
.reliability-badge.market { background: #2563eb; color: #fff; }

.glossary-term {
  border-bottom: 2px dotted var(--glossary-accent); cursor: help; position: relative;
  color: #92400e; font-weight: 500; padding: 0 2px;
  transition: all 0.2s;
}
.glossary-term:hover { background: var(--glossary-accent-bg); border-bottom-style: solid; }
.glossary-tooltip {
  position: fixed; z-index: 3000; max-width: 360px;
  background: var(--glossary-accent-bg); color: #7c2d12; padding: 14px 18px;
  border-radius: 10px; font-size: 13px; line-height: 1.7;
  pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(124,58,237,0.15);
  border: 1px solid #fed7aa;
}
.glossary-tooltip.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.glossary-tooltip .term-name { font-weight: 700; margin-bottom: 4px; color: #9a3412; font-size: 14px; }

.footnote-ref {
  color: var(--primary); cursor: pointer; font-size: 11px; vertical-align: super;
  font-weight: 700; padding: 0 2px;
}
.footnote-ref:hover { color: #334155; background: var(--primary-bg); border-radius: 2px; }
.footnote-tooltip {
  position: fixed; z-index: 3000; max-width: 340px;
  background: var(--warning-bg); color: #92400e; padding: 12px 16px;
  border-radius: 8px; font-size: 13px; line-height: 1.65;
  pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 1px solid #fde68a;
}
.footnote-tooltip.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.footnotes-section {
  margin-top: var(--space-3xl); padding: var(--space-lg) var(--space-xl);
  background: var(--warning-bg); border-radius: var(--radius-md);
  border: 1px solid #fde68a;
}
.footnotes-section h3 { font-size: 18px; margin-bottom: var(--space-md); color: #92400e; font-weight: 700; }
.footnote-item { font-size: 13px; color: #78350f; margin-bottom: 10px; line-height: 1.7; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border-left: 4px solid var(--primary);
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kpi-card:nth-child(1) { border-left-color: #667eea; }
.kpi-card:nth-child(2) { border-left-color: #f5576c; }
.kpi-card:nth-child(3) { border-left-color: #11998e; }
.kpi-card:nth-child(4) { border-left-color: #f12711; }
.kpi-card:nth-child(5) { border-left-color: #b45309; }
.kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
}
.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}
.kpi-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kpi-change.down { color: #059669; }
.kpi-change.up { color: #dc2626; }
.kpi-change.neutral { color: var(--text-secondary); }

.chart-container {
  width: 100%;
  margin: 32px 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 20px 20px 16px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
  overflow: hidden;
}
.chart-container:hover { box-shadow: var(--shadow-md); }
.chart-container .chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  padding: 0 0 10px 12px;
  border-bottom: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
}
.chart-placeholder { width: 100%; height: 450px; }
.chart-caption {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
}
.chart-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.6;
  padding: 0 8px;
}
.chart-err {
  color: #c00; font-size: 13px; padding: 30px; text-align: center;
  background: #fff5f5; border-radius: 8px; border: 1px solid #fcc;
}

.data-table-wrap { overflow-x: auto; margin: var(--space-lg) 0; }
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 14px; background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border);
}
.data-table thead th {
  background: #f8fafc; padding: 12px 16px; text-align: left;
  font-weight: 700; color: var(--heading); font-size: 13px;
  border-bottom: 2px solid var(--border); letter-spacing: 0.3px;
}
.data-table tbody td {
  padding: 10px 16px; border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
.data-table tbody tr:hover td { background: var(--surface-hover); }

.source-registry {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl) 36px;
  margin: var(--space-3xl) 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.source-registry-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md);
}
.source-registry h3 {
  font-size: 21px; font-weight: 700; color: var(--heading);
  cursor: pointer; user-select: none; margin: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 10px 16px;
  border-left: 4px solid var(--success);
  background: linear-gradient(90deg, rgba(5,150,105,0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.source-registry .source-count-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-bg); color: var(--primary);
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.source-registry .toggle-hint {
  font-size: 13px; color: var(--text-secondary);
  margin: 0 0 var(--space-lg) 0; width: 100%;
}

.source-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.source-registry.collapsed .source-cards { display: none; }

.source-card {
  display: flex; background: var(--surface);
  border-radius: 10px; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.source-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}
.source-card-accent { flex-shrink: 0; width: 4px; }
.source-card-accent.tier-1 { background: #dc2626; }
.source-card-accent.tier-2 { background: #059669; }
.source-card-accent.tier-3 { background: #2563eb; }

.source-card-body { flex: 1; padding: var(--space-md); min-width: 0; }
.source-card-header {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-bottom: 6px; flex-wrap: wrap;
}
.source-id {
  font-weight: 700; font-family: "SF Mono", "JetBrains Mono", "Monaco", monospace;
  font-size: 11px; color: var(--primary);
  background: var(--primary-bg);
  padding: 1px 6px; border-radius: 3px; letter-spacing: 0.5px;
}
.source-org { font-weight: 700; font-size: 13px; color: var(--heading); }
.source-name {
  font-size: 12.5px; color: var(--text);
  margin-bottom: 8px; line-height: 1.55;
}
.source-card-meta {
  display: flex; align-items: center; gap: var(--space-md);
  font-size: 11px; color: var(--text-tertiary); flex-wrap: wrap;
}
.source-link-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--primary-light);
  text-decoration: none; padding: 2px 8px;
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 4px; transition: all 0.15s;
  white-space: nowrap; margin-left: auto;
}
.source-link-btn:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
}

.disclaimer {
  margin: var(--space-2xl) 0; padding: var(--space-lg) var(--space-xl);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 13px;
  color: var(--text-secondary); line-height: 1.9;
  box-shadow: var(--shadow-xs);
}
.disclaimer h4 { font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: var(--space-sm); }

.glossary-section {
  margin-top: var(--space-3xl); padding: var(--space-xl) 36px;
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.glossary-section h3 {
  font-size: 21px; font-weight: 700; color: var(--heading);
  padding: 10px 0 10px 16px;
  border-left: 4px solid var(--primary-light);
  background: linear-gradient(90deg, rgba(180,83,9,0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-lg);
}
.glossary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.glossary-item {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px; line-height: 1.6;
}
.glossary-item .g-term {
  font-weight: 700; color: var(--primary-light); margin-right: 8px;
}
.glossary-item .g-def { color: var(--text); }

.in-content-toc {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.in-content-toc .toc-in-title {
  font-size: 21px; font-weight: 700; color: var(--heading);
  padding: 10px 0 10px 16px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(71,85,105,0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-lg);
  cursor: pointer; user-select: none;
}
.in-content-toc.collapsed .toc-in-body { display: none; }
.toc-in-item { padding: 7px 0; border-bottom: 1px dashed var(--border-light); }
.toc-in-item:last-child { border-bottom: none; }
.toc-in-link {
  display: inline-block; color: var(--primary); text-decoration: none;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.toc-in-link:hover { text-decoration: underline; color: var(--primary-light); }
.toc-in-subs { padding-left: 18px; margin-top: 4px; }
.toc-in-sub {
  display: block; color: var(--text-secondary); text-decoration: none;
  font-size: 12px; padding: 2px 0; cursor: pointer;
}
.toc-in-sub:hover { color: var(--primary-light); }

/* 文内目录中被锁定（未购买）的章节/小节：🔒 置灰，点击跳付费墙（2026-08-20，对齐侧栏 .toc-chapter--locked 视觉） */
.toc-in-link--locked,
.toc-in-sub--locked { color: var(--text-tertiary); opacity: 0.75; }
.toc-in-link--locked:hover,
.toc-in-sub--locked:hover { color: var(--primary); text-decoration: none; }

.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 18px; }
.spinner { width: 44px; height: 44px; border: 4px solid #eee; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-secondary); font-size: 15px; }
.drop-hint { background: var(--warning-bg); border: 1px solid #fde68a; border-radius: 8px; padding: 14px 20px; font-size: 13px; color: #555; margin-bottom: 24px; }
.drop-hint code { background: #f5f5f5; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.err-msg { background: #fff5f5; border: 1px solid #fcc; border-radius: 8px; padding: 18px; color: #c00; font-size: 14px; }

#mobile-menu-toggle {
  display: none;
  position: fixed; top: 12px; left: 12px;
  z-index: 1100; width: 40px; height: 40px;
  padding: 0; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
#mobile-menu-toggle svg { width: 20px; height: 20px; stroke: var(--heading); stroke-width: 2; fill: none; }
#mobile-menu-toggle:hover { background: var(--primary-bg); border-color: #cbd5e1; }
#mobile-menu-toggle:hover svg { stroke: var(--primary); }

#sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 900; opacity: 0; transition: opacity 0.25s ease;
}
#sidebar-overlay.show { display: block; opacity: 1; }

/* ============================================================
   悬浮操作按钮组：返回 + 回到顶部（report.html 阅读长文用，2026-08-10）
   固定在右下角，z-index 高于侧栏(1000)/目录开关(1100)，低于进度条(2000)与提示层(3000)
   ============================================================ */
.reader-floats {
  position: fixed; right: 20px; bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 1200;
}
.reader-float {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text-secondary);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.reader-float svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.reader-float:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

@media (max-width: 768px) {
  #mobile-menu-toggle { display: flex; }
  #reader-root { padding-left: 0; overflow-x: hidden; max-width: 100vw; }
  #sidebar { transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: 4px 0 24px rgba(0,0,0,0.12); top: 64px; height: calc(100vh - 64px); }
  #sidebar.open { transform: translateX(0); }
  #main-content { max-width: 100%; padding: 24px 16px 40px; }
  .report-header { padding: 32px 20px; margin-bottom: 32px; border-radius: var(--radius-md); }
  .report-header h1 { font-size: 22px; letter-spacing: 1px; margin-bottom: 12px; }
  .report-header .subtitle { font-size: 12px; letter-spacing: 0; }
  .report-header .period-range { font-size: 11px; }
  .chapter-title { font-size: 18px; margin: 32px 0 16px; padding: 8px 0 8px 12px; }
  .section-title { font-size: 16px; margin: 20px 0 12px; }
  .content-paragraph { font-size: 15px; line-height: 1.8; margin-bottom: 12px; text-align: left; }
  .kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .kpi-card { padding: 16px; }
  .kpi-value { font-size: 20px; }
  .kpi-label { font-size: 11px; }
  .chart-container { padding: 16px; margin: 24px 0; border-radius: var(--radius-md); }
  .chart-container .chart-title { font-size: 14px; margin-bottom: 10px; }
  .chart-placeholder { height: 300px !important; }
  .source-registry { padding: 24px 16px; margin: 32px 0; }
  .source-registry h3 { font-size: 18px; padding: 8px 0 8px 12px; }
  .source-card { flex-direction: column; }
  .source-card-accent { width: 100%; height: 3px; }
  .source-card-body { padding: 12px var(--space-md); }
  .provenance-tooltip, .glossary-tooltip, .footnote-tooltip {
    position: fixed !important; top: 50% !important;
    left: 16px !important; right: 16px !important;
    transform: translateY(-50%) !important;
    max-width: none !important; width: auto !important;
    max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
}

@media print {
  #sidebar, #progress-bar-container, #mobile-menu-toggle, #sidebar-overlay, .reader-floats { display: none; }
  #main-content { margin-left: 0; max-width: 100%; padding: 20px; }
  .report-header { background: #fff; color: #000; box-shadow: none; }
}
