/* ===== 通风柜风量 · 柜体剖面 ===== */
.fh {
    background: #f8fcfb;
    border: 1px solid #d5e8e3;
    border-radius: 12px;
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(12, 90, 80, .07);
}

.fh-stage {
    display: grid;
    grid-template-columns: 236px 1fr;
    gap: 24px;
    align-items: stretch;
}

/* ---- 柜体 ---- */
.fh-cab {
    position: relative; height: 300px;
    margin: 0 auto; width: 200px;
}
.fh-duct {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 46px; height: 42px;
    border: 2px solid #9fc9c1; border-bottom: none;
    background: repeating-linear-gradient(45deg, #eef8f6 0 5px, #f8fcfb 5px 10px);
    border-radius: 3px 3px 0 0;
}
.fh-duct::after {
    content: '排风';
    position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
    font: 700 9px/1 ui-monospace, monospace; color: #0f766e;
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 3px;
    padding: 2px 5px; white-space: nowrap;
}
.fh-body {
    position: absolute; left: 0; right: 0; top: 42px; bottom: 0;
    border: 2px solid #9fc9c1; border-radius: 4px 4px 8px 8px;
    background: linear-gradient(180deg, #f4fbf9, #eaf6f3);
    overflow: hidden;
}
.fh-work {
    position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
    background: linear-gradient(180deg, #d7ebe6, #c3ded8);
    border-top: 1px solid #a9cec6;
}
.fh-work::after {
    content: '';
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 8px; border-radius: 4px;
    background: #b3d4cd;
}
.fh-sash {
    position: absolute; left: 3px; right: 3px; top: 3px;
    height: 46%;
    background: linear-gradient(180deg, rgba(191, 219, 254, .35), rgba(191, 219, 254, .18));
    border: 2px solid #93c5fd; border-radius: 2px;
    box-shadow: inset 0 0 12px rgba(147, 197, 253, .35);
    transition: height .35s;
}
.fh-sash::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
    background: #60a5fa;
}
.fh-open {
    position: absolute; left: 3px; right: 3px; top: 3px; bottom: 3px;
    pointer-events: none;
}
.fh-open::before {
    content: '';
    position: absolute; left: -100px; right: -100px;
    border-top: 1px dashed #f97316;
    top: var(--open, 46%);
}
.fh-arrow {
    position: absolute; bottom: 30px; width: 2px; height: 22px;
    background: linear-gradient(180deg, rgba(20, 184, 166, .1), #14b8a6);
    border-radius: 2px;
    animation: fh-rise 2.2s linear infinite;
}
.fh-arrow::before {
    content: '';
    position: absolute; left: 50%; top: -5px; transform: translateX(-50%);
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-bottom: 6px solid #14b8a6;
}
@keyframes fh-rise {
    0% { transform: translateY(0); opacity: 0; }
    18% { opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translateY(-140px); opacity: 0; }
}
.fh-vel {
    position: absolute; left: 4px; bottom: 32px;
    font: 700 9px/1 ui-monospace, monospace; color: #c2410c;
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 3px;
    padding: 3px 5px; white-space: nowrap; z-index: 3;
}
.fh-vel::after {
    content: '→';
    position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
    color: #fb923c;
}

/* ---- 读数 ---- */
.fh-read {
    background: #fff; border: 1px solid #d5e8e3; border-radius: 10px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.fh-big small { font-size: 10px; color: #7d9a94; letter-spacing: .05em; display: block; }
.fh-big b {
    font: 700 36px/1 ui-monospace, Consolas, monospace; color: #0f766e;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.fh-big b em { font-style: normal; font-size: 11px; color: #7d9a94; font-weight: 400; }
.fh-big i {
    font-style: normal; font-size: 10.5px; font-weight: 700;
    padding: 4px 9px; border-radius: 4px; margin-left: 8px;
    background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
    vertical-align: middle;
}
.fh-big i.bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.fh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fh-card {
    background: #f6fbfa; border: 1px solid #e2f0ec; border-radius: 7px;
    padding: 8px 10px;
}
.fh-card span { display: block; font-size: 9.5px; color: #8aa7a1; }
.fh-card b {
    font: 700 14px/1.35 ui-monospace, monospace; color: #115e59;
    font-variant-numeric: tabular-nums;
}
.fh-card b em { font-style: normal; font-size: 9px; color: #8aa7a1; font-weight: 400; }

.fh-ach {
    position: relative; height: 26px; border-radius: 5px;
    background: #eef7f4; border: 1px solid #dcece7; overflow: hidden;
}
.fh-ach-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #5eead4, #0d9488);
    transition: width .4s;
}
.fh-ach-txt {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: space-between; padding: 0 8px;
    font: 700 9.5px/1 ui-monospace, monospace; color: #0f766e;
}

/* ---- 参数 ---- */
.fh-params { margin-top: 18px; border-top: 1px solid #d5e8e3; padding-top: 15px; }
.fh-params h2 { font-size: 12px; letter-spacing: .07em; color: #3f645e; margin: 0 0 11px; }
.fh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.fh-grid label { display: flex; flex-direction: column; gap: 4px; }
.fh-grid span { font-size: 10.5px; color: #7d9a94; }
.fh-grid input, .fh-grid select {
    font: inherit; font-size: 12px; padding: 7px 9px; border: 1px solid #d5e8e3;
    border-radius: 5px; background: #fff; color: #115e59; font-variant-numeric: tabular-nums;
    min-width: 0;
}
.fh-grid input:focus, .fh-grid select:focus { outline: 2px solid rgba(15, 118, 110, .16); border-color: #0f766e; }
.fh-grid input.is-bad { border-color: #dc2626; background: #fff1f2; }

.fh-verdict {
    margin: 15px 0 0; padding: 10px 13px; border-radius: 8px;
    font-size: 11.5px; line-height: 1.7; color: #115e59; background: #effcf9;
    border-left: 3px solid #14b8a6;
}
.fh-verdict.bad { color: #9f1239; background: #fff5f7; border-left-color: #e11d48; }

@media (max-width: 860px) {
    .fh-stage { grid-template-columns: 1fr; justify-items: center; }
    .fh-read { width: 100%; }
    .fh-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .fh { padding: 16px 13px; }
    .fh-cards { grid-template-columns: 1fr 1fr; }
    .fh-grid { grid-template-columns: 1fr; }
    .fh-big b { font-size: 29px; }
}

/* ---- 深色 ---- */
[data-theme="dark"] .fh { background: #0c1413; border-color: #21302e; box-shadow: none; }
[data-theme="dark"] .fh-read { background: #121b1a; border-color: #21302e; }
[data-theme="dark"] .fh-duct { border-color: #345049; background: repeating-linear-gradient(45deg, #16211f 0 5px, #0e1716 5px 10px); }
[data-theme="dark"] .fh-body { border-color: #345049; background: linear-gradient(180deg, #121b1a, #0e1716); }
[data-theme="dark"] .fh-work { background: linear-gradient(180deg, #1c2b28, #16211f); border-color: #2b4340; }
[data-theme="dark"] .fh-sash { border-color: #1d4ed8; background: rgba(37, 99, 235, .18); }
[data-theme="dark"] .fh-big b { color: #5eead4; }
[data-theme="dark"] .fh-big small, [data-theme="dark"] .fh-card span, [data-theme="dark"] .fh-grid span { color: #7d9a94; }
[data-theme="dark"] .fh-card { background: #16211f; border-color: #21302e; }
[data-theme="dark"] .fh-card b { color: #b8dcd5; }
[data-theme="dark"] .fh-ach { background: #16211f; border-color: #21302e; }
[data-theme="dark"] .fh-ach-txt { color: #99f6e4; }
[data-theme="dark"] .fh-params { border-color: #21302e; }
[data-theme="dark"] .fh-params h2 { color: #b8d8d2; }
[data-theme="dark"] .fh-grid input, [data-theme="dark"] .fh-grid select { background: #121b1a; border-color: #21302e; color: #d5f4ef; }
[data-theme="dark"] .fh-verdict { background: rgba(20, 184, 166, .1); color: #99f6e4; }
[data-theme="dark"] .fh-verdict.bad { background: rgba(190, 18, 60, .12); color: #fda4af; }
