/* ========================================
   CSS 变量系统 - 江苏颐庄商贸有限公司官网
   ======================================== */

:root {
  /* ========== 颜色变量 ========== */
  /* 主色 - 医疗蓝 */
  --color-primary: #0369a1;
  --color-primary-dark: #024b73;
  --color-primary-light: #0ea5e9;
  
  /* 辅色 - 洁净天蓝与生命绿 */
  --color-secondary: #0ea5e9;
  --color-secondary-dark: #0284c7;
  --color-secondary-light: #7dd3fc;
  --color-accent: #10b981;
  --color-accent-dark: #059669;
  
  /* 中性色 */
  --color-text-dark: #0f172a;
  --color-text-light: #475569;
  --color-text-lighter: #94a3b8;
  --color-background: #ffffff;
  --color-background-light: #f0f9ff;
  --color-surface: #ffffff;
  --color-border: #cbd5f5;
  --color-border-light: #e2e8f0;
  
  /* 状态色 */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #0284c7;
  
  /* 渐变与亮面 */
  --gradient-hero: linear-gradient(120deg, #0b5cc4 0%, #0ea5e9 55%, #16c3aa 100%);
  --gradient-soft: linear-gradient(180deg, rgba(224, 242, 254, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  --gradient-card: linear-gradient(135deg, rgba(3, 105, 161, 0.08), rgba(14, 165, 233, 0.18));
  
  /* ========== 字体变量 ========== */
  --font-family-base: 'Noto Sans SC', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Noto Sans SC', 'Roboto', 'Segoe UI', sans-serif;
  --font-family-mono: 'Source Code Pro', 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  
  /* 字体大小 */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  
  /* 字体粗细 */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* 行高 */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* ========== 间距变量 ========== */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  --spacing-4xl: 6rem;      /* 96px */
  
  /* ========== 圆角变量 ========== */
  --radius-none: 0;
  --radius-sm: 0.25rem;     /* 4px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 1rem;        /* 16px */
  --radius-xl: 1.5rem;      /* 24px */
  --radius-full: 9999px;
  
  /* ========== 阴影变量 ========== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* ========== 过渡变量 ========== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* ========== 宽度限制 ========== */
  --container-max-width: 1200px;
  --container-padding: var(--spacing-md);
  
  /* ========== 响应式断点 ========== */
  /* 在媒体查询中使用 */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/* ========== 深色主题变量（可选） ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-dark: #e2e8f0;
    --color-text-light: #cbd5f5;
    --color-background: #0f172a;
    --color-background-light: #1e293b;
    --color-border: #243b53;
    --color-border-light: #1f2937;
  }
}
