/* CSS Variables - 主题颜色定义 */

:root {
  /* 浅色主题（默认） */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --accent-color: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --heading-border: #cbd5e1; /* 亮色主题使用浅灰色，更柔和 */
  
  --sidebar-bg: #1e3a5f;
  --sidebar-hover: #2a4a73;
  --sidebar-active: rgba(255, 255, 255, 0.12);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* 深色主题 */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  
  --border-color: #334155;
  --border-light: #1e293b;
  
  --accent-color: #60a5fa;
  --accent-light: #93c5fd;
  --accent-dark: #3b82f6;
  --heading-border: #64748b; /* 深色主题使用中灰色，更柔和 */
  
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}
