/**
 * CSS Design System Variables - 同裕科技官网
 *
 * This file defines all CSS custom properties for the website.
 * These variables ensure consistency across all stylesheets.
 */

/* ==========================================================================
   Color Palette - 主色调系统
   ========================================================================== */

:root {
  /* Primary Colors - 主色 */
  --color-primary: #1B7DDA;
  --color-primary-rgb: 27, 125, 218;
  --color-primary-hover: #0168b8;
  --color-primary-light: #e6f2fc;

  /* Text Colors - 文字颜色 */
  --color-text-primary: #000000;
  --color-text-secondary: #333333;
  --color-text-tertiary: #666666;
  --color-text-light: #999999;
  --color-text-inverse: #ffffff;

  /* Neutral Colors - 中性色 */
  --color-gray-dark: #333333;
  --color-gray-medium: #666666;
  --color-gray-light: #f7f7f7;
  --color-gray-border: #e0e0e0;
  --color-gray-bg: #fafafa;

  /* Background Colors - 背景色 */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f7f7f7;
  --color-bg-footer: #232323;
  --color-bg-header: #ffffff;

  /* Accent Colors - 辅助色 */
  --color-accent-success: #28a745;
  --color-accent-warning: #ffc107;
  --color-accent-danger: #dc3545;
  --color-accent-info: #17a2b8;

  /* ==========================================================================
     Typography - 字体系统
     ========================================================================== */

  /* Font Families */
  --font-family-primary: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Georgia', 'Times New Roman', serif;
  --font-family-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 1.875rem;  /* 30px */
  --font-size-3xl: 2.25rem;   /* 36px */
  --font-size-4xl: 3rem;      /* 48px */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* ==========================================================================
     Layout & Spacing - 布局与间距系统
     ========================================================================== */

  /* Container Widths */
  --container-max-xs: 320px;
  --container-max-sm: 540px;
  --container-max-md: 720px;
  --container-max-lg: 960px;
  --container-max-xl: 1140px;
  --container-max-2xl: 1320px;
  --container-max-full: 100%;

  /* Spacing Scale - 基于8px */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Section Padding */
  --section-padding-y: var(--space-16);
  --section-padding-y-sm: var(--space-10);

  /* ==========================================================================
     Component Dimensions - 组件尺寸
     ========================================================================== */

  /* Header */
  --header-height: 80px;
  --header-height-mobile: 64px;
  --header-z-index: 1000;
  --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* Logo */
  --logo-height: 63px;
  --logo-width: auto;

  /* Navigation */
  --nav-link-padding: var(--space-3) var(--space-4);
  --nav-font-size: var(--font-size-base);
  --nav-dropdown-width: 200px;

  /* Buttons */
  --btn-padding-y: var(--space-3) var(--space-6);
  --btn-padding-x: var(--space-6);
  --btn-font-size: var(--font-size-base);
  --btn-font-weight: var(--font-weight-semibold);
  --btn-border-radius: 4px;
  --btn-height: 44px;
  --btn-height-sm: 36px;
  --btn-height-lg: 52px;

  /* Input Fields */
  --input-height: 44px;
  --input-height-sm: 36px;
  --input-height-lg: 52px;
  --input-padding: var(--space-3) var(--space-4);
  --input-border-radius: 4px;
  --input-border-color: var(--color-gray-border);
  --input-focus-border-color: var(--color-primary);
  --input-focus-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);

  /* Cards */
  --card-padding: var(--space-6);
  --card-border-radius: 8px;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* ==========================================================================
     Responsive Breakpoints - 响应式断点
     ========================================================================== */

  /* Breakpoint Values (use in media queries) */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;

  /* Breakpoint Ranges */
  --breakpoint-range-mobile: 'max-width: 575px';
  --breakpoint-range-tablet: '576px - 991px';
  --breakpoint-range-desktop: '992px - 1199px';
  --breakpoint-range-large: '1200px and up';

  /* ==========================================================================
     Z-Index Scale - 层级系统
     ========================================================================== */

  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal-backdrop: 400;
  --z-index-modal: 500;
  --z-index-popover: 600;
  --z-index-tooltip: 700;
  --z-index-toast: 800;

  /* ==========================================================================
     Transitions & Animations - 过渡与动画
     ========================================================================== */

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ==========================================================================
     Shadows - 阴影系统
     ========================================================================== */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* ==========================================================================
     Border Radius - 圆角系统
     ========================================================================== */

  --radius-sm: 2px;
  --radius-base: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* ==========================================================================
     Utility Variables - 通用工具变量
     ========================================================================== */

  /* Divider */
  --divider-color: var(--color-gray-border);
  --divider-width: 1px;

  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(var(--color-primary-rgb), 0.25);
  --focus-ring-offset: 2px;

  /* Screen Reader Only */
  --sr-only-width: 1px;
  --sr-only-height: 1px;
  --sr-only-overflow: hidden;
  --sr-only-clip: rect(0, 0, 0, 0);
}