/* ===== 星轨曝光 · 夜空窗口 ===== */
.stl {
    background: #fbfbfd;
    border: 1px solid #e2e4ee;
    border-radius: 12px;
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(30, 40, 80, .08);
}

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

/* ---- 夜空 ---- */
.stl-sky {
    position: relative; border-radius: 10px; overflow: hidden;
    min-height: 216px;
    background:
        radial-gradient(120% 100% at 82% 4%, #1e3a5f 0%, #101d33 42%, #070c16 100%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, .55);
}
.stl-sky::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.75), transparent),
        radial-gradient(1.4px 1.4px at 46% 14%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 63% 52%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 78% 80%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.2px 1.2px at 88% 34%, rgba(255,255,255,.85), transparent),
        radial-gradient(1px 1px at 36% 88%, rgba(255,255,255,.6), transparent),
        radial-gradient(1px 1px at 55% 36%, rgba(255,255,255,.55), transparent),
        radial-gradient(1px 1px at 8% 54%, rgba(255,255,255,.5), transparent);
    pointer-events: none;
}
.stl-sky #stlSvg { position: absolute; inset: 0; z-index: 1; }
.stl-sky svg { display: block; width: 100%; height: 100%; }
.stl-pole {
    position: absolute; right: 16px; top: 12px; z-index: 2;
    font: 700 8.5px/1.4 ui-monospace, monospace; color: #93c5fd;
    text-align: right;
}
.stl-pole em { display: block; font-style: normal; font-size: 8px; color: #64748b; font-weight: 400; }
.stl-sky-tag {
    position: absolute; left: 12px; bottom: 10px; z-index: 2;
    font: 700 9px/1.5 ui-monospace, monospace; color: #cbd5e1;
    background: rgba(8, 15, 26, .65); border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 4px; padding: 3px 7px;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.stl-sky-tag b { color: #fbbf24; }

/* ---- 读数 ---- */
.stl-read {
    background: #fff; border: 1px solid #e2e4ee; border-radius: 10px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.stl-big small { font-size: 10px; color: #8b93a7; letter-spacing: .05em; display: block; }
.stl-big b {
    font: 700 36px/1 ui-monospace, Consolas, monospace; color: #1e293b;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stl-big b em { font-style: normal; font-size: 11px; color: #8b93a7; font-weight: 400; }
.stl-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: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe;
}
.stl-big i.bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

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

.stl-bar {
    position: relative; height: 24px; border-radius: 5px;
    background: #eef1f9; border: 1px solid #e2e6f2; overflow: hidden;
}
.stl-bar-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
    transition: width .4s;
}
.stl-bar-fill.bad { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.stl-bar-note {
    display: flex; justify-content: space-between;
    font: 700 9px/1 ui-monospace, monospace; color: #9aa2b5; margin-top: 4px;
}

/* ---- 参数 ---- */
.stl-params { margin-top: 18px; border-top: 1px solid #e2e4ee; padding-top: 15px; }
.stl-params h2 { font-size: 12px; letter-spacing: .07em; color: #4b5563; margin: 0 0 11px; }
.stl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.stl-grid label { display: flex; flex-direction: column; gap: 4px; }
.stl-grid span { font-size: 10.5px; color: #8b93a7; }
.stl-grid input, .stl-grid select {
    font: inherit; font-size: 12px; padding: 7px 9px; border: 1px solid #e2e4ee;
    border-radius: 5px; background: #fff; color: #1e293b; font-variant-numeric: tabular-nums;
    min-width: 0;
}
.stl-grid input:focus, .stl-grid select:focus { outline: 2px solid rgba(99, 102, 241, .16); border-color: #6366f1; }
.stl-grid input.is-bad { border-color: #dc2626; background: #fff1f2; }

.stl-verdict {
    margin: 15px 0 0; padding: 10px 13px; border-radius: 8px;
    font-size: 11.5px; line-height: 1.7; color: #312e81; background: #f2f3fe;
    border-left: 3px solid #6366f1;
}
.stl-verdict.bad { color: #9f1239; background: #fff5f7; border-left-color: #e11d48; }

@media (max-width: 860px) {
    .stl-stage { grid-template-columns: 1fr; }
    .stl-sky { min-height: 180px; }
    .stl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .stl { padding: 16px 13px; }
    .stl-grid { grid-template-columns: 1fr; }
    .stl-big b { font-size: 29px; }
    .stl-cards { grid-template-columns: 1fr; }
}

/* ---- 深色 ---- */
[data-theme="dark"] .stl { background: #0c0e14; border-color: #232634; box-shadow: none; }
[data-theme="dark"] .stl-read { background: #12141c; border-color: #232634; }
[data-theme="dark"] .stl-big b { color: #e2e8f0; }
[data-theme="dark"] .stl-big small, [data-theme="dark"] .stl-card span, [data-theme="dark"] .stl-grid span { color: #8b93a7; }
[data-theme="dark"] .stl-card { background: #181b25; border-color: #232634; }
[data-theme="dark"] .stl-card b { color: #cbd5e1; }
[data-theme="dark"] .stl-bar { background: #181b25; border-color: #232634; }
[data-theme="dark"] .stl-params { border-color: #232634; }
[data-theme="dark"] .stl-params h2 { color: #cbd5e1; }
[data-theme="dark"] .stl-grid input, [data-theme="dark"] .stl-grid select { background: #12141c; border-color: #232634; color: #e2e8f0; }
[data-theme="dark"] .stl-verdict { background: rgba(99, 102, 241, .12); color: #c7d2fe; }
[data-theme="dark"] .stl-verdict.bad { background: rgba(190, 18, 60, .12); color: #fda4af; }
