/* ───────────────────────── 设计令牌（浅色纸感，仅浅色） ───────────────────────── */
:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --paper-2: #efebe2;
  --surface-1: #fffdf9;
  --surface-2: #f7f4ee;
  --border: #e4ddcf;
  --hair: #ece6da;
  --grid: #ece7dd;
  --ink: #1d1b17;
  --text-primary: #1d1b17;
  --text-secondary: #5a554b;
  --text-muted: #8c8577;
  /* 图表系列色（经过色盲校验的参考配色） */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  /* 状态色 */
  --good: #2f7d4f;
  --good-bg: #e8f2ea;
  --warning: #b07a12;
  --warning-bg: #f8efd9;
  --critical: #b33a2e;
  --critical-bg: #f7e5e1;
  --pending: #9a9384;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 1px 0 rgba(29, 27, 23, .03), 0 8px 24px -12px rgba(29, 27, 23, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 14px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 85% -10%, #fbf6ea 0%, transparent 60%);
}
a { color: inherit; text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font-size: 12.5px; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }
.muted { color: var(--text-muted); font-weight: 400; }
.num, table { font-variant-numeric: tabular-nums; }

/* ───────────────────────── 顶栏 ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 243, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.topbar .row { max-width: 1320px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 22px; }
.topbar .row.r1 { height: 58px; }
.topbar .row.r2 { height: 44px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand .seal { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.brand small { font-family: var(--sans); font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: .08em; }
.tickers { display: flex; gap: 6px; flex: 1; }
.tickers button {
  border: 1px solid var(--border); background: var(--surface-1); color: var(--ink); font: 600 12.5px var(--sans); letter-spacing: .06em;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
}
.tickers button.on { background: var(--ink); color: var(--surface-1); border-color: var(--ink); }
.snap { color: var(--text-muted); display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
select { font: inherit; color: var(--ink); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); }
.tabs { display: flex; gap: 28px; height: 100%; }
.tabs button {
  border: none; background: none; padding: 0; height: 100%; cursor: pointer; font: 500 13.5px var(--sans); color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:hover { color: var(--ink); }

/* ───────────────────────── 版式 ───────────────────────── */
main { max-width: 1320px; margin: 0 auto; padding: 28px 32px 120px; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 1080px) { .layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* 目录 */
.toc { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 6px; font-size: 12.5px; }
.toc .lbl { font-size: 11px; letter-spacing: .16em; color: var(--text-muted); margin: 4px 0 12px; }
.toc .d { margin-bottom: 14px; }
.toc .d > a { display: flex; gap: 8px; align-items: baseline; text-decoration: none; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.toc .d > a b { font-family: var(--serif); color: var(--c); font-size: 14px; }
.toc .c { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-secondary); padding: 3px 8px 3px 6px; border-radius: 7px; }
.toc .c:hover { background: var(--paper-2); color: var(--ink); }
.toc .c.on { background: var(--surface-1); color: var(--ink); box-shadow: inset 2px 0 0 var(--c); }
.toc .c .ic { width: 18px; height: 18px; border-radius: 5px; background: var(--soft); color: var(--c); display: grid; place-items: center; flex: none; }
.toc .c .ic svg { width: 12px; height: 12px; }
.toc .c i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text-muted); width: 18px; font-size: 11px; }

/* ───────────────────────── 刊头 ───────────────────────── */
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 8px 0 26px; border-bottom: 1px solid var(--ink); }
.eyebrow { font-size: 11.5px; letter-spacing: .16em; color: var(--text-muted); text-transform: uppercase; }
.masthead h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.15; margin: 8px 0 14px; letter-spacing: .01em; }
.masthead h1 span { color: var(--text-muted); font-weight: 400; font-size: 24px; margin-left: 8px; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price .p { font-family: var(--serif); font-size: 54px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.price .meta { color: var(--text-muted); font-size: 12.5px; }
.range { margin-top: 16px; max-width: 420px; }
.range .bar { position: relative; height: 4px; background: linear-gradient(90deg, var(--critical-bg), var(--paper-2) 50%, var(--good-bg)); border-radius: 2px; }
.range .dot { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface-1); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--ink); }
.range .ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

.stamp {
  min-width: 210px; text-align: center; padding: 18px 26px 16px; border: 1.5px solid var(--sc, var(--ink)); color: var(--sc, var(--ink));
  border-radius: 14px; position: relative; background: var(--surface-1); box-shadow: var(--shadow);
}
.stamp::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--sc, var(--ink)); border-radius: 10px; opacity: .35; }
.stamp .k { font-size: 11px; letter-spacing: .2em; opacity: .8; }
.stamp .v { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.25; margin: 4px 0 2px; }
.stamp .s { font-size: 12.5px; opacity: .85; }

.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip > div { padding: 16px 18px 16px 0; }
.strip > div + div { padding-left: 18px; border-left: 1px solid var(--hair); }
.strip .k { font-size: 11.5px; color: var(--text-muted); letter-spacing: .04em; }
.strip .v { font-family: var(--serif); font-size: 21px; white-space: nowrap; line-height: 1.35; font-variant-numeric: lining-nums tabular-nums; }
.strip .s { font-size: 11.5px; color: var(--text-muted); }

/* ───────────────────────── 综合评定 ───────────────────────── */
.verdicts { margin-top: 38px; }
.h-sec { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; }
.h-sec h2 { font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 600; }
.h-sec .note { color: var(--text-muted); font-size: 12.5px; }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vcard { background: var(--surface-1); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px 14px; position: relative; overflow: hidden; }
.vcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.vcard .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vcard .t b { font-size: 13px; }
.vcard p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text-secondary); }
.vcard.final { background: var(--ink); color: var(--surface-1); border-color: var(--ink); }
.vcard.final p { color: #d9d3c6; }
.vcard.final::before { background: #c9a55a; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pos { color: var(--good); background: var(--good-bg); }
.pill.neu { color: var(--warning); background: var(--warning-bg); }
.pill.neg { color: var(--critical); background: var(--critical-bg); }
.pill.na { color: var(--pending); background: var(--paper-2); }
.vcard.final .pill { background: rgba(255, 255, 255, .1); color: #f0d79b; }

/* 交易计划 */
.plan { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface-1); border: 1px solid var(--hair); border-radius: 14px; }
@media (max-width: 1180px) { .plan { grid-template-columns: repeat(2, 1fr); } }
.plan > div { padding: 14px 16px; }
.plan > div + div { border-left: 1px solid var(--hair); }
.plan .k { font-size: 11px; letter-spacing: .12em; color: var(--text-muted); }
.plan .v { font-size: 13px; margin-top: 4px; line-height: 1.6; }

/* ───────────────────────── 维度区块 ───────────────────────── */
.dim { margin-top: 64px; }
.dim-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: end; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); position: relative; }
.dim-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--c); }
.dim-head .n { font-family: var(--serif); font-size: 52px; line-height: .9; color: var(--c); font-variant-numeric: lining-nums; }
.dim-head h2 { font-family: var(--serif); font-size: 26px; margin: 0; font-weight: 600; line-height: 1.2; }
.dim-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface-1); border: 1px solid var(--hair); border-radius: 16px; padding: 18px 20px 18px; min-width: 0;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.card.wide { grid-column: 1 / -1; }
.card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.badge { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--c); display: grid; place-items: center; position: relative; }
.badge svg { width: 22px; height: 22px; }
.card-head .no { font-size: 11px; letter-spacing: .16em; color: var(--c); font-weight: 700; }
.card-head h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.35; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.card .q { color: var(--text-muted); font-size: 12.5px; margin: 2px 0 0; }
.card .sub { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }
.card .content { margin-top: 14px; }
.sec-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin: 16px 0 8px; letter-spacing: .12em; }
.content > .sec-label:first-child { margin-top: 2px; }

.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--sans); padding: 1px 8px; border-radius: 999px; color: var(--text-secondary); background: var(--paper-2); white-space: nowrap; letter-spacing: 0; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pending); }
.chip.auto::before, .chip.done::before { background: var(--good); }
.chip.need { color: var(--warning); background: var(--warning-bg); }
.chip.need::before { background: var(--warning); }
.chip.todo::before { background: var(--pending); }

.kind { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 4px; margin-right: 6px; letter-spacing: .04em; vertical-align: 1px; }
.kind.fact { color: #4a463e; background: #ebe6dc; }
.kind.expect { color: #8a5d0c; background: #f6ebcf; }
.kind.infer { color: #5a4a9a; background: #ebe7f6; }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--hair); margin-top: 10px; }
.kv div { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.kv .k { font-size: 11.5px; color: var(--text-muted); }
.kv .v { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; font-size: 14px; }

.analysis { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--c); font-size: 13.5px; line-height: 1.75; color: var(--text-secondary); }
.analysis .lbl { font-size: 10.5px; letter-spacing: .18em; color: var(--c); font-weight: 700; margin-bottom: 2px; }
.analysis .verdict { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 6px; }
.analysis ul { margin: 10px 0 0; padding: 0; list-style: none; }
.analysis li { padding: 5px 0; border-top: 1px dashed var(--border); font-size: 12.5px; }
.analysis.empty { border-left-color: var(--border); color: var(--text-muted); }

.rule { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; font-size: 13px; }
.rule .sec-label { margin: 0 0 4px; }

.notice { border: 1px solid #eadcb8; background: #fbf5e6; padding: 10px 14px; border-radius: 10px; margin: 12px 0; color: #6b5420; font-size: 13px; }
.notice.bad { border-color: #ecc9c2; background: var(--critical-bg); color: #7d2a20; }
.notice.ok { border-color: #c8ddcc; background: var(--good-bg); color: #24573a; }

/* 表格 */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--text-muted); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td.r, th.r { text-align: right; }
tbody tr:hover td { background: #faf7f1; }

/* 图表 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { fill: var(--text-muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--grid); }
.chart .axis { stroke: var(--text-muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin: 2px 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-bottom: 8px; background: var(--surface-1); }
.seg button { border: none; background: transparent; padding: 4px 12px; font: 12px var(--sans); color: var(--text-secondary); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--surface-1); }

.tip {
  position: fixed; pointer-events: none; z-index: 50; background: var(--surface-1); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font-size: 12px; box-shadow: 0 10px 30px -10px rgba(29, 27, 23, .25);
  font-variant-numeric: tabular-nums; max-width: 300px;
}
.tip b { display: block; margin-bottom: 3px; }
.tip .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.tip .row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* 其他页签 */
.page-title { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 8px 0 6px; }
.page-sub { color: var(--text-muted); margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.block { margin-top: 40px; }
.block > h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.req h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 34px 0 10px; display: flex; align-items: center; gap: 10px; }
.req td:first-child { white-space: nowrap; font-weight: 700; }
.foot { margin-top: 60px; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.toc { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 8px 0; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.65; }
.news li:first-child { border-top: 0; }
.news li b { font-variant-numeric: tabular-nums; margin-right: 6px; }
.news a { color: var(--text-muted); font-size: 12px; }
