/* ============================================================
   断桥铝封窗造价计算器 · 铝型材工业风 (.wsc)
   铝银 + 石墨深灰 + 玻璃青 + 琥珀报价，窗型示意图
   ============================================================ */
.wsc-page {
    --wsc-steel: #7c8794;
    --wsc-steel-2: #a5aeb8;
    --wsc-graphite: #2b323c;
    --wsc-graphite-2: #3c4653;
    --wsc-glass: #5296a6;
    --wsc-glass-soft: rgba(82, 150, 166, 0.12);
    --wsc-glass-line: rgba(82, 150, 166, 0.4);
    --wsc-amber: #c07b1f;
    --wsc-amber-soft: rgba(192, 123, 31, 0.1);
    --wsc-ink: #2b323c;
    --wsc-ink-2: #68717d;
    --wsc-paper: #f3f4f6;
    --wsc-panel: #fcfcfd;
    --wsc-line: rgba(43, 50, 60, 0.13);
    --wsc-line-soft: rgba(43, 50, 60, 0.07);
    --wsc-red: #b3432b;
    --wsc-num: "DIN Alternate", "Bahnschrift", "Segoe UI Variable Text", ui-sans-serif, system-ui, sans-serif;
    --wsc-radius: 10px;
    color: var(--wsc-ink);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    padding: 6px 0 40px;
}
[data-theme="dark"] .wsc-page {
    --wsc-steel: #93a0af;
    --wsc-steel-2: #b7c1cc;
    --wsc-graphite: #1a2028;
    --wsc-graphite-2: #232c37;
    --wsc-glass: #6fb8c9;
    --wsc-glass-soft: rgba(111, 184, 201, 0.13);
    --wsc-glass-line: rgba(111, 184, 201, 0.45);
    --wsc-amber: #e0a04a;
    --wsc-amber-soft: rgba(224, 160, 74, 0.13);
    --wsc-ink: #e4e8ee;
    --wsc-ink-2: #9aa4b1;
    --wsc-paper: #171c23;
    --wsc-panel: #1e242d;
    --wsc-line: rgba(228, 232, 238, 0.14);
    --wsc-line-soft: rgba(228, 232, 238, 0.08);
    --wsc-red: #e06a4d;
}

/* ============ 首屏 ============ */
.wsc-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    background:
        linear-gradient(180deg, var(--wsc-panel) 0%, var(--wsc-paper) 100%);
    border: 1px solid var(--wsc-line);
    border-top: 4px solid var(--wsc-graphite);
    border-radius: var(--wsc-radius);
    padding: 42px 40px;
    box-shadow: 0 16px 40px rgba(43, 50, 60, 0.1);
}
[data-theme="dark"] .wsc-hero { border-top-color: var(--wsc-glass); }
.wsc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, var(--wsc-line-soft) 0 2px, transparent 2px 26px),
        repeating-linear-gradient(-45deg, var(--wsc-line-soft) 0 2px, transparent 2px 26px);
    mask-image: linear-gradient(100deg, transparent 45%, #000 100%);
    -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 100%);
}
.wsc-hero-copy { position: relative; z-index: 1; min-width: 0; }
.wsc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: var(--wsc-glass);
    text-transform: uppercase;
}
.wsc-kicker::before {
    content: "";
    width: 24px;
    height: 10px;
    border: 2.5px solid var(--wsc-steel);
    border-radius: 2px;
}
.wsc-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.16;
    font-weight: 800;
}
.wsc-hero-sub {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--wsc-ink-2);
}
.wsc-hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.wsc-hero-chips li {
    font-size: 12.5px;
    padding: 6px 12px;
    border: 1px solid var(--wsc-glass-line);
    border-radius: 4px;
    color: var(--wsc-glass);
    background: var(--wsc-glass-soft);
    font-weight: 600;
}

.wsc-hero-readout {
    position: relative;
    z-index: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(160deg, var(--wsc-graphite) 0%, #171d25 100%);
    color: #eef2f7;
    border-radius: var(--wsc-radius);
    padding: 26px 26px 22px;
    box-shadow: 0 14px 32px rgba(23, 29, 37, 0.4);
}
[data-theme="dark"] .wsc-hero-readout { background: linear-gradient(160deg, #232c37 0%, #141a21 100%); }
.wsc-readout-label { font-size: 12.5px; letter-spacing: 0.14em; opacity: 0.85; }
.wsc-readout-num {
    font-family: var(--wsc-num);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    color: #f2c069;
}
.wsc-readout-avg { font-size: 14px; font-weight: 600; }
.wsc-readout-meta { font-size: 12.5px; opacity: 0.9; }
.wsc-readout-tip {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(238, 242, 247, 0.35);
    font-size: 11.5px;
    opacity: 0.75;
}

/* ============ 测算区 ============ */
.wsc-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}
.wsc-input-col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.wsc-panel {
    background: var(--wsc-panel);
    border: 1px solid var(--wsc-line);
    border-radius: var(--wsc-radius);
    padding: 22px 24px;
    box-shadow: 0 5px 16px rgba(43, 50, 60, 0.05);
}
.wsc-panel-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.wsc-step {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-family: var(--wsc-num);
    font-size: 14px;
    font-weight: 800;
    color: #eef2f7;
    background: linear-gradient(135deg, var(--wsc-graphite-2), var(--wsc-graphite));
    box-shadow: 0 4px 10px rgba(43, 50, 60, 0.3);
}
[data-theme="dark"] .wsc-step { color: #141a21; background: linear-gradient(135deg, var(--wsc-steel-2), var(--wsc-steel)); }
.wsc-panel-head h2 { margin: 0 0 3px; font-size: 16.5px; font-weight: 800; }
.wsc-panel-head p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--wsc-ink-2); }
.wsc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wsc-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wsc-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wsc-label { font-size: 12.5px; font-weight: 700; color: var(--wsc-ink-2); }
.wsc-select-wrap { position: relative; display: block; }
.wsc-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--wsc-glass);
    border-bottom: 2px solid var(--wsc-glass);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.wsc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    color: var(--wsc-ink);
    background: var(--wsc-paper);
    border: 1px solid var(--wsc-line);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wsc-input:focus { border-color: var(--wsc-glass); box-shadow: 0 0 0 3px var(--wsc-glass-soft); }
.wsc-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.wsc-input option { background: var(--wsc-panel); color: var(--wsc-ink); }
.wsc-input-wrap { position: relative; display: block; }
.wsc-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: 12px;
    color: var(--wsc-ink-2);
    pointer-events: none;
}
.wsc-input-wrap .wsc-input { padding-right: 40px; }

.wsc-seriesbar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--wsc-glass-soft);
    border: 1px dashed var(--wsc-glass-line);
    border-radius: 6px;
}
.wsc-seriesbar-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--wsc-glass);
    padding-right: 12px;
    border-right: 1px solid var(--wsc-glass-line);
    font-family: var(--wsc-num);
}
.wsc-seriesbar-desc { font-size: 12.5px; color: var(--wsc-ink-2); }

.wsc-checks { display: flex; flex-direction: column; gap: 10px; }
.wsc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--wsc-paper);
    border: 1px solid var(--wsc-line);
    border-radius: 6px;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.wsc-check:hover { border-color: var(--wsc-glass-line); }
.wsc-check input { width: 16px; height: 16px; accent-color: var(--wsc-glass); cursor: pointer; }
.wsc-hint { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--wsc-ink-2); }

.wsc-error {
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(179, 67, 43, 0.08);
    border: 1px solid rgba(179, 67, 43, 0.35);
    color: var(--wsc-red);
    font-size: 13px;
    line-height: 1.6;
}
.wsc-actions { display: flex; gap: 12px; }
.wsc-btn {
    flex: 1;
    padding: 13px 18px;
    border-radius: 8px;
    border: 1px solid var(--wsc-line);
    background: var(--wsc-panel);
    color: var(--wsc-ink);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}
.wsc-btn:hover { border-color: var(--wsc-glass); color: var(--wsc-glass); transform: translateY(-1px); }
.wsc-btn--primary {
    color: #eef2f7;
    background: linear-gradient(135deg, var(--wsc-graphite-2), var(--wsc-graphite));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(43, 50, 60, 0.32);
}
.wsc-btn--primary:hover { color: #eef2f7; box-shadow: 0 10px 26px rgba(43, 50, 60, 0.4); }
[data-theme="dark"] .wsc-btn--primary {
    color: #141a21;
    background: linear-gradient(135deg, var(--wsc-steel-2), var(--wsc-steel));
}

/* ============ 结果卡 ============ */
.wsc-result-col { min-width: 0; position: sticky; top: 84px; }
.wsc-result-card {
    background: var(--wsc-panel);
    border: 1px solid var(--wsc-line);
    border-radius: var(--wsc-radius);
    padding: 24px;
    box-shadow: 0 14px 36px rgba(43, 50, 60, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wsc-result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wsc-result-tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--wsc-glass);
    padding: 5px 12px;
    border-radius: 4px;
    background: var(--wsc-glass-soft);
    border: 1px solid var(--wsc-glass-line);
}
.wsc-result-note { font-size: 11.5px; color: var(--wsc-ink-2); }
.wsc-result-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 20px;
    border-radius: 8px;
    background: var(--wsc-amber-soft);
    border-left: 4px solid var(--wsc-amber);
}
.wsc-result-label { font-size: 12.5px; color: var(--wsc-ink-2); }
.wsc-result-total {
    font-family: var(--wsc-num);
    font-size: 34px;
    font-weight: 800;
    color: var(--wsc-amber);
    line-height: 1.1;
}
.wsc-result-mid { font-size: 13px; color: var(--wsc-ink-2); }

/* 窗型示意 */
.wsc-visual h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 800; }
.wsc-visual-box {
    background: var(--wsc-paper);
    border: 1px solid var(--wsc-line);
    border-radius: 8px;
    padding: 10px;
}
.wsc-visual-box svg { display: block; width: 100%; height: auto; }
.wsc-visual-cap { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--wsc-ink-2); text-align: center; }
/* SVG 窗型示意图元素 */
.wsc-svg-glass { fill: var(--wsc-glass-soft); stroke: none; }
.wsc-svg-shine { stroke: var(--wsc-glass-line); stroke-width: 1.2; opacity: 0.5; }
.wsc-svg-frame { fill: none; stroke: var(--wsc-steel); stroke-width: 5; }
.wsc-svg-mullion { stroke: var(--wsc-steel); stroke-width: 3.5; }
.wsc-svg-sash { fill: none; stroke: var(--wsc-glass); stroke-width: 2.5; }
.wsc-svg-open { stroke: var(--wsc-glass); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: 0.8; }
.wsc-svg-handle { fill: var(--wsc-graphite); }
[data-theme="dark"] .wsc-svg-handle { fill: var(--wsc-steel-2); }
.wsc-svg-fixed { fill: var(--wsc-ink-2); font-size: 13px; font-weight: 600; }
.wsc-svg-dimline { stroke: var(--wsc-ink-2); stroke-width: 1; }
.wsc-svg-dim { fill: var(--wsc-ink-2); font-size: 10.5px; font-family: var(--wsc-num); }

.wsc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wsc-metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    background: var(--wsc-paper);
    border: 1px solid var(--wsc-line);
    border-radius: 6px;
}
.wsc-metric-k { font-size: 11.5px; color: var(--wsc-ink-2); }
.wsc-metric-v { font-family: var(--wsc-num); font-size: 15.5px; font-weight: 800; color: var(--wsc-ink); }

.wsc-breakdown h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 800; }
.wsc-table-scroll { overflow-x: auto; }
.wsc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wsc-table th, .wsc-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--wsc-line-soft);
    white-space: nowrap;
}
.wsc-table th { font-size: 11.5px; color: var(--wsc-ink-2); font-weight: 700; }
.wsc-table tfoot td { font-weight: 800; color: var(--wsc-amber); border-top: 2px solid var(--wsc-glass-line); border-bottom: 0; }
.wsc-table-empty { text-align: center; color: var(--wsc-ink-2); padding: 18px 0; }
.wsc-notes { display: flex; flex-direction: column; gap: 7px; }
.wsc-notes p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--wsc-ink-2);
    padding-left: 14px;
    position: relative;
}
.wsc-notes p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    background: var(--wsc-glass);
    transform: rotate(45deg);
}
.wsc-notes b { color: var(--wsc-ink); }
.wsc-result-actions { display: flex; gap: 10px; }
.wsc-result-foot { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--wsc-ink-2); }

/* ============ A4 报价单 ============ */
.wsc-sheet-wrap {
    margin-top: 40px;
    padding: 26px;
    border-radius: var(--wsc-radius);
    background: var(--wsc-panel);
    border: 1px solid var(--wsc-line);
}
.wsc-sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.wsc-sheet-kicker { font-size: 11px; letter-spacing: 0.2em; font-weight: 700; color: var(--wsc-glass); }
.wsc-sheet-head h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 800; }
.wsc-sheet-head p { margin: 0; font-size: 12.5px; color: var(--wsc-ink-2); }
.wsc-sheet-badge {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--wsc-amber);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--wsc-amber);
    background: var(--wsc-amber-soft);
}
.wsc-sheet {
    max-width: 760px;
    margin: 0 auto;
    background: #fcfcfd;
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    padding: 34px 38px;
    color: #2b323c;
    box-shadow: 0 10px 30px rgba(43, 50, 60, 0.1);
}
[data-theme="dark"] .wsc-sheet { background: #232a34; border-color: #45505e; color: #e4e8ee; }
.wsc-sheet-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--wsc-graphite);
}
[data-theme="dark"] .wsc-sheet-top { border-color: var(--wsc-steel); }
.wsc-sheet-top h3 { margin: 0 0 3px; font-size: 21px; font-weight: 800; letter-spacing: 0.02em; }
.wsc-sheet-top p { margin: 0; font-size: 12px; color: var(--wsc-ink-2); }
.wsc-sheet-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--wsc-ink-2); }
.wsc-sheet-meta b { color: var(--wsc-ink); font-family: var(--wsc-num); }
.wsc-sheet-info { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 0; font-size: 12.5px; color: var(--wsc-ink-2); }
.wsc-sheet-info b { color: var(--wsc-ink); }
.wsc-sheet-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wsc-sheet-table th, .wsc-sheet-table td { border: 1px solid var(--wsc-line); padding: 8px 10px; text-align: left; }
.wsc-sheet-table th { background: var(--wsc-glass-soft); font-size: 11.5px; white-space: nowrap; }
.wsc-sheet-table .w-no { width: 44px; text-align: center; }
.wsc-sheet-table .w-qty, .wsc-sheet-table .w-price, .wsc-sheet-table .w-sub { text-align: right; white-space: nowrap; }
.wsc-sheet-table tfoot td { font-weight: 800; background: var(--wsc-glass-soft); }
.wsc-sheet-summary { margin-top: 16px; border: 1px solid var(--wsc-line); border-radius: 8px; overflow: hidden; }
.wsc-sheet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--wsc-line-soft);
}
.wsc-sheet-row:last-child { border-bottom: 0; }
.wsc-sheet-row b { font-family: var(--wsc-num); font-size: 14px; }
.wsc-sheet-row--total { background: var(--wsc-amber-soft); font-weight: 800; }
.wsc-sheet-row--total b { font-size: 17px; color: var(--wsc-amber); }
.wsc-sheet-notes { margin-top: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; line-height: 1.7; color: var(--wsc-ink-2); }
.wsc-sheet-notes p { margin: 0; }
.wsc-sheet-sign { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--wsc-ink-2); }
.wsc-sheet-foot {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed var(--wsc-line);
    text-align: center;
    font-size: 10.5px;
    color: var(--wsc-ink-2);
}

/* ============ 参考表 / 规则 / FAQ ============ */
.wsc-reference, .wsc-rules, .wsc-faq { margin-top: 48px; }
.wsc-section-head { margin-bottom: 20px; max-width: 760px; }
.wsc-section-kicker { font-size: 11px; letter-spacing: 0.24em; font-weight: 800; color: var(--wsc-glass); }
.wsc-section-head h2 { margin: 8px 0; font-size: 23px; font-weight: 800; }
.wsc-section-head p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--wsc-ink-2); }
.wsc-ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wsc-ref-card {
    background: var(--wsc-panel);
    border: 1px solid var(--wsc-line);
    border-radius: var(--wsc-radius);
    padding: 20px 22px;
    min-width: 0;
}
.wsc-ref-card h3 { margin: 0 0 3px; font-size: 15.5px; font-weight: 800; }
.wsc-ref-sub { margin: 0 0 12px; font-size: 12px; color: var(--wsc-ink-2); }
.wsc-table--ref td:first-child { font-weight: 600; }
.wsc-table--ref .is-price { font-family: var(--wsc-num); font-weight: 800; color: var(--wsc-amber); }
.wsc-ref-note { margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--wsc-ink-2); }
.wsc-rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wsc-rule {
    background: var(--wsc-panel);
    border: 1px solid var(--wsc-line);
    border-radius: var(--wsc-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wsc-rule-no {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--wsc-graphite);
    color: #eef2f7;
    font-weight: 800;
    font-size: 14px;
}
[data-theme="dark"] .wsc-rule-no { color: #141a21; background: var(--wsc-steel); }
.wsc-rule h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.wsc-rule p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--wsc-ink-2); }
.wsc-example {
    margin-top: 18px;
    padding: 20px 24px;
    background: var(--wsc-glass-soft);
    border: 1px dashed var(--wsc-glass-line);
    border-radius: var(--wsc-radius);
}
.wsc-example h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 800; color: var(--wsc-glass); }
.wsc-example p { margin: 0; font-size: 13px; line-height: 1.9; }
.wsc-example-note { margin-top: 6px !important; color: var(--wsc-ink-2); font-size: 12.5px !important; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--wsc-panel); border: 1px solid var(--wsc-line); border-radius: var(--wsc-radius); overflow: hidden; }
.faq-item summary {
    padding: 15px 20px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--wsc-glass);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 20px 16px; font-size: 13px; line-height: 1.9; color: var(--wsc-ink-2); }
.faq-a b { color: var(--wsc-ink); }

.related { margin-top: 48px; }
.related h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--wsc-panel);
    border: 1px solid var(--wsc-line);
    border-radius: var(--wsc-radius);
    text-decoration: none;
    color: var(--wsc-ink);
    transition: all 0.18s;
    min-width: 0;
}
.rel-item:hover { border-color: var(--wsc-glass); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43, 50, 60, 0.08); }
.rel-icon { font-size: 22px; flex: none; }
.rel-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rel-body b { font-size: 13px; }
.rel-body small { font-size: 11px; color: var(--wsc-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-go { margin-left: auto; color: var(--wsc-glass); font-weight: 700; flex: none; }

.wsc-top {
    position: fixed;
    right: 22px;
    bottom: 84px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--wsc-glass-line);
    background: var(--wsc-panel);
    color: var(--wsc-glass);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s;
    z-index: 60;
    box-shadow: 0 8px 22px rgba(43, 50, 60, 0.14);
}
.wsc-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.wsc-toast {
    position: fixed;
    left: 50%;
    bottom: 36px;
    transform: translate(-50%, 16px);
    padding: 10px 22px;
    border-radius: 6px;
    background: rgba(43, 50, 60, 0.94);
    color: #eef2f7;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
    z-index: 90;
}
.wsc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
    .wsc-hero { grid-template-columns: 1fr; padding: 32px 28px; }
    .wsc-hero-readout { max-width: 440px; }
    .wsc-calc { grid-template-columns: 1fr; }
    .wsc-result-col { position: static; }
    .wsc-rule-grid { grid-template-columns: repeat(2, 1fr); }
    .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .wsc-page { padding: 0 0 28px; }
    .wsc-hero { padding: 24px 18px; }
    .wsc-hero h1 { font-size: 26px; }
    .wsc-ref-grid, .wsc-grid2, .wsc-grid3 { grid-template-columns: 1fr; }
    .wsc-rule-grid, .rel-grid { grid-template-columns: 1fr; }
    .wsc-sheet { padding: 22px 18px; overflow-x: auto; }
    .wsc-sheet-sign { flex-direction: column; gap: 10px; }
    .wsc-result-actions { flex-direction: column; }
}

/* ============ 打印：只保留 A4 报价单 ============ */
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    body { background: #fff !important; }
    .nav-header, .footer, .detail-breadcrumb,
    .wsc-hero, .wsc-calc, .wsc-sheet-head,
    .wsc-reference, .wsc-rules, .wsc-faq,
    .related, .wsc-comments, .wsc-top,
    #navEvadeBtn, .nav-evade-btn, #evadeFab, .evade-fab,
    .nav-mask, #navMask, .ma-page-modal,
    #clicaptcha-container, [data-back-to-top] { display: none !important; }
    .detail-wrap { padding: 0 !important; }
    .container { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
    .wsc-page { padding: 0 !important; }
    .wsc-sheet-wrap { padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; }
    .wsc-sheet {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
    }
    .wsc-sheet-notes, .wsc-sheet-sign, .wsc-sheet-summary { break-inside: avoid; }
    .wsc-sheet-table tr { break-inside: avoid; }
    .wsc-sheet-foot { color: #666 !important; }
}
