/* 科学篇 01：代理模型 */
.heat-stage { --sim: #1c2a43; --sur: #1a7f6b; }
.heat-stage .stage-cap { margin: 0 0 8px; font-size: .88rem; color: var(--graphite); min-height: 2.6em; }
.heat-stage .qlegend { margin-bottom: 4px; }
.heat-stage .qlegend span::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 2.4px solid currentColor; vertical-align: middle; margin-right: 6px; }
.heat-stage .q-sim { color: var(--sim); }
.heat-stage .q-sur { color: var(--sur); }
.heat-stage .q-sur::before { border-top-style: dashed; }
.heat-stage .q-init { color: #9aa2ab; }
.heat-stage .q-init::before { border-top-style: dotted; }
.heat-stage svg { display: block; width: 100%; height: auto; }
.heat-stage .ax { font: 11px var(--f-num); fill: #5a626d; }
.heat-stage .ax.name { font: 11.5px var(--f-body); }
.heat-stage .ax.val { fill: var(--sur); font-weight: 600; }
.heat-stage .ax.boxname { fill: var(--sur); font: 600 11px var(--f-body); letter-spacing: .1em; }
.heat-stage .ln-init { fill: none; stroke: #b9c0c8; stroke-width: 1.4; stroke-dasharray: 1.5 4; stroke-linecap: round; }
.heat-stage .ln-sim { fill: none; stroke: var(--sim); stroke-width: 2.4; stroke-linejoin: round; }
.heat-stage .ln-sur { fill: none; stroke: var(--sur); stroke-width: 2.2; stroke-dasharray: 6 4; stroke-linejoin: round; }
.heat-stage .ln-sur.solid { stroke-dasharray: none; }
.heat-stage .pt-sur { fill: #fff; stroke: var(--sur); stroke-width: 2; }
.heat-stage .wall { stroke: #6f8fc4; stroke-width: 3; stroke-linecap: round; }
.hs-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 10px; }
#hs-map { touch-action: none; cursor: crosshair; }
.heat-stage .mp-bg { fill: #fff; stroke: #dde3e7; }
.heat-stage .mp-box { fill: rgba(26, 127, 107, .1); stroke: var(--sur); stroke-width: 1; stroke-dasharray: 3 3; }
.heat-stage .mp-dots circle { fill: var(--sur); opacity: .55; }
.heat-stage .mp-knob { fill: var(--sim); stroke: #fff; stroke-width: 2; cursor: grab; outline: none; }
.heat-stage .mp-knob.out { fill: var(--red); }
.heat-stage .mp-knob:focus-visible { stroke: var(--marker); stroke-width: 3; }
.hs-read { font-size: .88rem; line-height: 1.75; color: var(--ink-2); }
.hs-read b { font-family: var(--f-num); color: var(--ink); font-weight: 600; }
.hs-read b.sur { color: var(--sur); }
.hs-read b.bad { color: var(--red); }
.hs-read .tag { display: inline-block; margin-top: 4px; padding: 0 9px; border-radius: 999px; font-size: .78rem; border: 1px solid currentColor; }
.hs-read .tag.in { color: var(--sur); }
.hs-read .tag.out { color: var(--red); }
table.cmp.nums { max-width: 30em; margin: 14px 0 20px; }
table.cmp.nums td:nth-child(n+2), table.cmp.nums th:nth-child(n+2) { text-align: right; font-family: var(--f-num); }
table.cmp.nums td:first-child { white-space: normal; color: var(--ink); }
table.cmp.nums.ratio tr:nth-child(n+2) td:last-child { color: var(--red); }
@media (max-width: 960px) { .hs-row { grid-template-columns: 150px minmax(0, 1fr); } }
