/* ===== 柔光箱光比计算 ===== */
.sb-hero {
    background: linear-gradient(150deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(234, 88, 12, .10);
}
.sb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sb-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #ea580c 0%, #fed7aa 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(234, 88, 12, .3);
}
.sb-title { font-size: 20px; font-weight: 800; color: #9a3412; }
.sb-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

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

.sb-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.sb-stage {
    position: relative; height: 130px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #27272a 0%, #3f3f46 100%);
}
.sb-light {
    position: absolute; top: 16px; font-size: 12px; font-weight: 800; color: #fff;
    background: rgba(249,115,22,.85); border-radius: 8px; padding: 3px 8px; transition: left .4s;
}
.sb-light--key { left: 6%; }
.sb-light--fill { background: rgba(56,189,248,.85); }
.sb-model { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 30px; }
.sb-shadow {
    position: absolute; bottom: 10px; left: 52%; height: 8px; width: 20%;
    background: rgba(0,0,0,.45); border-radius: 4px; transition: width .4s;
}
.sb-ratio {
    position: absolute; top: 8px; right: 10px; font-size: 13px; font-weight: 900;
    color: #9a3412; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 10px;
}
.sb-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sb-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #57534e;
}
.sb-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.sb-break li.ok { border-color: #f97316; background: #ffedd5; color: #9a3412; font-weight: 700; }
.sb-note { margin-top: 14px; font-size: 12px; color: #78716c; line-height: 1.7; }

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

/* ===== 深色模式 ===== */
[data-theme="dark"] .sb-hero {
    background: linear-gradient(150deg, #431407 0%, #1c1917 100%);
    border-color: rgba(253, 186, 116, .22);
}
[data-theme="dark"] .sb-title { color: #fdba74; }
[data-theme="dark"] .sb-form, [data-theme="dark"] .sb-result {
    background: rgba(255,255,255,.05); border-color: rgba(253, 186, 116, .18);
}
[data-theme="dark"] .sb-field input, [data-theme="dark"] .sb-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(253,186,116,.25);
}
[data-theme="dark"] .sb-field > span { color: #94a3b8; }
[data-theme="dark"] .sb-ratio { background: rgba(15,23,42,.85); color: #fdba74; }
[data-theme="dark"] .sb-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .sb-break li b { color: #e2e8f0; }
[data-theme="dark"] .sb-break li.ok { background: rgba(234,88,12,.18); border-color: rgba(251,146,60,.4); color: #fdba74; }
