:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #eef3f8;
  --line: #d8e1ec;
  --muted: #64748b;
  --text: #172033;
  --soft: #334155;
  --gold: #b77900;
  --gold-soft: rgba(183, 121, 0, 0.11);
  --green: #14804a;
  --red: #d93025;
  --blue: #2563eb;
  --cyan: #0f766e;
  --orange: #c55a11;
  --shadow: rgba(15, 23, 42, 0.09);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fafc 0%, #f3f6fb 46%, #eef3f8 100%);
  color: var(--text);
  min-width: 320px;
}
a { color: var(--blue); }

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 14px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 6px 18px;
  border-bottom: 1px solid var(--line);
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(245, 179, 1, 0.12);
}
.brand-title {
  font-size: 15px;
  font-weight: 700;
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.date-picker {
  margin: 16px 0;
  display: grid;
  gap: 8px;
}
.date-picker label {
  color: var(--muted);
  font-size: 12px;
}
select, .open-index {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 9px 10px;
  font-size: 13px;
}
.open-index {
  display: block;
  text-decoration: none;
  text-align: center;
}

.nav-title {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 6px 8px;
}
.toc {
  display: grid;
  gap: 3px;
}
.toc a {
  display: block;
  text-decoration: none;
  color: var(--soft);
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.25;
}
.toc a:hover {
  background: var(--panel-2);
  color: var(--text);
}
.toc a.active {
  color: var(--gold);
  background: var(--gold-soft);
}

.content {
  min-width: 0;
  padding: 22px 28px 48px;
}
.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}
h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}
.metric {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 88px;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
}
.metric-value {
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 7px;
}
.metric-note {
  color: var(--gold);
  font-size: 12px;
  margin-top: 5px;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 14px 0;
  box-shadow: 0 10px 24px var(--shadow);
  overflow: hidden;
}
.section > h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(183, 121, 0, 0.12), rgba(248, 250, 252, 0.6) 62%);
}

.theme-competition-chart {
  margin: 6px 0 16px;
  padding: 14px 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
}
.theme-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-weight: 700;
}
.theme-chart-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.theme-competition-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}
.theme-chart-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}
.theme-legend-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}
.theme-legend-item strong {
  overflow-wrap: anywhere;
}
.theme-legend-item small {
  color: var(--muted);
}
.theme-legend-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}
.section-body {
  padding: 14px 16px 16px;
}
h3 {
  margin: 18px 0 10px;
  font-size: 15px;
  color: var(--text);
}
p {
  color: var(--soft);
  line-height: 1.75;
  margin: 10px 0;
}
blockquote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(245, 179, 1, 0.08);
  color: var(--soft);
}
ul, ol {
  color: var(--soft);
  line-height: 1.7;
  padding-left: 22px;
}
code {
  font-family: Consolas, "Cascadia Mono", monospace;
  background: #eef4ff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: #174ea6;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0 14px;
}
.news-theme-table table,
.news-stock-impact-table table {
  table-layout: fixed;
  min-width: 920px;
}
.news-theme-table th:nth-child(1), .news-theme-table td:nth-child(1) { width: 14%; }
.news-theme-table th:nth-child(2), .news-theme-table td:nth-child(2) { width: 28%; }
.news-theme-table th:nth-child(3), .news-theme-table td:nth-child(3) { width: 46%; }
.news-theme-table th:nth-child(4), .news-theme-table td:nth-child(4) { width: 12%; }
.news-stock-impact-table th:nth-child(1), .news-stock-impact-table td:nth-child(1) { width: 20%; }
.news-stock-impact-table th:nth-child(2), .news-stock-impact-table td:nth-child(2) { width: 22%; }
.news-stock-impact-table th:nth-child(3), .news-stock-impact-table td:nth-child(3) { width: 14%; }
.news-stock-impact-table th:nth-child(4), .news-stock-impact-table td:nth-child(4) { width: 44%; }
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}
th {
  position: sticky;
  top: 0;
  background: #fff4d6;
  color: var(--gold);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
th, td {
  border-bottom: 1px solid #e5edf5;
  padding: 9px 10px;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}
tr:nth-child(even) td {
  background: #f8fafc;
}
th, td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
td code, th code {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

#战法胜率闭环 + .table-wrap table {
  min-width: 1320px;
  table-layout: auto;
}
#战法胜率闭环 + .table-wrap th:first-child,
#战法胜率闭环 + .table-wrap td:first-child {
  width: 220px;
  min-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(245, 179, 1, 0.45);
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
}
.pos { color: var(--red); font-weight: 700; }
.neg { color: var(--green); font-weight: 700; }
.warn { color: var(--orange); font-weight: 700; }

.index-page {
  max-width: 1120px;
  margin: 0 auto;
}
.report-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.report-card {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
}
.report-card:hover {
  border-color: rgba(245, 179, 1, 0.75);
}
.report-card strong {
  display: block;
  margin-bottom: 8px;
}
.report-card span {
  color: var(--muted);
  font-size: 12px;
}
.model-stock-highlight,
.model-evidence-highlight,
.focus-chain-highlight,
.repeat-recommendation-highlight {
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.model-stock-highlight,
.model-evidence-highlight { color: var(--red); }
.focus-chain-highlight { color: #b91c1c; }
.repeat-recommendation-highlight { color: #b45309; }

.site-footer {
  margin-top: 28px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.site-footer strong {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .toc {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .toc a {
    white-space: nowrap;
  }
  .content {
    padding: 18px 14px 36px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-chart-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .summary-grid { grid-template-columns: 1fr; }
  .theme-chart-legend { grid-template-columns: 1fr; }
  .theme-competition-chart svg { min-height: 240px; }
  h1 { font-size: 23px; }
  .news-theme-table table,
  .news-stock-impact-table table { min-width: 0; }
  .news-theme-table tr:first-child,
  .news-stock-impact-table tr:first-child { display: none; }
  .news-theme-table tr,
  .news-stock-impact-table tr {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
  }
  .news-theme-table td,
  .news-stock-impact-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    width: auto !important;
    padding: 5px 0;
    border: 0;
  }
  .news-theme-table td::before,
  .news-stock-impact-table td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .news-theme-table td:nth-child(1)::before { content: "题材"; }
  .news-theme-table td:nth-child(2)::before { content: "核心事件"; }
  .news-theme-table td:nth-child(3)::before { content: "AI解读"; }
  .news-theme-table td:nth-child(4)::before { content: "评分"; }
  .news-stock-impact-table td:nth-child(1)::before { content: "股票/行业"; }
  .news-stock-impact-table td:nth-child(2)::before { content: "题材"; }
  .news-stock-impact-table td:nth-child(3)::before { content: "评分"; }
  .news-stock-impact-table td:nth-child(4)::before { content: "关联理由"; }
}


.report-card a {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.report-card a + a {
  margin-top: 10px;
  color: var(--blue);
  font-size: 13px;
}
