/* ===== 家庭 Wi-Fi 带宽分配 ===== */
.wifi-hero {
    background: linear-gradient(150deg, #eff6ff 0%, #f0fdfa 100%);
    border: 1px solid #60a5fa;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(29, 78, 216, .10);
}
.wifi-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.wifi-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(29, 78, 216, .3);
}
.wifi-title { font-size: 20px; font-weight: 800; color: #1e3a8a; }
.wifi-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

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

.wifi-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.wifi-alloc-bar {
    display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #f1f5f9;
}
.wifi-alloc-bar i { display: block; height: 100%; transition: width .4s; }
.wifi-alloc-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 11px; color: #64748b; }
.wifi-alloc-legend span { display: inline-flex; align-items: center; gap: 4px; }
.wifi-alloc-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.wifi-alloc-legend b { color: #1e3a8a; font-variant-numeric: tabular-nums; }
.wifi-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wifi-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #1d4ed8;
}
.wifi-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.wifi-break li.ok { border-color: #2563eb; background: #dbeafe; color: #1e3a8a; font-weight: 700; }
.wifi-break li.ok.bad { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.wifi-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

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

/* ===== 深色模式 ===== */
[data-theme="dark"] .wifi-hero {
    background: linear-gradient(150deg, #172554 0%, #0f172a 100%);
    border-color: rgba(96, 165, 250, .22);
}
[data-theme="dark"] .wifi-title { color: #93c5fd; }
[data-theme="dark"] .wifi-form, [data-theme="dark"] .wifi-result {
    background: rgba(255,255,255,.05); border-color: rgba(96, 165, 250, .18);
}
[data-theme="dark"] .wifi-field input, [data-theme="dark"] .wifi-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(96,165,250,.25);
}
[data-theme="dark"] .wifi-field > span { color: #94a3b8; }
[data-theme="dark"] .wifi-alloc-bar { background: rgba(255,255,255,.08); }
[data-theme="dark"] .wifi-alloc-legend b { color: #93c5fd; }
[data-theme="dark"] .wifi-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .wifi-break li b { color: #e2e8f0; }
[data-theme="dark"] .wifi-break li.ok { background: rgba(37,99,235,.2); border-color: rgba(96,165,250,.4); color: #93c5fd; }
[data-theme="dark"] .wifi-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
