/**
 * RIGOL任职资格帮助中心 - 设计系统变量
 * 参考：飞书设计规范 & Ant Design
 */

:root {
  /* ========== 主色调 (飞书蓝) ========== */
  --primary: #3370ff;
  --primary-hover: #1d39c4;
  --primary-active: #165dff;
  --primary-light: #e8f4ff;
  --primary-lighter: #f0f7ff;
  
  --success: #00b42a;
  --success-light: #e8f9ee;
  
  --warning: #ff7d00;
  --warning-light: #fff4e8;
  
  --danger: #f53f3f;
  --danger-light: #ffece8;
  
  --info: #165dff;
  --info-light: #e8f3ff;
  
  /* ========== 中性色 ========== */
  --text-primary: #1d2129;
  --text-secondary: #4e5969;
  --text-tertiary: #86909c;
  --text-disabled: #c9cdd4;
  --text-white: #ffffff;
  
  --border-color: #e5e6eb;
  --border-light: #f2f3f5;
  
  --bg-white: #ffffff;
  --bg-gray: #f7f8fa;
  --bg-gray-light: #fafbfc;
  --bg-hover: #f7f8fa;
  --bg-mask: rgba(0, 0, 0, 0.5);
  
  /* ========== 字体 ========== */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* ========== 字体大小 ========== */
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 32px;
  
  /* ========== 字体粗细 ========== */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* ========== 行高 ========== */
  --line-height-tight: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* ========== 间距 ========== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* ========== 圆角 ========== */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  
  /* ========== 阴影 ========== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
  
  /* ========== 过渡 ========== */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ========== Z-index ========== */
  --z-dropdown: 1000;
  --z-sticky: 1010;
  --z-fixed: 1020;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* ========== 布局 ========== */
  --header-height: 64px;
  --sidebar-width: 256px;
  --sidebar-collapsed-width: 64px;
  --content-max-width: 1200px;
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 1024px;
  --breakpoint-desktop: 1280px;
}

/* ========== 移动端强制白色背景 ========== */
@media (max-width: 768px) {
  :root {
    --text-primary: #1d2129;
    --text-secondary: #4e5969;
    --text-tertiary: #86909c;
    --text-disabled: #c9cdd4;
    
    --border-color: #e5e6eb;
    --border-light: #f2f3f5;
    
    --bg-white: #ffffff;
    --bg-gray: #f7f8fa;
    --bg-gray-light: #fafbfc;
    --bg-hover: #f7f8fa;
  }
}

/* ========== 暗色模式（桌面端可选） ========== */
@media (prefers-color-scheme: dark) and (min-width: 769px) {
  :root {
    --text-primary: #e5e6eb;
    --text-secondary: #c9cdd4;
    --text-tertiary: #86909c;
    --text-disabled: #4e5969;
    
    --border-color: #2e3135;
    --border-light: #232324;
    
    --bg-white: #17171a;
    --bg-gray: #1f1f21;
    --bg-gray-light: #232324;
    --bg-hover: #2e3135;
  }
}

