/* ============================================
   Design Tokens / CSS Variables — BoomGame
   摸鱼专属轻休闲游戏平台 · 活力橙绿配色
   ============================================ */

:root {
  /* Primary — 活力橙 */
  --cg-primary: #ff6b35;
  --cg-primary-dark: #e85520;
  --cg-primary-light: #ff8555;
  --cg-primary-subtle: rgba(255, 107, 53, 0.10);

  /* Accent */
  --cg-accent: #00c896;
  --cg-accent-dark: #00a87e;
  --cg-accent-2: #ffd93d;
  --cg-accent-3: #6c63ff;

  /* Boss Key — 醒目红 */
  --cg-boss-key: #e53935;
  --cg-boss-key-hover: #c62828;

  /* Backgrounds */
  --cg-bg-primary: #f5f6fa;
  --cg-bg-secondary: #ffffff;
  --cg-bg-tertiary: #eceef5;
  --cg-bg-card: #ffffff;
  --cg-bg-hover: #fff4f0;
  --cg-bg-sidebar: #ffffff;
  --cg-bg-header: #1a1a2e;

  /* Text */
  --cg-text-primary: #1a1a2e;
  --cg-text-secondary: #374151;
  --cg-text-tertiary: #6b7280;
  --cg-text-muted: #9ca3af;
  --cg-text-on-primary: #ffffff;

  /* Borders */
  --cg-border: #e2e5ee;
  --cg-border-light: #edf0f7;

  /* Status */
  --cg-success: #00c896;
  --cg-warning: #ffd93d;
  --cg-error: #ff4444;

  /* Typography */
  --cg-font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cg-font-size-xs: 11px;
  --cg-font-size-sm: 13px;
  --cg-font-size-base: 15px;
  --cg-font-size-md: 15px;
  --cg-font-size-lg: 17px;
  --cg-font-size-xl: 20px;
  --cg-font-size-2xl: 24px;
  --cg-font-size-3xl: 30px;
  --cg-font-size-4xl: 38px;

  --cg-font-weight-normal: 400;
  --cg-font-weight-medium: 500;
  --cg-font-weight-semibold: 600;
  --cg-font-weight-bold: 700;
  --cg-font-weight-extrabold: 800;

  --cg-line-height-tight: 1.25;
  --cg-line-height-normal: 1.5;
  --cg-line-height-relaxed: 1.7;

  /* Spacing */
  --cg-spacing-xs: 4px;
  --cg-spacing-sm: 8px;
  --cg-spacing-md: 16px;
  --cg-spacing-lg: 24px;
  --cg-spacing-xl: 32px;
  --cg-spacing-2xl: 48px;
  --cg-spacing-3xl: 64px;

  /* Border Radius */
  --cg-radius-sm: 6px;
  --cg-radius-md: 10px;
  --cg-radius-lg: 14px;
  --cg-radius-xl: 20px;
  --cg-radius-full: 9999px;

  /* Shadows */
  --cg-shadow-sm: 0 1px 3px rgba(255, 107, 53, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --cg-shadow-md: 0 4px 12px rgba(255, 107, 53, 0.10), 0 2px 4px rgba(0, 0, 0, 0.05);
  --cg-shadow-lg: 0 8px 24px rgba(255, 107, 53, 0.13), 0 3px 8px rgba(0, 0, 0, 0.07);
  --cg-shadow-xl: 0 12px 40px rgba(255, 107, 53, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --cg-transition-fast: 120ms ease;
  --cg-transition-base: 200ms ease;
  --cg-transition-slow: 320ms ease;

  /* Layout */
  --cg-header-height: 60px;
  --cg-sidebar-width: 210px;
  --cg-sidebar-collapsed-width: 56px;
  --cg-container-max-width: 1600px;
}

/* Dark Theme */
[data-theme='dark'] {
  --cg-bg-primary: #0e0f1a;
  --cg-bg-secondary: #181927;
  --cg-bg-tertiary: #20223a;
  --cg-bg-card: #181927;
  --cg-bg-hover: #2a1810;
  --cg-bg-sidebar: #13141f;
  --cg-bg-header: #0a0b14;

  --cg-text-primary: #eef0f6;
  --cg-text-secondary: #b0b8cc;
  --cg-text-tertiary: #7a84a0;
  --cg-text-muted: #515a73;

  --cg-border: #252840;
  --cg-border-light: #1c1e30;

  --cg-primary-subtle: rgba(255, 107, 53, 0.18);

  --cg-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --cg-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
  --cg-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3);
  --cg-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
}
