/* ===== RT60 混响 · 衰减曲线 ===== */
.rt6 {
    background: #fafafd;
    border: 1px solid #e4e4f0;
    border-radius: 12px;
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(40, 45, 90, .07);
}

.rt6-stage {
    display: grid;
    grid-template-columns: 1.28fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* ---- 曲线卡 ---- */
.rt6-chart-box {
    background: #0f1420;
    border: 1px solid #1e2739;
    border-radius: 10px;
    padding: 12px 14px 8px;
    position: relative;
    overflow: hidden;
}
.rt6-chart-box::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 20% 0%, rgba(59, 130, 246, .12), transparent 60%);
    pointer-events: none;
}
.rt6-chart-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font: 700 9.5px/1.4 ui-monospace, monospace; color: #64748b;
    margin-bottom: 4px; position: relative; z-index: 1;
}
.rt6-chart-head b { color: #7dd3fc; }
.rt6-chart svg { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.rt6-legend {
    display: flex; gap: 14px; margin-top: 4px;
    font: 700 8.5px/1 ui-monospace, monospace; color: #64748b;
    position: relative; z-index: 1;
}
.rt6-legend i { display: inline-block; width: 8px; height: 2px; margin-right: 4px; vertical-align: middle; }

/* ---- 读数 ---- */
.rt6-read {
    background: #fff; border: 1px solid #e4e4f0; border-radius: 10px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.rt6-big small { font-size: 10px; color: #8b8ba7; letter-spacing: .05em; display: block; }
.rt6-big b {
    font: 700 36px/1 ui-monospace, Consolas, monospace; color: #1d4ed8;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.rt6-big b em { font-style: normal; font-size: 11px; color: #8b8ba7; font-weight: 400; }
.rt6-big i {
    font-style: normal; font-size: 10.5px; font-weight: 700; margin-left: 8px;
    padding: 4px 9px; border-radius: 4px; vertical-align: middle;
    background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
}
.rt6-big i.bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.rt6-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rt6-card {
    background: #f8f8fd; border: 1px solid #eaeaF6; border-radius: 7px; padding: 8px 10px;
}
.rt6-card span { display: block; font-size: 9.5px; color: #8b8ba7; }
.rt6-card b {
    font: 700 13px/1.4 ui-monospace, monospace; color: #1e293b;
    font-variant-numeric: tabular-nums;
}
.rt6-card b em { font-style: normal; font-size: 9px; color: #8b8ba7; font-weight: 400; }

.rt6-gap {
    height: 8px; border-radius: 4px; background: #eef0f8; overflow: hidden;
    display: flex;
}
.rt6-gap-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.rt6-gap-fill.over { background: linear-gradient(90deg, #fbbf24, #dc2626); }
.rt6-gap-fill.under { background: linear-gradient(90deg, #38bdf8, #6366f1); }

/* ---- 参数 ---- */
.rt6-params { margin-top: 18px; border-top: 1px solid #e4e4f0; padding-top: 15px; }
.rt6-params h2 { font-size: 12px; letter-spacing: .07em; color: #47475f; margin: 0 0 11px; }
.rt6-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.rt6-grid label { display: flex; flex-direction: column; gap: 4px; }
.rt6-grid span { font-size: 10.5px; color: #8b8ba7; }
.rt6-grid input, .rt6-grid select {
    font: inherit; font-size: 12px; padding: 7px 9px; border: 1px solid #e4e4f0;
    border-radius: 5px; background: #fff; color: #1e293b; font-variant-numeric: tabular-nums;
    min-width: 0;
}
.rt6-grid input:focus, .rt6-grid select:focus { outline: 2px solid rgba(29, 78, 216, .14); border-color: #1d4ed8; }
.rt6-grid input.is-bad { border-color: #dc2626; background: #fff1f2; }

.rt6-verdict {
    margin: 15px 0 0; padding: 10px 13px; border-radius: 8px;
    font-size: 11.5px; line-height: 1.7; color: #1e3a8a; background: #f2f7fe;
    border-left: 3px solid #3b82f6;
}
.rt6-verdict.bad { color: #9f1239; background: #fff5f7; border-left-color: #e11d48; }

@media (max-width: 880px) {
    .rt6-stage { grid-template-columns: 1fr; }
    .rt6-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .rt6 { padding: 16px 13px; }
    .rt6-grid { grid-template-columns: 1fr; }
    .rt6-big b { font-size: 29px; }
    .rt6-cards { grid-template-columns: 1fr; }
}

/* ---- 深色 ---- */
[data-theme="dark"] .rt6 { background: #0c0e16; border-color: #23283a; box-shadow: none; }
[data-theme="dark"] .rt6-read { background: #12151f; border-color: #23283a; }
[data-theme="dark"] .rt6-big b { color: #93c5fd; }
[data-theme="dark"] .rt6-big small, [data-theme="dark"] .rt6-card span, [data-theme="dark"] .rt6-grid span { color: #8b93a7; }
[data-theme="dark"] .rt6-card { background: #181c28; border-color: #23283a; }
[data-theme="dark"] .rt6-card b { color: #cbd5e1; }
[data-theme="dark"] .rt6-gap { background: #181c28; }
[data-theme="dark"] .rt6-params { border-color: #23283a; }
[data-theme="dark"] .rt6-params h2 { color: #cbd5e1; }
[data-theme="dark"] .rt6-grid input, [data-theme="dark"] .rt6-grid select { background: #12151f; border-color: #23283a; color: #e2e8f0; }
[data-theme="dark"] .rt6-verdict { background: rgba(59, 130, 246, .12); color: #bfdbfe; }
[data-theme="dark"] .rt6-verdict.bad { background: rgba(190, 18, 60, .12); color: #fda4af; }
