/* =====================================================================
 * 02 开窗通风对流路径 · 独立视觉：气象台 / 户型平面工作台
 * 横向标题带 + 三栏工作台（条件 / 平面图 / 读数），与 01 的左右剖面完全不同。
 * ===================================================================== */

.hc.hc--wv { --hc-a: #26867f; --hc-a-soft: #dff0ed; }
:root[data-theme="dark"] .hc.hc--wv { --hc-a: #6fcdc2; --hc-a-soft: #17312e; }

.wv-hero { padding-top: 32px; }
.wv-hero-top {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px;
    padding-bottom: 22px; border-bottom: 1px solid var(--hc-line);
}
.wv-hero-top > div:first-child { max-width: 780px; }
.wv-hero-meta { justify-content: flex-end; padding-bottom: 4px; }

/* ---------- 三栏工作台 ---------- */
.wv-bench {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(230px, 288px);
    gap: 0;
    margin-top: 24px;
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-r);
    background: var(--hc-card);
    box-shadow: var(--hc-shadow);
    overflow: hidden;
}
.wv-controls, .wv-readout { padding: 20px 18px 22px; }
.wv-controls { border-right: 1px solid var(--hc-line-2); background: var(--hc-card-2); }
.wv-readout { border-left: 1px solid var(--hc-line-2); background: var(--hc-card-2); }
.wv-panel-title {
    font-family: var(--hc-serif); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--hc-a); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px dashed var(--hc-line);
}
.wv-controls .hc-fields { gap: 11px; }
.wv-controls .hc-field > label { font-size: 12px; }

.wv-windirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.wv-dir-chip { position: relative; display: block; cursor: pointer; }
.wv-dir-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wv-dir-chip span {
    display: grid; place-items: center; padding: 8px 6px; border: 1px solid var(--hc-line);
    border-radius: var(--hc-r-sm); background: var(--hc-card); font-size: 12.5px; font-weight: 650;
    color: var(--hc-muted); transition: all .18s;
}
.wv-dir-chip:hover span { border-color: var(--hc-a); }
.wv-dir-chip input:checked + span { border-color: var(--hc-a); background: var(--hc-a); color: #fff; }
:root[data-theme="dark"] .wv-dir-chip input:checked + span { color: #0b1a18; }
.wv-door { margin-top: 10px; }
.wv-controls .hc-btn-row { gap: 7px; }
.wv-controls .hc-btn { flex: 1 1 auto; padding: 9px 10px; font-size: 13px; }

/* ---------- 中央平面图 ---------- */
.wv-stage { min-width: 0; display: flex; flex-direction: column; }
.wv-stage-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 18px; border-bottom: 1px solid var(--hc-line-2);
    font-family: var(--hc-serif); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-muted);
}
.wv-stage-head span:last-child { font-family: var(--hc-sans); letter-spacing: 0; font-size: 12px; color: var(--hc-a); font-weight: 700; }
#wvSvg { display: block; width: 100%; height: auto; flex: 1; background:
    radial-gradient(circle at 50% 42%, var(--hc-a-soft) 0%, transparent 62%); }
.wv-outer { fill: var(--hc-card); stroke: var(--hc-ink-2); stroke-width: 4; }
.wv-wall { fill: none; stroke: var(--hc-ink-2); stroke-width: 3; }
.wv-door-arc { fill: none; stroke: var(--hc-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.wv-win rect { fill: var(--hc-line); stroke: var(--hc-line); stroke-width: 1; }
.wv-win text { fill: var(--hc-muted); font-size: 11px; }
.wv-win.is-on rect { fill: var(--hc-a); stroke: var(--hc-a); }
.wv-win.is-on text { fill: var(--hc-a); font-weight: 700; }
.wv-flow { fill: none; stroke: var(--hc-a); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 7; marker-end: url(#wvArrow); color: var(--hc-a); opacity: .95; }
#wvArrow path { fill: var(--hc-a); }
.wv-flow--alt { stroke-width: 2; opacity: .5; stroke-dasharray: 4 6; }
.wv-flow-label { fill: var(--hc-a); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.wv-room { fill: var(--hc-ink-2); font-size: 12px; letter-spacing: .08em; }
.wv-tiny { fill: var(--hc-muted); font-size: 10px; }
.wv-compass-ring { fill: var(--hc-card); stroke: var(--hc-line); stroke-width: 1.5; }
.wv-compass-dot { fill: var(--hc-muted); }
.wv-compass-needle { fill: var(--hc-a); }
.wv-compass-n, .wv-compass-t { fill: var(--hc-ink-2); font-family: var(--hc-serif); font-size: 12px; font-weight: 700; }
.wv-stage-foot {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    padding: 11px 18px; border-top: 1px solid var(--hc-line-2); font-size: 11.5px; color: var(--hc-muted);
}
.wv-stage-foot span:last-child { margin-left: auto; color: var(--hc-ink-2); font-weight: 650; }
.wv-key { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; }
.wv-key--flow { background: var(--hc-a); }
.wv-key--alt { background: var(--hc-a); opacity: .45; }
.wv-key--win { background: var(--hc-a); height: 8px; width: 8px; border-radius: 2px; }

/* ---------- 右侧读数 ---------- */
.wv-grade {
    padding: 15px 16px; border: 1px solid var(--hc-line); border-radius: var(--hc-r-sm);
    background: var(--hc-card); margin-bottom: 13px;
}
.wv-grade-cap { display: block; font-size: 11.5px; color: var(--hc-muted); }
.wv-grade strong { display: block; font-size: 22px; line-height: 1.35; margin: 2px 0 6px; letter-spacing: -.02em; }
.wv-grade p { margin: 9px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--hc-ink-2); }
.wv-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
.wv-kpis .hc-kpi { padding: 11px 12px; }
.wv-kpis .hc-kpi .v { font-size: 21px; }
.wv-kpis .hc-kpi .d { font-size: 10.5px; }
.wv-axis { margin-top: 15px; }
.wv-axis-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--hc-muted); }
.wv-axis-head b { font-family: var(--hc-serif); font-size: 16px; color: var(--hc-a); }
.wv-axis-track { height: 9px; margin: 7px 0; border-radius: 6px; background: var(--hc-line-2); overflow: hidden; }
.wv-axis-track i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--hc-warn), var(--hc-a)); transition: width .35s ease; }
.wv-axis p { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--hc-muted); }
.wv-timer {
    margin-top: 15px; padding: 14px 16px; border-radius: var(--hc-r-sm);
    background: var(--hc-a); color: #fff; text-align: center;
}
:root[data-theme="dark"] .wv-timer { color: #081a17; }
.wv-timer span { display: block; font-size: 11.5px; letter-spacing: .08em; opacity: .9; }
.wv-timer strong { display: block; font-family: var(--hc-serif); font-size: 32px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.wv-timer small { display: block; font-size: 11px; opacity: .85; }

/* ---------- 组合卡与死角 ---------- */
.wv-combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.wv-combo {
    position: relative; padding: 18px 19px; border: 1px solid var(--hc-line-2); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow-sm);
}
.wv-combo.is-key { border-color: var(--hc-a); background: var(--hc-a-soft); }
.wv-combo .rank { font-family: var(--hc-serif); font-size: 11px; letter-spacing: .14em; color: var(--hc-a); text-transform: uppercase; }
.wv-combo h3 { margin: 6px 0 8px; font-size: 17px; }
.wv-combo p { margin: 0 0 10px; font-size: 13px; line-height: 1.75; color: var(--hc-ink-2); }
.wv-combo .wv-open { display: flex; flex-wrap: wrap; gap: 6px; }
.wv-combo .wv-open span { padding: 3px 9px; border-radius: 999px; background: var(--hc-card); border: 1px solid var(--hc-line); font-size: 11.5px; color: var(--hc-ink-2); }
.wv-combo .wv-eff { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hc-line); font-size: 12px; color: var(--hc-muted); }
.wv-combo .wv-eff b { color: var(--hc-a); font-family: var(--hc-serif); font-size: 16px; }
.wv-dead { margin-top: 14px; }

.wv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 1180px) {
    .wv-bench { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.2fr); }
    .wv-readout { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--hc-line-2); }
    .wv-readout .wv-kpis { grid-template-columns: repeat(4, 1fr); }
    .wv-grade, .wv-axis, .wv-timer { display: inline-block; vertical-align: top; width: 32%; margin-right: 1%; }
    .wv-readout .wv-kpis { display: grid; width: 100%; margin-bottom: 12px; }
}
@media (max-width: 820px) {
    .wv-bench { grid-template-columns: 1fr; }
    .wv-controls { border-right: none; border-bottom: 1px solid var(--hc-line-2); }
    .wv-readout { grid-column: auto; }
    .wv-grade, .wv-axis, .wv-timer { display: block; width: auto; margin-right: 0; }
    .wv-combos, .wv-two { grid-template-columns: 1fr; }
    .wv-hero-meta { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .wv-controls, .wv-readout { padding: 16px 14px; }
    .wv-readout .wv-kpis { grid-template-columns: 1fr 1fr; }
    .wv-stage-head, .wv-stage-foot { padding-left: 12px; padding-right: 12px; }
}
