/* CSS 变量 - 颜色、字体、间距规范 */

:root {
    /* 颜色体系 */
    --color-primary: #0066cc;
    --color-primary-dark: #0052a3;
    --color-primary-light: #e6f2ff;
    --color-accent: #00b4d8;
    --color-warning: #ffb703;
    --color-success: #06a77d;
    --color-danger: #d62828;

    /* 中性色 */
    --color-dark: #2c3e50;
    --color-gray-dark: #555555;
    --color-gray: #888888;
    --color-gray-light: #cccccc;
    --color-light: #f5f7fa;
    --color-white: #ffffff;

    /* 字体 */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Montserrat', 'Poppins', sans-serif;
    --font-mono: 'Courier New', monospace;

    /* 字号规范 */
    --font-size-h1: 40px;
    --font-size-h2: 28px;
    --font-size-h3: 20px;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-tiny: 12px;

    /* 字重 */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* 间距规范 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;
    --spacing-4xl: 48px;
    --spacing-5xl: 64px;

    /* 圆角规范 */
    --radius-sm: 4px;
    --radius-base: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;

    /* 阴影规范 */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* 过渡时间 */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* 容器宽度 */
    --max-width: 1200px;
}

/* 深色模式变量（可选） */
@media (prefers-color-scheme: dark) {
    :root {
        --color-dark: #f5f7fa;
        --color-gray-dark: #cccccc;
        --color-light: #2c3e50;
        --color-white: #1a1a1a;
    }
}
