/* ========================================
   AsterFund Design System - CSS Variables
   ======================================== */

:root {
    /* 主色调 */
    --color-primary: #0A1628;
    --color-primary-light: #1A2B45;
    --color-primary-lighter: #2A3F5F;
    --color-accent: #C9A96E;
    --color-accent-light: #D4BC8E;
    --color-accent-dark: #B08D4F;

    /* 中性色 */
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* 语义色 */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-danger: #EF4444;
    --color-danger-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;

    /* 收益颜色 */
    --color-profit: #10B981;
    --color-loss: #EF4444;

    /* 背景 */
    --bg-body: #FFFFFF;
    --bg-surface: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-header: rgba(255,255,255,0.92);
    --bg-footer: #0A1628;
    --bg-hero: linear-gradient(135deg, #0A1628 0%, #1A2B45 50%, #0F1D32 100%);
    --bg-section-alt: #F3F4F6;

    /* 文字 */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --text-inverse: #FFFFFF;
    --text-accent: #C9A96E;
    --text-link: #0A1628;
    --text-link-hover: #C9A96E;

    /* 边框 */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --border-focus: #C9A96E;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.04);

    /* 字体 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* 字号 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* 行高 */
    --leading-tight: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* 间距 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* 容器 */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --header-height: 72px;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* ========================================
   Dark Mode
   ======================================== */
[data-theme="dark"] {
    --bg-body: #0B0F1A;
    --bg-surface: #111827;
    --bg-card: #1A2332;
    --bg-input: #1F2937;
    --bg-header: rgba(11,15,26,0.95);
    --bg-footer: #060A12;
    --bg-hero: linear-gradient(135deg, #060A12 0%, #111827 50%, #0B1120 100%);
    --bg-section-alt: #111827;

    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-tertiary: #6B7280;
    --text-link: #F9FAFB;
    --text-link-hover: #C9A96E;

    --border-color: #2A3544;
    --border-light: #1F2937;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);

    --color-gray-50: #111827;
    --color-gray-100: #1F2937;
    --color-gray-200: #374151;
}
