/* ======================================================================
 * 48 · 燃气报警器与一氧化碳安全自查 —— 「燃气安全巡检单」
 * 视觉：警示黄 + 深炭 + 警示红；巡检表打勾风格；平面位置图；
 *       与其��� 29 页不共用配色与构图。
 * ====================================================================== */

.hx.gas {
    --bg: #f2f2ee;
    --bg2: #e7e7df;
    --card: #ffffff;
    --card2: #f7f7f2;
    --card3: #ecece3;
    --ink: #1d1d1b;
    --ink2: #3d3d38;
    --muted: #77776e;
    --line: #d9d9cf;
    --line2: #e9e9df;
    --accent: #f2b705;
    --accent-ink: #23230f;
    --accent-soft: #fdf0cc;
    --accent2: #c62f1e;
    --accent2-soft: #fbe2dd;
    --ok: #1c6b3c;
    --ok-bg: #e0f0e5;
    --warn: #92600a;
    --warn-bg: #f9efd6;
    --bad: #b32a18;
    --bad-bg: #fbe4df;
    --info: #1d6076;
    --info-bg: #e1eef3;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(29, 29, 27, .08), 0 16px 38px rgba(29, 29, 27, .07);

    background:
        repeating-linear-gradient(45deg, rgba(242, 183, 5, .05) 0 10px, transparent 10px 22px),
        var(--bg);
    border-top: 6px solid var(--accent);
}
:root[data-theme="dark"] .hx.gas {
    --bg: #16160f;
    --bg2: #1d1d15;
    --card: #21211a;
    --card2: #282821;
    --card3: #313128;
    --ink: #ecece2;
    --ink2: #c6c6b9;
    --muted: #8b8b80;
    --line: #3b3b30;
    --line2: #2e2e25;
    --accent: #f7c93f;
    --accent-ink: #201f0c;
    --accent-soft: #38300f;
    --accent2: #ef6f5c;
    --accent2-soft: #3a2019;
    --ok: #5cc48c;
    --ok-bg: #1a3327;
    --warn: #dcb45f;
    --warn-bg: #342a16;
    --bad: #e5847a;
    --bad-bg: #38211e;
    --info: #62b7d0;
    --info-bg: #182f38;
    --shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 16px 38px rgba(0, 0, 0, .34);
}

.gas-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.54fr) minmax(272px, .86fr);
    gap: 0;
    margin: 22px 0 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.gas-main { padding: 26px 26px 24px; min-width: 0; }
.gas-kicker { font: 700 11px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent2); margin: 0 0 8px; }
.gas-hero h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 10px; }
.gas-lede { font-size: 14.8px; line-height: 1.9; color: var(--ink2); margin: 0 0 18px; max-width: 58em; }
.gas-lede b { color: var(--ink); border-bottom: 2px solid var(--accent-soft); }

.gas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gas-check {
    display: flex; gap: 8px; align-items: flex-start; cursor: pointer;
    font-size: 13.4px; color: var(--ink2); line-height: 1.6;
    background: var(--card2); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 7px 10px;
}
.gas-check:hover { border-color: var(--accent); }
.gas-check input { accent-color: var(--accent2); width: 15px; height: 15px; flex: 0 0 auto; margin-top: 3px; }
.gas-check.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.gas-check b { color: var(--ink); }

.gas-side { background: var(--card2); border-left: 1px solid var(--line); padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.gas-side-hd { font: 700 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gas-plan { width: 100%; height: auto; }
.gas-svg-t { font: 700 8.5px var(--font-mono); fill: var(--muted); }
.gas-mark-gas { fill: var(--accent); stroke: #23230f; stroke-width: 1.2; }
.gas-mark-co { fill: var(--accent2); stroke: #fff; stroke-width: 1.2; }
.gas-legend { display: grid; gap: 5px; }
.gas-legend span { display: flex; align-items: center; gap: 8px; font-size: 11.8px; color: var(--ink2); }
.gas-legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.gas-legend i.is-gas { background: var(--accent); }
.gas-legend i.is-co { background: var(--accent2); }
.gas-side-note { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.gas-side-note b { display: block; font-size: 13px; margin-bottom: 4px; color: var(--accent2); }
.gas-side-note p { font-size: 12.2px; line-height: 1.78; color: var(--ink2); margin: 0; }

/* 结果 */
.gas-result { display: none; }
.gas-result.is-on { display: block; }
.gas-verdict { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 16px; background: var(--accent-soft); border-left: 5px solid var(--accent); }
.gas-verdict.is-bad { background: var(--bad-bg); border-left-color: var(--bad); }
.gas-verdict.is-warn { background: var(--warn-bg); border-left-color: var(--warn); }
.gas-verdict b { display: block; font-size: 18px; margin-bottom: 4px; }
.gas-verdict p { font-size: 13.7px; line-height: 1.85; margin: 0; color: var(--ink2); }

.gas-alarms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.gas-alarm { background: var(--card2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; }
.gas-alarm.is-co { border-top-color: var(--accent2); }
.gas-alarm h4 { font-size: 15.5px; margin-bottom: 4px; }
.gas-alarm .gas-alarm-tag { font: 700 11px var(--font-mono); padding: 2px 8px; border-radius: 3px; display: inline-block; margin-bottom: 7px; }
.gas-alarm.is-gas .gas-alarm-tag { background: var(--accent); color: var(--accent-ink); }
.gas-alarm.is-co .gas-alarm-tag { background: var(--accent2); color: #fff; }
.gas-alarm p { font-size: 13.2px; line-height: 1.78; color: var(--ink2); margin: 5px 0 0; }
.gas-alarm .gas-alarm-need { margin-top: 9px; font-size: 13px; font-weight: 700; }
.gas-alarm .gas-alarm-need.is-no { color: var(--bad); }
.gas-alarm .gas-alarm-need.is-yes { color: var(--ok); }

.gas-rows { display: grid; gap: 0; margin-bottom: 16px; }
.gas-row { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.gas-row:last-child { border-bottom: 0; }
.gas-row-k { font-size: 13.2px; font-weight: 700; color: var(--accent2); }
.gas-row-v { font-size: 13.6px; line-height: 1.82; color: var(--ink2); }
.gas-row-v b { color: var(--ink); }
.gas-row-v ul { margin: 5px 0 0; padding-left: 19px; }
.gas-row-v li { margin-bottom: 4px; }

.gas-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gas-do-hd { font-size: 15px; color: var(--accent2); margin-bottom: 10px; }
.gas-steps { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.gas-steps li { font-size: 13.6px; line-height: 1.8; color: var(--ink2); }
.gas-steps li b { color: var(--ink); }

.gas-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 11px; }
.gas-team-card { background: var(--card2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 13px 15px; }
.gas-team-card h4 { font-size: 14.5px; margin-bottom: 5px; }
.gas-team-card p { font-size: 13px; line-height: 1.8; color: var(--ink2); margin: 0; }

.hx.gas .hx-table th { background: var(--accent-soft); color: var(--ink2); }

@media (max-width: 980px) {
    .gas-hero { grid-template-columns: minmax(0, 1fr); }
    .gas-side { border-left: 0; border-top: 1px solid var(--line); }
    .gas-alarms, .gas-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .gas-main { padding: 20px 15px; }
    .gas-grid { grid-template-columns: minmax(0, 1fr); }
    .gas-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
