/* ===== 显示器接口带宽匹配 ===== */
.dbm-hero {
    background: linear-gradient(150deg, #ecfeff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(3, 105, 161, .10);
}
.dbm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dbm-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #0e7490 0%, #7dd3fc 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(14, 116, 144, .3);
}
.dbm-title { font-size: 20px; font-weight: 800; color: #155e75; }
.dbm-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

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

.dbm-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.dbm-gauge-bar {
    height: 18px; border-radius: 999px; overflow: hidden;
    background: linear-gradient(90deg, #22c55e 0 40%, #eab308 40% 65%, #ef4444 65% 100%);
}
.dbm-gauge-bar i {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: rgba(15, 23, 42, .85); transition: width .4s;
}
.dbm-gauge-num { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.dbm-gauge-num b { font-size: 26px; font-weight: 900; color: #155e75; font-variant-numeric: tabular-nums; }
.dbm-gauge-num span { font-size: 12px; color: #64748b; }
.dbm-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dbm-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #075985;
}
.dbm-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.dbm-break li.ok { border-color: #0ea5e9; background: #e0f2fe; color: #075985; font-weight: 700; }
.dbm-break li.ok.bad { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.dbm-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

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

/* ===== 深色模式 ===== */
[data-theme="dark"] .dbm-hero {
    background: linear-gradient(150deg, #083344 0%, #0f172a 100%);
    border-color: rgba(125, 211, 252, .22);
}
[data-theme="dark"] .dbm-title { color: #7dd3fc; }
[data-theme="dark"] .dbm-form, [data-theme="dark"] .dbm-result {
    background: rgba(255,255,255,.05); border-color: rgba(125, 211, 252, .18);
}
[data-theme="dark"] .dbm-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(125,211,252,.25);
}
[data-theme="dark"] .dbm-field > span { color: #94a3b8; }
[data-theme="dark"] .dbm-gauge-num b { color: #7dd3fc; }
[data-theme="dark"] .dbm-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .dbm-break li b { color: #e2e8f0; }
[data-theme="dark"] .dbm-break li.ok { background: rgba(14,165,233,.18); border-color: rgba(56,189,248,.4); color: #7dd3fc; }
[data-theme="dark"] .dbm-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
