/**
 * 青骄升学 WEB后台 - CSS 变量定义
 * 基于WEB_ADMIN_UI_DESIGN_SPEC.md设计规范
 */

:root {
  /* ==================== 颜色系统 ==================== */
  
  /* 主色调 */
  --color-primary: #31ACAC;
  --color-primary-hover: #28999A;
  --color-primary-active: #1F8080;
  --color-primary-light: #F0FDFA;
  
  /* 功能色 */
  --color-success: #10B981;
  --color-success-bg: #D1FAE5;
  --color-success-text: #065F46;
  
  --color-warning: #F59E0B;
  --color-warning-bg: #FEF3C7;
  --color-warning-text: #92400E;
  
  --color-error: #EF4444;
  --color-error-bg: #FEE2E2;
  --color-error-text: #991B1B;
  
  --color-info: #3B82F6;
  --color-info-bg: #DBEAFE;
  --color-info-text: #1E40AF;
  
  /* 中性色 */
  --color-text-primary: #111827;
  --color-text-secondary: #6B7280;
  --color-text-tertiary: #9CA3AF;
  --color-text-disabled: #D1D5DB;
  --color-text-light: #9CA3AF;
  
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F9FAFB;
  --color-bg-tertiary: #F3F4F6;
  --color-bg-hover: #F3F4F6;
  
  --color-border-light: #E5E7EB;
  --color-border-medium: #D1D5DB;
  --color-border-dark: #9CA3AF;
  
  /* ==================== 字体系统 ==================== */
  
  /* 字体家族 */
  --font-family-base: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: Consolas, Monaco, 'Courier New', monospace;
  
  /* 字号 */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  
  /* 字重 */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* 行高 */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ==================== 间距系统 ==================== */
  --spacing-0: 0;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* ==================== 圆角系统 ==================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* ==================== 阴影系统 ==================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Focus ring */
  --shadow-focus: 0 0 0 3px rgba(49, 172, 172, 0.3);
  
  /* ==================== 过渡动画 ==================== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* ==================== Z-Index ==================== */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  --z-index-toast: 1080;
  
  /* ==================== 布局尺寸 ==================== */
  --sidebar-width: 240px;
  --header-height: 64px;
  --table-header-height: 48px;
  --table-row-height: 56px;
  
  /* ==================== 侧边栏颜色 ==================== */
  --sidebar-bg: #1E293B;
  --sidebar-text: #FFFFFF;
  --sidebar-text-secondary: #94A3B8;
  --sidebar-border: #334155;
  --sidebar-hover: #334155;
  --sidebar-active: #31ACAC;
}
