/* ==========================================================================
   热水器安装费计算器 /tool/water-heater-install-fee-calc
   独立设计「设备安装工单」：深靛蓝 + 琥珀警示色，直角细边框卡片、仪表横带、
   收据式收费明细；数字全部等宽，层级靠分割线与色块区分
   深浅主题由导航栏主题按钮（data-theme）驱动
   ========================================================================== */

.whi-page {
    --whi-blue: #1d4e89;
    --whi-blue-d: #143a6b;
    --whi-blue-l: #e8eff8;
    --whi-blue-line: rgba(29, 78, 137, 0.24);
    --whi-amber: #d99013;
    --whi-amber-d: #b07407;
    --whi-amber-l: #fdf3e0;
    --whi-amber-line: rgba(217, 144, 19, 0.28);
    --whi-green: #17845f;
    --whi-green-l: #e5f4ee;
    --whi-red: #c0392b;
    --whi-red-l: #fceceb;
    --whi-red-line: rgba(192, 57, 43, 0.26);
    --whi-bg: #eef2f7;
    --whi-card: #ffffff;
    --whi-card-2: #f6f9fc;
    --whi-ink: #16202b;
    --whi-sub: #4a5a6b;
    --whi-mute: #8493a3;
    --whi-line: #dbe3ec;
    --whi-line-2: #eaf0f6;
    --whi-r: 10px;
    --whi-r-md: 8px;
    --whi-r-sm: 6px;
    --whi-shadow: 0 4px 14px rgba(20, 45, 75, 0.06);
    --whi-shadow-lg: 0 16px 34px rgba(15, 38, 66, 0.16);
    --whi-ring: 0 0 0 3px rgba(29, 78, 137, 0.16);
    --whi-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --whi-num: "DIN Alternate", "Bahnschrift", ui-monospace, "SFMono-Regular", Consolas, monospace;
    padding-bottom: 10px;
    color: var(--whi-ink);
    font-family: var(--whi-font);
    line-height: 1.7;
}

[data-theme="dark"] .whi-page {
    --whi-blue: #6ea6e0;
    --whi-blue-d: #92bce9;
    --whi-blue-l: rgba(110, 166, 224, 0.14);
    --whi-blue-line: rgba(110, 166, 224, 0.32);
    --whi-amber: #f0b849;
    --whi-amber-d: #f7ca6d;
    --whi-amber-l: rgba(240, 184, 73, 0.14);
    --whi-amber-line: rgba(240, 184, 73, 0.32);
    --whi-green: #4fc39a;
    --whi-green-l: rgba(79, 195, 154, 0.13);
    --whi-red: #f0857e;
    --whi-red-l: rgba(240, 133, 126, 0.13);
    --whi-red-line: rgba(240, 133, 126, 0.3);
    --whi-bg: #0d141c;
    --whi-card: #151d27;
    --whi-card-2: #1a232f;
    --whi-ink: #e8eef5;
    --whi-sub: #aab8c8;
    --whi-mute: #7d8d9e;
    --whi-line: #24303d;
    --whi-line-2: #1d2833;
    --whi-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
    --whi-shadow-lg: 0 18px 38px rgba(0, 0, 0, 0.55);
    --whi-ring: 0 0 0 3px rgba(110, 166, 224, 0.24);
}

.whi-page *,
.whi-page *::before,
.whi-page *::after { box-sizing: border-box; }
.whi-page [hidden] { display: none !important; }
.whi-page h1, .whi-page h2, .whi-page h3, .whi-page h4 { font-family: var(--whi-font); }
.whi-page a { color: var(--whi-blue); text-decoration: none; }
.whi-page a:hover { color: var(--whi-blue-d); }

/* ============================ 面包屑 ============================ */
.whi-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--whi-mute);
}
.whi-crumb a { color: var(--whi-sub); }
.whi-crumb a:hover { color: var(--whi-blue); }
.whi-crumb .sep { opacity: 0.45; }
.whi-crumb .cur { color: var(--whi-ink); font-weight: 700; }

/* ============================ 首屏 ============================ */
.whi-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: center;
    padding: 30px 32px;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    color: #e8f1fb;
    background:
        radial-gradient(120% 130% at 92% -10%, rgba(217, 144, 19, 0.28) 0%, rgba(217, 144, 19, 0) 56%),
        linear-gradient(120deg, #0f2748 0%, #1d4e89 58%, #2b639f 100%);
    box-shadow: var(--whi-shadow-lg);
}
.whi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px);
    mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
    -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}
.whi-hero > * { position: relative; z-index: 1; }

.whi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #cfe0f5;
}
.whi-hero h1 {
    margin: 14px 0 11px;
    font-size: clamp(24px, 3.2vw, 37px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
.whi-hero h1 b { font-weight: 800; color: #ffd48a; }
.whi-lead {
    margin: 0 0 15px;
    max-width: 630px;
    font-size: 15px;
    line-height: 1.92;
    color: rgba(232, 241, 251, 0.9);
}
.whi-lead b { color: #fff; font-weight: 700; }
.whi-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.whi-points li {
    padding: 5px 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12.5px;
    color: rgba(232, 241, 251, 0.94);
}
.whi-points li b { color: #ffd48a; font-weight: 700; }

.whi-quick {
    padding: 19px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--whi-ink);
    box-shadow: 0 14px 32px rgba(8, 26, 48, 0.34);
}
[data-theme="dark"] .whi-quick { background: rgba(20, 28, 38, 0.96); }
.whi-quick-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--whi-blue);
}
.whi-quick-head b { font-size: 15px; font-weight: 800; }
.whi-quick-head span { font-size: 12px; color: var(--whi-mute); }
.whi-quick-row { margin-bottom: 12px; }
.whi-quick-row > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--whi-sub);
}
.whi-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.62; color: var(--whi-mute); }
.whi-quick-cta {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--whi-blue-d), var(--whi-blue));
    box-shadow: 0 8px 18px rgba(29, 78, 137, 0.3);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.whi-quick-cta:hover { filter: brightness(1.07); }
.whi-quick-cta:active { transform: translateY(1px); }
.whi-quick-cta:focus-visible { outline: none; box-shadow: var(--whi-ring), 0 8px 18px rgba(29, 78, 137, 0.3); }
.whi-quick-live {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px dashed var(--whi-line);
    font-size: 12.5px;
    color: var(--whi-sub);
}
.whi-quick-live b {
    font-family: var(--whi-num);
    font-size: 23px;
    font-weight: 800;
    color: var(--whi-amber-d);
}

/* ============================ KPI 仪表横带 ============================ */
.whi-kpi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
    background: var(--whi-card);
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r);
    overflow: hidden;
    box-shadow: var(--whi-shadow);
}
.whi-kpi-item { padding: 14px 18px 15px; min-width: 0; border-left: 1px solid var(--whi-line-2); }
.whi-kpi-item:first-child { border-left: 0; }
.whi-kpi-item > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--whi-mute);
}
.whi-kpi-item > span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--whi-blue);
}
.whi-kpi-item.is-amber > span::before { background: var(--whi-amber); }
.whi-kpi-item.is-green > span::before { background: var(--whi-green); }
.whi-kpi-item.is-red > span::before { background: var(--whi-red); }
.whi-kpi-item > b {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
    font-family: var(--whi-num);
    font-variant-numeric: tabular-nums;
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--whi-ink);
    line-height: 1.16;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.whi-kpi-item > em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11.5px;
    color: var(--whi-mute);
}
.whi-kpi-item.is-amber > b { color: var(--whi-amber-d); }
.whi-kpi-item.is-green > b { color: var(--whi-green); }

/* ============================ 主体布局 ============================ */
.whi-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 20px;
    align-items: start;
}
.whi-col { min-width: 0; }
.whi-sticky { position: sticky; top: 16px; }

/* ============================ 卡片 ============================ */
.whi-card {
    background: var(--whi-card);
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r);
    box-shadow: var(--whi-shadow);
    overflow: hidden;
}
.whi-card + .whi-card { margin-top: 16px; }
.whi-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--whi-line);
    background: var(--whi-card-2);
}
.whi-card-head .no {
    flex: none;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--whi-blue);
    color: #fff;
    font-family: var(--whi-num);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.whi-card-head h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.whi-card-head .tip { margin-left: auto; font-size: 12.5px; color: var(--whi-mute); }
.whi-card-body { padding: 17px 18px 19px; }

/* ============================ 表单 ============================ */
.whi-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 15px;
}
.whi-field { display: block; min-width: 0; }
.whi-field.is-full { grid-column: 1 / -1; }
.whi-label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--whi-sub);
}
.whi-label small { font-size: 11.5px; font-weight: 500; color: var(--whi-mute); }
.whi-input, .whi-select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r-sm);
    background: var(--whi-card-2);
    color: var(--whi-ink);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.whi-input:focus, .whi-select:focus {
    border-color: var(--whi-blue);
    background: var(--whi-card);
    box-shadow: var(--whi-ring);
}
.whi-input.is-bad { border-color: var(--whi-red); }
.whi-select {
    appearance: none;
    cursor: pointer;
    padding-right: 32px;
    background-image: linear-gradient(45deg, transparent 50%, var(--whi-mute) 50%), linear-gradient(135deg, var(--whi-mute) 50%, transparent 50%);
    background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.whi-unit-wrap { position: relative; display: flex; align-items: center; }
.whi-unit-wrap .whi-input { padding-right: 38px; }
.whi-unit {
    position: absolute;
    right: 11px;
    font-size: 12.5px;
    color: var(--whi-mute);
    pointer-events: none;
}
.whi-textarea {
    width: 100%;
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r-sm);
    background: var(--whi-card-2);
    color: var(--whi-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.75;
    resize: vertical;
    outline: none;
}
.whi-textarea:focus { border-color: var(--whi-blue); background: var(--whi-card); box-shadow: var(--whi-ring); }
.whi-counter { margin: 6px 0 0; font-size: 12px; color: var(--whi-mute); text-align: right; }

.whi-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
    background: var(--whi-card-2);
    border: 1px solid var(--whi-line);
}
.whi-seg button {
    padding: 8px 5px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--whi-sub);
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.whi-seg button:hover { color: var(--whi-ink); }
.whi-seg button.on {
    background: var(--whi-blue);
    color: #fff;
    box-shadow: 0 2px 6px rgba(29, 78, 137, 0.26);
}
[data-theme="dark"] .whi-seg button.on { background: var(--whi-blue); color: #08182c; }
.whi-seg button:focus-visible { outline: none; box-shadow: var(--whi-ring); }
.whi-seg small { display: block; font-size: 11px; font-weight: 500; opacity: 0.78; margin-top: 1px; }

.whi-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.whi-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.whi-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--whi-line);
    transition: background 0.18s ease;
}
.whi-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s ease;
}
.whi-switch input:checked + i { background: var(--whi-blue); }
.whi-switch input:checked + i::after { transform: translateX(18px); }
.whi-switch input:focus-visible + i { box-shadow: var(--whi-ring); }

.whi-err {
    display: none;
    margin: 13px 0 0;
    padding: 10px 13px;
    border-radius: var(--whi-r-sm);
    border: 1px solid var(--whi-red-line);
    background: var(--whi-red-l);
    color: var(--whi-red);
    font-size: 13.5px;
    font-weight: 600;
}
.whi-err.is-on { display: block; }

/* ============================ 安装项目清单 ============================ */
.whi-items { display: grid; gap: 9px; }
.whi-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--whi-line);
    border-left: 3px solid var(--whi-blue);
    border-radius: var(--whi-r-md);
    background: var(--whi-card);
    transition: opacity 0.16s ease, background 0.16s ease;
}
.whi-item.is-off { opacity: 0.46; background: var(--whi-card-2); border-left-color: var(--whi-line); }
.whi-item.is-off .whi-item-name { text-decoration: line-through; text-decoration-color: var(--whi-mute); }
.whi-item.is-material { border-left-color: var(--whi-amber); }
.whi-item.is-extra { border-left-color: var(--whi-red); }
.whi-item-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--whi-blue-l);
    color: var(--whi-blue);
}
.whi-item.is-material .whi-item-ico { background: var(--whi-amber-l); color: var(--whi-amber-d); }
.whi-item.is-extra .whi-item-ico { background: var(--whi-red-l); color: var(--whi-red); }
.whi-item-ico svg { width: 18px; height: 18px; }
.whi-item-name { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 800; }
.whi-item-desc { margin: 4px 0 0; font-size: 12.5px; line-height: 1.72; color: var(--whi-mute); }
.whi-item-ctl { display: flex; align-items: center; gap: 9px; margin-top: 8px; flex-wrap: wrap; }
.whi-qty {
    width: 84px;
    padding: 6px 9px;
    border: 1px solid var(--whi-line);
    border-radius: 5px;
    background: var(--whi-card-2);
    color: var(--whi-ink);
    font-family: var(--whi-num);
    font-size: 13.5px;
    outline: none;
}
.whi-qty:focus { border-color: var(--whi-blue); box-shadow: var(--whi-ring); }
.whi-item-rate { font-size: 12px; color: var(--whi-mute); }
.whi-item-sum { text-align: right; min-width: 88px; padding-top: 1px; }
.whi-item-sum b {
    display: block;
    font-family: var(--whi-num);
    font-size: 16.5px;
    font-weight: 800;
    color: var(--whi-ink);
}
.whi-item-sum span { font-size: 11.5px; color: var(--whi-mute); }

/* ============================ 收据式收费明细 ============================ */
.whi-receipt {
    padding: 18px;
    border-radius: var(--whi-r);
    color: #e9f1fa;
    background:
        radial-gradient(110% 100% at 100% 0%, rgba(217, 144, 19, 0.22), rgba(217, 144, 19, 0) 60%),
        linear-gradient(155deg, #153a66 0%, #1d4e89 100%);
    box-shadow: var(--whi-shadow-lg);
}
.whi-receipt .lb { font-size: 12.5px; color: rgba(233, 241, 250, 0.85); }
.whi-receipt .big {
    display: block;
    margin: 5px 0 2px;
    font-family: var(--whi-num);
    font-size: clamp(28px, 3.8vw, 37px);
    font-weight: 800;
    line-height: 1.14;
    color: #fff;
    letter-spacing: -0.02em;
}
.whi-receipt .rng { font-size: 12.5px; color: rgba(233, 241, 250, 0.8); }
.whi-receipt-rows { margin-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.28); }
.whi-rrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.whi-rrow:last-child { border-bottom: 0; }
.whi-rrow > span { font-size: 13px; font-weight: 600; color: rgba(233, 241, 250, 0.94); }
.whi-rrow > span em { display: block; font-style: normal; font-weight: 500; font-size: 11px; color: rgba(233, 241, 250, 0.66); }
.whi-rrow > b { font-family: var(--whi-num); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.whi-rrow.is-total { border-top: 1px solid rgba(255, 255, 255, 0.3); border-bottom: 0; padding-top: 11px; }
.whi-rrow.is-total > span { font-size: 14px; font-weight: 800; }
.whi-rrow.is-total > b { font-size: 20px; font-weight: 800; color: #ffd48a; }

.whi-bar-wrap { margin-top: 14px; }
.whi-bar {
    display: flex;
    height: 10px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}
.whi-bar i { display: block; height: 100%; transition: width 0.3s ease; }
.whi-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 8px;
    font-size: 11.5px;
    color: rgba(233, 241, 250, 0.82);
}
.whi-bar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.whi-bar-legend i { width: 8px; height: 8px; border-radius: 2px; }

/* ============================ 增项提示 ============================ */
.whi-warn-list { margin: 0; padding: 0; list-style: none; }
.whi-warn-list li {
    position: relative;
    padding: 9px 0 9px 22px;
    border-bottom: 1px dashed var(--whi-line);
    font-size: 13px;
    line-height: 1.78;
    color: var(--whi-sub);
}
.whi-warn-list li:last-child { border-bottom: 0; }
.whi-warn-list li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 9px;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: var(--whi-amber-l);
    color: var(--whi-amber-d);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}
.whi-warn-list li b { color: var(--whi-ink); font-weight: 700; }

/* ============================ 批量 ============================ */
.whi-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.whi-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.whi-table th, .whi-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--whi-line-2); }
.whi-table th { font-size: 12px; font-weight: 700; color: var(--whi-mute); white-space: nowrap; }
.whi-table tfoot th { border-bottom: 0; border-top: 1px solid var(--whi-line); color: var(--whi-sub); }
.whi-table input, .whi-table select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--whi-line);
    border-radius: 5px;
    background: var(--whi-card-2);
    color: var(--whi-ink);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.whi-table input:focus, .whi-table select:focus { border-color: var(--whi-blue); box-shadow: var(--whi-ring); }
.whi-table input[type="text"] { min-width: 104px; }
.whi-table input[type="number"] { width: 72px; font-family: var(--whi-num); }
.whi-table select { min-width: 92px; }
.whi-table .num { text-align: right; font-family: var(--whi-num); font-weight: 700; white-space: nowrap; }
.whi-table tr.is-bad input, .whi-table tr.is-bad select { border-color: var(--whi-red); }
.whi-table .whi-del {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    color: var(--whi-mute);
    background: var(--whi-card-2);
    border: 1px solid var(--whi-line);
    font-size: 12.5px;
    line-height: 1;
}
.whi-table .whi-del:hover { color: var(--whi-red); border-color: var(--whi-red); }
.whi-row-err { display: none; font-size: 11.5px; color: var(--whi-red); }
.whi-table tr.is-bad .whi-row-err { display: block; }

/* ============================ 按钮 ============================ */
.whi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--whi-line-2);
}
.whi-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--whi-line);
    background: var(--whi-card-2);
    color: var(--whi-sub);
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.whi-btn:hover { border-color: var(--whi-blue-line); color: var(--whi-blue); background: var(--whi-blue-l); }
.whi-btn:focus-visible { outline: none; box-shadow: var(--whi-ring); }
.whi-btn.is-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--whi-blue-d), var(--whi-blue));
}
.whi-btn.is-primary:hover { color: #fff; filter: brightness(1.07); }
.whi-btn.is-amber { color: var(--whi-amber-d); border-color: var(--whi-amber-line); background: var(--whi-amber-l); }
.whi-btn.is-amber:hover { color: var(--whi-amber-d); background: var(--whi-amber-l); border-color: var(--whi-amber); }

/* ============================ 示例场景 ============================ */
.whi-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.whi-scene {
    padding: 12px 13px;
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r-md);
    background: var(--whi-card-2);
    text-align: left;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.whi-scene:hover { border-color: var(--whi-blue-line); transform: translateY(-2px); box-shadow: var(--whi-shadow); }
.whi-scene:focus-visible { outline: none; box-shadow: var(--whi-ring); }
.whi-scene b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.whi-scene span { display: block; font-size: 12px; line-height: 1.68; color: var(--whi-mute); }

/* ============================ 文本 / FAQ ============================ */
.whi-prose h3 { margin: 0 0 11px; font-size: 15.5px; font-weight: 800; }
.whi-prose ol, .whi-prose ul { margin: 0; padding-left: 20px; }
.whi-prose li { margin-bottom: 8px; font-size: 13.5px; line-height: 1.9; color: var(--whi-sub); }
.whi-prose li:last-child { margin-bottom: 0; }
.whi-prose b { color: var(--whi-ink); font-weight: 700; }
.whi-faq details {
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r-md);
    padding: 0 14px;
    margin-bottom: 8px;
    background: var(--whi-card-2);
}
.whi-faq summary {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--whi-ink);
}
.whi-faq summary::-webkit-details-marker { display: none; }
.whi-faq summary::after { content: "+"; float: right; color: var(--whi-blue); font-weight: 700; }
.whi-faq details[open] summary::after { content: "\2212"; }
.whi-faq summary:focus-visible { outline: none; color: var(--whi-blue); }
.whi-faq .a { padding: 0 0 13px; font-size: 13px; line-height: 1.92; color: var(--whi-sub); }
.whi-faq .a b { color: var(--whi-ink); }

.whi-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.whi-rel a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--whi-line);
    border-radius: var(--whi-r-md);
    background: var(--whi-card-2);
    color: var(--whi-sub);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.whi-rel a:hover { border-color: var(--whi-blue-line); color: var(--whi-blue); }
.whi-rel .ico { font-size: 16px; }

.whi-foot {
    margin: 20px 0 8px;
    padding: 14px 16px;
    border-radius: var(--whi-r-md);
    border: 1px dashed var(--whi-amber-line);
    background: var(--whi-amber-l);
    font-size: 12.5px;
    line-height: 1.88;
    color: var(--whi-amber-d);
}
.whi-foot b { color: var(--whi-amber-d); }

/* ============================ Toast ============================ */
.whi-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 14px);
    z-index: 99999;
    max-width: 88vw;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(22, 32, 43, 0.95);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.whi-toast.show { opacity: 1; transform: translate(-50%, 0); }
.whi-toast.ok { background: rgba(20, 108, 78, 0.96); }
.whi-toast.err { background: rgba(150, 52, 38, 0.96); }

/* ============================ 打印区 ============================ */
.whi-printzone { display: none; }

@media print {
    @page { size: A4 portrait; margin: 12mm; }
    .nav-header, .footer, .whi-toast { display: none !important; }
    body > *:not(.whi-page) { display: none !important; }
    .whi-page > .container > *:not(#whiPrintZone) { display: none !important; }
    body { background: #fff !important; }
    .whi-page { padding: 0; }
    .whi-printzone {
        display: block !important;
        padding: 0;
        color: #000;
        font-family: var(--whi-font);
    }
    .whi-pz-head { border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
    .whi-pz-head h2 { margin: 0 0 4px; font-size: 19px; }
    .whi-pz-head .meta { font-size: 12px; color: #444; }
    .whi-pz-title { margin: 14px 0 6px; font-size: 14px; font-weight: 800; }
    .whi-pz-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .whi-pz-table th, .whi-pz-table td { border: 1px solid #999; padding: 5px 7px; text-align: left; }
    .whi-pz-table th { background: #f0f0f0; }
    .whi-pz-table .num { text-align: right; font-family: var(--whi-num); }
    .whi-pz-list { margin: 6px 0 0; padding-left: 20px; font-size: 12px; line-height: 1.85; }
    .whi-pz-sign { display: flex; gap: 26px; margin-top: 22px; font-size: 12px; }
    .whi-pz-note { margin-top: 16px; font-size: 11px; color: #444; line-height: 1.8; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
    .whi-hero { grid-template-columns: minmax(0, 1fr); }
    .whi-main { grid-template-columns: minmax(0, 1fr); }
    .whi-sticky { position: static; }
}
@media (max-width: 760px) {
    .whi-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .whi-kpi-item:nth-child(3) { border-left: 0; }
    .whi-kpi-item:nth-child(n+3) { border-top: 1px solid var(--whi-line-2); }
    .whi-scenes { grid-template-columns: minmax(0, 1fr); }
    .whi-rel { grid-template-columns: minmax(0, 1fr); }
    .whi-fields { grid-template-columns: minmax(0, 1fr); }
    .whi-field.is-full { grid-column: span 1; }
    .whi-hero { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .whi-page *, .whi-page *::before, .whi-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
