/* ========================================
   CSS 变量定义 - Caffeine 设计系统
   ======================================== */

:root {
  /* ==================== 颜色系统 ==================== */
  
  /* 主色调 - 咖啡因主题 */
  --primary-color: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #A78BFA;
  
  /* 强调色 - 青色调 */
  --accent-color: #06B6D4;
  --accent-dark: #0891B2;
  --accent-light: #22D3EE;
  
  /* 背景色 - 深色主题 */
  --bg-primary: #1A1A1A;
  --bg-secondary: #252526;
  --bg-tertiary: #2D2D30;
  --bg-hover: #3E3E42;
  
  /* 文字颜色 */
  --text-primary: #E0E0E0;
  --text-secondary: #9E9E9E;
  --text-tertiary: #6E6E6E;
  --text-white: #FFFFFF;
  
  /* 边框颜色 */
  --border-color: #4A4A4A;
  --border-light: #3A3A3A;
  --border-dark: #2A2A2A;
  
  /* 状态颜色 */
  --success: #4CAF50;
  --warning: #FFC107;
  --error: #F44336;
  --info: #2196F3;
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  --gradient-hero: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #06B6D4 100%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.4);
  --shadow-glow-strong: 0 0 40px rgba(139, 92, 246, 0.6);
  --shadow-cyan: 0 0 30px rgba(6, 182, 212, 0.4);
  
  /* ==================== 字体系统 ==================== */
  
  /* 字体家族 */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                  "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", 
                  sans-serif;
  --font-mono: "Consolas", "Monaco", "Courier New", monospace;
  
  /* 字体大小 */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 2rem;      /* 32px */
  --text-3xl: 3rem;      /* 48px */
  --text-4xl: 4rem;      /* 64px */
  --text-5xl: 4.5rem;    /* 72px */
  
  /* 字重 */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* 行高 */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;
  
  /* ==================== 间距系统 ==================== */
  
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */
  --spacing-32: 8rem;     /* 128px */
  
  /* ==================== 圆角系统 ==================== */
  
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.25rem;  /* 20px */
  --radius-full: 9999px;
  
  /* ==================== 动画系统 ==================== */
  
  /* 动画时长 */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  
  /* 缓动函数 */
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-in: cubic-bezier(0.4, 0, 1, 1);
  --easing-out: cubic-bezier(0, 0, 0.2, 1);
  --easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --easing-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* ==================== 布局系统 ==================== */
  
  /* 容器宽度 */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* 导航栏 */
  --navbar-height: 70px;
  
  /* Z-index 层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* ==================== 响应式断点 ==================== */
  
  /* 这些值用于 JavaScript 中 */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ==================== 暗色主题（默认） ==================== */
/* 已在 :root 中定义 */

/* ==================== 亮色主题（可选） ==================== */
/* 如果需要亮色主题，可以添加以下代码：
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-tertiary: #E0E0E0;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #6E6E6E;
  --border-color: #D0D0D0;
}
*/
