/**
 * CSS 变量系统
 * 定义全局样式变量
 */

:root {
    /* 颜色 */
    --color-primary: #030213;
    --color-primary-light: #3b82f6;
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-border: rgba(0, 0, 0, 0.1);

    /* 渐变色 */
    --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-purple: linear-gradient(135deg, #a855f7, #ec4899);
    --gradient-orange: linear-gradient(135deg, #f97316, #ef4444);
    --gradient-green: linear-gradient(135deg, #10b981, #059669);
    --gradient-bg: linear-gradient(to bottom right, #f8fafc, #e0f2fe, #f8fafc);

    /* 间距 */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 3rem;      /* 48px */

    /* 圆角 */
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.625rem;    /* 10px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* 毛玻璃效果 */
    --backdrop-blur: blur(8px);
    --backdrop-blur-lg: blur(16px);

    /* z-index 层级 */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-tooltip: 1100;

    /* 字体 */
    --font-family: 'SourceHanSansCN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* 过渡动画 */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}
