/* =========================================================
   电脑版 · 强科技感 + 美观排版（≥769px）
   移动端不受影响
   ========================================================= */

/* ---------- 登录 ---------- */
body:has(.container) {
    background: #050814;
}

.container {
    background:
        radial-gradient(ellipse 90% 60% at 15% -20%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 110%, rgba(45, 212, 191, 0.14), transparent 50%),
        linear-gradient(165deg, #050814 0%, #0a1224 48%, #071018 100%) !important;
    min-height: 100vh;
}

.container::before {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    border-radius: 0;
    filter: none;
    background:
        linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: techGridDrift 36s linear infinite;
}

.container::after {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    bottom: -120px;
    left: -100px;
    filter: blur(10px);
    animation: techPulse 6.5s ease-in-out infinite;
}

.form-container {
    width: 100%;
    max-width: 420px !important;
    padding: 48px 40px !important;
    background: rgba(10, 18, 36, 0.82) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.06),
        0 24px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(18px);
    border-radius: 18px !important;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, #38bdf8 35%, #2dd4bf 65%, transparent 95%);
}

.form-container::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(56, 189, 248, 0.08);
    border-radius: 12px;
    pointer-events: none;
}

.form-box {
    position: relative;
    z-index: 1;
}

.form-box h2 {
    font-family: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif !important;
    color: #e8f7ff !important;
    letter-spacing: 0.18em !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.form-box .form-subtitle {
    color: #7dd3fc !important;
    opacity: 0.8;
    letter-spacing: 0.12em;
    font-size: 12px !important;
    margin-bottom: 36px !important;
    text-transform: uppercase;
}

.input-group {
    margin-bottom: 22px !important;
}

.input-group input {
    background: rgba(4, 10, 22, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    color: #e2e8f0 !important;
    padding: 14px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

.input-group label {
    background: rgba(10, 18, 36, 0.95) !important;
    color: #94a3b8 !important;
}

.input-group input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16), 0 0 20px rgba(56, 189, 248, 0.12) !important;
}

.input-group input:focus ~ label {
    color: #38bdf8 !important;
}

.btn-submit {
    margin-top: 8px !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #0ea5e9, #2dd4bf) !important;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.3) !important;
    font-family: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif !important;
    letter-spacing: 0.28em !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    color: #041016 !important;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #38bdf8, #5eead4) !important;
    box-shadow: 0 0 36px rgba(56, 189, 248, 0.45) !important;
    transform: translateY(-1px);
}

@keyframes techGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 52px 52px, 52px 52px; }
}

@keyframes techPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes techFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes techScan {
    0% { transform: translateY(-20%); opacity: 0; }
    15% { opacity: 0.4; }
    85% { opacity: 0.4; }
    100% { transform: translateY(120vh); opacity: 0; }
}

/* ---------- 桌面主界面（默认启用；手机端在下方还原） ---------- */
/* 必须用 :root：比 html 选择器优先级高，才能盖过 style.css 浅色变量 */
:root {
    --primary-color: #38bdf8;
    --primary-light: rgba(56, 189, 248, 0.14);
    --primary-soft: rgba(56, 189, 248, 0.08);
    --primary-dark: #0ea5e9;
    --secondary-color: #2dd4bf;
    --accent-color: #67e8f9;
    --background-color: #060b16;
    --surface-color: rgba(12, 20, 38, 0.92);
    --surface-soft: rgba(16, 26, 46, 0.95);
    --text-color: #e8eef7;
    --text-secondary: #8fa3bf;
    --text-muted: #64748b;
    --border-color: rgba(56, 189, 248, 0.14);
    --border-strong: rgba(56, 189, 248, 0.28);
    --success-color: #34d399;
    --success-bg: rgba(52, 211, 153, 0.14);
    --warning-color: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.14);
    --error-color: #fb7185;
    --error-bg: rgba(251, 113, 133, 0.14);
    --info-color: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.12);
    --sidebar-bg: #080f1c;
    --sidebar-text: #8fa3bf;
    --sidebar-text-active: #7dd3fc;
    --sidebar-hover: rgba(56, 189, 248, 0.08);
    --sidebar-active-bg: rgba(56, 189, 248, 0.14);
    --sidebar-width: 248px;
    --header-height: 64px;
    --shadow-xs: 0 0 0 1px rgba(56, 189, 248, 0.06);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
}

body {
    font-family: 'Noto Sans SC', 'Rajdhani', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.layout {
    background: var(--background-color);
    position: relative;
    min-height: 100vh;
}

.layout::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 40% at 70% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
}

/* ===== 侧栏 ===== */
.sidebar {
    width: var(--sidebar-width) !important;
    background:
        linear-gradient(180deg, rgba(10, 20, 38, 0.98) 0%, rgba(6, 12, 24, 0.99) 100%) !important;
    border-right: 1px solid rgba(56, 189, 248, 0.16) !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    z-index: 100;
}

    .logo {
        height: var(--header-height) !important;
        padding: 0 22px !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.14) !important;
        background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent 70%);
        gap: 12px !important;
    }

    .logo-icon {
        width: 36px !important;
        height: 36px !important;
        background: linear-gradient(135deg, #0ea5e9, #2dd4bf) !important;
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.45) !important;
        color: #041016;
        border-radius: 10px !important;
    }

    .logo span {
        font-family: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif !important;
        color: #e8f7ff !important;
        letter-spacing: 0.16em !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
    }

    .menu-list {
        padding: 18px 14px !important;
    }

    .menu-item {
        padding: 12px 16px !important;
        margin: 4px 0 !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        letter-spacing: 0.02em;
        transition: all 0.22s ease;
    }

    .menu-item:hover {
        background: rgba(56, 189, 248, 0.1) !important;
        color: #7dd3fc !important;
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
    }

    .menu-item.active {
        background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.04)) !important;
        color: #7dd3fc !important;
        font-weight: 600 !important;
        box-shadow: inset 3px 0 0 #38bdf8;
    }

    /* ===== 主区 ===== */
    .main {
        background: transparent !important;
        position: relative;
        z-index: 2;
    }

    @media screen and (min-width: 769px) {
        .main {
            margin-left: var(--sidebar-width) !important;
        }
    }

    .header {
        height: var(--header-height) !important;
        padding: 0 32px !important;
        background: rgba(8, 14, 28, 0.78) !important;
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(56, 189, 248, 0.14) !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    }

    .breadcrumb {
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif !important;
        font-weight: 700 !important;
        letter-spacing: 0.12em !important;
        color: #e8eef7 !important;
        font-size: 17px !important;
    }

    .breadcrumb::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-right: 10px;
        border-radius: 2px;
        background: #38bdf8;
        box-shadow: 0 0 10px #38bdf8;
        vertical-align: 1px;
    }

    .header-right {
        gap: 20px !important;
    }

    .time-display {
        background: rgba(6, 14, 28, 0.9) !important;
        border: 1px solid rgba(56, 189, 248, 0.22) !important;
        border-radius: 8px !important;
        color: #7dd3fc !important;
        font-family: 'Orbitron', 'Rajdhani', monospace !important;
        font-size: 12px !important;
        letter-spacing: 0.08em;
        padding: 8px 14px !important;
    }

    .user-info {
        border-left: 1px solid rgba(56, 189, 248, 0.18) !important;
        padding-left: 20px !important;
        gap: 12px !important;
    }

    #userName {
        color: #e8eef7 !important;
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    #logoutBtn {
        padding: 7px 16px !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        color: #8fa3bf !important;
        background: rgba(8, 14, 28, 0.8) !important;
        border-radius: 8px !important;
        letter-spacing: 0.04em;
    }

    #logoutBtn:hover {
        background: rgba(251, 113, 133, 0.12) !important;
        border-color: #fb7185 !important;
        color: #fb7185 !important;
        box-shadow: 0 0 14px rgba(251, 113, 133, 0.2);
    }

    .content {
        padding: 28px 32px 40px !important;
        animation: techFadeUp 0.45s ease;
        position: relative;
    }

    .content::before {
        content: '';
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        height: 140px;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(180deg, rgba(56, 189, 248, 0.04), transparent);
        animation: techScan 11s linear infinite;
    }

    @media screen and (min-width: 769px) {
        .content::before {
            left: var(--sidebar-width);
        }
    }

    /* ===== 卡片 / 面板 ===== */
    .card,
    .stat-card,
    .dashboard-section,
    .data-section,
    .chart-wrapper,
    .filter-section,
    .page-header,
    .panel,
    .revenue-content .header {
        background:
            linear-gradient(165deg, rgba(16, 28, 52, 0.95), rgba(10, 18, 36, 0.96)) !important;
        border: 1px solid rgba(56, 189, 248, 0.16) !important;
        box-shadow:
            0 10px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
        border-radius: 16px !important;
        backdrop-filter: blur(10px);
    }

    .card:hover,
    .stat-card:hover {
        border-color: rgba(56, 189, 248, 0.4) !important;
        box-shadow:
            0 14px 40px rgba(0, 0, 0, 0.35),
            0 0 28px rgba(56, 189, 248, 0.1) !important;
        transform: translateY(-3px);
    }

    /* ===== 控制台排版 ===== */
    .dashboard-desktop {
        max-width: none;
        width: 100%;
    }

    .dash-hero {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 24px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    }

    .dash-hero-title {
        margin: 0 !important;
        font-family: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif !important;
        font-size: 26px !important;
        font-weight: 700 !important;
        letter-spacing: 0.14em !important;
        color: #e8f7ff !important;
        text-shadow: 0 0 28px rgba(56, 189, 248, 0.25);
    }

    .dash-hero-sub {
        margin: 8px 0 0 !important;
        font-size: 13px;
        color: #8fa3bf;
        letter-spacing: 0.08em;
    }

    .dash-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 8px;
        border: 1px solid rgba(52, 211, 153, 0.35);
        background: rgba(52, 211, 153, 0.1);
        color: #34d399;
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }

    .dash-hero-badge::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #34d399;
        box-shadow: 0 0 10px #34d399;
        animation: techPulse 2s ease-in-out infinite;
    }

    .dashboard-content h2,
    .page-title,
    .section-title,
    .dashboard-section h3,
    .chart-wrapper h3,
    .data-section h3 {
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif !important;
        letter-spacing: 0.08em !important;
        color: #e8eef7 !important;
        font-weight: 700 !important;
    }

    .dashboard-section {
        padding: 22px 24px !important;
        margin-top: 0 !important;
    }

    .dashboard-section h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px !important;
        margin-bottom: 18px !important;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    }

    .dashboard-section h3::before {
        content: '';
        width: 4px;
        height: 16px;
        border-radius: 2px;
        background: linear-gradient(180deg, #38bdf8, #2dd4bf);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    }

    .dashboard-cards {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
        width: 100%;
    }

    .dashboard-cards .card {
        padding: 22px 24px !important;
        position: relative;
        overflow: hidden;
    }

    .dashboard-cards .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #38bdf8, #2dd4bf, transparent);
        opacity: 0.8;
    }

    .dashboard-cards .card h3 {
        font-size: 13px !important;
        color: #8fa3bf !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase;
        margin-bottom: 12px !important;
        font-weight: 600 !important;
    }

    .dashboard-cards .card .number {
        font-family: 'Orbitron', 'Rajdhani', sans-serif !important;
        font-size: 34px !important;
        font-weight: 700 !important;
        color: #67e8f9 !important;
        text-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
        margin: 6px 0 14px !important;
        letter-spacing: 0.04em !important;
        line-height: 1.15 !important;
    }

    .dashboard-cards .card .sub-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 0 !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(56, 189, 248, 0.12) !important;
        font-size: 12px !important;
        color: #8fa3bf !important;
    }

    .dashboard-cards .card .sub-stats span {
        color: #c7d5e8 !important;
        font-weight: 500 !important;
        margin-top: 0 !important;
    }

    .dash-grid-2 {
        display: grid;
        grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.6fr);
        gap: 20px;
        margin-top: 4px;
        width: 100%;
    }

    .fault-overview,
    .revenue-overview {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 0 !important;
    }

    /* 收益查询页：三列统计卡铺满 */
    .revenue-content .revenue-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* 收益页顶部统计：强制高对比 */
    .stat-title,
    .trend-label,
    .stat-compare .label {
        color: #a8bdd8 !important;
    }

    .stat-value,
    .stat-compare .value {
        color: #f0f7ff !important;
        text-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
    }

    .revenue-overview .stat-card {
        background: linear-gradient(165deg, rgba(18, 30, 54, 0.98), rgba(10, 18, 36, 0.98)) !important;
    }

    .chart-wrapper h3,
    .chart-wrapper .title {
        color: #e8f7ff !important;
    }

    .dashboard-section .revenue-overview {
        grid-template-columns: minmax(200px, 280px) 1fr !important;
        align-items: stretch;
    }

    .fault-stats,
    .revenue-stats {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .dashboard-section .revenue-stats {
        grid-template-columns: 1fr !important;
    }

    .stat-item {
        text-align: left !important;
        padding: 16px 18px !important;
        background: rgba(6, 14, 28, 0.7) !important;
        border: 1px solid rgba(56, 189, 248, 0.14) !important;
        border-radius: 12px !important;
    }

    .stat-item label {
        color: #8fa3bf !important;
        font-size: 12px !important;
        letter-spacing: 0.06em;
        margin-bottom: 8px !important;
    }

    .stat-item span {
        font-family: 'Orbitron', 'Rajdhani', sans-serif !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #e8f7ff !important;
        letter-spacing: 0.04em !important;
    }

    .recent-list {
        background: rgba(6, 14, 28, 0.55) !important;
        border: 1px solid rgba(56, 189, 248, 0.12) !important;
        border-radius: 12px !important;
        padding: 8px !important;
        min-height: 120px;
    }

    .fault-list h4 {
        color: #8fa3bf !important;
        font-size: 12px !important;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .revenue-chart {
        height: 320px !important;
        min-height: 320px;
        width: 100%;
        background: rgba(6, 14, 28, 0.35);
        border-radius: 12px;
        border: 1px solid rgba(56, 189, 248, 0.1);
        padding: 8px;
        box-sizing: border-box;
    }

    /* ===== 表格 ===== */
    .table-wrapper {
        background: rgba(10, 18, 34, 0.9) !important;
        border-color: rgba(56, 189, 248, 0.14) !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    }

    .data-table {
        background: transparent !important;
    }

    .data-table th {
        background: rgba(14, 28, 52, 0.95) !important;
        color: #7dd3fc !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.16) !important;
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif !important;
        letter-spacing: 0.08em !important;
        font-weight: 700 !important;
        padding: 13px 16px !important;
    }

    .data-table td {
        border-bottom-color: rgba(56, 189, 248, 0.08) !important;
        color: #cbd5e1;
        padding: 12px 16px !important;
    }

    .data-table tbody tr:hover {
        background: rgba(56, 189, 248, 0.08) !important;
    }

    tr.fault {
        background: rgba(251, 113, 133, 0.08) !important;
    }

    /* ===== 状态 / 按钮 ===== */
    .status.online,
    .status.active {
        background: rgba(52, 211, 153, 0.14) !important;
        color: #34d399 !important;
        box-shadow: 0 0 12px rgba(52, 211, 153, 0.12);
    }

    .status.offline,
    .status.inactive {
        background: rgba(100, 116, 139, 0.2) !important;
        color: #94a3b8 !important;
    }

    .status.fault {
        background: rgba(251, 113, 133, 0.14) !important;
        color: #fb7185 !important;
    }

    .btn-add,
    .btn-primary {
        background: linear-gradient(135deg, #0ea5e9, #2dd4bf) !important;
        border: none !important;
        color: #041016 !important;
        font-weight: 700 !important;
        box-shadow: 0 0 18px rgba(56, 189, 248, 0.25) !important;
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif !important;
        letter-spacing: 0.06em;
        border-radius: 9px !important;
    }

    .btn-add:hover,
    .btn-primary:hover {
        background: linear-gradient(135deg, #38bdf8, #5eead4) !important;
        box-shadow: 0 0 26px rgba(56, 189, 248, 0.4) !important;
    }

    .btn-warning {
        background: rgba(251, 191, 36, 0.12) !important;
        color: #fbbf24 !important;
        border: 1px solid rgba(251, 191, 36, 0.35) !important;
    }

    .btn-danger {
        background: rgba(251, 113, 133, 0.12) !important;
        color: #fb7185 !important;
        border: 1px solid rgba(251, 113, 133, 0.35) !important;
    }

    .btn-export,
    .btn-export-secondary,
    .btn-ghost {
        background: rgba(10, 18, 34, 0.9) !important;
        color: #7dd3fc !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
    }

    .btn-export:hover,
    .btn-export-secondary:hover,
    .btn-ghost:hover {
        background: rgba(56, 189, 248, 0.12) !important;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
    }

    .data-table .btn-group button,
    .data-table button {
        background: rgba(10, 18, 34, 0.9) !important;
        border: 1px solid rgba(56, 189, 248, 0.2) !important;
        color: #8fa3bf !important;
    }

    .data-table .btn-group .btn-edit:hover,
    .data-table button:first-child:hover {
        color: #041016 !important;
        background: #38bdf8 !important;
        border-color: #38bdf8 !important;
    }

    .data-table .btn-group .btn-delete:hover,
    .data-table button:last-child:hover {
        color: #fff !important;
        background: #fb7185 !important;
        border-color: #fb7185 !important;
    }

    /* ===== 表单 / 弹窗 ===== */
    input,
    select,
    textarea {
        background: rgba(6, 12, 24, 0.9) !important;
        border-color: rgba(56, 189, 248, 0.2) !important;
        color: #e8eef7 !important;
        border-radius: 9px !important;
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #38bdf8 !important;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14) !important;
    }

    input::placeholder,
    textarea::placeholder {
        color: #64748b !important;
    }

    .modal {
        background: rgba(2, 6, 14, 0.72) !important;
        backdrop-filter: blur(8px);
    }

    .modal-content,
    .modal-dialog,
    .modal .dialog,
    .modal-box {
        background: linear-gradient(165deg, #121c32, #0a1426) !important;
        border: 1px solid rgba(56, 189, 248, 0.28) !important;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.08) !important;
        color: #e8eef7 !important;
        border-radius: 16px !important;
    }

    .modal-header,
    .modal-title,
    .modal h3,
    .modal h2,
    .modal-content .modal-header {
        color: #e8f7ff !important;
        border-bottom-color: rgba(56, 189, 248, 0.14) !important;
        background: transparent !important;
        font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
        letter-spacing: 0.06em;
    }

    .message {
        background: rgba(12, 20, 36, 0.96) !important;
        border: 1px solid rgba(56, 189, 248, 0.28) !important;
        color: #e8eef7 !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
    }

    .message.success { border-color: rgba(52, 211, 153, 0.45) !important; }
    .message.error { border-color: rgba(251, 113, 133, 0.45) !important; }

    /* 滚动条 */
    .content::-webkit-scrollbar,
    .menu-list::-webkit-scrollbar,
    .table-wrapper::-webkit-scrollbar { width: 8px; height: 8px; }
    .content::-webkit-scrollbar-track,
    .menu-list::-webkit-scrollbar-track,
    .table-wrapper::-webkit-scrollbar-track { background: rgba(6, 12, 24, 0.7); }
    .content::-webkit-scrollbar-thumb,
    .menu-list::-webkit-scrollbar-thumb,
    .table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(56, 189, 248, 0.3);
        border-radius: 8px;
    }
    .content::-webkit-scrollbar-thumb:hover,
    .menu-list::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.5); }

    .tab.active,
    .tabs .active {
        color: #38bdf8 !important;
        border-bottom-color: #38bdf8 !important;
    }

    .fault-item {
        border-color: rgba(56, 189, 248, 0.1) !important;
        background: rgba(6, 12, 24, 0.45) !important;
    }

    .no-data { color: #64748b !important; }

    .trend.up,
    .stat-trend.up {
        background: rgba(52, 211, 153, 0.14) !important;
        color: #34d399 !important;
        border-radius: 8px;
        padding: 3px 10px;
    }

    .trend.down,
    .stat-trend.down {
        background: rgba(251, 113, 133, 0.14) !important;
        color: #fb7185 !important;
        border-radius: 8px;
        padding: 3px 10px;
    }

    .date-navigator {
        background: rgba(6, 12, 24, 0.9) !important;
        border-color: rgba(56, 189, 248, 0.2) !important;
    }

    .date-navigator .nav-btn:hover {
        background: rgba(56, 189, 248, 0.12) !important;
        color: #38bdf8 !important;
    }

    .form-group label { color: #8fa3bf !important; }

    /* 公众号页 */
    .wechat-bind-page .page-header h2,
    .pref-title, .qrcode-title, .pref-name,
    .status-info .status-title { color: #e8eef7 !important; }

    .wechat-bind-page .page-subtitle,
    .pref-desc, .qrcode-sub,
    .status-info .status-desc, .qrcode-tip { color: #8fa3bf !important; }

    .bind-card, .pref-card, .qrcode-card {
        background: linear-gradient(165deg, rgba(16, 28, 52, 0.95), rgba(10, 18, 36, 0.96)) !important;
        border: 1px solid rgba(56, 189, 248, 0.16) !important;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3) !important;
    }

    .pref-item { border-bottom-color: rgba(56, 189, 248, 0.1) !important; }

    .qrcode-wrap {
        background: rgba(6, 12, 24, 0.9) !important;
        border-color: rgba(56, 189, 248, 0.2) !important;
    }

    .qrcode-tip p::before { color: #38bdf8 !important; }
    .switch input:checked + .slider { background: #38bdf8 !important; }
    .slider { background: rgba(100, 116, 139, 0.35) !important; }

/* 收益/列表页铺满 + 去掉残留白卡片 */
.revenue-content,
.orders-content,
.devices-content,
.faults-content,
.data-section {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.charts-container {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.m-revenue-card,
.m-group-card,
.m-empty,
.m-toolbar {
    background: linear-gradient(165deg, rgba(16, 28, 52, 0.96), rgba(10, 18, 36, 0.96)) !important;
    border: 1px solid rgba(56, 189, 248, 0.14) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    color: #e8eef7 !important;
}

.m-revenue-head {
    border-bottom-color: rgba(56, 189, 248, 0.12) !important;
}

.m-revenue-date,
.m-revenue-row .value {
    color: #e8f7ff !important;
}

.m-revenue-net {
    color: #67e8f9 !important;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

.m-revenue-row .label,
.m-revenue-foot {
    color: #8fa3bf !important;
    border-top-color: rgba(56, 189, 248, 0.1) !important;
}

.m-data-title {
    color: #7dd3fc !important;
}

.pagination,
.m-pagination {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.page-btn,
.m-page-btn {
    background: rgba(10, 18, 34, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    color: #cfe7ff !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.page-btn:hover:not(:disabled),
.m-page-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #7dd3fc !important;
}

.page-btn.active,
.m-page-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #2dd4bf) !important;
    border-color: transparent !important;
    color: #041016 !important;
    font-weight: 700;
}

.page-btn:disabled,
.m-page-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.page-ellipsis {
    color: #8fa3bf !important;
}

/* 桌面端强制隐藏移动卡片列表 */
.m-page-view {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .m-page-view {
        display: block !important;
    }
    .m-card-list.m-page-view {
        display: flex !important;
    }
    .m-revenue-card,
    .m-group-card,
    .m-empty,
    .m-toolbar {
        background: #fff !important;
        border: 1px solid rgba(238, 240, 244, 0.9) !important;
        color: #1f2937 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }
    .m-empty {
        border-style: dashed !important;
        border-color: #e2e8f0 !important;
        color: #94a3b8 !important;
        box-shadow: none !important;
    }
    .m-revenue-date,
    .m-revenue-row .value { color: #1f2937 !important; }
    .m-revenue-net { color: #4f6ef7 !important; }
    .m-revenue-row .label,
    .m-revenue-foot { color: #8c8c8c !important; }
    .m-data-title { color: #4f6ef7 !important; }
    .charts-container {
        grid-template-columns: 1fr !important;
    }
}

/* 标签页 / 列表页头 — 去掉刺眼白底 */
.tabs {
    background: linear-gradient(165deg, rgba(16, 28, 52, 0.96), rgba(10, 18, 36, 0.96)) !important;
    border: 1px solid rgba(56, 189, 248, 0.16) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.tab-header {
    background: rgba(8, 16, 32, 0.95) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.14) !important;
}

.tab-btn {
    color: #8fa3bf !important;
    background: transparent !important;
}

.tab-btn:hover {
    color: #7dd3fc !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

.tab-btn.active {
    color: #67e8f9 !important;
    background: rgba(56, 189, 248, 0.1) !important;
}

.tab-btn.active::after {
    background: linear-gradient(90deg, #38bdf8, #2dd4bf) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.tab-content {
    background: transparent !important;
    color: #e8eef7 !important;
}

.tab-content .header,
.locations-content .header,
.prices-content .header,
.users-content .header,
.devices-content .header,
.faults-content .header,
.orders-content .header,
.revenue-content .header,
.wechat-bind-page .page-header {
    background: rgba(8, 16, 32, 0.7) !important;
    border: 1px solid rgba(56, 189, 248, 0.12) !important;
    color: #e8eef7 !important;
    box-shadow: none !important;
}

.tab-content .header h2,
.locations-content .header h2,
.prices-content .header h2,
.users-content .header h2,
.devices-content .header h2,
.faults-content .header h2,
.orders-content .header h2,
.revenue-content .header h2 {
    color: #e8f7ff !important;
}

.current-strategy,
.rule-group,
.filter-group,
.strategy-info {
    background: rgba(8, 16, 32, 0.65) !important;
    border-color: rgba(56, 189, 248, 0.12) !important;
    color: #e8eef7 !important;
}

@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: 1fr !important;
    }
    .dash-grid-2 {
        grid-template-columns: 1fr;
    }
    .dashboard-section .revenue-overview {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- 手机端还原浅色 + 布局（盖过上方桌面 !important） ---------- */
@media screen and (max-width: 768px) {
    :root {
        --primary-color: #4f6ef7;
        --primary-light: #eef1ff;
        --primary-soft: #f5f7ff;
        --primary-dark: #3a56d4;
        --secondary-color: #6c5ce7;
        --background-color: #f5f7fb;
        --surface-color: #ffffff;
        --surface-soft: #fafbfd;
        --text-color: #1f2937;
        --text-secondary: #6b7280;
        --text-muted: #9ca3af;
        --border-color: #eef0f4;
        --border-strong: #e3e6ec;
        --sidebar-bg: #ffffff;
        --sidebar-text: #4b5563;
        --sidebar-text-active: #4f6ef7;
        --sidebar-hover: #f5f7ff;
        --sidebar-active-bg: #eef1ff;
        --sidebar-width: 0px;
        --header-height: 60px;
    }

    body {
        background: #f5f7fb;
        color: #1f2937;
        overflow-x: hidden;
    }

    .layout::before,
    .content::before {
        display: none !important;
    }

    /* 科技主题桌面规则带 !important，这里必须强制还原移动端布局 */
    .sidebar {
        display: none !important;
        width: 0 !important;
    }

    .main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .main > .header {
        display: none !important;
    }

    .content {
        padding: 14px 14px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    body.on-dashboard .content {
        padding: 10px 14px 12px !important;
    }

    .m-toolbar,
    .m-group-card,
    .m-order-card,
    .m-list-card,
    .m-revenue-card,
    .m-kanban-card,
    .m-func-card,
    .m-status-card {
        background: #fff !important;
        border: 1px solid rgba(238, 240, 244, 0.9) !important;
        color: #1f2937 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    }

    .m-empty {
        background: #fff !important;
        border: 1px dashed #e2e8f0 !important;
        color: #94a3b8 !important;
        box-shadow: none !important;
    }

    /* 收益页等：强制浅色高对比，避免深色主题残留 */
    .card,
    .stat-card,
    .m-stat-card,
    .chart-wrapper,
    .data-section,
    .table-wrapper,
    .dashboard-section,
    .filters,
    .filter-group {
        background: #fff !important;
        border: 1px solid #eef0f4 !important;
        color: #1f2937 !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
        text-shadow: none !important;
    }

    .revenue-overview .stat-card,
    .revenue-content .stat-card {
        background: #fff !important;
    }

    .stat-title,
    .trend-label,
    .stat-compare .label {
        color: #64748b !important;
    }

    .stat-value,
    .stat-compare .value {
        color: #0f172a !important;
        text-shadow: none !important;
    }

    .m-stat-card .stat-value,
    .revenue-overview .stat-value {
        color: #3d5af1 !important;
    }

    .chart-wrapper h3,
    .chart-wrapper .title,
    .m-data-title,
    .data-section h3 {
        color: #0f172a !important;
    }

    .revenue-content .revenue-overview,
    .m-stat-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    input,
    select,
    textarea,
    .m-select,
    .m-date-input,
    .m-search-input-wrap {
        background: #f4f6fb !important;
        border-color: #e8ebf2 !important;
        color: #1f2937 !important;
        box-shadow: none !important;
    }

    .m-search-input-wrap input {
        background: transparent !important;
        color: #1f2937 !important;
    }

    .date-navigator,
    .date-navigator.m-date-nav {
        background: #f4f6fb !important;
        border: 1px solid #e8ebf2 !important;
        color: #1f2937 !important;
    }

    .date-navigator .nav-btn,
    .date-navigator .nav-label {
        color: #334155 !important;
        background: transparent !important;
    }

    .date-navigator .nav-label {
        color: #3d5af1 !important;
        font-weight: 700 !important;
    }

    .date-navigator .nav-btn-today {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        color: #3d5af1 !important;
    }

    .m-btn-outline {
        background: #fff !important;
        border-color: #e2e8f0 !important;
        color: #475569 !important;
    }

    .dash-grid-2,
    .dashboard-cards,
    .charts-container {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tabs,
    .tab-header,
    .tab-content .header,
    .locations-content .header,
    .prices-content .header,
    .users-content .header {
        background: #fff !important;
        border-color: #eef0f4 !important;
        color: #1f2937 !important;
        box-shadow: none !important;
    }

    .tab-btn { color: #6b7280 !important; }
    .tab-btn.active { color: #4f6ef7 !important; background: transparent !important; }

    .page-btn,
    .m-page-btn {
        background: #fff !important;
        border-color: #e3e6ec !important;
        color: #1f2937 !important;
    }
    .page-btn.active,
    .m-page-btn.active {
        background: #4f6ef7 !important;
        color: #fff !important;
        border-color: #4f6ef7 !important;
    }
}