/* ==========================================================================
   洗衣机安装费计算器 /tool/washer-install-fee-calc
   独立设计「洗衣房水汽单据」：湖青主色 + 珊瑚警示色，大圆角卡片、波浪纹理
   首屏、票据式收费明细（打孔撕边）；数字全部等宽，层级靠分割线与色块区分
   深浅主题由导航栏主题按钮（data-theme）驱动
   ========================================================================== */

.wsh-page {
    --wsh-blue: #0f6f7c;
    --wsh-blue-d: #0a4f58;
    --wsh-blue-l: #e1f1f0;
    --wsh-blue-line: rgba(15, 111, 124, 0.24);
    --wsh-aqua: #1a8f74;
    --wsh-aqua-d: #12684f;
    --wsh-aqua-l: #e3f4ee;
    --wsh-aqua-line: rgba(26, 143, 116, 0.28);
    --wsh-coral: #e2603f;
    --wsh-coral-d: #c14a2c;
    --wsh-coral-l: #fdeee8;
    --wsh-coral-line: rgba(226, 96, 63, 0.28);
    --wsh-green: #2e7d4f;
    --wsh-green-l: #e6f4ec;
    --wsh-bg: #f0f6f5;
    --wsh-card: #ffffff;
    --wsh-card-2: #f6fbfa;
    --wsh-ink: #14252a;
    --wsh-sub: #47605f;
    --wsh-mute: #8ba3a1;
    --wsh-line: #d8e6e4;
    --wsh-line-2: #e8f2f0;
    --wsh-r: 16px;
    --wsh-r-md: 12px;
    --wsh-r-sm: 9px;
    --wsh-shadow: 0 4px 16px rgba(16, 74, 80, 0.07);
    --wsh-shadow-lg: 0 18px 38px rgba(12, 66, 72, 0.18);
    --wsh-ring: 0 0 0 3px rgba(15, 111, 124, 0.16);
    --wsh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --wsh-num: "DIN Alternate", "Bahnschrift", ui-monospace, "SFMono-Regular", Consolas, monospace;
    padding-bottom: 10px;
    color: var(--wsh-ink);
    font-family: var(--wsh-font);
    line-height: 1.7;
}

[data-theme="dark"] .wsh-page {
    --wsh-blue: #5cc0cc;
    --wsh-blue-d: #86d6df;
    --wsh-blue-l: rgba(92, 192, 204, 0.14);
    --wsh-blue-line: rgba(92, 192, 204, 0.32);
    --wsh-aqua: #52c9a7;
    --wsh-aqua-d: #7bdabd;
    --wsh-aqua-l: rgba(82, 201, 167, 0.13);
    --wsh-aqua-line: rgba(82, 201, 167, 0.3);
    --wsh-coral: #f0906f;
    --wsh-coral-d: #f6ac93;
    --wsh-coral-l: rgba(240, 144, 111, 0.13);
    --wsh-coral-line: rgba(240, 144, 111, 0.3);
    --wsh-green: #5cc08c;
    --wsh-green-l: rgba(92, 192, 140, 0.13);
    --wsh-bg: #0b1417;
    --wsh-card: #12201f;
    --wsh-card-2: #172827;
    --wsh-ink: #e6f1ef;
    --wsh-sub: #a7bfbc;
    --wsh-mute: #718c89;
    --wsh-line: #223634;
    --wsh-line-2: #1b2c2a;
    --wsh-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
    --wsh-shadow-lg: 0 18px 38px rgba(0, 0, 0, 0.55);
    --wsh-ring: 0 0 0 3px rgba(92, 192, 204, 0.24);
}

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

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

/* ============================ 首屏 ============================ */
.wsh-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: center;
    padding: 32px 32px 40px;
    margin-bottom: 20px;
    border-radius: 22px;
    overflow: hidden;
    color: #eafaf7;
    background:
        radial-gradient(90% 120% at 8% 0%, rgba(26, 143, 116, 0.5) 0%, rgba(26, 143, 116, 0) 52%),
        linear-gradient(118deg, #0b3f47 0%, #0f6f7c 55%, #158593 100%);
    box-shadow: var(--wsh-shadow-lg);
}
.wsh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(11px 11px at 14% 24%, rgba(255, 255, 255, 0.1) 46%, transparent 50%),
        radial-gradient(16px 16px at 30% 68%, rgba(255, 255, 255, 0.08) 46%, transparent 50%),
        radial-gradient(9px 9px at 46% 18%, rgba(255, 255, 255, 0.1) 46%, transparent 50%),
        radial-gradient(13px 13px at 64% 74%, rgba(255, 255, 255, 0.07) 46%, transparent 50%),
        radial-gradient(10px 10px at 82% 30%, rgba(255, 255, 255, 0.09) 46%, transparent 50%);
    pointer-events: none;
}
.wsh-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 34px;
    pointer-events: none;
}
.wsh-hero > * { position: relative; z-index: 1; }

.wsh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.1);
}
.wsh-hero h1 {
    margin: 14px 0 0;
    font-size: 27px;
    line-height: 1.36;
    letter-spacing: 0.01em;
}
.wsh-hero h1 b { color: #ffd9b8; }
.wsh-lead {
    margin: 13px 0 0;
    max-width: 560px;
    font-size: 13.5px;
    line-height: 1.95;
    color: rgba(234, 250, 247, 0.88);
}
.wsh-lead b { color: #fff; font-weight: 700; }
.wsh-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.wsh-points li {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
}
.wsh-points b { font-family: var(--wsh-num); font-size: 13px; }

/* ---------- 首屏速算面板 ---------- */
.wsh-quick {
    padding: 18px 18px 14px;
    border-radius: var(--wsh-r);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px rgba(6, 48, 54, 0.3);
    color: var(--wsh-ink);
}
[data-theme="dark"] .wsh-quick { background: rgba(15, 26, 26, 0.97); }
.wsh-quick-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.wsh-quick-head b { font-size: 15px; }
.wsh-quick-head span { font-size: 11.5px; color: var(--wsh-mute); }
.wsh-quick-row { margin-bottom: 11px; }
.wsh-quick-row > label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wsh-sub);
}

/* ---------- 分段选择 ---------- */
.wsh-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--wsh-blue-l);
    border: 1px solid var(--wsh-blue-line);
}
.wsh-seg button {
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wsh-sub);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.wsh-seg button:hover { color: var(--wsh-blue-d); }
.wsh-seg button.on {
    background: var(--wsh-blue);
    color: #fff;
    box-shadow: 0 2px 6px rgba(15, 111, 124, 0.35);
}
[data-theme="dark"] .wsh-seg button.on { background: var(--wsh-blue); color: #06282c; }
.wsh-seg button:focus-visible { outline: none; box-shadow: var(--wsh-ring); }

/* ---------- 输入 ---------- */
.wsh-unit-wrap { position: relative; display: inline-flex; align-items: center; }
.wsh-input {
    width: 108px;
    padding: 8px 40px 8px 13px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-r-sm);
    background: var(--wsh-card);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--wsh-num);
    color: var(--wsh-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wsh-input:focus { outline: none; border-color: var(--wsh-blue); box-shadow: var(--wsh-ring); }
.wsh-input.is-bad { border-color: var(--wsh-coral); box-shadow: 0 0 0 3px rgba(226, 96, 63, 0.16); }
.wsh-unit {
    position: absolute;
    right: 11px;
    font-size: 12px;
    color: var(--wsh-mute);
    pointer-events: none;
}
.wsh-textarea {
    width: 100%;
    min-height: 64px;
    padding: 9px 12px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-r-sm);
    background: var(--wsh-card);
    font: inherit;
    font-size: 13px;
    color: var(--wsh-ink);
    resize: vertical;
}
.wsh-textarea:focus { outline: none; border-color: var(--wsh-blue); box-shadow: var(--wsh-ring); }
.wsh-counter { margin: 4px 2px 0; font-size: 11px; color: var(--wsh-mute); text-align: right; }

/* ---------- 开关 ---------- */
.wsh-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.wsh-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wsh-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--wsh-line);
    transition: background 0.18s;
    pointer-events: none;
}
.wsh-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;
}
.wsh-switch input:checked + i { background: var(--wsh-aqua); }
.wsh-switch input:checked + i::after { transform: translateX(18px); }
.wsh-switch input:focus-visible + i { box-shadow: var(--wsh-ring); }

/* ---------- 首屏 CTA 与实时合计 ---------- */
.wsh-quick-cta {
    width: 100%;
    margin-top: 4px;
    padding: 11px 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--wsh-aqua), var(--wsh-blue));
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 111, 124, 0.35);
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.wsh-quick-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.wsh-quick-cta:active { transform: translateY(0); }
.wsh-quick-cta:focus-visible { outline: none; box-shadow: var(--wsh-ring); }
.wsh-quick-live {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px dashed var(--wsh-blue-line);
}
.wsh-quick-live span { font-size: 12px; color: var(--wsh-sub); }
.wsh-quick-live b {
    font-family: var(--wsh-num);
    font-size: 24px;
    color: var(--wsh-blue-d);
    letter-spacing: 0.01em;
}

.wsh-hint { margin: 5px 2px 0; font-size: 11.5px; line-height: 1.7; color: var(--wsh-mute); }
.wsh-hint b { color: var(--wsh-aqua-d); }

/* ---------- 错误提示 ---------- */
.wsh-err {
    display: none;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: var(--wsh-r-sm);
    border: 1px solid var(--wsh-coral-line);
    background: var(--wsh-coral-l);
    font-size: 12.5px;
    color: var(--wsh-coral-d);
}
.wsh-err.is-on { display: block; }
.wsh-row-err { font-size: 11.5px; color: var(--wsh-coral); }

/* ============================ KPI 仪表横带 ============================ */
.wsh-kpi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
    border-radius: var(--wsh-r);
    overflow: hidden;
    background: var(--wsh-card);
    box-shadow: var(--wsh-shadow);
}
.wsh-kpi-item {
    position: relative;
    padding: 15px 20px 13px 22px;
    border-left: 1px solid var(--wsh-line-2);
}
.wsh-kpi-item:first-child { border-left: 0; }
.wsh-kpi-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--wsh-blue);
}
.wsh-kpi-item.is-aqua::before { background: var(--wsh-aqua); }
.wsh-kpi-item.is-coral::before { background: var(--wsh-coral); }
.wsh-kpi-item.is-green::before { background: var(--wsh-green); }
.wsh-kpi-item span { display: block; font-size: 11.5px; color: var(--wsh-mute); }
.wsh-kpi-item b {
    display: block;
    margin-top: 3px;
    font-family: var(--wsh-num);
    font-size: 22px;
    line-height: 1.25;
    color: var(--wsh-ink);
}
.wsh-kpi-item em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11px;
    color: var(--wsh-mute);
}

/* ============================ 主体布局 ============================ */
.wsh-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    gap: 20px;
    align-items: start;
}
.wsh-sticky { position: sticky; top: 72px; }

/* ---------- 卡片 ---------- */
.wsh-card {
    border-radius: var(--wsh-r);
    background: var(--wsh-card);
    box-shadow: var(--wsh-shadow);
    overflow: hidden;
}
.wsh-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--wsh-line-2);
    background: linear-gradient(180deg, var(--wsh-card-2), var(--wsh-card));
}
.wsh-card-head .no {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wsh-blue-l);
    border: 1px solid var(--wsh-blue-line);
    font-family: var(--wsh-num);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--wsh-blue-d);
}
.wsh-card-head h2 {
    margin: 0;
    font-size: 15.5px;
    letter-spacing: 0.01em;
}
.wsh-card-head .tip {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--wsh-mute);
}
.wsh-card-body { padding: 17px 20px 19px; }

/* ---------- 表单字段 ---------- */
.wsh-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
}
.wsh-field.is-full { grid-column: 1 / -1; }
.wsh-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.wsh-label small {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--wsh-mute);
}

/* ---------- 按钮 ---------- */
.wsh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px dashed var(--wsh-line);
}
.wsh-btn {
    padding: 8px 15px;
    border: 1.5px solid var(--wsh-line);
    border-radius: 999px;
    background: var(--wsh-card);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wsh-sub);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s;
}
.wsh-btn:hover { border-color: var(--wsh-blue); color: var(--wsh-blue-d); }
.wsh-btn:focus-visible { outline: none; box-shadow: var(--wsh-ring); }
.wsh-btn:active { transform: scale(0.98); }
.wsh-btn.is-primary {
    border-color: transparent;
    background: var(--wsh-blue);
    color: #fff;
}
[data-theme="dark"] .wsh-btn.is-primary { color: #06282c; }
.wsh-btn.is-primary:hover { background: var(--wsh-blue-d); color: #fff; }
.wsh-btn.is-coral {
    border-color: transparent;
    background: var(--wsh-coral-l);
    color: var(--wsh-coral-d);
}
.wsh-btn.is-coral:hover { background: var(--wsh-coral); color: #fff; }

/* ============================ 收费项目清单 ============================ */
.wsh-items { display: grid; gap: 11px; }
.wsh-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--wsh-line-2);
    border-radius: var(--wsh-r-md);
    background: var(--wsh-card-2);
    transition: opacity 0.15s, border-color 0.15s;
}
.wsh-item.is-off { opacity: 0.55; }
.wsh-item.is-off .wsh-item-name { text-decoration: line-through; text-decoration-color: var(--wsh-mute); }
.wsh-item-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: 2px;
    border-radius: 12px;
    background: var(--wsh-blue-l);
    color: var(--wsh-blue);
}
.wsh-item.is-material .wsh-item-ico { background: var(--wsh-aqua-l); color: var(--wsh-aqua); }
.wsh-item.is-extra .wsh-item-ico { background: var(--wsh-coral-l); color: var(--wsh-coral); }
.wsh-item-ico svg { width: 21px; height: 21px; }
.wsh-item-name { font-size: 13.5px; font-weight: 700; }
.wsh-item-desc {
    margin: 4px 0 8px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--wsh-sub);
}
.wsh-item-ctl {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wsh-qty {
    width: 66px;
    padding: 5px 8px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-r-sm);
    background: var(--wsh-card);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--wsh-num);
    color: var(--wsh-ink);
    text-align: center;
}
.wsh-qty:focus { outline: none; border-color: var(--wsh-blue); box-shadow: var(--wsh-ring); }
.wsh-item-rate { font-size: 11.5px; color: var(--wsh-mute); font-family: var(--wsh-num); }
.wsh-item-sum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 74px;
}
.wsh-item-sum b { font-family: var(--wsh-num); font-size: 16px; color: var(--wsh-ink); }
.wsh-item-sum span { font-size: 10.5px; color: var(--wsh-mute); }

/* ============================ 批量表格 ============================ */
.wsh-table-wrap { overflow-x: auto; border: 1px solid var(--wsh-line-2); border-radius: var(--wsh-r-md); }
.wsh-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 12.5px;
}
.wsh-table th, .wsh-table td {
    padding: 8px 9px;
    border-bottom: 1px solid var(--wsh-line-2);
    text-align: left;
    white-space: nowrap;
}
.wsh-table thead th {
    background: var(--wsh-card-2);
    font-size: 11.5px;
    color: var(--wsh-sub);
    font-weight: 600;
}
.wsh-table .num { text-align: right; font-family: var(--wsh-num); }
.wsh-table tbody tr:hover { background: var(--wsh-blue-l); }
.wsh-table tfoot th { background: var(--wsh-card-2); color: var(--wsh-ink); }
.wsh-table select, .wsh-table input {
    padding: 5px 7px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-r-sm);
    background: var(--wsh-card);
    font: inherit;
    font-size: 12px;
    color: var(--wsh-ink);
}
.wsh-table input[type="number"] { width: 68px; font-family: var(--wsh-num); }
.wsh-table select:focus, .wsh-table input:focus { outline: none; border-color: var(--wsh-blue); }
.wsh-table tr.is-bad { background: var(--wsh-coral-l); }
.wsh-table tr.is-bad .wsh-row-err { display: block; }
.wsh-table .wsh-row-err { display: none; }
.wsh-del {
    padding: 3px 9px;
    border: 1px solid var(--wsh-line);
    border-radius: 999px;
    background: var(--wsh-card);
    color: var(--wsh-mute);
    font-size: 12px;
    cursor: pointer;
}
.wsh-del:hover { border-color: var(--wsh-coral); color: var(--wsh-coral); }

/* ============================ 票据式收据 ============================ */
.wsh-receipt {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: var(--wsh-r);
    background:
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(15, 111, 124, 0.05) 27px 28px),
        var(--wsh-card);
    box-shadow: var(--wsh-shadow);
}
.wsh-perf {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: radial-gradient(circle at 8px 5px, var(--wsh-bg) 4.5px, transparent 5px);
    background-size: 16px 10px;
    background-repeat: repeat-x;
}
.wsh-perf.is-b { top: auto; bottom: -5px; transform: scaleY(-1); }
.wsh-receipt .lb {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--wsh-mute);
}
.wsh-receipt .big {
    display: block;
    margin-top: 2px;
    font-family: var(--wsh-num);
    font-size: 34px;
    line-height: 1.2;
    color: var(--wsh-blue-d);
    letter-spacing: 0.01em;
}
.wsh-receipt .rng { display: block; margin-top: 3px; font-size: 11.5px; color: var(--wsh-mute); }
.wsh-receipt-rows { margin-top: 13px; padding-top: 4px; }
.wsh-rrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 5.5px 0;
    border-bottom: 1px dashed var(--wsh-line);
    font-size: 12.5px;
}
.wsh-rrow span { color: var(--wsh-sub); }
.wsh-rrow span em {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    color: var(--wsh-mute);
    font-family: var(--wsh-num);
}
.wsh-rrow b { flex: none; font-family: var(--wsh-num); font-size: 13.5px; color: var(--wsh-ink); }
.wsh-rrow.is-total {
    margin-top: 4px;
    padding-top: 9px;
    border-bottom: 0;
    border-top: 2px solid var(--wsh-blue-line);
    font-weight: 700;
}
.wsh-rrow.is-total span { color: var(--wsh-ink); }
.wsh-rrow.is-total b { font-size: 17px; color: var(--wsh-blue-d); }

.wsh-bar-wrap { margin-top: 13px; }
.wsh-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--wsh-line-2);
}
.wsh-bar i { display: block; }
.wsh-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 7px;
    font-size: 10.5px;
    color: var(--wsh-mute);
}
.wsh-bar-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
}

/* ---------- 提醒与场景 ---------- */
.wsh-warn-list { margin: 0; padding: 0 0 0 2px; list-style: none; }
.wsh-warn-list li {
    position: relative;
    padding: 0 0 0 16px;
    margin-bottom: 9px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--wsh-sub);
}
.wsh-warn-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wsh-coral);
}
.wsh-warn-list b { color: var(--wsh-ink); }
.wsh-scenes { display: grid; gap: 9px; }
.wsh-scene {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-r-md);
    background: var(--wsh-card-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.wsh-scene:hover { border-color: var(--wsh-blue); background: var(--wsh-blue-l); transform: translateY(-1px); }
.wsh-scene:focus-visible { outline: none; box-shadow: var(--wsh-ring); }
.wsh-scene b { display: block; font-size: 13px; color: var(--wsh-ink); }
.wsh-scene span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--wsh-mute); }

/* ---------- 使用方法 / FAQ ---------- */
.wsh-prose ol { margin: 0; padding-left: 20px; }
.wsh-prose li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--wsh-sub);
}
.wsh-prose b { color: var(--wsh-ink); }
.wsh-faq details {
    padding: 9px 0;
    border-bottom: 1px dashed var(--wsh-line);
}
.wsh-faq details:last-child { border-bottom: 0; }
.wsh-faq summary {
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    list-style-position: outside;
}
.wsh-faq summary::marker { color: var(--wsh-blue); }
.wsh-faq .a {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--wsh-sub);
}
.wsh-faq .a b { color: var(--wsh-blue-d); }

/* ---------- 相关工具 ---------- */
.wsh-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wsh-rel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--wsh-line-2);
    border-radius: var(--wsh-r-md);
    background: var(--wsh-card-2);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wsh-sub);
    transition: border-color 0.15s, color 0.15s, transform 0.12s;
}
.wsh-rel a:hover { border-color: var(--wsh-blue); color: var(--wsh-blue-d); transform: translateY(-1px); }
.wsh-rel .ico { font-size: 17px; }

.wsh-foot {
    margin: 22px 4px 14px;
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--wsh-mute);
}
.wsh-foot b { color: var(--wsh-sub); }

/* ============================ Toast ============================ */
.wsh-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 9999;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(20, 37, 42, 0.94);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translate(-50%, 14px);
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
}
.wsh-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wsh-toast.ok { background: rgba(26, 143, 116, 0.96); }
.wsh-toast.err { background: rgba(193, 74, 44, 0.96); }

/* ============================ A4 打印稿 ============================ */
.wsh-printzone { display: none; }

@media print {
    @page { size: A4 portrait; margin: 12mm; }
    .nav-header, .footer, .wsh-toast { display: none !important; }
    body { background: #fff !important; }
    .container > *:not(.wsh-printzone) { display: none !important; }
    .wsh-page { color: #16202b; font-size: 12px; }
    .wsh-printzone { display: block !important; }
    .wsh-pz-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        border-bottom: 2.5px solid #16202b;
        padding-bottom: 8px;
    }
    .wsh-pz-head h2 { margin: 0; font-size: 20px; letter-spacing: 0.06em; }
    .wsh-pz-head .meta { font-size: 10.5px; color: #555; }
    .wsh-pz-title {
        margin: 16px 0 6px;
        padding-left: 8px;
        border-left: 3.5px solid #0f6f7c;
        font-size: 13.5px;
        font-weight: 700;
    }
    .wsh-pz-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 11.5px;
    }
    .wsh-pz-table th, .wsh-pz-table td {
        padding: 6px 8px;
        border: 1px solid #b9c6c4;
        text-align: left;
        vertical-align: top;
    }
    .wsh-pz-table thead th { background: #eef4f3; font-weight: 700; }
    .wsh-pz-table .num { text-align: right; font-family: var(--wsh-num); }
    .wsh-pz-sign {
        display: flex;
        gap: 40px;
        margin-top: 26px;
        font-size: 11.5px;
    }
    .wsh-pz-note { margin-top: 18px; font-size: 10px; line-height: 1.8; color: #555; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
    .wsh-hero { grid-template-columns: minmax(0, 1fr); }
    .wsh-main { grid-template-columns: minmax(0, 1fr); }
    .wsh-sticky { position: static; }
}
@media (max-width: 760px) {
    .wsh-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wsh-kpi-item:nth-child(3) { border-left: 0; }
    .wsh-kpi-item:nth-child(n+3) { border-top: 1px solid var(--wsh-line-2); }
    .wsh-hero { padding: 26px 20px 36px; }
    .wsh-hero h1 { font-size: 22px; }
    .wsh-fields { grid-template-columns: minmax(0, 1fr); }
    .wsh-card-body { padding: 15px 16px 17px; }
    .wsh-item { grid-template-columns: 34px minmax(0, 1fr); }
    .wsh-item-sum { grid-column: 2; flex-direction: row; align-items: baseline; gap: 7px; justify-content: flex-start; }
    .wsh-rel { grid-template-columns: minmax(0, 1fr); }
    .wsh-receipt .big { font-size: 29px; }
}
