/* ===== 监视器亮度匹配 ===== */
.nit-hero {
    background: linear-gradient(150deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #a5b4fc;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(49, 46, 129, .10);
}
.nit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.nit-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #3730a3 0%, #a5b4fc 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(55, 48, 163, .3);
}
.nit-title { font-size: 20px; font-weight: 800; color: #312e81; }
.nit-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

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

.nit-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.nit-screen {
    position: relative; height: 110px; border-radius: 10px; overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    display: flex; align-items: flex-end; padding: 10px;
}
.nit-hdr-bar { width: 100%; height: 100%; display: flex; align-items: flex-end; }
.nit-hdr-bar i {
    display: block; width: 100%; height: 0; border-radius: 6px;
    background: linear-gradient(90deg, #38bdf8, #facc15, #f87171); transition: height .4s;
}
.nit-val {
    position: absolute; top: 8px; right: 10px; font-size: 13px; font-weight: 900;
    color: #312e81; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 10px;
}
.nit-scale { position: relative; padding-top: 4px; }
.nit-scale-bar {
    height: 14px; border-radius: 999px; position: relative; overflow: visible;
    background: linear-gradient(90deg, #1e293b 0 10%, #475569 10% 30%, #94a3b8 30% 60%, #fbbf24 60% 85%, #f87171 85% 100%);
}
.nit-scale-bar i {
    position: absolute; top: -5px; width: 5px; height: 24px; border-radius: 3px;
    background: #312e81; transition: left .4s;
}
.nit-scale-txt { display: block; margin-top: 6px; font-size: 11px; color: #64748b; }
.nit-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.nit-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #475569;
}
.nit-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.nit-break li.ok { border-color: #6366f1; background: #e0e7ff; color: #312e81; font-weight: 700; }
.nit-break li.ok.bad { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
.nit-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

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

/* ===== 深色模式 ===== */
[data-theme="dark"] .nit-hero {
    background: linear-gradient(150deg, #1e1b4b 0%, #0f172a 100%);
    border-color: rgba(165, 180, 252, .22);
}
[data-theme="dark"] .nit-title { color: #c7d2fe; }
[data-theme="dark"] .nit-form, [data-theme="dark"] .nit-result {
    background: rgba(255,255,255,.05); border-color: rgba(165, 180, 252, .18);
}
[data-theme="dark"] .nit-field input, [data-theme="dark"] .nit-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(165,180,252,.25);
}
[data-theme="dark"] .nit-field > span { color: #94a3b8; }
[data-theme="dark"] .nit-val { background: rgba(15,23,42,.85); color: #c7d2fe; }
[data-theme="dark"] .nit-scale-txt { color: #94a3b8; }
[data-theme="dark"] .nit-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .nit-break li b { color: #e2e8f0; }
[data-theme="dark"] .nit-break li.ok { background: rgba(79,70,229,.2); border-color: rgba(129,140,248,.4); color: #c7d2fe; }
[data-theme="dark"] .nit-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
