/* ===== 声压级距离衰减 ===== */
.spl-hero {
    background: linear-gradient(150deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1px solid #fecdd3;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(190, 18, 60, .10);
}
.spl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.spl-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #be123c 0%, #fda4af 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(190, 18, 60, .3);
}
.spl-title { font-size: 20px; font-weight: 800; color: #9f1239; }
.spl-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.spl-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.spl-form {
    background: rgba(255,255,255,.92); border: 1px solid #fecdd3;
    border-radius: 16px; padding: 16px;
}
.spl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spl-field { display: flex; flex-direction: column; gap: 4px; }
.spl-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.spl-field input, .spl-field select {
    border: 2px solid #ffe4e6; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.spl-field input:focus, .spl-field select:focus { border-color: #f43f5e; }

.spl-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.spl-field-view {
    position: relative; height: 120px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
}
.spl-src { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 26px; z-index: 2; }
.spl-waves { position: absolute; inset: 0; }
.spl-waves i {
    position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border: 2px solid rgba(253,164,175,.5); border-radius: 50%;
    animation: splWave 2.4s linear infinite;
}
.spl-waves i:nth-child(1) { animation-delay: 0s; }
.spl-waves i:nth-child(2) { animation-delay: .8s; }
.spl-waves i:nth-child(3) { animation-delay: 1.6s; }
@keyframes splWave { from { width: 20px; height: 20px; opacity: .9; } to { width: 260px; height: 260px; opacity: 0; } }
.spl-person { position: absolute; font-size: 24px; right: 14%; top: 50%; transform: translateY(-50%); transition: right .4s; }
.spl-level {
    position: absolute; top: 8px; right: 10px; font-size: 13px; font-weight: 900;
    color: #9f1239; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 10px;
}
.spl-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.spl-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #57534e;
}
.spl-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.spl-break li.ok { border-color: #f43f5e; background: #ffe4e6; color: #9f1239; font-weight: 700; }
.spl-break li.ok.bad { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
.spl-note { margin-top: 14px; font-size: 12px; color: #78716c; line-height: 1.7; }

@media (max-width: 860px) {
    .spl-body { grid-template-columns: 1fr; }
    .spl-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .spl-hero {
    background: linear-gradient(150deg, #4c0519 0%, #1c1917 100%);
    border-color: rgba(253, 164, 175, .22);
}
[data-theme="dark"] .spl-title { color: #fecdd3; }
[data-theme="dark"] .spl-form, [data-theme="dark"] .spl-result {
    background: rgba(255,255,255,.05); border-color: rgba(253, 164, 175, .18);
}
[data-theme="dark"] .spl-field input, [data-theme="dark"] .spl-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(253,164,175,.25);
}
[data-theme="dark"] .spl-field > span { color: #94a3b8; }
[data-theme="dark"] .spl-level { background: rgba(15,23,42,.85); color: #fecdd3; }
[data-theme="dark"] .spl-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .spl-break li b { color: #e2e8f0; }
[data-theme="dark"] .spl-break li.ok { background: rgba(190,18,60,.2); border-color: rgba(251,113,133,.4); color: #fecdd3; }
[data-theme="dark"] .spl-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
