/* ======================================================================
 * 41 · 暖气温度与室温 · 独立色板「琥珀」+ 视觉母题「温度计柱 + 档位盘」
 * 首屏 split：左文案，右侧一支竖直温度计（液柱随可达室温变化）+ 速算卡。
 * 结果区为五档扇形/条形档位盘与温差拆解条。
 * ====================================================================== */

.lw--heating {
    --a: #bd6f14;
    --a2: #efa63f;
    --a-soft: #fbf0dd;
    --a-ink: #ffffff;
}
:root[data-theme="dark"] .lw--heating {
    --a: #efa94f;
    --a2: #ffd08a;
    --a-soft: #372716;
    --a-ink: #2a1906;
}

.ht-hero-box { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(300px, .76fr); gap: 28px; align-items: start; }
.ht-hero-box h1 em { display: block; font-size: .52em; font-weight: 700; margin-top: 9px; line-height: 1.45; }
.ht-hero-copy { min-width: 0; }
.ht-hero-side { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: stretch; }

/* ---------- 温度计 ---------- */
.ht-thermo { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 0 0; }
.ht-thermo-scale { position: absolute; left: 0; top: 14px; bottom: 46px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.ht-thermo-tube { position: relative; width: 22px; height: 196px; margin-left: 26px; border-radius: 12px 12px 8px 8px; border: 2px solid var(--line); background: var(--card-3); overflow: hidden; }
.ht-thermo-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; border-radius: 8px 8px 0 0; background: linear-gradient(0deg, var(--a), var(--a2)); transition: height .55s ease; }
.ht-thermo-tube > span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--ink); z-index: 1; }
.ht-thermo-cap { font-size: 10.5px; color: var(--muted); margin-top: 10px; writing-mode: vertical-rl; letter-spacing: .08em; }
.ht-quick .lw-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 参数区 ---------- */
.ht-param { position: relative; overflow: hidden; }
.ht-param::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--a), var(--a2), transparent); }

/* ---------- 档位盘 ---------- */
.ht-panel { border-radius: 16px; }
.ht-gears { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.ht-gear { position: relative; text-align: center; padding: 14px 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.ht-gear.is-on { background: var(--a-soft); border-color: var(--a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--a) 16%, transparent); }
.ht-gear b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--ink); }
.ht-gear.is-on b { color: var(--a); }
.ht-gear span { font-size: 11px; color: var(--muted); }
.ht-gear i { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--a), var(--a2)); opacity: .25; }
.ht-gear.is-on i { opacity: 1; }

/* ---------- 温差拆解条 ---------- */
.ht-breakdown { display: grid; gap: 10px; margin-top: 18px; }
.ht-bd-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 94px; gap: 10px; align-items: center; font-size: 12.5px; }
.ht-bd-row > b { font-weight: 700; color: var(--ink-2); }
.ht-bd-row > em { font-style: normal; text-align: right; font-family: var(--mono); font-weight: 750; }
.ht-bd-bar { height: 16px; border-radius: 5px; background: var(--card-3); border: 1px solid var(--line); overflow: hidden; }
.ht-bd-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--a2), var(--a)); }

@media (max-width: 900px) {
    .ht-hero-box { grid-template-columns: 1fr; gap: 20px; }
    .ht-hero-side { grid-template-columns: 56px minmax(0, 1fr); }
    .ht-thermo-tube { height: 150px; }
    .ht-gears { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .ht-bd-row { grid-template-columns: 88px minmax(0, 1fr) 76px; }
}
@media (max-width: 520px) {
    .ht-quick .lw-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ht-gears { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
