
:root.theme-claude {
  color-scheme: light;
  --g-blue:#6e86a8; --g-blue-soft:#e7ecf2;
  --g-red:#c0533b; --g-red-soft:#f4e2db;
  --g-yellow:#b9802f; --g-yellow-soft:#f4e8d2; --g-amber-ink:#8a5e1f;
  --g-green:#5c8a4e; --g-green-soft:#e7eddf;
  --g-purple:#8c6f9e; --g-purple-soft:#ece2f1;
  --g-teal:#5a8e89; --g-teal-soft:#e1ecea; --g-teal-ink:#3f6b67;
  --ink:#2b2620; --ink-2:#4a443b; --muted:#6b6458;
  --line:#e4dece; --line-2:#ece7da;
  --surface:#fbfaf6; --surface-2:#f4f1e8; --surface-3:#efebe0;
  --shadow-1:0 1px 2px rgba(74,60,42,.06),0 1px 3px rgba(74,60,42,.05);
  --shadow-2:0 2px 6px rgba(74,60,42,.08),0 8px 24px rgba(74,60,42,.07);
  --radius:18px; --radius-lg:18px; --pill:999px;
  --accent:#d97757; --accent-ink:#b4522f; --accent-soft:#f3e3d9;
}

body.theme-claude {
  background: #f0ede4;
  color: var(--ink);
  font-family: "Georgia", "Songti SC", "STSong", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
}
.theme-claude .appbar {
  background: rgba(251, 250, 246, .94);
  border-bottom: 1px solid var(--line);
}
.theme-claude .brand { color: var(--ink); }
.theme-claude .brand-name { font-family: "Georgia", "Songti SC", serif; font-weight: 700; letter-spacing: .02em; }
.theme-claude .navtabs a {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.theme-claude .navtabs a:hover { background: var(--surface-2); }
.theme-claude .navtabs a.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.theme-claude .page { padding: 30px 0 80px; }

.theme-claude article.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: min(5.5vw, 52px);
  color: var(--ink);
}
.theme-claude article.report h1, .theme-claude article.report h2,
.theme-claude article.report h3, .theme-claude article.report h4 {
  font-family: "Georgia", "Songti SC", "STSong", serif;
  color: var(--ink);
  line-height: 1.3;
  text-wrap: pretty;
}
.theme-claude article.report h1 { margin: 0 0 22px; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.theme-claude article.report h2 {
  margin: 44px 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
  font-size: 25px; font-weight: 600;
  display: flex; align-items: center; gap: 11px;
}
.theme-claude article.report h2::before {
  content: ""; flex: none; width: 9px; height: 9px;
  border-radius: 2px; background: var(--accent);
  transform: rotate(45deg);
}
.theme-claude article.report h3 {
  margin: 30px 0 12px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px; font-weight: 600;
}
.theme-claude article.report h4 {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  margin: 20px 0 10px;
}
.theme-claude article.report p, .theme-claude article.report li {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.theme-claude article.report p { margin: 13px 0; text-wrap: pretty; }
.theme-claude article.report ul, .theme-claude article.report ol { padding-left: 22px; }
.theme-claude article.report li { margin: 6px 0; }

.theme-claude article.report a { color: var(--accent-ink); }
.theme-claude article.report a:hover { text-decoration: underline; }

.theme-claude article.report blockquote {
  margin: 20px 0; padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
  font-style: italic;
}

.theme-claude article.report code {
  background: var(--surface-3);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent-ink);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
/* 同上：主题层的行内 code 药丸样式不得作用于 pre 内部 */
.theme-claude article.report pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}
.theme-claude article.report pre {
  background: #2b2620; color: #f0ede4;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.65;
  overflow-x: auto;
}
.theme-claude article.report mark {
  background: rgba(217, 119, 87, 0.22);
  padding: 1px 4px;
  border-radius: 4px;
}

.theme-claude article.report table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 24px;
  background: var(--surface);
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.theme-claude article.report th, .theme-claude article.report td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
  color: var(--ink-2);
  line-height: 1.55;
  text-align: left;
}
.theme-claude article.report th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.theme-claude article.report tr:last-child td { border-bottom: none; }

/* 注意：本主题的变量块挂在 :root.theme-claude 上，而 theme-claude 类实际加在 body，
 * 故 var(--accent) 等在此主题内解析不到暖色值。导航轨这里直接给定值，不依赖该变量块。 */
.theme-claude .toc-panel {
  --toc-line: #e4dece;
  --toc-surface: #fbfaf6;
  --toc-surface-2: #f4f1e8;
  --toc-muted: #6b6458;
  --toc-ink: #4a443b;
  --toc-accent: #d97757;
  --toc-accent-ink: #b4522f;
  --toc-accent-soft: #f3e3d9;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(74, 60, 42, .06), 0 1px 3px rgba(74, 60, 42, .05);
}
.theme-claude article.report .report-meta {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #e4dece;
}
.theme-claude article.report .report-meta > h3 {
  margin: 0 0 14px;
  font-family: "Georgia", "Songti SC", serif;
  font-size: 15px; font-weight: 600;
  color: #b4522f;
}
.theme-claude .report-meta dd code {
  background: #efebe0;
  color: #b4522f;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11.5px;
}
.theme-claude .tracking-stat { border-color: #e4dece; background: #f4f1e8; }
.theme-claude .tracking-stat strong { color: #b4522f; font-family: "Georgia", "Songti SC", serif; }

/* 索引页（reports/stocks/index.html 与 reports/industries/index.html）也用 claude theme */
.theme-claude .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.theme-claude .card::before { background: var(--accent); }
.theme-claude .card.cat-stock::before { background: var(--accent); }
.theme-claude .card h3 { font-family: "Georgia", "Songti SC", serif; font-weight: 600; color: var(--ink); }
.theme-claude .card h3 a { color: var(--ink); }
.theme-claude .card h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.theme-claude .card-desc { color: var(--muted); }
.theme-claude .chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.theme-claude .chip.stock { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

.theme-claude .hero h1 { font-family: "Georgia", "Songti SC", serif; color: var(--ink); }
.theme-claude .section-head h2 { font-family: "Georgia", "Songti SC", serif; color: var(--ink); }
.theme-claude .section-head h2::before { background: var(--accent); }

.theme-claude .metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.theme-claude .metric strong { font-family: "Georgia", "Songti SC", serif; color: var(--ink); }

@media (max-width: 900px) {
  .theme-claude article.report { padding: 24px 18px; }
  .theme-claude article.report h2 { font-size: 21px; margin-top: 34px; }
  .theme-claude article.report h3 { font-size: 16px; }
}
