/* ==========================================================================
   随身 WiFi / 流量卡运营平台 —— 后台样式
   主题：清爽蓝青（WiFi / 流量）｜纯原生 CSS，无构建依赖
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    --brand-50: #f0faff;
    --brand-100: #dff4ff;
    --brand-200: #b8e9fb;
    --brand-300: #6fd8f2;
    --brand-400: #2ecbe8;
    --brand-500: #0fb4d6;
    --brand-600: #0a92b8;
    --brand-700: #0a7695;

    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;

    --ink-900: #0d2233;
    --ink-800: #17384f;
    --ink-700: #33526b;
    --ink-500: #63809a;
    --ink-400: #8aa3b8;

    --line: #e3eef6;
    --line-strong: #cfe0ec;

    --bg: #f3f8fc;
    --card: #ffffff;

    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;

    --radius: 14px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(13, 45, 70, .05), 0 2px 10px rgba(13, 45, 70, .05);
    --shadow-md: 0 12px 34px rgba(11, 64, 95, .14);

    --sidebar-w: 238px;

    --grad-brand: linear-gradient(135deg, #2ecbe8 0%, #0a92b8 55%, #2563eb 100%);
    --grad-side: linear-gradient(180deg, #08243a 0%, #0b3d55 58%, #0d4d68 100%);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-700);
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 520px at 100% -12%, rgba(46, 203, 232, .10), transparent 62%),
        radial-gradient(900px 420px at -8% 108%, rgba(37, 99, 235, .08), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.icon {
    width: 20px; height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.text-muted { color: var(--ink-400); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   布局骨架
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #c7e5f4;
    background: var(--grad-side);
    z-index: 60;
}

.sidebar::before,
.sidebar::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.sidebar::before {
    width: 300px; height: 300px;
    right: -150px; top: -150px;
    border: 1px solid rgba(125, 222, 245, .16);
    background: radial-gradient(circle at 30% 30%, rgba(125, 222, 245, .10), transparent 70%);
}
.sidebar::after {
    width: 190px; height: 190px;
    right: -95px; bottom: 60px;
    border: 1px solid rgba(125, 222, 245, .12);
}

.sidebar-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-mark {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 6px 16px rgba(10, 146, 184, .45);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: #fff; font-size: 15px; letter-spacing: .3px; }
.brand-text small { color: rgba(199, 229, 244, .65); font-size: 11px; }

.sidebar-nav {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 10px 8px;
}

.nav-label {
    padding: 8px 10px 6px;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(199, 229, 244, .45);
    text-transform: uppercase;
}

.nav-list li + li { margin-top: 2px; }

.nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(199, 229, 244, .82);
    font-size: 14px;
    transition: background .18s, color .18s;
}
.nav-list a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.nav-list a.is-active {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 600;
}
.nav-list a.is-active::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--brand-300);
}

.nav-badge {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(46, 203, 232, .22);
    color: #bdf0ff;
}

.sidebar-foot {
    position: relative;
    padding: 12px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-version {
    padding: 0 4px 10px;
    font-size: 11px;
    color: rgba(199, 229, 244, .40);
}

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-title h1 { font-size: 18px; color: var(--ink-900); font-weight: 650; }
.topbar-title p { font-size: 12px; color: var(--ink-400); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu-toggle { display: none; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 12px;
    color: var(--ink-500);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: #fff;
    font-size: 13px;
    color: var(--ink-800);
}

.avatar {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    background: var(--grad-brand);
}

.content { padding: 22px; flex: 1 1 auto; }

.page-footer {
    padding: 18px 22px 26px;
    font-size: 12px;
    color: var(--ink-400);
    text-align: center;
}

/* ==========================================================================
   通用面板 / 卡片
   ========================================================================== */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
}

.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.panel-title { font-size: 15px; font-weight: 650; color: var(--ink-900); }
.panel-sub { font-size: 12px; color: var(--ink-400); }
.panel-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel-body { padding: 18px; }
.panel-body.tight { padding: 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 203, 232, .13), transparent 70%);
}

.stat-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 6px 14px rgba(10, 146, 184, .30);
}
.stat-icon.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 6px 14px rgba(37, 99, 235, .28); }
.stat-icon.green { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 14px rgba(5, 150, 105, .28); }
.stat-icon.amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 6px 14px rgba(245, 158, 11, .28); }

.stat-label { font-size: 12px; color: var(--ink-400); }
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}
.stat-hint { font-size: 11px; color: var(--ink-400); }

/* ---------- 图表区 ---------- */
.charts-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.chart-box { width: 100%; min-height: 260px; }
.chart-empty {
    display: grid; place-items: center;
    height: 260px;
    color: var(--ink-400);
    font-size: 13px;
}

.chart-fallback { padding: 6px 2px 2px; }
.fallback-hint {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    border: 1px dashed var(--brand-200);
    color: var(--brand-700);
    font-size: 12px;
}
.fallback-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
}
.fl-label { width: 84px; color: var(--ink-500); flex: 0 0 auto; }
.fl-bar {
    flex: 1 1 auto;
    height: 10px;
    border-radius: 999px;
    background: #eef5fa;
    overflow: hidden;
}
.fl-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--grad-brand);
}
.fl-value { width: 56px; text-align: right; color: var(--ink-900); font-weight: 600; }

/* ---------- 广告统计预留 ---------- */
.ad-stats { }
.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.ad-item {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line-strong);
    background: linear-gradient(180deg, #fbfdff, #f7fbfe);
}
.ad-item .ad-label { font-size: 12px; color: var(--ink-400); }
.ad-item .ad-value { font-size: 20px; font-weight: 700; color: var(--ink-300); }

/* ==========================================================================
   表单控件
   ========================================================================== */
.filter-form,
.inline-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.input, .select, .textarea {
    width: 100%;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    color: var(--ink-900);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(46, 203, 232, .16);
}
.textarea { min-height: 110px; resize: vertical; }
.select { cursor: pointer; }
.input.search { width: 210px; }
.select.filter { width: auto; min-width: 130px; }
.input.date { width: auto; min-width: 150px; }

.field { margin-bottom: 14px; }
.field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--ink-800);
    font-weight: 500;
}
.hint { margin-top: 5px; font-size: 11px; color: var(--ink-400); }
.field-required > label::after { content: " *"; color: var(--danger); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.form-grid .col-span { grid-column: 1 / -1; }

.checkline {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* 开关 */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--ink-800);
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: relative;
    width: 42px; height: 24px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #d7e5ef;
    transition: background .2s;
}
.switch .slider::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(13, 45, 70, .25);
    transition: transform .2s;
}
.switch input:checked + .slider { background: var(--grad-brand); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(46, 203, 232, .28); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-800);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { box-shadow: 0 4px 12px rgba(11, 64, 95, .12); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-primary {
    color: #fff;
    border-color: transparent;
    background: var(--grad-brand);
    box-shadow: 0 6px 16px rgba(10, 146, 184, .28);
}
.btn-primary:hover { color: #fff; }

.btn-blue {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .26);
}
.btn-blue:hover { color: #fff; }

.btn-danger {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    box-shadow: 0 6px 16px rgba(225, 29, 72, .24);
}
.btn-danger:hover { color: #fff; }

.btn-outline { background: #fff; border-color: var(--brand-300); color: var(--brand-700); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-500); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 36px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 徽标 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
    background: #eef5fa;
    color: var(--ink-500);
    white-space: nowrap;
}
.badge-ok { background: rgba(16, 185, 129, .12); color: #047857; }
.badge-warn { background: rgba(245, 158, 11, .14); color: #b45309; }
.badge-danger { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.badge-muted { background: #eef2f6; color: var(--ink-400); }
.badge-brand { background: rgba(46, 203, 232, .14); color: var(--brand-700); }

/* ==========================================================================
   表格
   ========================================================================== */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.data-table th,
.data-table td { padding: 11px 14px; text-align: left; vertical-align: middle; }
.data-table thead th {
    position: sticky; top: 0;
    background: #f5fafe;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}
.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table tbody tr:hover { background: #f8fcfe; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-cell { padding: 46px 14px !important; text-align: center; color: var(--ink-400); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state .empty-title { font-size: 14px; color: var(--ink-500); font-weight: 600; }

/* ==========================================================================
   分页
   ========================================================================== */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #fcfdff;
}
.pager-info { font-size: 12px; color: var(--ink-400); margin-right: auto; }
.pager a, .pager span.pager-cur {
    min-width: 32px;
    padding: 5px 9px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink-700);
    font-size: 13px;
}
.pager a:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.pager a.is-active, .pager span.pager-cur {
    color: #fff;
    border-color: transparent;
    background: var(--grad-brand);
    font-weight: 600;
}
.pager .is-disabled { opacity: .45; pointer-events: none; }
.pager-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-400); }
.pager-jump .input { width: 62px; padding: 4px 8px; text-align: center; }

/* ==========================================================================
   提示条
   ========================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 13px;
}
.alert-success { background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .28); color: #047857; }
.alert-danger { background: rgba(239, 68, 68, .09); border-color: rgba(239, 68, 68, .26); color: #b3261e; }
.alert-info { background: rgba(46, 203, 232, .10); border-color: rgba(46, 203, 232, .28); color: var(--brand-700); }
.alert-warn { background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .28); color: #b45309; }
.alert .alert-close {
    margin-left: auto;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: .6;
}

/* ==========================================================================
   弹窗
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 32, 50, .45);
    backdrop-filter: blur(2px);
}
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: modalIn .18s ease-out;
}
.modal-dialog.modal-lg { max-width: 760px; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15px; font-weight: 650; color: var(--ink-900); }
.modal-head .modal-close {
    margin-left: auto;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border: none;
    border-radius: 8px;
    background: #f2f7fb;
    color: var(--ink-500);
    cursor: pointer;
}
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #fcfdff;
    border-radius: 0 0 16px 16px;
}

/* ---------- 上传区 ---------- */
.upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 16px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    background: #fbfdff;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.upload-drop:hover { border-color: var(--brand-300); background: var(--brand-50); }
.upload-drop .up-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--brand-600);
    background: rgba(46, 203, 232, .14);
}
.upload-drop input[type=file] { display: none; }
.file-name { margin-top: 8px; font-size: 12px; color: var(--ink-500); word-break: break-all; }

.steps-note { margin: 0; padding-left: 18px; list-style: decimal; font-size: 12px; color: var(--ink-500); }
.steps-note li { margin-bottom: 4px; }

/* ==========================================================================
   登录页
   ========================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(900px 480px at 12% 8%, rgba(46, 203, 232, .22), transparent 60%),
        radial-gradient(760px 460px at 92% 92%, rgba(37, 99, 235, .18), transparent 62%),
        linear-gradient(160deg, #eaf7fd 0%, #f4f9fc 45%, #eef6fb 100%);
}

.login-wrap {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 60, 90, .16);
}

.login-hero {
    position: relative;
    padding: 40px 34px;
    color: #dff3fb;
    background: var(--grad-side);
    overflow: hidden;
}
.login-hero::after {
    content: "";
    position: absolute;
    left: -120px; bottom: -160px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 203, 232, .22), transparent 68%);
}
.login-hero .hero-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-hero h2 { font-size: 24px; color: #fff; font-weight: 700; line-height: 1.35; }
.login-hero .hero-desc { margin-top: 10px; font-size: 13px; color: rgba(199, 229, 244, .75); }

.hero-features { position: relative; margin-top: 28px; display: grid; gap: 12px; }
.hero-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hero-features .hf-dot {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #7fe3f7;
}

/* WiFi 波纹 */
.wifi-rings {
    position: absolute;
    right: 26px; bottom: -60px;
    width: 220px; height: 220px;
    pointer-events: none;
}
.wifi-rings span {
    position: absolute;
    left: 50%; top: 50%;
    width: 60px; height: 60px;
    margin: -30px 0 0 -30px;
    border: 2px solid rgba(127, 227, 247, .55);
    border-radius: 50%;
    animation: wifiPulse 3.2s ease-out infinite;
}
.wifi-rings span:nth-child(2) { animation-delay: 1.05s; }
.wifi-rings span:nth-child(3) { animation-delay: 2.1s; }

@keyframes wifiPulse {
    0%   { transform: scale(.35); opacity: .9; }
    70%  { opacity: .12; }
    100% { transform: scale(3.4); opacity: 0; }
}

.login-form-side { padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.login-form-side h1 { font-size: 21px; color: var(--ink-900); font-weight: 700; }
.login-form-side .login-tip { margin-top: 6px; font-size: 13px; color: var(--ink-400); }

.login-form { margin-top: 24px; }
.login-form .field { margin-bottom: 16px; }
.login-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--ink-500);
}
.login-extra .switch { font-size: 13px; }
.login-foot {
    margin-top: 22px;
    font-size: 12px;
    color: var(--ink-400);
    text-align: center;
}

.input-group { position: relative; }
.input-group .input { padding-left: 38px; }
.input-group .ig-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    pointer-events: none;
}
.input-group .ig-btn {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ink-400);
    cursor: pointer;
    padding: 4px;
    display: grid;
    place-items: center;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
    .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .app-shell { display: block; }

    .sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .24s ease;
        box-shadow: var(--shadow-md);
    }
    .sidebar.is-open { transform: translateX(0); }

    .menu-toggle { display: inline-flex; }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(8, 32, 50, .40);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s;
    }
    .sidebar-backdrop.is-open { opacity: 1; visibility: visible; }

    .topbar { padding: 12px 16px; }
    .content { padding: 16px; }
    .topbar-title p { display: none; }
}

@media (max-width: 768px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-hero { padding: 28px 24px; }
    .login-form-side { padding: 28px 24px; }
    .wifi-rings { display: none; }

    .panel-head { flex-direction: column; align-items: stretch; }
    .panel-actions { margin-left: 0; }
    .panel-actions .btn,
    .panel-actions .input.search { width: 100%; }
    .input.search { width: 100%; }

    .form-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .stat-value { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
