/* ========================================
   light.css - 浅色主题
   更轻的白灰基底，减少紫色玻璃感
   ======================================== */
:root,
[data-theme="light"] {
    --bg-color: #f7f8fb;
    --bg-secondary: #eef1f6;
    --bg-gradient: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 48%, #eef2f7 100%);

    --text-color: #1f2937;
    --text-secondary: #475467;
    --text-muted: #98a2b3;

    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(15, 23, 42, 0.06);
    --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    --card-hover-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);

    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.08);
    --primary-glow: rgba(59, 130, 246, 0.18);

    --secondary-color: #60a5fa;
    --success-color: #16a34a;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    --input-bg: #ffffff;
    --input-border: rgba(15, 23, 42, 0.08);
    --input-focus: #3b82f6;
    --nav-bg: rgba(255, 255, 255, 0.82);
    --sidebar-bg: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] body {
    background: var(--bg-gradient);
}

[data-theme="light"] body::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    opacity: 0.8;
}

[data-theme="light"] body::after {
    background: radial-gradient(circle, rgba(148, 163, 184, 0.14) 0%, transparent 70%);
    opacity: 0.65;
}

[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .mobile-tab {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #1f2937;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

[data-theme="light"] .btn-outline {
    background: transparent !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    color: #2563eb !important;
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(59, 130, 246, 0.06) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

[data-theme="light"] .stat-card,
[data-theme="light"] .quick-item,
[data-theme="light"] .mat-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .auth-tabs {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .mat-card:hover {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
    background: #fff;
}

[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.08);
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}
