/* ===== 暖气费计算器 /tool/heating-fee-calc ===== */

.detail-wrap {
    --hf-warm: #ea580c;
    --hf-warm2: #dc2626;
    --hf-cool: #0ea5e9;
    --hf-grad: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    --hf-grad-cool: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

/* 头部 */
.hf-head { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; }
.hf-head-icon {
    width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center;
    font-size: 38px; background: var(--hf-grad); color: #fff;
    box-shadow: 0 14px 30px rgba(234, 88, 12, .32);
}
.hf-head-main h1 { margin: 0 0 8px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; color: var(--c-text); }
.hf-head-sub { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--c-sub); max-width: 64ch; }
.hf-head-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* 主体 */
.hf-board { margin-bottom: 40px; }
.hf-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 18px; padding: 22px; }
.hf-card-title { font-size: 16px; font-weight: 800; color: var(--c-text); margin-bottom: 16px; }

.hf-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hf-field { display: flex; flex-direction: column; gap: 6px; }
.hf-field-full { grid-column: 1 / -1; }
.hf-field label { font-size: 13px; font-weight: 700; color: var(--c-text); }
.hf-field input, .hf-field select {
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--c-border);
    background: var(--c-bg); color: var(--c-text); font-size: 14px; font-family: inherit;
}
.hf-field input:focus, .hf-field select:focus { outline: 2px solid var(--hf-warm); outline-offset: 1px; border-color: var(--hf-warm); }
.hf-field small { font-size: 11.5px; color: var(--c-muted); }

/* 计费方式单选 */
.hf-radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hf-radio {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--c-border); background: var(--c-bg); cursor: pointer; font-size: 14px;
    color: var(--c-text); font-weight: 600; transition: .15s;
}
.hf-radio input { accent-color: var(--hf-warm); width: 16px; height: 16px; margin: 0; }
.hf-radio:has(input:checked) { border-color: var(--hf-warm); background: rgba(234, 88, 12, .1); }

/* 计量参数盒 */
.hf-meter-box {
    margin-top: 16px; border: 1px dashed var(--c-border); border-radius: 14px;
    padding: 16px; background: var(--c-bg);
}
.hf-meter-title { font-size: 14px; font-weight: 800; color: var(--c-text); margin-bottom: 14px; }

.hf-calc-btn {
    margin-top: 18px; width: 100%; padding: 13px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--hf-grad); color: #fff; font-size: 15px; font-weight: 800;
    box-shadow: 0 10px 24px rgba(234, 88, 12, .28); transition: .15s;
}
.hf-calc-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }

/* 结果 */
.hf-result { margin-top: 18px; }
.hf-result-hero {
    background: var(--hf-grad); color: #fff; border-radius: 16px; padding: 24px;
    text-align: center; box-shadow: 0 14px 30px rgba(234, 88, 12, .25);
}
.hf-hero-label { font-size: 13px; opacity: .92; }
.hf-hero-num { font-size: 40px; font-weight: 900; margin: 6px 0 4px; letter-spacing: -.02em; }
.hf-hero-sub { font-size: 13.5px; opacity: .95; }

.hf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.hf-metric { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 12px; padding: 14px; text-align: center; }
.hf-metric .k { font-size: 12px; color: var(--c-muted); }
.hf-metric .v { font-size: 18px; font-weight: 800; color: var(--c-text); margin-top: 4px; }

/* 费用明细 */
.hf-breakdown { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hf-bd-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    font-size: 13.5px; color: var(--c-sub);
    background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 14px;
}
.hf-bd-row b { color: var(--c-text); font-weight: 800; }

.hf-verdict { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.7; }
.hf-verdict b { font-weight: 800; }
.hf-verdict.good { background: rgba(16, 185, 129, .12); color: var(--c-text); border: 1px solid rgba(16, 185, 129, .35); }
.hf-verdict.ok { background: rgba(245, 158, 11, .12); color: var(--c-text); border: 1px solid rgba(245, 158, 11, .4); }
.hf-verdict.info { background: rgba(14, 165, 233, .12); color: var(--c-text); border: 1px solid rgba(14, 165, 233, .35); }

.hf-tip {
    margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--c-sub);
    background: var(--c-bg); border: 1px solid var(--c-border); border-left: 4px solid var(--hf-warm);
    border-radius: 12px; padding: 14px 16px;
}
.hf-tip b { color: var(--c-text); }

/* tabs 内容 */
.hf-block-head { font-size: 19px; font-weight: 800; color: var(--c-text); margin: 0 0 16px; }
.hf-feature-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-bottom: 26px; }
.hf-feature-chip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--c-sub); }
.hf-feature-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hf-warm); flex-shrink: 0; }
.hf-prose { font-size: 15px; line-height: 1.9; color: var(--c-sub); }
.hf-prose b { color: var(--c-text); }

.hf-steps { display: flex; flex-direction: column; gap: 12px; }
.hf-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--c-card); border: 1px solid var(--c-border); }
.hf-step-no { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--hf-grad); font-size: 14px; }
.hf-step-body { font-size: 14px; color: var(--c-sub); line-height: 1.7; }
.hf-step-body b { color: var(--c-text); }

.hf-faq { display: flex; flex-direction: column; gap: 10px; }
.hf-faq details { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-card); padding: 0 16px; }
.hf-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14.5px; color: var(--c-text); list-style: none; }
.hf-faq summary::-webkit-details-marker { display: none; }
.hf-faq summary::after { content: "+"; float: right; color: var(--hf-warm); font-size: 20px; line-height: 1; }
.hf-faq details[open] summary::after { content: "−"; }
.hf-faq .hf-faq-a { padding: 0 0 16px; font-size: 13.5px; line-height: 1.8; color: var(--c-sub); }
.hf-faq .hf-faq-a b { color: var(--c-text); }

/* 相关 */
.hf-related { margin-top: 42px; }
.hf-related h2 { font-size: 22px; font-weight: 800; color: var(--c-text); margin: 0 0 16px; }
.hf-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hf-rel-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--c-card); border: 1px solid var(--c-border); text-decoration: none; transition: .18s; }
.hf-rel-item:hover { transform: translateY(-2px); border-color: var(--hf-warm); box-shadow: 0 10px 24px rgba(234, 88, 12, .12); }
.hf-rel-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--c-bg); flex-shrink: 0; }
.hf-rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hf-rel-body b { font-size: 14.5px; color: var(--c-text); }
.hf-rel-body small { font-size: 12px; color: var(--c-muted); }
.hf-rel-go { margin-left: auto; color: var(--hf-warm); font-size: 18px; font-weight: 800; }

@media (max-width: 640px) {
    .hf-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .hf-head-main h1 { font-size: 24px; }
    .hf-form { grid-template-columns: 1fr; }
    .hf-metrics { grid-template-columns: 1fr 1fr; }
    .hf-feature-chips { grid-template-columns: 1fr; }
}
