/* ============================================
 * 设计令牌 - 专业管理后台配色系统
 * 深色侧边栏 + 浅色内容区
 * ============================================ */

:root {
    /* 侧边栏 - 深色系 */
    --sidebar-bg: #1e1e2e;
    --sidebar-bg-hover: #2a2a3e;
    --sidebar-bg-active: #313148;
    --sidebar-text: #a0a0b8;
    --sidebar-text-active: #ffffff;
    --sidebar-text-muted: #6b6b80;
    --sidebar-border: #2a2a3e;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 64px;

    /* 强调色 - 专业蓝 */
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #eff6ff;
    --accent-border: #93c5fd;
    --accent-text: #1e40af;
    --accent-glow: rgba(59, 130, 246, 0.15);

    /* 内容区 - 暖灰系 */
    --bg-base: #f0f2f5;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-muted: #f8f9fb;
    --bg-hover: #f1f3f6;

    --border-default: #e5e7eb;
    --border-strong: #d1d5db;
    --border-subtle: #f3f4f6;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* 语义色 */
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;

    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;

    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    --info: #3b82f6;
    --info-light: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #1e40af;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 阴影 - 有层次感 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* 过渡 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* 布局 */
    --header-height: 60px;
    --content-max-width: 100%;
    --z-sidebar: 200;
    --z-header: 150;
    --z-modal: 1000;
    --z-toast: 10000;
}
