/* ============================================
   CERT-WINGS - Apple Frosted Glass Design System
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Apple Colors */
    --apple-blue: #007AFF;
    --apple-blue-hover: #0051D5;
    --apple-blue-light: rgba(0, 122, 255, 0.1);
    --apple-green: #34C759;
    --apple-red: #FF3B30;
    --apple-orange: #FF9500;
    --apple-purple: #AF52DE;
    --apple-pink: #FF2D55;
    --apple-teal: #5AC8FA;
    --apple-indigo: #5856D6;

    /* Background - 渐变背景增加层次感 */
    --bg-primary: #f0f2f5;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-tertiary: rgba(255, 255, 255, 0.7);
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);

    /* Frosted Glass - 极致玻璃质感 v4.0 */
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-bg-heavy: rgba(255, 255, 255, 0.5);
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-ultra-light: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-light: rgba(255, 255, 255, 0.7);
    --glass-border-dark: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(50px) saturate(200%);
    --glass-blur-heavy: blur(70px) saturate(220%);
    --glass-blur-ultra: blur(100px) saturate(250%);
    /* 多层阴影营造玻璃厚度感 */
    --glass-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.6) inset,
        0 -1px 1px rgba(0, 0, 0, 0.03) inset,
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.08);
    --glass-shadow-hover: 
        0 1px 2px rgba(255, 255, 255, 0.8) inset,
        0 -1px 1px rgba(0, 0, 0, 0.04) inset,
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.12);
    /* 玻璃高光反射 */
    --glass-highlight: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    --glass-reflection: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 40%);

    /* Text */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --text-quaternary: #aeaeb2;

    /* Border - 更细更透明 */
    --border-light: rgba(0, 0, 0, 0.04);
    --border-medium: rgba(0, 0, 0, 0.08);

    /* Radius - 更大圆角 */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* Shadow - 更柔和更大范围 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(0, 122, 255, 0.15);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Transition - 更流畅的动画 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --topbar-height: 64px;
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: 
        /* 实验室相关SVG图案层 - 透明隐隐显现 */
        url("data:image/svg+xml,%3Csvg width='600' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E .lab-icon %7B fill: %23007AFF; opacity: 0.04; %7D %3C/style%3E%3C/defs%3E%3Cg class='lab-icon'%3E%3Ccircle cx='100' cy='100' r='8'/%3E%3Ccircle cx='140' cy='80' r='6'/%3E%3Ccircle cx='160' cy='120' r='7'/%3E%3Ccircle cx='120' cy='140' r='5'/%3E%3Cline x1='100' y1='100' x2='140' y2='80' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='140' y1='80' x2='160' y2='120' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='160' y1='120' x2='120' y2='140' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='120' y1='140' x2='100' y2='100' stroke='%23007AFF' stroke-width='2'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Crect x='350' y='60' width='12' height='80' rx='6'/%3E%3Crect x='346' y='55' width='20' height='8' rx='2'/%3E%3Cpath d='M350 100 Q356 110 362 100 L362 135 Q356 145 350 135 Z'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Cpath d='M80 300 L80 360 Q80 380 100 380 L140 380 Q160 380 160 360 L160 300' fill='none' stroke='%23007AFF' stroke-width='3'/%3E%3Crect x='75' y='290' width='90' height='12' rx='3'/%3E%3Cpath d='M90 340 Q120 355 150 340 L150 360 Q120 375 90 360 Z'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Cpath d='M400 280 Q420 300 400 320 Q380 340 400 360 Q420 380 400 400' fill='none' stroke='%23007AFF' stroke-width='3'/%3E%3Cpath d='M440 280 Q420 300 440 320 Q460 340 440 360 Q420 380 440 400' fill='none' stroke='%23007AFF' stroke-width='3'/%3E%3Cline x1='410' y1='290' x2='430' y2='290' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='410' y1='310' x2='430' y2='310' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='410' y1='330' x2='430' y2='330' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='410' y1='350' x2='430' y2='350' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='410' y1='370' x2='430' y2='370' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='410' y1='390' x2='430' y2='390' stroke='%23007AFF' stroke-width='2'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Crect x='80' y='480' width='120' height='80' fill='none' stroke='%23007AFF' stroke-width='2'/%3E%3Crect x='95' y='520' width='15' height='30'/%3E%3Crect x='120' y='500' width='15' height='50'/%3E%3Crect x='145' y='510' width='15' height='40'/%3E%3Crect x='170' y='490' width='15' height='60'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Crect x='380' y='470' width='60' height='10' rx='3'/%3E%3Crect x='400' y='440' width='20' height='30'/%3E%3Ccircle cx='410' cy='430' r='12'/%3E%3Crect x='425' y='420' width='25' height='8' rx='2'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Ccircle cx='250' cy='250' r='6'/%3E%3Cellipse cx='250' cy='250' rx='40' ry='15' fill='none' stroke='%23007AFF' stroke-width='1.5'/%3E%3Cellipse cx='250' cy='250' rx='40' ry='15' fill='none' stroke='%23007AFF' stroke-width='1.5' transform='rotate(60 250 250)'/%3E%3Cellipse cx='250' cy='250' rx='40' ry='15' fill='none' stroke='%23007AFF' stroke-width='1.5' transform='rotate(120 250 250)'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Ccircle cx='520' cy='200' r='20' fill='none' stroke='%23007AFF' stroke-width='2.5'/%3E%3Crect x='515' y='175' width='10' height='8' rx='2'/%3E%3Crect x='515' y='217' width='10' height='8' rx='2'/%3E%3Crect x='497' y='195' width='8' height='10' rx='2'/%3E%3Crect x='535' y='195' width='8' height='10' rx='2'/%3E%3C/g%3E%3Cg class='lab-icon'%3E%3Crect x='500' y='450' width='50' height='65' rx='3' fill='none' stroke='%23007AFF' stroke-width='2'/%3E%3Cline x1='510' y1='465' x2='540' y2='465' stroke='%23007AFF' stroke-width='1.5'/%3E%3Cline x1='510' y1='478' x2='540' y2='478' stroke='%23007AFF' stroke-width='1.5'/%3E%3Cline x1='510' y1='491' x2='530' y2='491' stroke='%23007AFF' stroke-width='1.5'/%3E%3Cline x1='510' y1='504' x2='540' y2='504' stroke='%23007AFF' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E"),
        /* 多层渐变背景 - 增加色彩层次让玻璃效果更突出 */
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 122, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(90, 200, 250, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #e3e8f0 0%, #eef1f6 25%, #e8ecf3 50%, #f0f3f8 75%, #e5e9f2 100%);
    background-attachment: fixed;
    background-size: 600px 600px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰性渐变光斑 */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(175, 82, 222, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

a { color: var(--apple-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--apple-blue-hover); }

/* ---------- App Layout ---------- */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---------- Sidebar (Ultra Frosted Glass) ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: var(--glass-blur-ultra);
    -webkit-backdrop-filter: var(--glass-blur-ultra);
    border-right: 1px solid var(--glass-border);
    box-shadow: 
        1px 0 0 rgba(255, 255, 255, 0.6) inset,
        -1px 0 0 rgba(0, 0, 0, 0.03) inset,
        4px 0 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width var(--transition-normal);
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-details,
.sidebar.collapsed .logout-btn span { display: none; }

.sidebar-logo {
    padding: var(--space-5) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-light);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-indigo));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.logo-subtitle { font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.5px; text-transform: uppercase; }

.sidebar-nav {
    flex: 1;
    padding: var(--space-3) var(--space-3);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 2px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.nav-item i { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }

.nav-item:hover {
    background: 
        linear-gradient(180deg, rgba(0,122,255,0.12) 0%, rgba(0,122,255,0.06) 100%);
    color: var(--apple-blue);
    border-color: rgba(0,122,255,0.15);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.5) inset,
        0 2px 8px rgba(0,122,255,0.08);
}

.nav-item.active {
    background: 
        linear-gradient(180deg, rgba(0,122,255,0.18) 0%, rgba(0,122,255,0.1) 100%);
    color: var(--apple-blue);
    font-weight: 600;
    border-color: rgba(0,122,255,0.25);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.6) inset,
        0 2px 12px rgba(0,122,255,0.12);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--apple-blue), var(--apple-indigo));
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(0,122,255,0.4);
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: 
        linear-gradient(135deg, var(--apple-blue), var(--apple-indigo));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.3) inset,
        0 2px 8px rgba(0,122,255,0.25);
    position: relative;
    overflow: hidden;
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    pointer-events: none;
}

.user-details { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-tertiary); text-transform: capitalize; }

.logout-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.logout-btn:hover { background: rgba(255, 59, 48, 0.08); color: var(--apple-red); }

/* ---------- Main Wrapper ---------- */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

.sidebar.collapsed ~ .main-wrapper { margin-left: var(--sidebar-collapsed); }

/* ---------- Topbar (Ultra Frosted Glass) ---------- */
.topbar {
    height: var(--topbar-height);
    background: 
        var(--glass-highlight),
        linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.35) 100%);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 -1px 0 rgba(0, 0, 0, 0.03) inset,
        0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: var(--space-4); }

.sidebar-toggle {
    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);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.page-title { font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }

.topbar-right { display: flex; align-items: center; gap: var(--space-4); }

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search i {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary);
    font-size: 16px;
    pointer-events: none;
}

.header-search input {
    width: 240px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.header-search input:focus {
    width: 300px;
    border-color: var(--apple-blue);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-results.show { display: block; }
.search-result-item { padding: 10px 14px; cursor: pointer; transition: background var(--transition-fast); }
.search-result-item:hover { background: rgba(0, 122, 255, 0.08); }

.lang-switch { 
    display: flex; 
    gap: 2px; 
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.25) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3px; 
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: 0 1px 2px rgba(255,255,255,0.4) inset;
}
.lang-btn {
    padding: 4px 10px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.lang-btn:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.4);
}
.lang-btn.active { 
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
    color: var(--apple-blue); 
    border-color: var(--glass-border);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.6) inset,
        0 2px 6px rgba(0,0,0,0.06);
}

.notification-bell {
    position: relative;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.notification-bell:hover {
    background: rgba(255,255,255,0.4);
    border-color: var(--glass-border);
    color: var(--text-primary);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.5) inset,
        0 2px 8px rgba(0,0,0,0.06);
}
.notification-bell:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    background: var(--apple-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.5) 100%);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1);
    z-index: 200;
}
.notif-panel.show { display: block; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition-fast); }
.notif-item:hover { background: rgba(0, 122, 255, 0.05); }
.notif-item.unread { background: rgba(0, 122, 255, 0.04); }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-message { font-size: 12px; color: var(--text-secondary); }
.notif-time { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* ---------- Page Content ---------- */
.page-content {
    flex: 1;
    padding: var(--space-6);
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- Cards (Ultra Frosted Glass) ---------- */
.card {
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin-bottom: var(--space-5);
    position: relative;
    transition: all var(--transition-normal);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

.card:hover {
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-2); }
.card-header h3 i { color: var(--apple-blue); font-size: 20px; }

.card-body { padding: var(--space-6); }

.table-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin-bottom: var(--space-5);
}

/* ---------- KPI Cards ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.kpi-card {
    background: 
        var(--glass-reflection),
        linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-indigo), var(--apple-purple));
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-info { flex: 1; min-width: 0; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.5px; }
.kpi-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ---------- Page Header ---------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header .header-left { flex: 1; min-width: 0; }
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 4px; }
.page-header .page-desc { font-size: 14px; color: var(--text-secondary); margin: 0; }
.page-header .btn { flex-shrink: 0; }

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ---------- Buttons (Apple Style) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: -0.1px;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(180deg, #0A84FF 0%, #007AFF 100%);
    color: white;
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 122, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #1A8FFF 0%, #0A84FF 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 122, 255, 0.2); }

.btn-secondary {
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.5) 100%);
    color: var(--text-primary);
    border-color: var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.6) inset,
        0 1px 3px rgba(0,0,0,0.06);
}
.btn-secondary:hover { 
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.65) 100%);
    color: var(--text-primary);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.btn-outline {
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.3) 100%);
    color: var(--apple-blue);
    border-color: rgba(0, 122, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.5) inset,
        0 1px 3px rgba(0,122,255,0.1);
}
.btn-outline:hover {
    background: linear-gradient(180deg, rgba(0,122,255,0.12) 0%, rgba(0,122,255,0.06) 100%);
    color: var(--apple-blue);
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.6) inset,
        0 4px 12px rgba(0,122,255,0.15);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(180deg, #FF453A 0%, #FF3B30 100%);
    color: white;
    border-color: rgba(255, 59, 48, 0.3);
    box-shadow: 0 1px 3px rgba(255, 59, 48, 0.2);
}
.btn-danger:hover {
    background: linear-gradient(180deg, #FF5A4F 0%, #FF453A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover { background: rgba(120, 120, 128, 0.08); color: var(--text-primary); }

.btn-success {
    background: linear-gradient(180deg, #30D158 0%, #34C759 100%);
    color: white;
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow: 0 1px 3px rgba(52, 199, 89, 0.2);
}
.btn-success:hover { background: linear-gradient(180deg, #40DB66 0%, #30D158 100%); color: white; box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3); transform: translateY(-1px); }

.btn-warning {
    background: linear-gradient(180deg, #FFA100 0%, #FF9500 100%);
    color: white;
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow: 0 1px 3px rgba(255, 149, 0, 0.2);
}
.btn-warning:hover { background: linear-gradient(180deg, #FFAB1A 0%, #FFA100 100%); color: white; box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3); transform: translateY(-1px); }

.btn-sm { padding: 6px 12px; min-height: 30px; font-size: 12px; border-radius: 8px; gap: 4px; }
.btn-lg { padding: 12px 28px; min-height: 44px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Button group */
.btn-group { display: inline-flex; gap: 8px; align-items: center; }
.btn-group .btn + .btn { margin-left: 0; }

/* Table action buttons */
.table-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.table-actions .btn { flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--radius-md);
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.55) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
    font-family: inherit;
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.5) inset,
        0 1px 2px rgba(0,0,0,0.03);
}

.form-input:focus, .form-select:focus, textarea.form-input:focus {
    border-color: var(--apple-blue);
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 100%);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.7) inset,
        0 0 0 3px rgba(0, 122, 255, 0.12),
        0 4px 12px rgba(0,122,255,0.08);
}

.form-input::placeholder { color: var(--text-quaternary); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }

.input-icon { position: relative; }
.input-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 16px; }
.input-icon input { padding-left: 38px; }

/* ---------- Tables (Glass Style) ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.35) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.data-table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.data-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    background: rgba(255,255,255,0.15);
}

.data-table tbody tr { transition: all var(--transition-fast); }
.data-table tbody tr:hover { 
    background: rgba(0, 122, 255, 0.06);
    box-shadow: inset 3px 0 0 var(--apple-blue);
}
.data-table tbody tr:last-child td { border-bottom: none; }

.empty-cell { text-align: center; color: var(--text-tertiary); padding: 40px 16px !important; font-size: 13px; }

.link { color: var(--apple-blue); font-weight: 500; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- Status Badges (Glass Style) ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.5) inset,
        0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.status-draft, .status-pending { background: rgba(142, 142, 147, 0.2); color: #6e6e73; }
.status-reviewing, .status-review, .status-accepted, .status-testing, .status-in_progress { background: rgba(0, 122, 255, 0.18); color: var(--apple-blue); }
.status-approved, .status-completed, .status-pass, .status-issued { background: rgba(52, 199, 89, 0.18); color: var(--apple-green); }
.status-rejected, .status-fail, .status-cancelled { background: rgba(255, 59, 48, 0.18); color: var(--apple-red); }

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}
.priority-normal { background: rgba(142, 142, 147, 0.12); color: #6e6e73; }
.priority-urgent { background: rgba(255, 149, 0, 0.12); color: var(--apple-orange); }
.priority-express { background: rgba(255, 59, 48, 0.12); color: var(--apple-red); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-light);
}

.pagination span { font-size: 13px; color: var(--text-secondary); }
.page-info { font-weight: 600; color: var(--text-primary) !important; }

.page-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-medium);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.page-btn:hover:not(:disabled) { border-color: var(--apple-blue); color: var(--apple-blue); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.filter-bar .form-select {
    width: auto;
    min-width: 160px;
    padding: 8px 12px;
    border-radius: 8px;
}
.filter-bar .form-input {
    width: 220px;
    padding: 8px 12px;
    border-radius: 8px;
}
.filter-bar .btn { min-height: 34px; padding: 7px 16px; }

/* ---------- Modal (Ultra Frosted Glass) ---------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
    animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.5) 100%);
    backdrop-filter: var(--glass-blur-ultra);
    -webkit-backdrop-filter: var(--glass-blur-ultra);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 -1px 1px rgba(0,0,0,0.05) inset,
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    pointer-events: none;
}

.modal-wide { max-width: 800px; }

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); }

.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-tertiary);
    font-size: 18px;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.modal-body { padding: var(--space-6); overflow-y: auto; flex: 1; }

/* Modal form inputs default styling */
.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d1d6;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    color: #1d1d1f;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    display: block;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: #aeaeb2;
}

.modal-body textarea { resize: vertical; min-height: 80px; }

.modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.modal-footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: var(--space-3); }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transform: translateX(120%);
    transition: transform var(--transition-normal);
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
}

.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--apple-green); }
.toast.error { border-left: 3px solid var(--apple-red); }
.toast.warning { border-left: 3px solid var(--apple-orange); }
.toast.info { border-left: 3px solid var(--apple-blue); }

/* ---------- Tabs (Glass Style) ---------- */
.tabs { 
    display: flex; 
    gap: var(--space-2); 
    border-bottom: 1px solid var(--glass-border); 
    margin-bottom: var(--space-5);
    padding: 4px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
}
.tab-btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: all var(--transition-fast);
    font-family: inherit;
    border-radius: var(--radius-sm);
}
.tab-btn:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.4);
}
.tab-btn.active { 
    color: var(--apple-blue); 
    font-weight: 600;
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.5) 100%);
    border-color: var(--glass-border);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.6) inset,
        0 2px 8px rgba(0,0,0,0.06);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-indigo));
    border-radius: 1px 1px 0 0;
    box-shadow: 0 0 6px rgba(0,122,255,0.4);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- Chart Card ---------- */
.chart-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--glass-shadow);
    margin-bottom: var(--space-5);
}

.chart-card h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-4); }
.chart-container { width: 100%; height: 300px; }

.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: var(--space-5); }

/* ---------- Login Page ---------- */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.5) 100%);
    backdrop-filter: var(--glass-blur-ultra);
    -webkit-backdrop-filter: var(--glass-blur-ultra);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 -1px 1px rgba(0,0,0,0.05) inset,
        0 30px 80px rgba(0,0,0,0.15),
        0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 520px;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    z-index: 1;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-indigo));
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.login-brand { margin-bottom: var(--space-8); }
.login-logo {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--space-5);
}

.login-left h1 { font-size: 28px; font-weight: 700; margin-bottom: var(--space-2); letter-spacing: -0.5px; }
.login-left p { font-size: 14px; opacity: 0.85; }

.login-features { display: flex; flex-direction: column; gap: var(--space-4); }
.feature-item { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; opacity: 0.9; }
.feature-item i { font-size: 18px; }

.login-right {
    flex: 1;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-wrapper { width: 100%; max-width: 320px; margin: 0 auto; }
.login-form-wrapper h2 { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.login-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-6); }
.login-footer { margin-top: var(--space-6); text-align: center; font-size: 13px; }
.login-footer a { color: var(--apple-blue); }

/* ---------- Detail Grid ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}
.detail-grid > div { padding: var(--space-3); background: var(--bg-tertiary); border-radius: var(--radius-md); font-size: 13px; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-tertiary);
}
.empty-state i { font-size: 48px; margin-bottom: var(--space-4); opacity: 0.5; }
.empty-state p { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-content { padding: var(--space-4); }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .login-container { flex-direction: column; }
    .login-left { display: none; }
    .header-search input { width: 160px; }
    .header-search input:focus { width: 200px; }
    .page-title { font-size: 16px; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 var(--space-4); }
    .lang-switch { display: none; }
}

/* ========== 状态徽章 ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.badge-draft { background: rgba(142,142,147,0.15); color: #8E8E93; }
.badge-reviewing { background: rgba(255,149,0,0.15); color: #FF9500; }
.badge-approved { background: rgba(52,199,89,0.15); color: #34C759; }
.badge-distributed { background: rgba(0,122,255,0.15); color: #007AFF; }
.badge-obsolete { background: rgba(255,59,48,0.15); color: #FF3B30; }

/* ========== 大模态框 ========== */
.modal-large {
    max-width: 900px;
    width: 90%;
}

/* ========== 详情网格 ========== */
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.detail-item label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.detail-item value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}
.detail-item.full {
    grid-column: 1 / -1;
}

/* ========== 系统整体UI/UX优化 v2.0 ========== */

/* 模态框内容样式（兼容.modal > .modal-content结构） */
.modal > .modal-content {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp var(--transition-normal);
    overflow: hidden;
    margin: 0 auto;
}

.modal > .modal-content .modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal > .modal-content .modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal > .modal-content .modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.modal > .modal-content .modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal > .modal-content .modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
}

.modal > .modal-content .modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* 页面头部优化 - 更宽松的按钮布局 */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    padding: var(--space-5) var(--space-6);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.page-header .header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.page-header .btn {
    padding: 10px 20px;
    min-height: 40px;
    font-size: 14px;
    border-radius: var(--radius-md);
    gap: 8px;
}

/* 筛选栏优化 - 极致玻璃质感 */
.filter-bar {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-5);
    padding: var(--space-4) var(--space-5);
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.filter-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}

.filter-bar .form-input {
    min-width: 240px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
}

.filter-bar .btn {
    padding: 9px 18px;
    min-height: 38px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

/* 表格卡片优化 - 更舒适的间距 */
.table-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin-bottom: var(--space-5);
}

.data-table thead th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-medium);
    background: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.04);
}

/* 表格操作按钮优化 - 更宽松 */
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.table-actions .btn {
    padding: 7px 14px;
    min-height: 32px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* 表单网格优化 - 更舒适的间距 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input, .form-select, textarea.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus, .form-select:focus, textarea.form-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: var(--bg-secondary);
}

/* 分页优化 (Glass Style) */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.15);
}

.pagination .page-btn {
    padding: 7px 14px;
    min-height: 32px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border-dark);
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.5) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 2px rgba(255,255,255,0.5) inset;
}

.pagination .page-btn:hover:not(:disabled) {
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    background: linear-gradient(180deg, rgba(0,122,255,0.1) 0%, rgba(0,122,255,0.05) 100%);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.6) inset,
        0 2px 8px rgba(0,122,255,0.1);
    transform: translateY(-1px);
}

.pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    font-weight: 600;
    color: var(--text-primary);
}

/* 徽章优化 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

/* 空状态优化 */
.empty-cell {
    text-align: center;
    color: var(--text-tertiary);
    padding: 48px 16px !important;
    font-size: 14px;
}

/* 页面内容区域优化 */
.page-content {
    flex: 1;
    padding: var(--space-6);
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .page-header .header-actions {
        width: 100%;
    }
    
    .page-header .btn {
        flex: 1;
        justify-content: center;
    }
    
    .filter-bar .form-input {
        min-width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 10px 12px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 选中文字颜色 */
::selection {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-primary);
}

/* ========== 骨架屏加载动画 (Glass Style) ========== */
.skeleton {
    background: 
        linear-gradient(90deg, 
            rgba(255,255,255,0.3) 25%, 
            rgba(255,255,255,0.6) 50%, 
            rgba(255,255,255,0.3) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-table-row {
    height: 48px;
    margin-bottom: 1px;
    border-radius: 0;
}

.skeleton-btn {
    height: 38px;
    width: 100px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ========== 快捷键提示 ========== */
.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    font-size: 11px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    min-width: 20px;
    line-height: 1.4;
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== 快捷键帮助面板 (Glass Style) ========== */
.shortcut-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.55) 100%);
    backdrop-filter: var(--glass-blur-ultra);
    -webkit-backdrop-filter: var(--glass-blur-ultra);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1);
    padding: var(--space-6);
    z-index: 2000;
    max-width: 500px;
    width: 90%;
    display: none;
    position: fixed;
    overflow: hidden;
}

.shortcut-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.shortcut-panel.active {
    display: block;
    animation: modalSlideUp var(--transition-normal);
}

.shortcut-panel h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.shortcut-panel .shortcut-list {
    display: grid;
    gap: var(--space-3);
}

.shortcut-panel .shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.shortcut-panel .shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-panel .shortcut-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.shortcut-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
}

.shortcut-overlay.active {
    display: block;
}

/* ========== 表格行高亮和选中 ========== */
.data-table tbody tr.row-selected {
    background: rgba(0, 122, 255, 0.08) !important;
}

.data-table tbody tr.row-selected td:first-child {
    border-left: 3px solid var(--apple-blue);
}

/* ========== 表格列排序指示 ========== */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    color: var(--apple-blue);
}

.sortable .sort-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.4;
}

.sortable.asc .sort-icon,
.sortable.desc .sort-icon {
    opacity: 1;
    color: var(--apple-blue);
}

/* ========== 数据加载状态 ========== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-lg);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-medium);
    border-top-color: var(--apple-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Toast通知优化 ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-item {
    background: 
        var(--glass-reflection),
        linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.55) 100%);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 12px 40px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.06);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-item.success { border-left: 4px solid var(--apple-green); }
.toast-item.error { border-left: 4px solid var(--apple-red); }
.toast-item.warning { border-left: 4px solid var(--apple-orange); }
.toast-item.info { border-left: 4px solid var(--apple-blue); }

.toast-item .toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-item.success .toast-icon { color: var(--apple-green); }
.toast-item.error .toast-icon { color: var(--apple-red); }
.toast-item.warning .toast-icon { color: var(--apple-orange); }
.toast-item.info .toast-icon { color: var(--apple-blue); }

.toast-item .toast-content {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-item .toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.toast-item .toast-close:hover {
    color: var(--text-primary);
}

/* ========== 移动端底部导航 ========== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 100;
    justify-content: space-around;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-bottom-nav a.active {
    color: var(--apple-blue);
}

.mobile-bottom-nav a i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    .page-content {
        padding-bottom: 80px;
    }
}

/* ========== 高级毛玻璃风格 v3.0 - 覆盖优化 ========== */

/* 顶部栏 - 更强毛玻璃效果 */
.topbar {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* 侧边栏导航项 - 圆角优化 */
.sidebar-nav .nav-item {
    border-radius: var(--radius-md);
    margin: 2px 8px;
    padding: 10px 14px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--apple-blue);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-normal);
}

.sidebar-nav .nav-item.active::before {
    height: 60%;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(2px);
}

.sidebar-nav .nav-item.active {
    background: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue);
    font-weight: 600;
}

/* 卡片 - 更强毛玻璃效果和圆角 */
.card, .table-card, .page-header, .filter-bar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* 卡片悬停效果 */
.card:hover, .table-card:hover {
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

/* 卡片顶部高光效果 */
.card::before, .table-card::before, .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* 页面头部 - 更宽松布局 */
.page-header {
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-6);
}

.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 筛选栏 - 更宽松布局 */
.filter-bar {
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-5);
    gap: var(--space-3);
}

/* 按钮 - 更大圆角和更强悬停效果 */
.btn {
    border-radius: var(--radius-md);
    padding: 10px 20px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(180deg, #0A84FF 0%, #007AFF 50%, #0066CC 100%);
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.25), 0 1px 2px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #1A8FFF 0%, #0A84FF 50%, #0077ED 100%);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35), 0 2px 4px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-dark);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg-heavy);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(180deg, #FF453A 0%, #FF3B30 50%, #CC2E25 100%);
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    min-height: 32px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* 输入框 - 更大圆角和更强聚焦效果 */
.form-input, .form-select, textarea.form-input, .filter-bar .form-input {
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-dark);
    transition: all var(--transition-normal);
}

.form-input:focus, .form-select:focus, textarea.form-input:focus, .filter-bar .form-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 2px 8px rgba(0, 122, 255, 0.08);
    background: var(--glass-bg-heavy);
    transform: translateY(-1px);
}

/* 表格 - 更大圆角和更强悬停效果 */
.data-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table thead th {
    padding: 16px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-size: 11px;
}

.data-table tbody td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr {
    transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.04);
}

.data-table tbody tr.row-selected {
    background: rgba(0, 122, 255, 0.08);
}

/* 徽章 - 更大圆角 */
.badge {
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 模态框 - 更强毛玻璃效果和更大圆角 */
.modal-overlay {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.modal, .modal > .modal-content {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.modal-header, .modal > .modal-content .modal-header {
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.modal-header h3, .modal > .modal-content .modal-header h3 {
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body, .modal > .modal-content .modal-body {
    padding: var(--space-8);
}

.modal-footer, .modal > .modal-content .modal-footer {
    padding: var(--space-5) var(--space-8);
    border-top: 1px solid var(--border-light);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
}

.modal-close, .modal > .modal-content .modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.modal-close:hover, .modal > .modal-content .modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: rotate(90deg);
}

/* 表单网格 - 更宽松间距 */
.form-grid {
    gap: var(--space-5);
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* 分页 - 更大圆角 */
.pagination {
    padding: var(--space-5) var(--space-6);
}

.page-btn {
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    min-height: 34px;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--apple-blue);
    color: white;
    border-color: var(--apple-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

.page-info {
    padding: 8px 14px;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* KPI卡片 - 更强毛玻璃效果 */
.kpi-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.kpi-card:hover::before {
    opacity: 1;
}

/* 空状态 - 更优雅 */
.empty-cell {
    padding: 60px 20px !important;
    font-size: 14px;
    color: var(--text-tertiary);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, transparent 100%);
}

/* 表格操作按钮 - 更紧凑 */
.table-actions {
    gap: 6px;
}

.table-actions .btn {
    padding: 6px 12px;
    min-height: 30px;
    font-size: 12px;
}

/* 滚动条 - 更细更优雅 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Toast通知 - 更强毛玻璃效果 */
.toast-item {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
}

/* 快捷键面板 - 更强毛玻璃效果 */
.shortcut-panel {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* 移动端底部导航 - 更强毛玻璃效果 */
.mobile-bottom-nav {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border-top: 1px solid var(--glass-border);
}

/* 页面内容区域 - 更宽松 */
.page-content {
    padding: var(--space-8);
    max-width: 1800px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .page-header {
        padding: var(--space-5);
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .filter-bar {
        padding: var(--space-4);
    }
    
    .filter-bar .form-input {
        min-width: 100% !important;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .modal-body, .modal > .modal-content .modal-body {
        padding: var(--space-5);
    }
    
    .page-content {
        padding: var(--space-5);
        padding-bottom: 80px;
    }
}

/* ========== 文件管理统计看板 ========== */
.stats-dashboard {
    margin-bottom: 16px;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.stat-card.stat-mini {
    padding: 12px;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-mini .stat-value {
    font-size: 22px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== 到期提醒 ========== */
.expiring-alert {
    background: linear-gradient(135deg, rgba(255,149,0,0.08), rgba(255,59,48,0.05));
    border: 1px solid rgba(255,149,0,0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}
.expiring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.expiring-title {
    font-weight: 600;
    color: var(--apple-orange);
    font-size: 14px;
}
.expiring-count {
    background: var(--apple-orange);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.expiring-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.expiring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 13px;
}
.expiring-item.urgency-urgent {
    border-left: 3px solid var(--apple-red);
}
.expiring-item.urgency-warning {
    border-left: 3px solid var(--apple-orange);
}
.expiring-item.urgency-normal {
    border-left: 3px solid var(--apple-yellow);
}
.expiring-doc {
    font-weight: 500;
    flex: 1;
}
.expiring-date {
    color: var(--text-secondary);
    margin: 0 16px;
}
.expiring-days {
    font-weight: 600;
    color: var(--apple-orange);
}

/* ========== 版本对比 ========== */
.compare-summary {
    margin-bottom: 12px;
}
.diff-line {
    display: grid;
    grid-template-columns: 50px 1fr 20px 1fr;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-light);
    align-items: start;
}
.diff-line.diff-added {
    background: rgba(52,199,89,0.05);
}
.diff-line.diff-removed {
    background: rgba(255,59,48,0.05);
}
.diff-line.diff-changed {
    background: rgba(0,122,255,0.05);
}
.diff-line-num {
    color: var(--text-tertiary);
    font-size: 11px;
    text-align: right;
}
.diff-v1 {
    color: var(--apple-red);
    text-decoration: line-through;
    word-break: break-all;
}
.diff-arrow {
    text-align: center;
    color: var(--text-tertiary);
}
.diff-v2 {
    color: var(--apple-green);
    word-break: break-all;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .expiring-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .expiring-date, .expiring-days {
        margin: 0;
    }
}

/* ========== 页面加载进度条 ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.page-loader.active {
    opacity: 1;
}
.page-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-purple), var(--apple-blue));
    background-size: 200% 100%;
    animation: loaderShimmer 1.5s ease-in-out infinite;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0,122,255,0.5);
}
@keyframes loaderShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}
.breadcrumb-item:hover {
    color: var(--apple-blue);
}
.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}
.breadcrumb-separator {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}

/* ========== 回到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--apple-blue);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--apple-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,122,255,0.3);
}

/* ========== 快捷操作面板 ========== */
.quick-actions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
.quick-actions-panel {
    width: 90%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: quickActionsIn 0.2s ease;
}
@keyframes quickActionsIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.quick-actions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.quick-actions-header i {
    color: var(--text-tertiary);
    font-size: 18px;
}
.quick-actions-header input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: var(--text-primary);
}
.quick-actions-header input::placeholder {
    color: var(--text-tertiary);
}
.quick-actions-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
}
.quick-actions-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}
.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}
.quick-action-item:hover, .quick-action-item.selected {
    background: rgba(0,122,255,0.1);
}
.quick-action-item i {
    font-size: 18px;
    color: var(--apple-blue);
    width: 24px;
    text-align: center;
}
.quick-action-item span {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}
.quick-action-url {
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
    flex: none !important;
}
.quick-action-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 14px;
}
.quick-actions-footer {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-tertiary);
}
.quick-actions-footer kbd {
    background: var(--bg-tertiary);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    border: 1px solid var(--border-light);
}

/* ============================================================
   玻璃质感增强 v5.0 - 更强悬浮感 + 玻璃反光效果
   ============================================================ */

/* 增强CSS变量 */
:root {
    --glass-shadow-v5: 
        0 1px 1px rgba(255, 255, 255, 0.9) inset,
        0 -1px 2px rgba(255, 255, 255, 0.4) inset,
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 16px 48px rgba(0, 0, 0, 0.08);
    --glass-shadow-hover-v5: 
        0 1px 2px rgba(255, 255, 255, 1) inset,
        0 -1px 2px rgba(255, 255, 255, 0.6) inset,
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 24px 64px rgba(0, 0, 0, 0.12);
    --glass-highlight-top: linear-gradient(180deg, 
        rgba(255,255,255,0.6) 0%, 
        rgba(255,255,255,0.2) 30%, 
        rgba(255,255,255,0) 60%);
    --glass-reflection-diagonal: linear-gradient(135deg, 
        rgba(255,255,255,0.4) 0%, 
        rgba(255,255,255,0.1) 25%, 
        rgba(255,255,255,0) 50%);
    --glass-edge-glow: 0 0 0 1px rgba(255,255,255,0.3), 
                        0 0 20px rgba(255,255,255,0.1);
}

/* 全局卡片玻璃反光增强 - 使用伪元素添加高光层 */
.stat-card,
.table-card,
.modal-content,
.filter-bar,
.tabs-container,
.template-card,
.template-list-item,
.bi-card,
.kpi-card,
.chart-card,
.form-card,
.settings-card,
.notification-card,
.activity-card {
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow-v5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 顶部高光反射条 */
.stat-card::before,
.table-card::before,
.modal-content::before,
.template-card::before,
.bi-card::before,
.kpi-card::before,
.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--glass-highlight-top);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

/* 斜向反光层 */
.stat-card::after,
.table-card::after,
.template-card::after,
.bi-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--glass-reflection-diagonal);
    pointer-events: none;
    z-index: 1;
    transform: rotate(-15deg);
    opacity: 0.5;
}

/* 悬停增强 - 更强悬浮感 */
.stat-card:hover,
.template-card:hover,
.bi-card:hover,
.kpi-card:hover,
.chart-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--glass-shadow-hover-v5);
}

/* 悬停时反光增强动画 */
.stat-card:hover::after,
.template-card:hover::after,
.bi-card:hover::after {
    animation: glassShine 1.2s ease-in-out;
}

@keyframes glassShine {
    0% {
        transform: translateX(-100%) rotate(-15deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%) rotate(-15deg);
        opacity: 0;
    }
}

/* 模态框玻璃质感增强 */
.modal-content {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(80px) saturate(220%);
    -webkit-backdrop-filter: blur(80px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.9) inset,
        0 -1px 1px rgba(255, 255, 255, 0.5) inset,
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.modal-content::before {
    height: 40%;
    opacity: 0.7;
}

/* 按钮玻璃质感增强 */
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-secondary,
.btn-outline {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before,
.btn-success::before,
.btn-warning::before,
.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.4) inset,
        0 4px 12px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.12);
}

.btn-primary:active,
.btn-success:active,
.btn-warning:active,
.btn-danger:active {
    transform: translateY(-1px);
}

/* 侧边栏玻璃质感 */
.sidebar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        1px 0 0 rgba(255,255,255,0.3),
        4px 0 20px rgba(0,0,0,0.04);
}

/* 顶部导航玻璃质感 */
.topbar,
.header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 表格行悬浮效果 */
.data-table tbody tr {
    transition: all 0.2s ease;
    position: relative;
}

.data-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.06);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

/* 输入框玻璃质感 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 
        0 0 0 3px rgba(0, 122, 255, 0.1),
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 2px 8px rgba(0, 122, 255, 0.1);
}

/* 标签/徽章玻璃质感 */
.badge,
.status-badge,
.tag {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 下拉菜单玻璃质感 */
.dropdown-menu,
.select-dropdown,
.autocomplete-dropdown {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 8px 32px rgba(0,0,0,0.1),
        0 16px 48px rgba(0,0,0,0.08);
}

/* Toast通知玻璃质感 */
.toast,
.notification-toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 8px 24px rgba(0,0,0,0.1),
        0 16px 40px rgba(0,0,0,0.08);
}

/* 进度条玻璃质感 */
.progress-bar,
.progress-track {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.progress-fill {
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
}

/* 分页按钮悬浮效果 */
.pagination button,
.pagination a {
    transition: all 0.2s ease;
}

.pagination button:hover,
.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

/* 标签页玻璃质感 */
.tabs {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 2px 8px rgba(0,0,0,0.06);
}

/* 移动端底部导航玻璃质感 */
.mobile-bottom-nav,
.bottom-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

/* 悬浮按钮(FAB)玻璃质感 */
.fab,
.floating-action-button {
    background: rgba(0, 122, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.3) inset,
        0 4px 12px rgba(0, 122, 255, 0.3),
        0 8px 24px rgba(0, 122, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover,
.floating-action-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.4) inset,
        0 6px 16px rgba(0, 122, 255, 0.4),
        0 12px 32px rgba(0, 122, 255, 0.3);
}

/* 骨架屏玻璃质感 */
.skeleton,
.skeleton-loading {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.3) 25%, 
        rgba(255,255,255,0.6) 50%, 
        rgba(255,255,255,0.3) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 空状态玻璃质感 */
.empty-state,
.no-data {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

/* 工具提示玻璃质感 */
.tooltip,
[data-tooltip]::after {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 滚动条玻璃质感 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 页面加载进度条玻璃质感 */
.page-loader {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-loader-bar {
    background: linear-gradient(90deg, 
        rgba(0, 122, 255, 0.8), 
        rgba(175, 82, 222, 0.8), 
        rgba(0, 122, 255, 0.8));
    background-size: 200% 100%;
    animation: loaderGradient 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}

@keyframes loaderGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 面包屑玻璃质感 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

/* 回到顶部按钮玻璃质感 */
.back-to-top {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.9) inset,
        0 6px 16px rgba(0,0,0,0.12);
}

/* 快捷操作面板玻璃质感 */
.quick-actions-panel,
.command-palette {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(60px) saturate(220%);
    -webkit-backdrop-filter: blur(60px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 20px 60px rgba(0,0,0,0.15),
        0 40px 100px rgba(0,0,0,0.1);
}

/* 快捷键帮助面板玻璃质感 */
.shortcuts-panel,
.help-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(50px) saturate(220%);
    -webkit-backdrop-filter: blur(50px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 16px 48px rgba(0,0,0,0.12);
}

/* 键盘按键玻璃质感 */
kbd,
.key-badge {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-width: 2px;
    box-shadow: 
        0 1px 1px rgba(255,255,255,0.8) inset,
        0 1px 2px rgba(0,0,0,0.1);
}

/* 统计数字渐变文字 */
.stat-value,
.kpi-value,
.metric-value {
    background: linear-gradient(135deg, #1d1d1f 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片内容层级 - 确保内容在反光层之上 */
.stat-card > *,
.table-card > *,
.template-card > *,
.bi-card > * {
    position: relative;
    z-index: 2;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stat-card:hover,
    .template-card:hover,
    .bi-card:hover {
        transform: translateY(-3px) scale(1.005);
    }
    
    .modal-content {
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
    }
}


/* ============================================================
   CERT-WINGS Logo 样式 + 深蓝青绿色系 v6.0
   ============================================================ */

/* 侧边栏Logo样式 */
.sidebar-logo {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.sidebar-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(13, 71, 161, 0.15));
    transition: all 0.3s ease;
}

.sidebar-logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(13, 71, 161, 0.25));
    transform: scale(1.02);
}

/* 登录页Logo样式 */
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(13, 71, 161, 0.2));
}

/* ============================================================
   系统色系调整 - 深蓝青绿渐变主题
   ============================================================ */

:root {
    /* CERT-WINGS 主色系 - 深蓝到青绿渐变 */
    --cw-primary-dark: #0D47A1;      /* 深蓝色 - CERT文字色 */
    --cw-primary: #1565C0;            /* 中蓝色 */
    --cw-primary-light: #1E88E5;      /* 亮蓝色 */
    --cw-accent: #00BFA5;             /* 青绿色 - WINGS文字色 */
    --cw-accent-light: #26A69A;       /* 浅青绿 */
    --cw-accent-dark: #00897B;        /* 深青绿 */
    --cw-gradient: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #00BFA5 100%);
    --cw-gradient-soft: linear-gradient(135deg, rgba(13,71,161,0.08) 0%, rgba(0,191,165,0.08) 100%);
    --cw-gradient-text: linear-gradient(135deg, #0D47A1 0%, #00BFA5 100%);
    
    /* 覆盖原苹果蓝变量 */
    --apple-blue: #1565C0;
    --apple-blue-hover: #0D47A1;
    --apple-blue-light: rgba(21, 101, 192, 0.1);
    --apple-teal: #00BFA5;
    --apple-green: #00BFA5;
    
    /* 渐变背景调整 */
    --bg-gradient: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #00BFA5 100%);
    --bg-gradient-soft: linear-gradient(135deg, rgba(13,71,161,0.05) 0%, rgba(0,191,165,0.05) 100%);
}

/* 按钮主色调整为深蓝青绿渐变 */
.btn-primary {
    background: var(--cw-gradient);
    border: none;
    color: white;
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.3) inset,
        0 2px 8px rgba(13,71,161,0.25),
        0 4px 16px rgba(0,191,165,0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0D47A1 0%, #0D47A1 40%, #00BFA5 100%);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.4) inset,
        0 4px 12px rgba(13,71,161,0.35),
        0 8px 24px rgba(0,191,165,0.25);
}

/* 侧边栏激活项颜色 */
.sidebar-nav .nav-item.active {
    background: var(--cw-gradient-soft);
    border-left: 3px solid var(--cw-accent);
    color: var(--cw-primary-dark);
}

.sidebar-nav .nav-item.active i {
    color: var(--cw-accent);
}

.sidebar-nav .nav-item:hover:not(.active) {
    background: rgba(0, 191, 165, 0.06);
    color: var(--cw-primary);
}

/* 链接和强调文字颜色 */
a {
    color: var(--cw-primary);
}

a:hover {
    color: var(--cw-accent);
}

/* 状态徽章颜色调整 */
.status-active,
.status-approved,
.status-completed,
.status-issued {
    background: rgba(0, 191, 165, 0.12);
    color: var(--cw-accent-dark);
    border: 1px solid rgba(0, 191, 165, 0.2);
}

.status-pending,
.status-draft,
.status-reviewing,
.status-in_progress {
    background: rgba(21, 101, 192, 0.1);
    color: var(--cw-primary);
    border: 1px solid rgba(21, 101, 192, 0.2);
}

/* 页面标题渐变文字 */
.page-title h1,
.header-left h1 {
    background: var(--cw-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统计卡片图标颜色 */
.stat-icon-blue {
    background: rgba(21, 101, 192, 0.12);
    color: var(--cw-primary);
}

.stat-icon-green {
    background: rgba(0, 191, 165, 0.12);
    color: var(--cw-accent);
}

/* 进度条填充色 */
.progress-fill,
.progress-bar-fill {
    background: var(--cw-gradient);
}

/* 表格选中行 */
.data-table tbody tr.selected {
    background: rgba(0, 191, 165, 0.08);
}

/* 标签页激活下划线 */
.tab-btn.active {
    border-bottom-color: var(--cw-accent);
    color: var(--cw-primary-dark);
}

/* Toast成功通知 */
.toast-success {
    border-left: 4px solid var(--cw-accent);
}

.toast-info {
    border-left: 4px solid var(--cw-primary);
}

/* 加载进度条 */
.page-loader-bar {
    background: linear-gradient(90deg, 
        var(--cw-primary-dark) 0%, 
        var(--cw-primary) 30%, 
        var(--cw-accent) 60%, 
        var(--cw-primary-dark) 100%);
    background-size: 300% 100%;
    box-shadow: 0 0 10px rgba(0, 191, 165, 0.4);
}

/* 快捷键高亮 */
kbd {
    background: var(--cw-gradient-soft);
    color: var(--cw-primary-dark);
    border-color: rgba(21, 101, 192, 0.2);
}

/* 表单聚焦颜色 */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--cw-accent);
    box-shadow: 
        0 0 0 3px rgba(0, 191, 165, 0.1),
        0 1px 2px rgba(255,255,255,0.8) inset,
        0 2px 8px rgba(0, 191, 165, 0.08);
}

/* 复选框和单选框 */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--cw-gradient);
    border-color: var(--cw-primary);
}

/* 滚动条 */
::-webkit-scrollbar-thumb {
    background: var(--cw-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--cw-primary-dark), var(--cw-accent-dark));
}

/* 背景装饰光斑颜色调整 */
.bg-orb-1 {
    background: radial-gradient(circle, rgba(13,71,161,0.15) 0%, transparent 70%);
}

.bg-orb-2 {
    background: radial-gradient(circle, rgba(0,191,165,0.12) 0%, transparent 70%);
}

/* 登录页背景 */
.login-container {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #00BFA5 100%);
}

/* 移动端底部导航激活色 */
.bottom-nav-item.active {
    color: var(--cw-accent);
}

.bottom-nav-item.active i {
    color: var(--cw-accent);
}

/* FAB按钮颜色 */
.fab {
    background: var(--cw-gradient);
    box-shadow: 
        0 1px 2px rgba(255,255,255,0.3) inset,
        0 4px 12px rgba(13,71,161,0.3),
        0 8px 24px rgba(0,191,165,0.2);
}


/* ============================================================
   Logo优化 v6.1 - 放大尺寸 + 背景融合
   ============================================================ */

/* 侧边栏Logo - 放大尺寸 */
.sidebar-logo {
    padding: 24px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 16px;
    background: linear-gradient(180deg, 
        rgba(13, 71, 161, 0.03) 0%, 
        rgba(0, 191, 165, 0.02) 100%);
}

.sidebar-logo-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    filter: 
        drop-shadow(0 2px 6px rgba(13, 71, 161, 0.12))
        drop-shadow(0 4px 12px rgba(0, 191, 165, 0.08));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
}

.sidebar-logo-img:hover {
    filter: 
        drop-shadow(0 4px 10px rgba(13, 71, 161, 0.2))
        drop-shadow(0 8px 20px rgba(0, 191, 165, 0.12));
    transform: scale(1.03);
    opacity: 1;
}

/* 登录页Logo - 放大尺寸 */
.login-logo {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 120px;
    background: radial-gradient(ellipse, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-logo img {
    max-width: 340px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: 
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15))
        drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.login-logo img:hover {
    filter: 
        drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2))
        drop-shadow(0 12px 32px rgba(0, 0, 0, 0.15));
    transform: scale(1.02);
}

/* 移动端Logo适配 */
@media (max-width: 768px) {
    .sidebar-logo-img {
        max-height: 56px;
    }
    
    .login-logo img {
        max-width: 260px;
    }
}


/* ============================================================
   Logo间距优化 v6.2 - 减小logo与导航间距
   ============================================================ */

.sidebar-logo {
    padding: 16px 12px 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-logo-img {
    max-height: 60px !important;
    margin-bottom: 0 !important;
}

/* 导航菜单顶部间距调整 */
.sidebar-nav {
    padding-top: 4px !important;
}


/* ============================================================
   统计卡片样式修复 - 统一Apple毛玻璃风格
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
}

.stat-icon-blue {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.15), rgba(21, 101, 192, 0.1));
    color: #0D47A1;
}

.stat-icon-green {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.15), rgba(0, 191, 165, 0.1));
    color: #34C759;
}

.stat-icon-orange {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(255, 159, 10, 0.1));
    color: #FF9500;
}

.stat-icon-purple {
    background: linear-gradient(135deg, rgba(175, 82, 222, 0.15), rgba(191, 90, 242, 0.1));
    color: #AF52DE;
}

.stat-icon-red {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 69, 58, 0.1));
    color: #FF3B30;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1c1c1e;
    line-height: 1.2;
}

/* 响应式 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .stat-icon svg {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    .stat-value {
        font-size: 20px;
    }
}

/* ============================================
   移动端全面适配 v2.0
   ============================================ */

/* 侧边栏遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端侧边栏滑出 */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    /* 顶部导航栏移动端优化 */
    .topbar {
        padding: 0 12px;
        height: 56px;
        gap: 8px;
    }

    .topbar-left {
        gap: 8px;
    }

    .sidebar-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }

    .breadcrumb {
        display: none;
    }

    .topbar-right {
        gap: 4px;
    }

    .header-search {
        display: none;
    }

    .lang-switch {
        display: none;
    }

    .notification-bell {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .btn-ghost.btn-sm {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
    }

    /* 页面内容移动端优化 */
    .page-content {
        padding: 12px;
        padding-bottom: 80px;
    }

    .page-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* KPI卡片移动端 */
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 14px;
    }

    .kpi-value {
        font-size: 22px;
    }

    .kpi-label {
        font-size: 12px;
    }

    /* 卡片移动端 */
    .card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .card-header {
        padding: 12px 16px;
    }

    .card-title {
        font-size: 15px;
    }

    /* 表格响应式 - 横向滚动 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .data-table {
        min-width: 600px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    /* 表单移动端 */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-control,
    .form-select {
        font-size: 15px;
        padding: 10px 12px;
    }

    /* 按钮移动端 */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
    }

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

    /* 模态框移动端 */
    .modal {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .modal-large {
        width: 95%;
        max-width: 95%;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 图表移动端 */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chart-container {
        height: 250px;
    }

    /* 详情页移动端 */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-item {
        padding: 10px 0;
    }

    /* 标签页移动端 */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .tab-item {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }

    /* 空状态移动端 */
    .empty-state {
        padding: 40px 20px;
    }

    .empty-state i {
        font-size: 40px;
    }

    /* 徽章移动端 */
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* 分页移动端 */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pagination .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
    gap: 2px;
}

.mobile-nav-item i {
    font-size: 22px;
    line-height: 1;
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.mobile-nav-item.active {
    color: var(--cw-primary, #007AFF);
}

.mobile-nav-item.active i {
    font-weight: 700;
}

@media (min-width: 1025px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .page-content {
        padding-bottom: 80px;
    }
}

/* 小屏幕进一步优化 */
@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 8px;
    }

    .notification-bell,
    .btn-ghost.btn-sm {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .sidebar-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 18px;
    }

    .page-content {
        padding: 10px;
        padding-bottom: 76px;
    }

    .card {
        padding: 12px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .mobile-bottom-nav {
        height: 60px;
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    .mobile-nav-item span {
        font-size: 9px;
    }
}

/* 防止移动端横向滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-item,
    .mobile-nav-item,
    .tab-item,
    .page-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移除移动端悬停效果 */
    .btn:hover,
    .nav-item:hover,
    .card:hover {
        transform: none;
    }
}
