/* ========================================
   四川侨晟科技有限公司 官网
   CSS 变量系统 - 全局设计系统
   ======================================== */

:root {
  /* ========== 颜色系统 ========== */
  /* 主色调 - 科技紫（未来感、创新力） */
  --color-primary: #7c4dff;
  --color-primary-light: #9b72ff;
  --color-primary-dark: #512da8;
  --color-primary-lighter: rgba(124, 77, 255, 0.12);
  
  /* 辅助色 - 霓虹青（科技、连接） */
  --color-secondary: #00bcd4;
  --color-secondary-light: #26d9e8;
  --color-secondary-dark: #008fa1;
  --color-secondary-lighter: rgba(0, 188, 212, 0.15);
  
  /* 点缀色 - 能量洋红（赛博朋克氛围） */
  --color-accent: #ff4081;
  --color-accent-light: #ff79a8;
  --color-accent-dark: #f50057;
  --color-accent-lighter: rgba(255, 64, 129, 0.15);
  
  /* 成功/状态色 */
  --color-success: #21d8a3;
  --color-success-light: #44f0ba;
  --color-success-dark: #0ba679;
  
  --color-warning: #ffb347;
  --color-warning-light: #ffd480;
  
  --color-error: #ff5c75;
  --color-error-light: #ff8fa3;
  
  /* 赛博中立色 */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: rgba(255, 255, 255, 0.08);
  --color-gray-200: rgba(255, 255, 255, 0.12);
  --color-gray-300: rgba(255, 255, 255, 0.16);
  --color-gray-400: rgba(255, 255, 255, 0.24);
  --color-gray-500: rgba(255, 255, 255, 0.38);
  --color-gray-600: rgba(255, 255, 255, 0.54);
  --color-gray-700: rgba(255, 255, 255, 0.7);
  --color-gray-800: rgba(255, 255, 255, 0.85);
  --color-gray-900: rgba(10, 12, 25, 0.92);
  
  /* 文本色 */
  --color-text-primary: #e6e8ff;
  --color-text-secondary: #9aa3c0;
  --color-text-light: rgba(226, 230, 255, 0.65);
  --color-text-inverse: #090b14;
  
  /* 背景色 */
  --color-bg-primary: #080a14;
  --color-bg-secondary: #0d1020;
  --color-bg-tertiary: #161a31;
  --color-bg-dark: #04050b;
  --color-surface: rgba(18, 22, 41, 0.85);
  --color-surface-alt: rgba(26, 32, 56, 0.8);
  --color-surface-border: rgba(124, 77, 255, 0.25);
  
  /* ========== 字体系统 ========== */
  /* 字体族 */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-family-heading: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-family-mono: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', 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;
  --font-weight-extrabold: 800;
  
  /* 行高 */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* 字间距 */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  
  /* ========== 间距系统 ========== */
  --spacing-0: 0;
  --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-7: 1.75rem;    /* 28px */
  --spacing-8: 2rem;       /* 32px */
  --spacing-9: 2.25rem;    /* 36px */
  --spacing-10: 2.5rem;    /* 40px */
  --spacing-12: 3rem;      /* 48px */
  --spacing-14: 3.5rem;    /* 56px */
  --spacing-16: 4rem;      /* 64px */
  --spacing-20: 5rem;      /* 80px */
  --spacing-24: 6rem;      /* 96px */
  --spacing-28: 7rem;      /* 112px */
  --spacing-32: 8rem;      /* 128px */
  
  /* ========== 圆角系统 ========== */
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-base: 0.375rem; /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* ========== 阴影系统 ========== */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* 蓝色阴影 - 用于强调 */
  --shadow-blue: 0 10px 30px -5px rgba(0, 82, 204, 0.2);
  
  /* ========== 过渡与动画 ========== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* ========== 响应式断点 ========== */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* ========== 容器宽度 ========== */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
  
  /* ========== Z-Index 层级 ========== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #e9ecef;
    --color-text-secondary: #adb5bd;
    --color-bg-primary: #1a1a1a;
    --color-bg-secondary: #2d2d2d;
    --color-bg-tertiary: #3d3d3d;
  }
}
