/* ========================================
   西安欣创电子技术有限公司官网
   全局CSS变量系统（LCARS主题）
   ======================================== */

:root {
  /* ===== LCARS调色板 ===== */
  --lcars-amber: #ff9c54;
  --lcars-salmon: #ff6f8c;
  --lcars-lilac: #b88cff;
  --lcars-cyan: #5ed1ff;
  --lcars-deep: #040712;
  --lcars-panel: #0a0f1f;
  --lcars-panel-alt: #101733;
  --lcars-border: #1f2a4d;

  /* ===== 主题颜色映射 ===== */
  --color-primary: var(--lcars-deep);
  --color-accent: var(--lcars-amber);
  --color-highlight: var(--lcars-cyan);
  --color-secondary: var(--lcars-salmon);
  --color-tertiary: var(--lcars-lilac);

  /* ===== 文本颜色 ===== */
  --color-text-dark: #e6eaf5;
  --color-text-light: #f6f8ff;
  --color-text-muted: #9ca8c8;
  --color-text-light-muted: #7b87a9;

  /* ===== 背景颜色 ===== */
  --color-background-light: var(--lcars-panel-alt);
  --color-background-white: var(--lcars-panel);
  --color-background-dark: var(--lcars-deep);

  /* ===== 边框和分割线 ===== */
  --color-border: rgba(94, 209, 255, 0.18);
  --color-border-light: rgba(255, 255, 255, 0.08);

  /* ===== 状态颜色 ===== */
  --color-success: #60d394;
  --color-warning: #ffd166;
  --color-error: #ff6f61;
  --color-info: #72e0ff;

  /* ===== 字体系统 ===== */
  --font-family-display: "Orbitron", "Rajdhani", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-family-primary: var(--font-family-display);
  --font-family-mono: "Share Tech Mono", "Courier New", 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.375rem;    /* 22px */
  --font-size-2xl: 1.75rem;    /* 28px */
  --font-size-3xl: 2.25rem;    /* 36px */
  --font-size-4xl: 3rem;       /* 48px */
  --font-size-5xl: 4rem;       /* 64px */

  /* 字体权重 */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* 行高 */
  --line-height-tight: 1.1;
  --line-height-normal: 1.45;
  --line-height-relaxed: 1.8;

  /* ===== 间距系统 ===== */
  --spacing-unit: 1rem;         /* 基础间距单位 16px */
  --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: 3.5rem;        /* 56px */
  --spacing-3xl: 5rem;          /* 80px */
  --spacing-4xl: 7rem;          /* 112px */

  /* ===== 圆角系统 ===== */
  --border-radius-none: 0;
  --border-radius-xs: 4px;
  --border-radius-sm: 8px;
  --border-radius-base: 16px;
  --border-radius-md: 24px;
  --border-radius-lg: 32px;
  --border-radius-xl: 48px;
  --border-radius-full: 9999px;
  --border-radius-lcars: 72px;

  /* ===== 阴影与光晕 ===== */
  --box-shadow-xs: 0 0 12px rgba(94, 209, 255, 0.25);
  --box-shadow-sm: 0 0 24px rgba(94, 209, 255, 0.2);
  --box-shadow-base: 0 0 32px rgba(184, 140, 255, 0.22);
  --box-shadow-md: 0 0 48px rgba(255, 156, 84, 0.22);
  --box-shadow-lg: 0 0 64px rgba(255, 111, 140, 0.25);
  --box-shadow-xl: 0 0 80px rgba(94, 209, 255, 0.35);

  /* ===== Grid布局 ===== */
  --grid-gap: 24px;
  --grid-max-width: 1280px;
  --grid-container-padding: 24px;

  /* ===== 过渡和动画 ===== */
  --transition-fast: 150ms ease-out;
  --transition-base: 280ms ease-out;
  --transition-slow: 600ms ease-in-out;

  /* ===== 其他 ===== */
  --border-width: 2px;
  --border-width-thick: 4px;
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal: 400;
  --z-index-scanner: 500;
}

/* ===== 响应式设计断点 ===== */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 0.9375rem;
    --spacing-unit: 0.875rem;
    --grid-container-padding: 16px;
    --grid-gap: 16px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  :root {
    --font-size-base: 0.96875rem;
    --spacing-unit: 0.9375rem;
    --grid-container-padding: 20px;
    --grid-gap: 20px;
  }
}

@media (min-width: 992px) {
  :root {
    --font-size-base: 1rem;
    --spacing-unit: 1rem;
    --grid-container-padding: 24px;
    --grid-gap: 24px;
  }
}
