:root {
  --canvas: #f3f5f4; --panel: #ffffff; --panel-soft: #f7f9f8; --panel-sunk: #eef2f0; --line: #c9d3cd; --line-soft: #e1e7e3;
  --ink: #17291f; --muted: #4c6155; --faint: #53685b; --accent: #1f4a37; --accent-2: #2f6b52; --accent-ink: #ffffff;
  --chart: #2b5c45; --chart-fill: #6f9a83; --grid: #e4eae6; --up: #a3443e; --down: #2a6d48;
  --heat-up: 176 70 62; --heat-down: 42 120 78;
  --ok: #1f5f5b; --ok-bg: #e1efed; --caution: #8a5a12; --caution-bg: #f7ecd9;
  --high: #b3261e; --high-bg: #f9e3e0; --undetermined: #59625d; --undetermined-bg: #e9ecea;
  --shadow: 0 1px 2px rgb(16 40 28 / .05), 0 6px 18px rgb(16 40 28 / .05);
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1b2220; --panel: #232c28; --panel-soft: #28322d; --panel-sunk: #1f2724; --line: #4f6157; --line-soft: #374640;
    --ink: #eef3ef; --muted: #bccabf; --faint: #98a99e; --accent: #b9d6c4; --accent-2: #9cc4ab; --accent-ink: #15281d;
    --chart: #a9cfb6; --chart-fill: #7fa48d; --grid: #33413b; --up: #eba9a2; --down: #9fd0b2;
    --ok: #9fd3cc; --ok-bg: #1f3b38; --caution: #e6c48a; --caution-bg: #3d3222;
    --high: #f2a79f; --high-bg: #47231f; --undetermined: #c3cbc6; --undetermined-bg: #333b37;
    --shadow: 0 1px 2px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.65 var(--font); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }
a { color: var(--accent-2); }
code { font-family: var(--mono); font-size: .9em; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── 顶栏 ── */
.top { background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.top-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent) 0 50%, var(--accent-2) 50% 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.brand-sub { color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .08em; border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--accent-2); text-decoration: underline; }
.pill { font-size: 12px; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* ── 版心与通用组件 ── */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; display: grid; gap: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary, .secondary { border-radius: 10px; padding: 9px 18px; cursor: pointer; font-weight: 600; min-height: 42px; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); box-shadow: 0 1px 2px rgb(16 40 28 / .15); }
.primary:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }
.secondary { background: var(--panel); color: var(--accent); border: 1px solid var(--line); }
.secondary:hover:not(:disabled) { border-color: var(--accent-2); background: var(--panel-soft); }
.primary:disabled, .secondary:disabled { opacity: .5; cursor: not-allowed; }
.primary:focus-visible, .secondary:focus-visible, .drop:focus-within, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px 22px; display: grid; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
.card > h2, .card-head h2 { font-size: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 14px; }
.chip { display: inline-block; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; line-height: 1.6; }
.section-title { font-size: 19px; }

/* ── 首屏 ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center; padding: 8px 0 4px; }
.hero-copy { display: grid; gap: 14px; }
.eyebrow { color: var(--accent-2); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.hero h1 { font-size: 36px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 16px; max-width: 34em; }
.trust { color: var(--muted); font-size: 14px; border-left: 3px solid var(--accent-2); padding-left: 10px; }
.hero-demo { margin: 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.hero-demo figcaption { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.demo-steps li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.demo-bar { display: block; height: 12px; border-radius: 3px; background: var(--chart); }
.demo-steps li + li .demo-bar { opacity: .78; }
.w-100 { width: 100%; } .w-84 { width: 84%; } .w-56 { width: 56%; } .w-34 { width: 34%; } .w-22 { width: 22%; }
.demo-note { font-size: 14px; color: var(--faint); }

.checks { display: grid; gap: 14px; }
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.check-grid li { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.check-grid b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ok-bg); color: var(--accent); font-family: var(--mono); font-size: 14px; }
.check-grid h3 { font-size: 15px; }
.check-grid p { font-size: 14px; color: var(--muted); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promises li { display: grid; gap: 2px; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.promises strong { font-size: 14px; }
.promises span { font-size: 14px; color: var(--muted); }

/* ── 放入文件与确认口径 ── */
.drop { border-style: dashed; border-color: var(--line); }
.drop.over { border-color: var(--accent-2); background: var(--panel-soft); }
.drop-head { display: flex; gap: 14px; align-items: flex-start; }
.drop-head > div { display: grid; gap: 4px; }
.drop-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ok-bg); position: relative; }
.drop-icon::before { content: ""; position: absolute; left: 12px; top: 9px; width: 16px; height: 20px; border: 2px solid var(--accent); border-radius: 3px; }
.drop-icon::after { content: ""; position: absolute; left: 16px; top: 16px; width: 8px; height: 2px; background: var(--accent); box-shadow: 0 5px 0 var(--accent); }
.zone { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.sample { margin: 0; padding: 10px 12px; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 8px; font: 13px/1.6 var(--mono); overflow-x: auto; }
.fetch { display: grid; gap: 10px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.fetch h3 { margin: 0; font-size: 15px; }
.module-note { margin-top: 10px; }
.platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platforms li { font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 1px 10px; }
.platforms li.on { color: var(--accent); border-style: solid; border-color: var(--accent); font-weight: 600; }
.confirm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.file-info { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.req { margin-left: 8px; font-size: 12px; color: var(--caution); border: 1px solid var(--caution); border-radius: 999px; padding: 0 7px; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label, .check { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; background: var(--panel); min-height: 40px; }
.choices input, .check input, input[type="range"] { accent-color: var(--accent); }
.choices label:has(input:checked), .check:has(input:checked) { border-color: var(--accent-2); background: var(--ok-bg); }
.check { justify-self: start; }
.more summary { cursor: pointer; color: var(--accent-2); font-size: 14px; width: max-content; max-width: 100%; }
.watch-list { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; font-size: 14px; }
.watch-list li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.fields label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.fields input, .fields select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel); min-width: 0; }
.status { min-height: 1.6em; color: var(--muted); }
.status.error { color: var(--high); font-weight: 600; }

/* ── 结论色 ── */
.lv-no_hard_flaw { --tone: var(--ok); --tone-bg: var(--ok-bg); }
.lv-caution { --tone: var(--caution); --tone-bg: var(--caution-bg); }
.lv-high_risk { --tone: var(--high); --tone-bg: var(--high-bg); }
.lv-undetermined { --tone: var(--undetermined); --tone-bg: var(--undetermined-bg); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 3px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tone); background: var(--tone-bg); border: 1px solid var(--tone); white-space: nowrap; }
.ico { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--tone); color: var(--panel); font-size: 12px; font-weight: 700; line-height: 1; }

/* ── 报告 ── */
.result { display: grid; gap: 18px; }
.synthetic { border: 1px dashed var(--caution); color: var(--caution); background: var(--caution-bg); border-radius: 8px; padding: 6px 10px; }
.synthetic p { margin: 0 0 8px; }
.synthetic button { margin: 0; }
.preview .fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.preview .fix label { display: flex; align-items: center; gap: 8px; margin: 0; }
.preview .fix input { width: 12em; max-width: 100%; }
.report-head { display: grid; gap: 8px; }
.report-head .eyebrow { color: var(--faint); }
.report-head h2 { font-size: 22px; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta .chip { font-size: 14px; color: var(--ink); background: var(--panel-soft); border-color: var(--line-soft); }
.report-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; background: var(--canvas); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 4px 12px rgb(16 40 28 / .06); scrollbar-width: thin; }
.report-nav a { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 8px; }
.report-nav a:hover { color: var(--ink); background: var(--panel); }
.verdict { background: var(--tone-bg); border: 1px solid var(--tone); border-radius: 14px; padding: 18px 22px; display: grid; gap: 10px; }
.verdict .title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: var(--tone); }
.verdict .ico { width: 30px; height: 30px; font-size: 17px; }
.verdict-modules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.verdict-modules a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 10px 2px 3px; font-size: 14px; }
.verdict-modules a:hover { border-color: var(--tone); }
.verdict-modules .ico { width: 20px; height: 20px; font-size: 12px; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; }
.kpi { background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; min-width: 0; display: grid; gap: 2px; align-content: start; }
.kpi dt { color: var(--muted); font-size: 14px; }
.kpi dd { margin: 0; font-family: var(--mono); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.kpi .note { font-size: 14px; color: var(--faint); font-family: var(--font); font-weight: 400; }
.kpi.primary-kpi dd { font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat { border: 1px solid var(--line-soft); border-left: 3px solid var(--tone, var(--line)); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; background: var(--panel); }
.stat dt { color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stat dd { margin: 0; font-family: var(--mono); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat .note { font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--faint); }
.stat .ico { width: 16px; height: 16px; font-size: 11px; }
.subhead { font-size: 15px; color: var(--ink); margin-top: 4px; }

/* ── 图表 ── */
.readout { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.6em; }
.readout b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.charts { display: grid; gap: 6px; }
.chart { display: grid; gap: 2px; min-width: 0; }
.chart-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.plot { position: relative; margin: 0 0 22px 52px; height: 210px; touch-action: pan-y; cursor: crosshair; }
.chart.small .plot { height: 120px; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 6px; }
.plot .grid-line { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .ref { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.plot .line { fill: none; stroke: var(--chart); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plot .area { fill: rgb(var(--heat-down) / .18); stroke: none; }
.plot .line.edge { stroke: var(--down); stroke-width: 1.2; }
.plot .xhair { stroke: var(--ink); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.plot .mark-low { fill: var(--high); }
.ylab, .xlab { position: absolute; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.ylab { right: 100%; padding-right: 7px; transform: translateY(-50%); }
.xlab { top: 100%; padding-top: 3px; transform: translateX(-50%); }
.dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--chart); border: 2px solid var(--panel); pointer-events: none; }
.dot.low { background: var(--high); }
.flag { position: absolute; font-size: 11.5px; color: var(--high); white-space: nowrap; transform: translate(10px, -50%); pointer-events: none; font-variant-numeric: tabular-nums; }
.flag.to-left { transform: translate(calc(-100% - 10px), -50%); }

/* ── 缩水图 ── */
.waterfall { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: minmax(170px, 300px) minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.step-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.step-label { font-weight: 600; }
.step-value { font-family: var(--mono); font-weight: 700; }
.delta { font-family: var(--mono); color: var(--muted); font-size: 14px; }
.st-skipped .chip { border-style: dashed; }
.track { position: relative; height: 18px; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.track .zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); }
.track .bar { position: absolute; top: 3px; bottom: 3px; border-radius: 2px; }
.bar.keep { background: var(--chart); }
.bar.cut { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 5px); }
.st-skipped .bar.keep { background: transparent; border: 1px dashed var(--chart); }
.basis { grid-column: 2; font-size: 14px; color: var(--muted); }
.final { font-size: 16px; }
.final strong { font-family: var(--mono); font-size: 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks .check { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: auto; }
.checks .check .basis { flex-basis: 100%; }
.budget { margin: 0; font-size: 15px; }
.budget strong { font-family: var(--mono); }

/* ── 问题与下一步 ── */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.two > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.issues li { display: grid; gap: 2px; }
.next { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }

/* ── 表格与热力 ── */
.scroll { overflow-x: auto; max-width: 100%; }
/* 横向还能滚动时，对应一侧出现渐变与阴影，提示表格没有到头 */
.scroll.fade { background:
  linear-gradient(to right, var(--panel) 30%, rgb(0 0 0 / 0)) left center / 36px 100% no-repeat local,
  linear-gradient(to left, var(--panel) 30%, rgb(0 0 0 / 0)) right center / 36px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .22), rgb(0 0 0 / 0)) left center / 14px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .22), rgb(0 0 0 / 0)) right center / 14px 100% no-repeat scroll; }
.scroll-hint { display: none; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .scroll-hint { display: block; } }
.chip.quiet { font-weight: 400; border-style: dashed; white-space: normal; background: transparent; }
table { border-collapse: collapse; width: 100%; }
.grid th, .grid td { border-bottom: 1px solid var(--line-soft); padding: 6px 8px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.grid th:first-child { text-align: left; }
.grid thead th { color: var(--muted); font-weight: 500; font-size: 14px; }
.heat td { font-size: 12px; text-align: center; padding: 6px 4px; min-width: 3.6em; }
.heat td.up { background: rgb(var(--heat-up) / var(--a, .2)); }
.heat td.down { background: rgb(var(--heat-down) / var(--a, .2)); }
.heat td.sum { font-weight: 700; border-left: 1px solid var(--line); }
.up { color: var(--up); } .down { color: var(--down); }
.heat td.up, .heat td.down { color: var(--ink); }
.legend { color: var(--muted); font-size: 14px; }

/* ── 五项检查 ── */
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.module-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.letter { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tone-bg); color: var(--tone); font-family: var(--mono); font-size: 15px; border: 1px solid var(--tone); }
.finding { border-top: 1px solid var(--line-soft); padding-top: 12px; display: grid; gap: 8px; min-width: 0; }
.finding h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.three { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.three dt { color: var(--muted); }
.three dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ok-list { border-top: 1px solid var(--line-soft); padding-top: 10px; }

/* ── 研究档案 ── */
.fields.wide { grid-template-columns: minmax(0, 1fr); }
.fields textarea { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel); color: var(--ink); font: inherit; min-width: 0; resize: vertical; }
.confidence { font-weight: 600; }
.lens h4 { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.narration p { margin: 0 0 6px; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 8px; }
.lens-evidence summary { cursor: pointer; color: var(--accent-2); font-size: 14px; width: max-content; max-width: 100%; }
.lens-evidence .alts, .lens-evidence > .muted { margin-top: 8px; }
.side { background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.side ul, .alts, .open-q ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.alts { list-style: none; padding: 0; }
.alts li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.source { color: var(--faint); font-size: 14px; margin: 0; }
.ok-list summary { cursor: pointer; color: var(--ok); font-size: 14px; font-weight: 600; width: max-content; max-width: 100%; }
.ok-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ok-items li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.ok-items li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--ok); font-weight: 700; }
.ok-items strong { font-size: 14px; }
.ok-items span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* ── 保存 ── */
.downloads { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fingerprint { font-family: var(--mono); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 24px 32px; color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .top-inner { padding: 10px 12px; }
  .pill { display: none; }
  .page { padding: 16px 12px 28px; gap: 16px; }
  .hero h1 { font-size: 25px; }
  .sub { font-size: 15px; }
  .card { padding: 16px 14px; }
  .zone { padding: 12px; }
  .verdict { padding: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi dd { font-size: 17px; }
  .kpi.primary-kpi dd { font-size: 19px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .plot { margin-left: 44px; height: 170px; }
  .chart.small .plot { height: 100px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .basis { grid-column: 1; }
  .three { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .three dt { font-size: 14px; }
  .three dd { margin-bottom: 6px; }
  .actions > button { flex: 1 1 100%; }
  .drop-head { gap: 10px; }
  .foot { padding: 0 12px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary { transition: none; }
}
@media print {
  body { background: #fff; }
  .top, .hero, .checks, #drop, #confirm, .status, .report-nav, .downloads, .foot { display: none !important; }
  .page { max-width: none; padding: 0; }
  .card, .verdict { break-inside: avoid; box-shadow: none; }
}

/* Long source names stay visible at narrow widths. */
.meta .chip { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.chart-controls { display: grid; gap: 8px; margin-block: 12px; }
.chart-controls input { width: 100%; min-height: 44px; }
.bad-rows { display: grid; gap: 8px; overflow-wrap: anywhere; }

.source-files { overflow-wrap: anywhere; min-width: 0; }
.source-files summary { cursor: pointer; color: var(--accent); padding-block: 8px; }

/* 读入核对：选好文件后、体检前 */
.preview { border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 10px; padding: 12px 14px; background: var(--panel); display: grid; gap: 8px; overflow-wrap: anywhere; min-width: 0; }
.preview.error { border-left-color: var(--high); background: var(--high-bg); }
.preview h3 { font-size: 15px; }
.preview ul { margin: 0; padding-left: 20px; }
.preview-rows { border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.preview-rows th, .preview-rows td { text-align: left; padding: 2px 16px 2px 0; }
.preview-rows th { font-family: inherit; font-weight: 600; color: var(--muted); }
.preview-rows tr.gap td { border-top: 1px dashed var(--line); padding-top: 4px; }
.trade-dim { margin-top: 10px; min-width: 0; }  /* grid 子项默认按最宽内容撑开，表格要在里面横向滚动 */
.trade-dim > summary { cursor: pointer; color: var(--accent-2); font-size: 14px; width: max-content; max-width: 100%; }
.trade-dim .grid { margin-top: 6px; }
.trade-kpis { width: fit-content; max-width: 100%; }  /* 不拉满整行，放不下时换行 */
tr.trade-drag th, tr.trade-drag td { background: var(--caution-bg); color: var(--caution); }
#confirm > label:not(.check) > select, #confirm > label:not(.check) > input { margin-left: 8px; }

/* 报告收短：发现的原理与做法、非争议视角默认折叠 */
.finding .what { margin: 0; }
.finding details.why > summary { cursor: pointer; color: var(--accent-2); font-size: 14px; width: max-content; max-width: 100%; }
.finding details.why > dl { margin-top: 8px; }
.lens > details { display: grid; gap: 8px; }
.lens > details > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.lens > details > summary::-webkit-details-marker { display: none; }
.lens > details > summary h3::after { content: "展开"; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--accent-2); }
.lens > details[open] > summary h3::after { content: "收起"; }
.lens > details > summary .muted { font-size: 14px; }
.lens > details > * + * { margin-top: 4px; }
.note-box { border-left: 4px solid var(--caution); background: var(--caution-bg); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
/* 折叠区标题较长时在窄屏换行，不撑宽卡片 */
#confirm > details { min-width: 0; }
#confirm > details > summary { width: auto; }

/* ── 购买页 / 法务页 / 授权区 ── */
.doc h1 { font-size: 24px; }
.doc h2 { font-size: 17px; margin-top: 8px; }
.doc .card { gap: 10px; }
.warn { border: 1px solid var(--caution); background: var(--caution-bg); color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel-soft); display: grid; gap: 4px; }
.plan h3 { font-size: 16px; }
.price { font-size: 26px; font-weight: 700; color: var(--accent); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pay { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); max-width: 100%; height: auto; }
.official { overflow-wrap: anywhere; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.lic-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lic-row input { flex: 1 1 260px; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* 报告里的术语折叠区 */
.glossary-card > summary { cursor: pointer; font-weight: 600; }
.glossary { display: grid; gap: 4px 12px; margin: 8px 0 0; }
.glossary dt { font-weight: 600; margin-top: 8px; }
.glossary dd { margin: 0; color: var(--muted); line-height: 1.6; }
.need-file { margin: 4px 0 0; }
.trust-gloss { font-size: 14px; margin: 6px 0 0; }
.trust-gloss a { margin-left: 6px; }
.gloss-inline summary { cursor: pointer; font-size: 14px; color: var(--muted); line-height: 1.6; }
.gloss-inline .glossary dt { font-size: 14px; }
.gloss-inline .glossary dd { font-size: 14px; }
#home-glossary { margin-top: 12px; }

/* 激活框旁的免责声明要点与同意勾选；重新同意面板同款 */
.terms-box { margin: 10px 0; padding: 0; font-size: 14px; }
.terms-box[hidden] { display: none; }
.terms-points { margin: 0 0 6px; color: var(--muted); }
.terms-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.terms-check input { margin-top: 4px; flex: none; }
.terms-check a { margin-right: 4px; }

/* 付费墙卡片里的链接行（回首页、购买与授权…）：和错误页一样单独一行 */
.notice-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-weight: 600; }

/* 成交回放图：K 线 + 成交；涨红跌绿，涨空心跌实心，红圈为核对未通过的成交 */
.fr-view { display: grid; gap: 6px; min-width: 0; margin-top: 8px; }
.fr-view h3 { font-size: 15px; overflow-wrap: anywhere; }
.fr-svg { display: block; width: 100%; height: auto; background: var(--panel-soft); border: 1px solid var(--line-soft); border-radius: 8px; }
.fr-svg .wick { stroke-width: 1; vector-effect: non-scaling-stroke; }
.fr-svg .up { stroke: var(--up); fill: var(--panel-soft); }
.fr-svg .dn { stroke: var(--down); fill: var(--down); }
.fr-svg .mk { fill: var(--chart); stroke: var(--panel-soft); stroke-width: 1; }
.fr-svg .mk.sell { fill: var(--panel-soft); stroke: var(--chart); stroke-width: 2; }
.fr-svg .bad { fill: var(--high); stroke: var(--panel-soft); stroke-width: 1; }
.fr-svg .ring { fill: none; stroke: var(--high); stroke-width: 2; }
.fr-svg .num { fill: var(--high); font: 700 13px var(--font); text-anchor: middle; }
.fr-svg .fr-grid { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 4 4; }
.fr-svg .fr-hit { cursor: pointer; outline: none; }
.fr-svg .fr-hit:focus-visible .ring { stroke-width: 4; }
.fr-svg .fr-hit:hover .ring { stroke-width: 3.5; }
.axis-note { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.fr-panel { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
/* 点开红圈后，原因在下面高亮的列表项里只显示一次；提示框留给读屏，视觉上收起，避免同一段话出现两遍 */
.fr-panel.on { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.fr-flags { margin: 0; padding-left: 24px; display: grid; gap: 6px; font-size: 14px; }
.fr-flag { overflow-wrap: anywhere; padding: 2px 4px; border-radius: 6px; }
.fr-flag.on { background: var(--high-bg); }

/* ── 基础无障碍（K2 C-10）：跳转链接、正文不小于 14px、本机进度条 ── */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 8px; outline: 2px solid var(--accent-2); outline-offset: 2px; }
main:focus { outline: none; }
.stage-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; color: var(--muted); }
.stage-list li[aria-current="step"] { color: var(--ink); font-weight: 700; }
#local-progress-bar { width: 100%; height: 14px; }
.foot-help { color: var(--muted); }
