/* ===== 喷淋头布点 · 平面图工作区 ===== */
.spr {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 26px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.spr-top {
    padding: 20px 22px 16px;
    background: linear-gradient(120deg, #f8fafc 0%, #eef6ff 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
.spr-eyebrow { font-size: 10px; letter-spacing: .14em; color: #0e7490; text-transform: uppercase; }
.spr-heading h1 { font-size: 21px; margin: 6px 0 4px; color: #0f172a; }
.spr-heading p { margin: 0; font-size: 12.5px; color: #64748b; }
.spr-levels { display: flex; gap: 6px; flex-wrap: wrap; }
.spr-level {
    font: inherit; cursor: pointer; text-align: left;
    padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    background: #fff; color: #475569; font-size: 12px; line-height: 1.35;
    transition: all .15s;
}
.spr-level em { display: block; font-style: normal; font-size: 10px; color: #94a3b8; margin-top: 1px; }
.spr-level:hover { border-color: #0e7490; color: #0e7490; }
.spr-level.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.spr-level.is-on em { color: #94a3b8; }

.spr-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.spr-form { padding: 18px 20px; border-right: 1px solid #e2e8f0; }
.spr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spr-fields label { display: flex; flex-direction: column; gap: 4px; }
.spr-fields span { font-size: 11px; color: #64748b; }
.spr-fields input, .spr-fields select {
    font: inherit; font-size: 13px; padding: 8px 9px; border: 1px solid #dbe4ec; border-radius: 6px;
    background: #fff; color: #0f172a; font-variant-numeric: tabular-nums;
}
.spr-fields input:focus, .spr-fields select:focus { outline: 2px solid rgba(14, 116, 144, .25); border-color: #0e7490; }
.spr-fields input.is-bad { border-color: #dc2626; background: #fef2f2; }
.spr-note-inline {
    margin-top: 14px; padding: 9px 11px; font-size: 11px; line-height: 1.65;
    color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px;
}
.spr-note-inline b { color: #b45309; }

.spr-plan { padding: 14px 18px 0; background: #fbfdff; }
.spr-plan-head {
    display: flex; justify-content: space-between; font-size: 11px; color: #64748b;
    letter-spacing: .04em; margin-bottom: 4px;
}
.spr-svg { display: block; width: 100%; height: auto; }
.spr-plan-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0 12px; font-size: 11px; color: #64748b;
}
.spr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; margin-right: 5px; }

.spr-results {
    display: grid; grid-template-columns: 170px minmax(0, 1fr) 300px;
    gap: 18px; align-items: center;
    padding: 18px 22px; border-top: 1px solid #e2e8f0; background: #fff;
}
.spr-res-main { border-right: 1px dashed #e2e8f0; }
.spr-res-main span { display: block; font-size: 11px; color: #64748b; }
.spr-res-main b {
    font-size: 38px; line-height: 1; color: #b91c1c;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-variant-numeric: tabular-nums;
}
.spr-res-main em { font-style: normal; font-size: 12px; color: #94a3b8; margin-left: 4px; }
.spr-res-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 16px; margin: 0; }
.spr-res-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #f1f5f9; }
.spr-res-list dt { font-size: 11px; color: #64748b; }
.spr-res-list dd { margin: 0; font-size: 11.5px; color: #0f172a; font-family: ui-monospace, monospace; text-align: right; }
.spr-verdict { border-left: 4px solid #94a3b8; background: #f8fafc; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.spr-verdict b { font-size: 12.5px; color: #334155; }
.spr-verdict span { font-size: 11px; line-height: 1.5; color: #64748b; }
.spr-verdict.is-ok { border-color: #15803d; background: #f0fdf4; }
.spr-verdict.is-ok b { color: #14532d; }
.spr-verdict.is-warn { border-color: #b45309; background: #fffbeb; }
.spr-verdict.is-warn b { color: #92400e; }
.spr-verdict.is-bad { border-color: #b91c1c; background: #fef2f2; }
.spr-verdict.is-bad b { color: #991b1b; }

.spr-basis { padding: 16px 22px 20px; border-top: 1px solid #e2e8f0; background: #fcfdff; }
.spr-basis h2 { font-size: 13px; margin: 0 0 10px; color: #0f172a; }
.spr-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.spr-table th, .spr-table td { padding: 6px 8px; border: 1px solid #e8eef4; text-align: center; }
.spr-table th { background: #f1f5f9; color: #475569; font-weight: 600; font-size: 10.5px; }
.spr-table td:first-child { text-align: left; color: #334155; }
.spr-basis p { margin: 10px 0 0; font-size: 11.5px; line-height: 1.75; color: #64748b; }

@media (max-width: 1000px) {
    .spr-grid { grid-template-columns: 1fr; }
    .spr-form { border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .spr-results { grid-template-columns: 150px 1fr; }
    .spr-verdict { grid-column: 1 / -1; }
    .spr-res-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .spr-top { padding: 16px 14px; }
    .spr-heading h1 { font-size: 19px; }
    .spr-levels { width: 100%; }
    .spr-level { flex: 1; }
    .spr-form, .spr-plan { padding: 14px; }
    .spr-fields { grid-template-columns: 1fr; }
    .spr-results { grid-template-columns: 1fr; padding: 14px; }
    .spr-res-main { border-right: 0; border-bottom: 1px dashed #e2e8f0; padding-bottom: 10px; }
    .spr-res-list { grid-template-columns: 1fr; }
    .spr-basis { padding: 14px; }
    .spr-table { font-size: 10.5px; }
}

/* 深色模式 */
[data-theme="dark"] .spr { background: #0b1220; border-color: #22303f; box-shadow: none; }
[data-theme="dark"] .spr-top { background: linear-gradient(120deg, #0d1624 0%, #0b1e2a 100%); border-color: #22303f; }
[data-theme="dark"] .spr-heading h1 { color: #e2e8f0; }
[data-theme="dark"] .spr-level { background: #0f1a2a; border-color: #2b3b4d; color: #94a3b8; }
[data-theme="dark"] .spr-level.is-on { background: #1e293b; border-color: #38bdf8; color: #e2e8f0; }
[data-theme="dark"] .spr-form { border-color: #22303f; }
[data-theme="dark"] .spr-fields input, [data-theme="dark"] .spr-fields select { background: #0f1a2a; color: #e2e8f0; border-color: #2b3b4d; }
[data-theme="dark"] .spr-fields input.is-bad { background: #3b1219; }
[data-theme="dark"] .spr-note-inline { background: rgba(180,83,9,.16); border-color: rgba(251,191,36,.3); color: #fcd34d; }
[data-theme="dark"] .spr-plan { background: #0d1624; }
[data-theme="dark"] .spr-svg rect[fill="#f8fafc"] { fill: #101a2a; }
[data-theme="dark"] .spr-svg rect[stroke="#0f172a"] { stroke: #64748b; }
[data-theme="dark"] .spr-svg pattern path { stroke: rgba(148,163,184,.12); }
[data-theme="dark"] .spr-results { background: #0b1220; border-color: #22303f; }
[data-theme="dark"] .spr-res-main { border-color: #22303f; }
[data-theme="dark"] .spr-res-list > div { border-bottom-color: #1a2532; }
[data-theme="dark"] .spr-res-list dd { color: #e2e8f0; }
[data-theme="dark"] .spr-verdict { background: rgba(148,163,184,.07); }
[data-theme="dark"] .spr-verdict b { color: #cbd5e1; }
[data-theme="dark"] .spr-verdict.is-ok { background: rgba(21,128,61,.16); }
[data-theme="dark"] .spr-verdict.is-ok b { color: #86efac; }
[data-theme="dark"] .spr-verdict.is-warn { background: rgba(180,83,9,.18); }
[data-theme="dark"] .spr-verdict.is-warn b { color: #fcd34d; }
[data-theme="dark"] .spr-verdict.is-bad { background: rgba(185,28,28,.18); }
[data-theme="dark"] .spr-verdict.is-bad b { color: #fca5a5; }
[data-theme="dark"] .spr-basis { background: #0d1624; border-color: #22303f; }
[data-theme="dark"] .spr-basis h2 { color: #e2e8f0; }
[data-theme="dark"] .spr-table th, [data-theme="dark"] .spr-table td { border-color: #22303f; }
[data-theme="dark"] .spr-table th { background: #101a26; color: #94a3b8; }
[data-theme="dark"] .spr-table td:first-child { color: #cbd5e1; }
