/* ==========================================
   theme.css - 全局主题变量
   ========================================== */

:root {
    /* 主色调 */
    --primary: #667eea;
    --primary-light: #818cf8;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f59e0b;
    
    /* 语义化色彩 */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #059669;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #d97706;
    
    --error: #ef4444;
    --error-light: #fee2e2;
    --error-dark: #dc2626;
    
    --info: #3b82f6;
    --info-light: #dbeafe;
    --info-dark: #2563eb;
    
    /* 背景色 */
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --bg-muted: #e2e8f0;
    --bg-surface: #ffffff;
    --bg-hover: #f1f5f9;
    
    /* 文字色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-muted: #cbd5e1;
    --text-white: #ffffff;
    
    /* 边框色 */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 12px rgba(102, 126, 234, 0.3);
    
    /* 圆角 */
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-full: 9999px;
    
    /* 过渡动画 */
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s ease;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-soft: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 暗色主题变量 */
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --bg-muted: #334155;
    --bg-surface: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;
    
    --border: #334155;
    --border-light: #475569;
    --border-dark: #1e293b;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}
