﻿/* ======================================================================
           OA后台 · 新拟态(Soft UI) + 毛玻璃拟态(Glassmorphism) + 霓虹渐变(Neon Gradient)
           ====================================================================== */

        /* ==================== 1. CSS变量体系 ==================== */
        :root {
            /* — 高饱和主色调 — */
            --primary: #2563EB;
            --primary-hover: #1D4ED8;
            --primary-light: rgba(37, 99, 235, 0.12);
            --primary-rgb: 37, 99, 235;
            --accent: #F59E0B;
            --accent-rgb: 245, 158, 11;
            --accent-light: rgba(245, 158, 11, 0.12);
            --success: #10B981;
            --success-rgb: 16, 185, 129;
            --success-light: rgba(16, 185, 129, 0.12);
            --danger: #EF4444;
            --danger-rgb: 239, 68, 68;
            --danger-light: rgba(239, 68, 68, 0.12);
            --warning: #F59E0B;
            --warning-rgb: 245, 158, 11;
            --warning-light: rgba(245, 158, 11, 0.12);
            --info: #3B82F6;
            --info-rgb: 59, 130, 246;
            --info-light: rgba(59, 130, 246, 0.12);
            /* — 辅助色（仪表盘图表等） — */
            --pink: #EC4899;
            --cyan: #06B6D4;
            --olive: #84CC16;
            /* — 中性色（带蓝调） — */
            --bg: #EEF1F5;
            --bg-card: rgba(255, 255, 255, 0.72);
            --bg-card-solid: #FFFFFF;
            --bg-hover: rgba(37, 99, 235, 0.06);
            --bg-subtle: rgba(37, 99, 235, 0.03);
            --bg-disabled: rgba(149, 163, 179, 0.10);
            --text: #2C3A4B;
            --text-secondary: #627489;
            --text-muted: #95A3B3;
            --text-disabled: rgba(149, 163, 179, 0.50);
            --border: rgba(37, 99, 235, 0.13);
            /* — 玻璃拟态变量 — */
            --glass-bg: rgba(255, 255, 255, 0.58);
            --glass-border: rgba(255, 255, 255, 0.35);
            --glass-shadow: 0 8px 32px rgba(37, 99, 235, 0.10);
            --glass-blur: 20px;
            /* — 3D效果变量 — */
            --shadow-sm: 0 2px 8px rgba(44, 58, 75, 0.06);
            --shadow: 0 4px 16px rgba(44, 58, 75, 0.08), 0 1px 4px rgba(44, 58, 75, 0.04);
            --shadow-lg: 0 16px 48px rgba(44, 58, 75, 0.10), 0 4px 12px rgba(44, 58, 75, 0.05);
            --shadow-3d: 0 8px 24px rgba(44, 58, 75, 0.12), 0 2px 8px rgba(44, 58, 75, 0.06);
            --shadow-3d-hover: 0 16px 40px rgba(44, 58, 75, 0.16), 0 4px 12px rgba(44, 58, 75, 0.08);
            /* — 新拟态阴影（Neumorphism） — */
            --neumorph-out: 6px 6px 12px rgba(0,0,0,0.08), -6px -6px 12px rgba(255,255,255,0.7);
            --neumorph-out-sm: 4px 4px 8px rgba(0,0,0,0.06), -4px -4px 8px rgba(255,255,255,0.5);
            --neumorph-in: inset 4px 4px 8px rgba(0,0,0,0.06), inset -4px -4px 8px rgba(255,255,255,0.5);
            /* — 统计卡片高饱和色（Vivid Palette） — */
            --vivid-blue: #2563EB;
            --vivid-amber: #D97706;
            --vivid-green: #059669;
            --vivid-red: #DC2626;
            --vivid-purple: #7C3AED;
            --vivid-cyan: #0891B2;
            --vivid-blue-glow: rgba(37,99,235,0.40);
            --vivid-amber-glow: rgba(217,119,6,0.40);
            --vivid-green-glow: rgba(5,150,105,0.40);
            --vivid-red-glow: rgba(220,38,38,0.40);
            --vivid-purple-glow: rgba(124,58,237,0.40);
            --vivid-cyan-glow: rgba(8,145,178,0.40);
            /* — 霓虹渐变（Neon Gradient — 仅侧边栏等装饰用途） — */
            --neon-card1: linear-gradient(135deg, #2563EB, #06B6D4);
            --neon-card2: linear-gradient(135deg, #3B82F6, #22D3EE);
            --neon-card3: linear-gradient(135deg, #6366F1, #2DD4BF);
            --neon-card4: linear-gradient(135deg, #8B5CF6, #34D399);
            --neon-card5: linear-gradient(135deg, #60A5FA, #6EE7B7);
            --neon-glow1: rgba(37,99,235,0.40);
            --neon-glow2: rgba(6,182,212,0.35);
            /* — 侧边栏 — */
            --sidebar-bg: linear-gradient(175deg, #2C3E56 0%, #344B66 40%, #3D5672 100%);
            --sidebar-glass: rgba(44, 62, 86, 0.85);
            --sidebar-text: rgba(255,255,255,0.72);
            --sidebar-active: rgba(255,255,255,0.92);
            --sidebar-hover: rgba(255,255,255,0.10);
            --sidebar-active-bg: rgba(255,255,255,0.13);
            /* — 顶栏 — */
            --header-bg: rgba(255, 255, 255, 0.62);
            --header-blur: 24px;
            /* — 圆角与动效 — */
            --radius: 12px;
            --radius-sm: 8px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
        }


        /* ==================== 2. 基础重置 ==================== */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            overflow-x: hidden;
            transition: background 0.5s var(--ease-out-quart), color 0.5s var(--ease-out-quart);
            background-image:
                radial-gradient(ellipse at 20% 50%, var(--neon-glow1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, var(--neon-glow2) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 100%, rgba(var(--primary-rgb),0.03) 0%, transparent 40%);
            background-attachment: fixed;
        }

        /* ==================== 3. 侧边栏（玻璃拟态） ==================== */
        .sidebar {
            width: 260px;
            min-height: 100vh;
            background: var(--sidebar-bg);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            display: flex;
            flex-direction: column;
            transition: width var(--transition);
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            z-index: 100;
            overflow: hidden;
            border-right: 1px solid rgba(255,255,255,0.06);
        }

        .sidebar.collapsed { width: 72px; overflow: visible; }

        .sidebar-header {
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            min-height: 68px;
            position: relative;
        }
        .sidebar-header::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 20px;
            right: 20px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
        }

        .sidebar-logo {
            width: 75px;
            height: 40px;
            border-radius: 10px;
            overflow: hidden;
            flex-shrink: 0;
            transition: transform 0.25s var(--ease-out-quart);
        }
        .sidebar-logo:hover { transform: scale(1.05); }
        .sidebar-logo img { width: 100%; height: 100%; object-fit: contain; }
        .sidebar-logo svg { width: 20px; height: 20px; fill: white; }
        .sidebar-logo .default-logo {
            width: 100%; height: 100%;
            background: var(--neon-card1);
            display: flex; align-items: center; justify-content: center;
        }

        .sidebar-title {
            color: rgba(255,255,255,0.92);
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 0.3px;
            white-space: nowrap;
            overflow: hidden;
            transition: opacity var(--transition);
        }

        .sidebar-mobile-close { display: none; }

        .sidebar.collapsed .sidebar-title { opacity: 0; width: 0; }

        .sidebar-nav {
            flex: 1;
            padding: 12px 8px;
            overflow-y: auto;
            overflow-x: hidden;
        }
        .sidebar.collapsed .sidebar-nav { overflow: visible; padding: 12px 0; }
        .sidebar.collapsed .sidebar-nav::-webkit-scrollbar { width: 0; }
        .sidebar-nav::-webkit-scrollbar { width: 4px; }
        .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

        .nav-group { margin-bottom: 2px; }

        .nav-group-title {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            color: var(--sidebar-text);
            font-size: 14px;
            font-weight: 500;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s var(--ease-out-quart);
            white-space: nowrap;
            user-select: none;
            position: relative;
        }

        .nav-group-title:hover { background: var(--sidebar-hover); color: rgba(255,255,255,0.95); }
        .nav-group-title.active {
            background: rgb(255,255,255,0.27);
            color: var(--sidebar-active);
            font-weight: 600;
        }
        .nav-group-title.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: var(--neon-card1);
            border-radius: 0 3px 3px 0;
            box-shadow: none;
            transition: box-shadow 0.3s var(--ease-out-quart);
        }
        .nav-group-title.active:hover::before {
            box-shadow: 0 0 8px var(--neon-glow1);
        }

        .nav-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.85;
        }

        .nav-icon svg { width: 20px; height: 20px; fill: currentColor; }

        .nav-text { transition: opacity var(--transition); }
        .sidebar.collapsed .nav-text { opacity: 0; width: 0; }

        .nav-arrow {
            margin-left: auto;
            width: 16px;
            height: 16px;
            transition: transform 0.25s var(--ease-out-quart);
            opacity: 0.5;
        }

        .nav-arrow svg { width: 16px; height: 16px; fill: currentColor; }
        .nav-group.open .nav-arrow { transform: rotate(90deg); opacity: 0.7; }
        .sidebar.collapsed .nav-arrow { display: none; }

        .nav-children {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s var(--ease-out-quart);
        }

        .nav-group.open .nav-children { max-height: 500px; }
        .sidebar.collapsed .nav-children { max-height: 0 !important; overflow: hidden !important; }

        .nav-child {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px 8px 44px;
            color: var(--sidebar-text);
            font-size: 13px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s var(--ease-out-quart);
            white-space: nowrap;
            position: relative;
        }

        .nav-child:hover { background: var(--sidebar-hover); color: rgba(255,255,255,0.92); }
        .nav-child.active {
            background: var(--sidebar-active-bg);
            color: rgba(255,255,255,0.95);
            font-weight: 600;
        }
        .nav-child.active::before {
            content: '';
            position: absolute;
            left: 28px;
            top: 50%;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            background: var(--neon-card1);
            border-radius: 50%;
            box-shadow: none;
            transition: box-shadow 0.3s var(--ease-out-quart);
        }
        .nav-child.active:hover::before {
            box-shadow: 0 0 8px var(--neon-glow1);
        }

        /* 嵌套子目录样式 */
        .nav-sub-group { }
        .nav-sub-title {
            cursor: pointer;
            font-weight: 600;
            padding-left: 48px !important;
        }
        .nav-sub-title .nav-arrow svg { transition: transform 0.3s var(--ease-out-quart); }
        .nav-sub-group.open > .nav-sub-title .nav-arrow svg { transform: rotate(90deg); }
        .nav-sub-group > .nav-children { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out-quart); }
        .nav-sub-group.open > .nav-children { max-height: 300px; }
        .nav-sub-group > .nav-children .nav-child { padding-left: 60px; font-size: 13px; }

        .sidebar.collapsed .nav-child { padding-left: 12px; }

        /* ===== 收纳模式：悬停浮层菜单（玻璃拟态） ===== */
        .sidebar.collapsed .nav-group { position: relative; }
        .sidebar.collapsed .nav-group-title { justify-content: center; padding: 10px 0; }
        .sidebar.collapsed .nav-group-title .nav-icon { margin: 0; opacity: 1; }
        .sidebar.collapsed .nav-group:hover > .nav-flyout,
        .nav-flyout.show-flyout {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .nav-flyout {
            display: none;
            position: fixed;
            min-width: 180px;
            background: var(--sidebar-glass);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 8px 4px 32px rgba(0,0,0,0.25);
            padding: 8px 0;
            z-index: 9999;
            opacity: 0;
            transform: translateY(-4px) scale(0.97);
            pointer-events: none;
            animation: flyoutIn 0.25s var(--ease-out-quart) forwards;
        }
        @keyframes flyoutIn {
            from { opacity: 0; transform: translateY(-4px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .nav-flyout-title {
            padding: 8px 16px 6px;
            font-size: 11px;
            font-weight: 600;
            color: rgba(255,255,255,0.4);
            letter-spacing: 1.5px;
            text-transform: uppercase;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            margin-bottom: 4px;
        }
        .nav-flyout-group-title {
            padding: 6px 16px;
            font-size: 13px;
            font-weight: 600;
            color: rgba(255,255,255,0.7);
            cursor: default;
        }
        .nav-flyout-item {
            padding: 8px 16px;
            font-size: 13px;
            color: var(--sidebar-text);
            cursor: pointer;
            border-radius: 6px;
            margin: 0 4px;
            transition: all 0.15s var(--ease-out-quart);
            white-space: nowrap;
        }
        .nav-flyout-item:hover { background: var(--sidebar-hover); color: rgba(255,255,255,0.92); }
        .nav-flyout-item.active { background: var(--sidebar-active-bg); color: rgba(255,255,255,0.95); font-weight: 600; }

        /* ==================== 4. 主内容区 ==================== */
        .main-wrapper {
            flex: 1;
            margin-left: 260px;
            transition: margin-left var(--transition);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .sidebar.collapsed ~ .main-wrapper { margin-left: 72px; }

        /* 顶部导航栏（玻璃拟态） */
        .header {
            height: 68px;
            background: var(--header-bg);
            backdrop-filter: blur(var(--header-blur));
            -webkit-backdrop-filter: blur(var(--header-blur));
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            position: sticky;
            top: 0;
            z-index: 50;
            transition: background 0.4s;
        }

        .header-left { display: flex; align-items: center; gap: 16px; }

        .collapse-btn {
            width: 36px; height: 36px;
            border: none;
            background: transparent;
            border-radius: var(--radius-sm);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            color: var(--text-secondary);
            transition: all 0.2s var(--ease-out-quart);
        }
        .collapse-btn:hover { background: var(--bg-hover); color: var(--text); transform: scale(1.05); }
        .collapse-btn svg { width: 20px; height: 20px; fill: currentColor; }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 400;
        }
        .breadcrumb span { color: var(--text); font-weight: 600; }

        .header-right { display: flex; align-items: center; gap: 8px; }

        .header-btn {
            width: 38px; height: 38px;
            border: none;
            background: var(--bg-hover);
            border-radius: var(--radius-sm);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            color: var(--text-secondary);
            transition: all 0.2s var(--ease-out-quart);
            position: relative;
        }
        .header-btn:hover { background: var(--primary-light); color: var(--primary); transform: translateY(-1px); }
        .header-btn svg { width: 20px; height: 20px; fill: currentColor; }

        .notification-dot {
            position: absolute;
            top: 7px; right: 7px;
            width: 8px; height: 8px;
            background: var(--danger);
            border-radius: 50%;
            box-shadow: none;
            transition: box-shadow 0.3s var(--ease-out-quart);
        }
        .header-btn:hover .notification-dot {
            box-shadow: 0 0 8px var(--neon-glow2);
        }

        .user-menu {
            display: flex; align-items: center; gap: 10px;
            padding: 6px 14px 6px 6px;
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.2s var(--ease-out-quart);
            background: transparent;
        }
        .user-menu:hover { background: var(--bg-hover); }

        .user-avatar {
            width: 34px; height: 34px;
            background: var(--neon-card1);
            border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 600;
            box-shadow: none;
            transition: box-shadow 0.3s var(--ease-out-quart);
        }
        .user-menu:hover .user-avatar {
            box-shadow: 0 3px 12px var(--neon-glow1);
        }

        .user-info { line-height: 1.3; }
        .user-name { font-size: 13px; font-weight: 600; color: var(--text); }
        .user-role { font-size: 11px; color: var(--text-muted); }

        /* 下拉菜单 */
        .dropdown { position: relative; }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 200px;
            background: rgba(255, 255, 255, 0.88);
            -webkit-backdrop-filter: blur(28px) saturate(200%);
            backdrop-filter: blur(28px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
            padding: 6px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px) scale(0.97);
            transition: all 0.25s var(--ease-out-quart);
            z-index: 200;
        }

        [data-theme-mode="dark"] .dropdown-menu {
            background: rgba(30, 30, 40, 0.88);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        }

        .dropdown.open .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .dropdown-item {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px;
            font-size: 13px;
            color: var(--text);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: background 0.15s;
        }
        .dropdown-item:hover { background: var(--bg-hover); }
        .dropdown-item svg { width: 16px; height: 16px; fill: var(--text-secondary); }
        .dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
        .dropdown-item.danger { color: var(--danger); }
        .dropdown-item.danger svg { fill: var(--danger); }

        /* ==================== 5. 内容区 ==================== */
        .content {
            flex: 1;
            padding: 28px;
            overflow-x: hidden;
        }

        .page { display: none; }
        .page.active { display: block; animation: fadeIn 0.4s var(--ease-out-quart); }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==================== 6. 通用组件（玻璃拟态 + 3D） ==================== */

        /* — 卡片（玻璃拟态） — */
        .card {
            background: var(--bg-card);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s var(--ease-out-quart);
        }
        .card:hover {
            box-shadow: var(--neumorph-out);
            transform: translateY(-2px);
        }

        .card-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 17px;
            font-weight: 600;
            color: var(--text);
            letter-spacing: -0.2px;
        }

        /* — 统计卡片（渐变色彩 + 玻璃拟态） — */
        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }
        /* 两行统计布局：固定每排4个，上下两排 */
        .stat-grid-2row {
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: auto auto;
            gap: 12px 14px;
        }
        .stat-grid-2row .stat-card { padding: 16px 18px; }
        .stat-grid-2row .stat-card .stat-icon { width: 44px; height: 44px; }
        .stat-grid-2row .stat-card .stat-icon svg { width: 22px; height: 22px; }

        .stat-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: none;
            padding: 22px;
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: var(--shadow-sm);
            transition: all 0.35s var(--ease-out-quart);
            position: relative;
            overflow: hidden;
        }
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--stat-gradient, linear-gradient(135deg, #2563EB, #3B82F6));
            opacity: 0.10;
            transition: opacity 0.35s var(--ease-out-quart);
            z-index: 0;
        }
        /* 渐变色分配（每个卡片一种渐变） */
        .stat-card:nth-child(1)::before { background: linear-gradient(135deg, #2563EB, #60A5FA); }
        .stat-card:nth-child(2)::before { background: linear-gradient(135deg, #D97706, #FBBF24); }
        .stat-card:nth-child(3)::before { background: linear-gradient(135deg, #059669, #34D399); }
        .stat-card:nth-child(4)::before { background: linear-gradient(135deg, #DC2626, #F87171); }
        .stat-card:nth-child(5)::before { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
        .stat-card:nth-child(6)::before { background: linear-gradient(135deg, #0891B2, #22D3EE); }
        .stat-card:nth-child(7)::before { background: linear-gradient(135deg, #EC4899, #F472B6); }
        .stat-card:nth-child(8)::before { background: linear-gradient(135deg, #84CC16, #A3E635); }
        .stat-card:nth-child(9)::before { background: linear-gradient(135deg, #F97316, #FB923C); }
        .stat-card:nth-child(10)::before { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
        .stat-card:hover {
            transform: translateY(-4px) scale(1.01);
            box-shadow: var(--shadow-3d);
        }
        .stat-card:hover::before { opacity: 0.20; }

        .stat-icon {
            width: 52px; height: 52px;
            border-radius: var(--radius);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
            position: relative;
            z-index: 1;
        }
        .stat-card:hover .stat-icon { transform: scale(1.08) rotate(-3deg); }
        .stat-icon svg { width: 26px; height: 26px; fill: white; }

        .stat-icon.blue { background: linear-gradient(135deg, #2563EB, #60A5FA); box-shadow: 0 4px 14px rgba(37,99,235,0.25); }
        .stat-icon.amber { background: linear-gradient(135deg, #D97706, #FBBF24); box-shadow: 0 4px 14px rgba(217,119,6,0.25); }
        .stat-icon.green { background: linear-gradient(135deg, #059669, #34D399); box-shadow: 0 4px 14px rgba(5,150,105,0.25); }
        .stat-icon.red { background: linear-gradient(135deg, #DC2626, #F87171); box-shadow: 0 4px 14px rgba(220,38,38,0.25); }
        .stat-icon.purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); box-shadow: 0 4px 14px rgba(124,58,237,0.25); }
        .stat-icon.cyan { background: linear-gradient(135deg, #0891B2, #22D3EE); box-shadow: 0 4px 14px rgba(8,145,178,0.25); }
        .stat-icon.pink { background: linear-gradient(135deg, #EC4899, #F472B6); box-shadow: 0 4px 14px rgba(236,72,153,0.25); }
        .stat-icon.olive { background: linear-gradient(135deg, #84CC16, #A3E635); box-shadow: 0 4px 14px rgba(132,204,22,0.25); }
        .stat-icon.orange { background: linear-gradient(135deg, #F97316, #FB923C); box-shadow: 0 4px 14px rgba(249,115,22,0.25); }
        .stat-icon.sky { background: linear-gradient(135deg, #0EA5E9, #38BDF8); box-shadow: 0 4px 14px rgba(14,165,233,0.25); }
        .stat-icon.violet { background: linear-gradient(135deg, #8B5CF6, #C084FC); box-shadow: 0 4px 14px rgba(139,92,246,0.25); }
        .stat-card:hover .stat-icon.blue { box-shadow: 0 6px 20px rgba(37,99,235,0.40); }
        .stat-card:hover .stat-icon.amber { box-shadow: 0 6px 20px rgba(217,119,6,0.40); }
        .stat-card:hover .stat-icon.green { box-shadow: 0 6px 20px rgba(5,150,105,0.40); }
        .stat-card:hover .stat-icon.red { box-shadow: 0 6px 20px rgba(220,38,38,0.40); }
        .stat-card:hover .stat-icon.purple { box-shadow: 0 6px 20px rgba(124,58,237,0.40); }
        .stat-card:hover .stat-icon.cyan { box-shadow: 0 6px 20px rgba(8,145,178,0.40); }
        .stat-card:hover .stat-icon.pink { box-shadow: 0 6px 20px rgba(236,72,153,0.40); }
        .stat-card:hover .stat-icon.olive { box-shadow: 0 6px 20px rgba(132,204,22,0.40); }
        .stat-card:hover .stat-icon.orange { box-shadow: 0 6px 20px rgba(249,115,22,0.40); }
        .stat-card:hover .stat-icon.sky { box-shadow: 0 6px 20px rgba(14,165,233,0.40); }
        .stat-card:hover .stat-icon.violet { box-shadow: 0 6px 20px rgba(139,92,246,0.40); }

        .stat-info { flex: 1; position: relative; z-index: 1; }
        .stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
        .stat-value { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }

        /* ===== 综合概览 - 6组分卡 ===== */
        .ov-group-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
        }
        .ov-group-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            overflow: hidden;
            position: relative;
            opacity: 0;
            animation: ovGroupIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
            transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
        }
        .ov-group-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
        }
        @keyframes ovGroupIn {
            from { opacity: 0; transform: translateY(20px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        /* 光泽扫过 */
        .ov-group-card::after {
            content: ''; position: absolute; inset: 0; pointer-events: none;
            background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
            background-size: 200% 100%; opacity: 0; transition: opacity 0.3s;
        }
        .ov-group-card:hover::after { opacity: 1; animation: ovShimmer 0.8s ease forwards; }
        @keyframes ovShimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }

        .ov-group-header {
            padding: 14px 18px; display: flex; align-items: center; gap: 10px;
            border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
        }
        .ov-group-header::before {
            content: ''; position: absolute; inset: 0;
            background: var(--gg); opacity: 0.07; z-index: 0;
        }
        .ov-group-icon {
            font-size: 20px; display: inline-block; position: relative; z-index: 1;
            transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }
        .ov-group-card:hover .ov-group-icon { transform: scale(1.15) rotate(-5deg); }
        .ov-group-title {
            font-size: 14px; font-weight: 700; letter-spacing: 0.3px; position: relative; z-index: 1;
        }

        .ov-group-body {
            padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
        }
        /* 2项时居中（内训项目只有2项） */
        .ov-group-body:has(.ov-group-item:nth-child(2):last-child) {
            grid-template-columns: 1fr 1fr;
        }
        /* 3项时前2个占一排，第3个跨两列 */
        .ov-group-item:nth-child(3):last-child {
            grid-column: 1 / -1;
        }
        .ov-group-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 8px 10px; border-radius: 10px; position: relative;
            opacity: 0; animation: ovItemIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
            transition: background 0.2s, transform 0.2s;
            flex-wrap: wrap;
        }
        .ov-group-item:hover { background: rgba(var(--primary-rgb),0.04); transform: translateX(3px); }
        @keyframes ovItemIn {
            from { opacity: 0; transform: translateX(-8px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .ov-item-left { display: flex; flex-direction: column; gap: 2px; }
        .ov-item-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
        .ov-item-sub { font-size: 11px; color: var(--text-muted); }
        .ov-item-right { display: flex; align-items: baseline; gap: 3px; }
        .ov-item-val { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
        .ov-item-val--hl { color: var(--primary); }
        .ov-item-unit { font-size: 11px; color: var(--text-muted); font-weight: 400; }
        /* 金额项特殊样式 */
        .ov-item--money .ov-item-val { font-size: 15px; font-weight: 600; color: var(--text); }
        /* 进度条 */
        .ov-item-bar {
            display: flex; align-items: center; gap: 8px; margin-top: 2px;
        }
        .ov-item-bar-track {
            flex: 1; height: 6px; background: rgba(var(--primary-rgb),0.10); border-radius: 3px; overflow: hidden;
        }
        .ov-item-bar-fill {
            height: 100%; background: var(--neon-card1); border-radius: 3px; width: 0%;
            transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
        }
        .ov-item-bar-text { font-size: 11px; color: var(--primary); font-weight: 600; min-width: 32px; text-align: right; }
        /* 3项最后一项居中 */
        .ov-group-item:nth-child(3):last-child { justify-content: center; gap: 12px; }
        .ov-group-item:nth-child(3):last-child .ov-item-val { font-size: 20px; }

        /* 响应式 */
        @media (max-width: 1200px) { .ov-group-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 768px) { .ov-group-grid { grid-template-columns: 1fr; } }

        /* — 报销管理 - 费用明细行 — */
        .expense-item-row {
            display: flex; gap: 10px; align-items: flex-end; margin-bottom: 12px;
            padding: 12px;
            background: var(--bg-card);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            animation: fadeInUp 0.3s var(--ease-out-quart);
        }
        .expense-item-row .form-group { margin-bottom: 0 !important; min-width: 0; }
        .expense-item-row .form-group:nth-child(1) { flex: 2; }
        .expense-item-row .form-group:nth-child(2) { flex: 1; }
        .expense-item-row .form-group:nth-child(3) { flex: 1; }
        .expense-item-row .form-group:nth-child(4) { width: 80px; }
        @keyframes fadeInUp { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }

        .expense-total-row {
            display: flex; justify-content: space-between; align-items: center;
            margin-top: 16px; padding: 14px 18px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb),0.06), rgba(var(--primary-rgb),0.04));
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }
        .expense-total-left, .expense-total-right { font-size: 15px; color: var(--text); }

        /* — 报销详情 — */
        .expense-detail-view { padding-right: 4px; }
        .detail-section { margin-bottom: 20px; }
        .detail-section h4 { font-size: 15px; margin-bottom: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; }
        .detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
        .detail-item { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg-hover); border-radius: 6px; }
        .detail-item .dl { color: var(--text-muted); font-size: 13px; }
        .detail-item .dv { font-weight: 500; font-size: 14px; }
        .detail-item .dv.mono { font-family: 'SF Mono', Consolas, monospace; letter-spacing: 0.5px; }
        .detail-table { width: 100%; border-collapse: collapse; }
        .detail-table th { background: var(--bg-hover); padding: 8px 12px; text-align: left; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
        .detail-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }

        /* — 审核时间线 — */
        .audit-timeline { display: flex; align-items: center; padding: 20px 10px; overflow-x: auto; }
        .audit-step { display: flex; flex-direction: column; align-items: center; min-width: 70px; opacity: 0.5; transition: all 0.3s; }
        .audit-step.done { opacity: 1; }
        .audit-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; background: var(--bg-card); box-shadow: var(--shadow-sm); }
        .audit-dot.pass { border-color: var(--success); color: var(--success); background: var(--success-light); box-shadow: none; transition: box-shadow 0.3s var(--ease-out-quart); }
        .audit-dot.fail { border-color: var(--danger); color: var(--danger); background: var(--danger-light); box-shadow: none; transition: box-shadow 0.3s var(--ease-out-quart); }
        .audit-dot.pass:hover { box-shadow: 0 0 8px var(--neon-glow1); }
        .audit-dot.fail:hover { box-shadow: 0 0 8px var(--neon-glow2); }
        .audit-info { text-align: center; margin-top: 6px; }
        .audit-name { font-size: 12px; font-weight: 600; color: var(--text); }
        .audit-status-text { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
        .audit-user { font-size: 11px; color: var(--primary); margin-top: 1px; text-shadow: none; transition: text-shadow 0.3s var(--ease-out-quart); }
        .audit-dot:hover ~ .audit-info .audit-user { text-shadow: 0 0 6px var(--neon-glow1); }
        .audit-line { flex: 0 0 30px; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 28px; }

        /* — 按钮（3D按压效果 + 多色彩） — */
        .btn {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 9px 18px;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s var(--ease-out-quart);
            font-family: inherit;
            white-space: nowrap;
            position: relative;
            box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
        }
        .btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
        .btn svg { width: 16px; height: 16px; fill: currentColor; }

        .btn-primary {
            background: var(--modal-btn-bg, #2563EB);
            color: white;
        }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.30); }

        .btn-success {
            background: var(--modal-btn-success, #059669);
            color: white;
        }
        .btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.30); }

        .btn-danger {
            background: var(--modal-btn-danger, #DC2626);
            color: white;
        }
        .btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.30); }

        .btn-warning {
            background: var(--accent, #F59E0B);
            color: white;
            border: none;
        }
        .btn-warning:hover {
            background: var(--danger, #EF4444);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(239,68,68,0.30);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            box-shadow: none;
        }
        .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

        .btn-sm { padding: 5px 10px; font-size: 12px; }
        .btn-primary-sm {
            padding: 8px 18px; font-size: 13px; font-weight: 600;
            background: var(--primary); color: white; border: none;
            border-radius: 8px; cursor: pointer; font-family: inherit;
            box-shadow: 0 4px 14px var(--primary-25);
            transition: all 0.25s var(--ease-out-quart);
        }
        .btn-primary-sm:hover {
            transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.30);
        }
        /* 后台管理统一按钮风格 */
        .admin-btn {
            padding: 7px 14px; font-size: 13px; font-weight: 500;
            border-radius: 8px; cursor: pointer; font-family: inherit;
            transition: all 0.2s var(--ease-out-quart); display: inline-flex;
            align-items: center; gap: 4px; border: 1px solid var(--border);
            background: var(--bg-card); color: var(--text-secondary);
        }
        .admin-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb),0.06); }
        .admin-btn-danger { border-color: rgba(var(--danger-rgb),0.3); color: var(--danger); background: rgba(var(--danger-rgb),0.04); }
        .admin-btn-danger:hover { border-color: var(--danger); background: rgba(var(--danger-rgb),0.10); }
        .admin-btn-success { border-color: rgba(var(--success-rgb),0.3); color: var(--success); background: rgba(var(--success-rgb),0.04); }
        .admin-btn-success:hover { border-color: var(--success); background: rgba(var(--success-rgb),0.10); }

        /* — 表格 — */
        .table-wrapper {
            overflow-x: auto;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--bg-card);
            box-shadow: var(--shadow-sm);
            transition: all 0.3s var(--ease-out-quart);
        }
        .table-wrapper:hover {
            box-shadow: var(--neumorph-out);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        thead th {
            background: var(--bg-hover);
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            color: var(--text-muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            border-bottom: 1px solid var(--border);
        }

        tbody td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            color: var(--text);
        }

        tbody tr { transition: none; }
        tbody tr:hover { background: var(--bg-hover); }
        tbody tr:last-child td { border-bottom: none; }

        /* 支出凭单列表对齐记账管理样式（2026-07-24，容器改用与记账管理一致的内联滚动盒，不依赖本 CSS） */
        .acc-list-style { font-size: 13px; }
        .acc-list-style th { padding: 10px 8px; }
        .acc-list-style td { padding: 8px; }

        /* ===== 记账管理风格列表（acc-table-scroll）全局化：支出凭单/客户/培训等模块复用，与银行日记帐完全一致（2026-07-24） =====
           原样式由 accounting.js 运行时注入 document.head，支出凭单页未加载故缺失；此处全局化。 */
        .acc-table-scroll { position: relative; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.15) transparent; }
        .acc-table-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
        .acc-table-scroll::-webkit-scrollbar-track { background: transparent; }
        .acc-table-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
        .acc-table-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
        .acc-scroll-shadow-l { position: absolute; top: 0; left: 0; bottom: 6px; width: 24px; pointer-events: none; z-index: 2; background: linear-gradient(to right, rgba(0,0,0,0.06), transparent); opacity: 0; transition: opacity 0.2s; }
        .acc-scroll-shadow-r { position: absolute; top: 0; right: 0; bottom: 6px; width: 24px; pointer-events: none; z-index: 2; background: linear-gradient(to left, rgba(0,0,0,0.06), transparent); opacity: 0; transition: opacity 0.2s; }
        /* ★ border-collapse:separate + border-spacing:0（collapse 与 sticky 不兼容，导致固定列透底） */
        .acc-table-scroll table { table-layout: auto; border-collapse: separate; border-spacing: 0; }
        .acc-table-scroll td, .acc-table-scroll th { white-space: nowrap; border-bottom: 1px solid #e0e5eb; }
        /* ★ thead 行背景（硬编码不透明色，不用 CSS 变量——--bg-subtle 是 rgba 透明色会导致 sticky 列透底） */
        .acc-table-scroll thead tr { background: #f3f4f8 !important; }
        .acc-table-scroll thead th { border-bottom: 2px solid #e0e5eb; position: sticky !important; top: 0; z-index: 5; background: #f3f4f8 !important; }
        .acc-table-scroll tbody tr { transition: none; }
        .acc-table-scroll tbody tr:hover { background: #f0f1f5 !important; }
        /* ★ 左侧固定列（勾选框）- left:0，width:40px */
        .acc-sticky-l { position: sticky !important; left: 0; z-index: 6; background: #ffffff !important; width: 40px; min-width: 40px; max-width: 40px; padding: 0 !important; text-align: center; vertical-align: middle; }
        .acc-sticky-l input[type="checkbox"] { width: 18px; height: 18px; accent: var(--primary); cursor: pointer; vertical-align: middle; }
        thead .acc-sticky-l { background: #f3f4f8 !important; z-index: 7 !important; }
        tbody tr:hover .acc-sticky-l { background: #ebedf2 !important; }
        /* ★ 左侧第2列（状态/对账）- left:40px，固定宽度90px（内容超长省略号，防止变宽导致 l3 的 sticky left 偏移错位） */
        .acc-sticky-l2 { position: sticky !important; left: 40px; z-index: 6; background: #ffffff !important; width: 90px; min-width: 90px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        thead .acc-sticky-l2 { background: #f3f4f8 !important; z-index: 7 !important; }
        tbody tr:hover .acc-sticky-l2 { background: #ebedf2 !important; }
        /* ★ 左侧第3列（对账，仅银行日记帐）- left:130px（40+90，与 l2 实际固定宽度一致） */
        .acc-sticky-l3 { position: sticky !important; left: 130px; z-index: 6; background: #ffffff !important; }
        thead .acc-sticky-l3 { background: #f3f4f8 !important; z-index: 7 !important; }
        tbody tr:hover .acc-sticky-l3 { background: #ebedf2 !important; }
        /* ★ 右侧固定列-操作（最右） */
        .acc-sticky-r { position: sticky !important; right: 0; z-index: 6; background: #ffffff !important; padding: 8px 6px 8px 8px !important; width: 0; }
        .acc-sticky-r > div { flex-wrap: nowrap !important; }
        thead .acc-sticky-r { background: #f3f4f8 !important; z-index: 7 !important; }
        tbody tr:hover .acc-sticky-r { background: #ebedf2 !important; }

        /* — 标签/Tag（玻璃拟态） — */
        .tag {
            display: inline-flex; align-items: center;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid transparent;
        }

        .tag-blue { background: rgba(var(--primary-rgb),0.12); color: var(--primary); border-color: rgba(var(--primary-rgb),0.15); box-shadow: none; transition: box-shadow 0.2s; }
        .tag-green { background: rgba(var(--primary-rgb),0.12); color: var(--success); border-color: rgba(var(--primary-rgb),0.15); box-shadow: none; transition: box-shadow 0.2s; }
        .tag-red { background: rgba(var(--primary-rgb),0.12); color: var(--danger); border-color: rgba(var(--primary-rgb),0.15); box-shadow: none; transition: box-shadow 0.2s; }
        .tag-amber { background: rgba(var(--primary-rgb),0.12); color: var(--accent); border-color: rgba(var(--primary-rgb),0.15); box-shadow: none; transition: box-shadow 0.2s; }
        .tag-gray { background: rgba(var(--primary-rgb),0.10); color: var(--text-secondary); border-color: rgba(var(--primary-rgb),0.12); box-shadow: none; transition: box-shadow 0.2s; }
        .tag-blue:hover, .tag-green:hover, .tag-red:hover, .tag-amber:hover, .tag-gray:hover { box-shadow: 0 0 8px rgba(var(--primary-rgb),0.15); }

        /* — 迷你审核进度条（列表操作列内嵌） — */
        .mini-audit-progress { display:inline-flex;align-items:center;gap:2px;padding:4px 8px;background:var(--bg-section-alt,#f8f9fc);border:1px solid var(--border-section-alt,#e8ecf2);border-radius:8px;font-size:11px;vertical-align:middle; }
        .mini-audit-progress .map-step { display:flex;align-items:center;gap:3px; }
        .mini-audit-progress .map-dot { width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0; }
        .mini-audit-progress .map-dot-wait { background:#e5e7eb;color:#9ca3af; }
        .mini-audit-progress .map-dot-done { background:#dcfce7;color:#16a34a; }
        .mini-audit-progress .map-dot-fail { background:#fef2f2;color:#dc2626; }
        .mini-audit-progress .map-line { width:20px;height:2px;background:#e5e7eb;border-radius:1px;flex-shrink:0; }
        .mini-audit-progress .map-line-done { background:#86efac; }
        .mini-audit-progress .map-info { display:flex;flex-direction:column;line-height:1.2; }
        .mini-audit-progress .map-label { font-weight:600;color:var(--text-secondary); }
        .mini-audit-progress .map-st { font-size:10px;color:var(--text-muted);max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }

        /* — 模态框（简洁弹窗 — 仅light/dark适配） — */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(44, 58, 75, 0.45);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s var(--ease-out-quart);
        }

        .modal-overlay.show { opacity: 1; visibility: visible; }

        .modal {
            background: var(--modal-bg, #FFFFFF);
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            width: 90%;
            max-width: 640px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 24px 64px rgba(0,0,0,0.18);
            transform: scale(0.94) translateY(12px);
            transition: transform 0.35s var(--ease-out-quart);
        }

        .modal-overlay.show .modal { transform: scale(1) translateY(0); }

        .modal.modal-large { max-width: 900px; max-height: 88vh; }
        .modal.modal-large .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
        .modal.modal-small { max-width: 520px; }
        .modal.modal-xl { max-width: 1060px; max-height: 88vh; }
        .modal.modal-xl .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
        /* ★ v20260617: 合同预览弹窗PC端收窄+H5移动端适配 */
        .modal.modal-xxl { width: 80vw !important; max-width: 80vw !important; max-height: 90vh; }
        .modal.modal-xxl .modal-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; }
        .modal.modal-xxl .modal-header { padding: 10px 14px; flex-shrink: 0; }
        .modal.modal-xxl .modal-footer { padding: 8px 14px; flex-shrink: 0; }
        /* ★ v20260708: 合同列表/历史合同预览弹窗专属收窄样式（不影响其他xxl弹窗） */
        .modal.modal-contract-preview { width: 60vw !important; max-width: 60vw !important; }

        .modal-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
        }

        .modal-title { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }

        .modal-close {
            width: 32px; height: 32px;
            border: none; background: transparent;
            border-radius: var(--radius-sm);
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            color: var(--text-muted);
            transition: all 0.2s var(--ease-out-quart);
        }
        .modal-close:hover { background: var(--bg-hover); color: var(--text); transform: rotate(90deg); }
        .modal-close svg { width: 18px; height: 18px; fill: currentColor; }

        .modal-body { padding: 24px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
        .modal-body::-webkit-scrollbar { width: 6px; }
        .modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
        .modal-body::-webkit-scrollbar-track { background: transparent; }
        .modal-footer {
            display: flex; justify-content: flex-end; gap: 12px;
            padding: 16px 24px;
            border-top: 1px solid var(--border);
        }

        /* — 表单（玻璃拟态输入框） — */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .form-group { margin-bottom: 0; }
        .form-group.full { grid-column: 1 / -1; }

        .form-label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .form-label .required { color: var(--danger); margin-left: 2px; }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 10px 14px;
            background: var(--glass-bg);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text);
            outline: none;
            transition: all 0.25s var(--ease-out-quart);
            font-family: inherit;
            box-shadow: var(--neumorph-in);
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light), 0 0 12px var(--neon-glow1);
            background: var(--bg-card);
        }

        .form-textarea { min-height: 80px; resize: vertical; }

        /* — 会员名额：总名额/已用/剩余 加减控件 — */
        .quota-row {
            display: flex; align-items: stretch; gap: 6px;
        }
        .quota-step {
            flex: 0 0 34px;
            width: 34px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--glass-bg);
            color: var(--primary);
            font-size: 18px; font-weight: 700; line-height: 1;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            user-select: none;
            transition: all 0.2s var(--ease-out-quart);
        }
        .quota-step:hover {
            background: var(--primary-light);
            border-color: var(--primary);
        }
        .quota-step:active { transform: scale(0.94); }
        .quota-row .form-input { text-align: center; -moz-appearance: textfield; }
        .quota-row .form-input::-webkit-outer-spin-button,
        .quota-row .form-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .quota-remaining {
            display: flex; align-items: center;
            min-height: 40px; padding: 0 14px;
            font-size: 16px; font-weight: 700;
            color: var(--success);
            background: var(--glass-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            box-shadow: var(--neumorph-in);
        }

        /* — 动态选项卡 — */
        .dynamic-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

        .dynamic-tab {
            padding: 5px 14px;
            border: 1px solid var(--border);
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s var(--ease-out-quart);
            background: transparent;
            color: var(--text-secondary);
            font-family: inherit;
        }
        .dynamic-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
        .dynamic-tab.active { background: var(--neon-card1); color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.15); transition: all 0.2s var(--ease-out-quart); }
        .dynamic-tab.active:hover { box-shadow: 0 2px 12px var(--neon-glow1); }

        .dynamic-tab-custom { display: flex; align-items: center; gap: 4px; }
        .dynamic-tab-custom input {
            width: 80px; padding: 3px 8px;
            border: 1px solid var(--border); border-radius: 12px;
            font-size: 12px; outline: none; background: transparent; color: var(--text);
        }
        .dynamic-tab-custom input:focus { border-color: var(--primary); }

        /* — 搜索栏 — */
        .toolbar {
            display: flex; align-items: center; justify-content: space-between;
            gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
        }
        .toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .toolbar-right { display: flex; align-items: center; gap: 10px; }

        /* — 会议收支-参会人员统计标签 — */
        .mf-stat-bar { gap: 8px !important; }
        .mf-stat-item {
            display: inline-flex; align-items: center; gap: 4px;
            padding: 4px 10px; border-radius: 6px; font-size: 12px;
            font-weight: 500; white-space: nowrap; line-height: 1.4;
        }
        .mf-stat-item b { font-size: 14px; font-weight: 700; }
        .mf-stat-total { background: rgba(99,102,241,0.12); color: #6366f1; }
        .mf-stat-total b { color: #4f46e5; }
        .mf-stat-remit { background: rgba(59,130,246,0.12); color: #3b82f6; }
        .mf-stat-remit b { color: #2563eb; }
        .mf-stat-onsite { background: rgba(16,185,129,0.12); color: #10b981; }
        .mf-stat-onsite b { color: #059669; }
        .mf-stat-member { background: rgba(245,158,11,0.12); color: #f59e0b; }
        .mf-stat-member b { color: #d97706; }
        .mf-stat-free { background: rgba(107,114,128,0.12); color: #6b7280; }
        .mf-stat-free b { color: #4b5563; }
        .mf-stat-remit-fee { background: rgba(59,130,246,0.10); color: #3b82f6; }
        .mf-stat-remit-fee b { color: #1d4ed8; font-variant-numeric: tabular-nums; }
        .mf-stat-onsite-fee { background: rgba(16,185,129,0.10); color: #10b981; }
        .mf-stat-onsite-fee b { color: #047857; font-variant-numeric: tabular-nums; }
        .mf-stat-divider {
            width: 1px; height: 22px; background: var(--border);
            margin: 0 2px; flex-shrink: 0;
        }

        .search-input {
            padding: 9px 14px 9px 38px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            background: var(--glass-bg);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: var(--text);
            outline: none;
            width: 240px;
            transition: all 0.25s var(--ease-out-quart);
            font-family: inherit;
        }
        .search-input:focus { border-color: var(--primary); width: 300px; box-shadow: 0 0 0 3px var(--primary-light); }

        .search-wrapper { position: relative; }
        .search-wrapper svg {
            position: absolute;
            left: 11px; top: 50%;
            transform: translateY(-50%);
            width: 16px; height: 16px;
            fill: var(--text-muted);
        }
        /* 用户管理-部门/岗位筛选下拉 */
        .user-filter-select {
            width: auto;
            min-width: 130px;
            max-width: 200px;
            padding: 9px 12px;
        }

        /* — 分页 — */
        .pagination {
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 12px;
            padding: 16px 0;
            font-size: 13px;
            color: var(--text-secondary);
        }
        .pagination-btns { display: flex; gap: 4px; flex-wrap: wrap; }

        /* 分页信息文本（补齐基础样式） */
        .page-info {
            font-size: 13px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        /* 分页内下拉与按钮高度对齐到 34px */
        .pagination select.form-input {
            height: 34px;
            line-height: 34px;
            padding: 0 8px;
            width: auto;
            box-sizing: border-box;
        }

        .page-btn {
            min-width: 34px; height: 34px;
            border: 1px solid var(--border);
            background: var(--bg-card);
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 13px;
            color: var(--text);
            transition: all 0.2s var(--ease-out-quart);
            font-family: inherit;
        }
        .page-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
        .page-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
        .page-btn.active { background: var(--neon-card1); color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.15); transition: all 0.2s var(--ease-out-quart); }
        .page-btn.active:hover { box-shadow: 0 2px 12px var(--neon-glow1); }
        .page-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

        /* — 空状态 — */
        .empty-state {
            text-align: center;
            padding: 64px 20px;
            color: var(--text-muted);
        }
        .empty-state svg { width: 64px; height: 64px; fill: var(--text-muted); margin-bottom: 16px; opacity: 0.4; }
        .empty-state p { font-size: 14px; }

        /* — 加载动画 — */
        .loading-spinner {
            display: flex; align-items: center; justify-content: center;
            padding: 48px;
        }
        .spinner-circle {
            width: 36px; height: 36px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ==================== 7. 响应式 ==================== */
        @media (max-width: 1024px) {
            .sidebar { width: 72px; }
            .sidebar .sidebar-title, .sidebar .nav-text, .sidebar .nav-arrow { opacity: 0; width: 0; }
            .sidebar .nav-child { padding-left: 12px; }
            .sidebar .nav-children { max-height: 0; }
            .main-wrapper { margin-left: 72px; }
            .form-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            /* — 侧边栏：全高左侧抽屉（移动端紧凑宽度） — */
            .sidebar {
                width: 65vw;
                max-width: 260px;
                min-width: 200px;
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 200;
            }
            /* ★★★ 终极修复：768px断点下彻底禁用所有全局.collapsed规则 ★★★ */
            /* 全局.sidebar.collapsed有!important(如nav-children)，必须用!important对冲 */
            /* 移动端collapsed=隐藏在左侧(和.sidebar一样)，不能显示72px图标模式 */
            .sidebar.collapsed { width: 65vw; max-width: 260px; min-width: 200px; transform: translateX(-100%); overflow: hidden !important; }
            .sidebar.collapsed .sidebar-title { opacity: 1 !important; width: auto !important; }
            .sidebar.collapsed .sidebar-nav { overflow-y: auto !important; overflow-x: hidden !important; padding: 8px 6px !important; }
            .sidebar.collapsed .sidebar-nav::-webkit-scrollbar { width: 4px !important; }
            .sidebar.collapsed .nav-text { opacity: 1 !important; width: auto !important; }
            .sidebar.collapsed .nav-arrow { opacity: 0.5 !important; width: 16px !important; display: flex !important; }
            .sidebar.collapsed .nav-children { max-height: 0 !important; overflow: hidden !important; }
            .sidebar.collapsed .nav-group.open .nav-children { max-height: 600px !important; overflow: hidden !important; }
            .sidebar.collapsed .nav-sub-group > .nav-children { max-height: 0 !important; overflow: hidden !important; }
            .sidebar.collapsed .nav-sub-group.open > .nav-children { max-height: 300px !important; overflow: hidden !important; }
            .sidebar.collapsed .nav-child { padding-left: 44px !important; }
            .sidebar.collapsed .nav-group { position: static !important; }
            .sidebar.collapsed .nav-group-title { justify-content: flex-start !important; padding: 12px 10px !important; }
            .sidebar.collapsed .nav-group:hover > .nav-flyout,
            .sidebar.collapsed .nav-flyout.show-flyout { display: none !important; }
            .sidebar.collapsed .nav-flyout { display: none !important; }
            .sidebar.collapsed ~ .main-wrapper { margin-left: 0 !important; }
            /* — 移动端侧边栏展开状态（.mobile-open，覆盖collapsed+无collapsed两种情况） — */
            .sidebar.mobile-open {
                transform: translateX(0) !important;
                width: 65vw; max-width: 260px; min-width: 200px; overflow: hidden;
                box-shadow: 4px 0 24px rgba(0,0,0,0.4);
            }
            .sidebar.mobile-open .sidebar-title { opacity: 1; width: auto; }
            .sidebar.mobile-open .nav-text { opacity: 1; width: auto; }
            .sidebar.mobile-open .nav-arrow { opacity: 0.5; width: 16px; display: flex; }
            .sidebar.mobile-open .nav-child { padding-left: 44px; }
            .sidebar.mobile-open .nav-children { max-height: 0; overflow: hidden; }
            .sidebar.mobile-open .nav-group.open .nav-children { max-height: 600px; overflow: hidden; }
            .sidebar.mobile-open .nav-sub-group > .nav-children { max-height: 0; overflow: hidden; }
            .sidebar.mobile-open .nav-sub-group.open > .nav-children { max-height: 300px; overflow: hidden; }
            .sidebar.mobile-open .sidebar-nav { overflow-y: auto; overflow-x: hidden; padding: 8px 6px; }
            .sidebar.mobile-open .nav-flyout { display: none !important; }
            /* — 遮罩层：渐入渐出 — */
            .sidebar-overlay {
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.5);
                z-index: 199;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease, visibility 0.3s ease;
                -webkit-tap-highlight-color: transparent;
                backdrop-filter: blur(2px);
                -webkit-backdrop-filter: blur(2px);
            }
            .sidebar-overlay.active {
                opacity: 1;
                visibility: visible;
            }
            /* — 侧边栏header增强：添加关闭按钮 — */
            .sidebar-header {
                padding: 14px 10px;
                min-height: 52px;
                position: relative;
            }
            .sidebar-mobile-close {
                display: flex;
                position: absolute;
                right: 8px;
                top: 50%;
                transform: translateY(-50%);
                width: 32px;
                height: 32px;
                border-radius: 8px;
                border: 1px solid rgba(255,255,255,0.12);
                background: rgba(255,255,255,0.06);
                color: rgba(255,255,255,0.7);
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: all 0.2s;
                -webkit-tap-highlight-color: transparent;
            }
            .sidebar-mobile-close:active {
                background: rgba(255,255,255,0.15);
                transform: translateY(-50%) scale(0.95);
            }
            .sidebar-mobile-close svg {
                width: 20px;
                height: 20px;
                fill: currentColor;
            }
            /* — 菜单项触摸优化：仅展开时生效 — */
            .sidebar.mobile-open .nav-group-title {
                padding: 12px 10px;
                min-height: 44px;
                font-size: 14px;
                font-weight: 600;
                color: rgba(255,255,255,0.92);
                border-radius: 8px;
                gap: 10px;
            }
            .sidebar.mobile-open .nav-icon {
                width: 20px;
                height: 20px;
            }
            .sidebar.mobile-open .nav-icon svg {
                width: 20px;
                height: 20px;
            }
            .sidebar.mobile-open .nav-child {
                padding: 10px 10px 10px 44px;
                min-height: 42px;
                font-size: 13px;
                color: rgba(255,255,255,0.72);
                border-radius: 8px;
            }
            .sidebar.mobile-open .nav-child:hover {
                color: rgba(255,255,255,0.95);
            }
            .sidebar.mobile-open .nav-sub-title {
                padding-left: 44px !important;
                font-size: 13px;
            }
            .sidebar.mobile-open .nav-sub-group > .nav-children .nav-child {
                padding-left: 56px;
                font-size: 12px;
            }
            .sidebar.mobile-open .nav-arrow {
                width: 20px;
                height: 20px;
            }
            .sidebar.mobile-open .nav-arrow svg {
                width: 20px;
                height: 20px;
            }
            /* — 侧边栏nav区域 — */
            /* — 主内容区 — */
            .main-wrapper { margin-left: 0; }
            /* — 顶部栏 — */
            .header { height: 56px; padding: 0 12px; }
            .header-right { gap: 4px; }
            .header-right .user-info { display: none; }
            /* 隐藏"前台报名页"按钮，移动端可通过其他方式访问 */
            .header-btn[onclick*="register.html"] { display: none; }
            .header-btn { width: 34px; height: 34px; }
            .header-btn svg { width: 18px; height: 18px; }
            .breadcrumb { font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
            /* — 内容区 — */
            .content { padding: 16px; -webkit-tap-highlight-color: transparent; }
            /* — 内容区表格优化 — */
            .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            table { min-width: 600px; }
            /* — 动态Tab换行优化 — */
            .dynamic-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
            .dynamic-tabs::-webkit-scrollbar { display: none; }
            /* — 工具栏筛选行优化 — */
            .toolbar-left { gap: 6px; flex-wrap: wrap; }
            .toolbar select, .toolbar input { max-width: 100%; min-height: 40px; font-size: 16px; }
            /* — 统计卡片2列进一步优化 — */
            .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .stat-grid-2row { grid-template-columns: repeat(2, 1fr); }
            .stat-card { padding: 14px; gap: 10px; }
            .stat-icon { width: 40px; height: 40px; }
            .stat-value { font-size: 22px; }
            /* — 卡片 — */
            .card { padding: 16px; margin-bottom: 14px; }
            .card-header { flex-wrap: wrap; }
            /* — 工具栏 — */
            .toolbar { flex-direction: column; align-items: stretch; }
            .toolbar-left, .toolbar-right { width: 100%; }
            .search-input { width: 100%; }
            .search-input:focus { width: 100%; }
            /* — 模态框 — */
            .modal { width: 96%; max-width: none; border-radius: 12px; }
            .modal.modal-large, .modal.modal-xl, .modal.modal-xxl { max-width: none; }
            .modal-header { padding: 14px 16px; }
            .modal-body { padding: 16px; }
            .modal-footer { padding: 12px 16px; }
            /* ★ v20260617: H5移动端合同预览弹窗适配 */
            .modal.modal-xxl { width: 96vw !important; max-width: 96vw !important; max-height: 85vh; }
            .modal.modal-xxl .modal-body { padding: 10px; }
            .modal.modal-xxl iframe { height: 60vh !important; min-height: 300px; }
            .modal.modal-xxl img { max-height: 55vh !important; }
            /* ★ v20260708: H5移动端合同预览弹窗收窄覆盖 */
            .modal.modal-contract-preview { width: 96vw !important; max-width: 96vw !important; }
            /* — 表单（防iOS缩放） — */
            .form-input, .form-select, .form-textarea { font-size: 16px; }
            /* — 表格 — */
            .table-wrapper { font-size: 12px; }
            thead th, tbody td { padding: 8px 10px; }
            /* — 审核面板优化 — */
            .audit-panel { width: calc(100vw - 24px); right: -12px; max-height: 70vh; overflow-y: auto; }
            /* — 审核面板新结构适配 — */
            .audit-item { padding: 10px 12px; }
            .audit-item .audit-dot { margin-top: 5px; }
            .audit-item-time { font-size: 10px; }
            .audit-header-btn { padding: 4px 6px; }
            /* — 记账弹窗（覆盖内联样式） — */
            .acc-modal-container { max-width: 100vw !important; }
            .acc-form-grid { grid-template-columns: 1fr !important; }
            .acc-field-full { grid-column: span 1 !important; }
            /* — 分页 — */
            .pagination { flex-wrap: wrap; }
            /* — 设置Tab — */
            .settings-tab-btn { font-size: 12px; padding: 6px 12px; }
            /* — 报销行折行 — */
            .expense-item-row { flex-wrap: wrap; }
            /* — 触摸友好 — */
            .btn { min-height: 44px; }
            .form-input, .form-select, .form-textarea { min-height: 44px; }
            /* — 简化GPU负担 — */
            .card { box-shadow: var(--shadow-sm); }
            .stat-card { box-shadow: var(--shadow-sm); }
        }

        @media (max-width: 640px) {
            /* — 侧边栏紧凑适配 — */
            .sidebar, .sidebar.mobile-open, .sidebar.collapsed {
                width: 70vw;
                max-width: 270px;
            }
            .sidebar.mobile-open .nav-group-title {
                padding: 11px 10px;
                min-height: 44px;
                font-size: 13px;
            }
            .sidebar.mobile-open .nav-child {
                padding: 9px 10px 9px 44px;
                min-height: 40px;
                font-size: 13px;
            }
            /* — 顶部栏 — */
            .header { height: 48px; padding: 0 10px; }
            .header-left { gap: 8px; }
            .collapse-btn { width: 30px; height: 30px; }
            .collapse-btn svg { width: 18px; height: 18px; }
            .header-btn { width: 32px; height: 32px; }
            .header-btn svg { width: 16px; height: 16px; }
            .breadcrumb { font-size: 11px; max-width: 120px; }
            /* — 统计卡片(6格→2行3列) — */
            .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
            .stat-grid-2row { grid-template-columns: repeat(3, 1fr); }
            .stat-card { padding: 10px; gap: 6px; }
            .stat-icon { width: 32px; height: 32px; }
            .stat-icon svg { width: 16px; height: 16px; }
            .stat-value { font-size: 16px; }
            .stat-label { font-size: 10px; }
            /* — 卡片 — */
            .card { padding: 12px 10px; margin-bottom: 10px; border-radius: 10px; }
            .card-header { margin-bottom: 12px; }
            .card-title { font-size: 14px; }
            /* — 内容区 — */
            .content { padding: 10px; }
            /* — 工具栏 — */
            .toolbar { gap: 8px; padding: 10px; }
            .toolbar select { max-width: calc(50% - 3px); }
            .toolbar input[type="date"] { max-width: calc(50% - 3px); }
            /* — 按钮 — */
            .btn { min-height: 40px; padding: 8px 14px; }
            .collapse-btn { width: 30px; height: 30px; }
            /* — 模态框底部抽屉增强 — */
            .modal { width: 100%; border-radius: 16px 16px 0 0; max-height: 90vh; align-self: flex-end; }
            .modal-overlay { align-items: flex-end !important; }
            .modal-header { padding: 12px 14px; }
            .modal-body { padding: 12px 14px; }
            .modal-footer { padding: 10px 14px; }
            .modal-title { font-size: 15px; }
            /* — 记账弹窗底部抽屉增强 — */
            .acc-modal-container { border-radius: 16px 16px 0 0 !important; max-height: 90vh !important; width: 100% !important; max-width: 100% !important; }
            .acc-modal-overlay { align-items: flex-end !important; }
            .acc-modal-header { padding: 12px 14px !important; }
            .acc-modal-body { padding: 12px 14px !important; }
            .acc-modal-footer { padding: 10px 14px !important; }
            .acc-form-grid { grid-template-columns: 1fr !important; }
            .acc-field-full { grid-column: span 1 !important; }
            .acc-input, .acc-select, .acc-textarea { font-size: 16px !important; min-height: 40px !important; }
            /* — 表格 — */
            table { min-width: 500px; font-size: 12px; }
            thead th, tbody td { padding: 6px 8px; font-size: 11px; }
            /* — 审核面板 — */
            .audit-panel { width: calc(100vw - 16px); max-height: 80vh; }
            .audit-item { padding: 10px; }
            .audit-item-title { font-size: 13px; }
            /* — 审核面板新结构适配 — */
            .audit-item .audit-dot { margin-top: 4px; }
            .audit-item-time { font-size: 10px; }
            /* — 分页 — */
            .pagination { gap: 2px; }
            .page-btn { min-width: 28px; height: 28px; font-size: 11px; }
            .page-info { font-size: 11px; }
            /* — 下拉菜单 — */
            .dropdown-menu { min-width: 160px; }
            /* — 用户头像 — */
            .user-menu { padding: 4px 8px; }
            .user-avatar { width: 30px; height: 30px; }
            /* — 搜索框 — */
            .search-input { padding: 8px 12px 8px 34px; }
            /* — 动态Tab — */
            .dynamic-tab { padding: 4px 10px; font-size: 11px; }
            /* — 主题选项 — */
            .theme-option { padding: 10px; }
            .theme-preview { width: 40px; height: 40px; }
        }

        @media (max-width: 375px) {
            /* — 侧边栏极小屏适配 — */
            .sidebar, .sidebar.mobile-open, .sidebar.collapsed {
                width: 75vw;
                max-width: 280px;
            }
            /* — 顶部栏 — */
            .header { height: 44px; padding: 0 6px; }
            .collapse-btn { width: 28px; height: 28px; }
            .header-btn { width: 28px; height: 28px; }
            .header-btn svg { width: 14px; height: 14px; }
            .breadcrumb { font-size: 10px; max-width: 100px; }
            /* — 统计卡片 — */
            .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
            .stat-card { padding: 8px; }
            .stat-value { font-size: 14px; }
            /* — 内容区 — */
            .content { padding: 6px; }
            /* — 卡片 — */
            .card { padding: 10px 8px; border-radius: 8px; }
            /* — 模态框 — */
            .modal { max-height: 95vh; }
            /* — 审核面板 — */
            .audit-panel { width: calc(100vw - 8px); }
            /* — 审核面板新结构适配 — */
            .audit-item { padding: 8px 10px; }
        }

        /* ==================== 8. 主题选择样式 ==================== */
        .theme-option {
            display: flex; align-items: center; gap: 12px;
            padding: 12px;
            border-radius: var(--radius);
            border: 2px solid var(--border);
            background: var(--bg-card);
            cursor: pointer;
            transition: all 0.25s var(--ease-out-quart);
        }
        .theme-option:hover {
            border-color: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: var(--shadow-3d);
        }
        .theme-option.active {
            border-color: var(--primary);
            background: var(--primary-light);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .theme-option.active:hover {
            box-shadow: 0 0 0 3px var(--primary-light), 0 0 15px var(--neon-glow1);
        }
        .theme-preview { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
        .theme-info { flex: 1; }
        .theme-name { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 2px; }
        .theme-desc { font-size: 12px; color: var(--text-muted); }

        /* ==================== 9. 基本设置Tab切换 ==================== */
        .settings-tab-btn {
            padding: 8px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
            background: var(--bg-card); color: var(--text-secondary); font-size: 13px;
            font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease-out-quart); font-family: inherit;
            white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .settings-tab-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
        .settings-tab-btn.active {
            background: var(--neon-card1);
            color: #fff; border-color: transparent;
            box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.15);
            transition: all 0.2s var(--ease-out-quart);
        }
        .settings-tab-btn.active:hover {
            box-shadow: 0 4px 16px var(--neon-glow1);
        }

        /* ===== 10. A4合同预览样式（不变） ===== */
        .contract-a4-preview {
            background: #fff; color: #000;
            font-family: "SimSun","宋体","FangSong","仿宋",serif;
            font-size: 14pt; line-height: 1.5;
            padding: 24px 32px; max-height: 65vh; overflow-y: auto;
            border: 1px solid #e0e0e0; border-radius: 4px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }
        .contract-a4-preview .contract-title { font-family: "SimHei","黑体","SimSun",serif; font-size: 22pt; font-weight: bold; text-align: center; line-height: 1.4; margin: 0 0 6pt 0; letter-spacing: 2pt; color: #000; }
        .contract-a4-preview .contract-no { font-size: 12pt; text-align: center; color: #333; margin: 0 0 16pt 0; }
        .contract-a4-preview .contract-party-info { width: 100%; border-collapse: collapse; margin: 0 0 14pt 0; font-size: 12pt; }
        .contract-a4-preview .contract-party-info td { padding: 2pt 0; vertical-align: top; line-height: 1.6; }
        .contract-a4-preview .contract-party-heading { font-weight: bold; font-size: 12pt; margin: 0 0 2pt 0; }
        .contract-a4-preview .contract-party-label { white-space: nowrap; font-weight: normal; text-align: right; padding-right: 6pt; color: #333; }
        .contract-a4-preview .contract-party-value { font-weight: normal; }
        .contract-a4-preview .contract-body-text { text-indent: 2em; text-align: justify; line-height: 1.5; margin: 0 0 4pt 0; }
        .contract-a4-preview .contract-clause-title { text-indent: 2em; text-align: justify; line-height: 1.5; margin: 6pt 0 4pt 0; font-weight: bold; }
        .contract-a4-preview .contract-sub-clause { text-indent: 2em; text-align: justify; line-height: 1.5; margin: 2pt 0; }
        .contract-a4-preview .contract-sub-item { text-indent: 3em; text-align: justify; line-height: 1.5; margin: 2pt 0; }
        .contract-a4-preview .contract-spacer { height: 8pt; }
        .contract-a4-preview .contract-sign-table { width: 100%; border-collapse: collapse; margin-top: 24pt; font-size: 12pt; }
        .contract-a4-preview .contract-sign-table td { width: 50%; vertical-align: top; padding: 5pt 6pt; }
        .contract-a4-preview .contract-sign-label { margin: 6pt 0 0 0; font-size: 12pt; }
        .contract-a4-preview .contract-sign-value { margin: 3pt 0 0 0; font-size: 12pt; border-bottom: 1px solid #333; padding-bottom: 3pt; display: inline-block; min-width: 120pt; }
        .contract-a4-preview .contract-sign-line { margin: 14pt 0 0 0; border-bottom: 1px solid #333; width: 120pt; height: 1pt; }
        .contract-a4-preview .contract-account-table { width: 100%; border-collapse: collapse; margin-top: 16pt; font-size: 11pt; }
        .contract-a4-preview .contract-account-table td { border: 1px solid #999; padding: 3pt 6pt; vertical-align: middle; }
        .contract-a4-preview .contract-account-label { background: #f5f5f5; font-weight: bold; text-align: center; font-size: 12pt; padding: 4pt; }
        .contract-a4-preview .contract-account-key { background: #fafafa; white-space: nowrap; width: 50pt; text-align: right; padding-right: 6pt; }
        .contract-a4-preview .contract-account-val { font-size: 11pt; }