/* Critical CSS for above-the-fold content */
:root {
  --color-beijing: #C41E3A;
  --color-guangdong: #FF6B35;
  --color-guangxi: #2D8B4E;
  --color-xian: #B8860B;
  --color-chengdu: #7B2D8E;
  --color-yunnan: #0891B2;
  --color-fujian: #0369A1;
  --color-shandong: #0284C7;
  --color-guizhou: #059669;
  --color-dalian: #0EA5E9;
  --bg-primary: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  /* typography */
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.8rem;
  --text-3xl: 2.2rem;
  /* z-index */
  --z-nav: 1000;
  --z-subnav: 999;
  --z-float: 999;
  --z-modal: 10000;
  --z-loader: 99999;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #2563EB !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}
[data-theme="dark"] :focus-visible {
  outline-color: #60A5FA !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Basic dark mode vars */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-card: #1e293b;
  --bg-secondary: #1e293b;
  --bg-tertiary: #1e293b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.6);
  --card-shadow: rgba(0,0,0,0.3);
  --card-border: #334155;
  --table-bg: #1e293b;
  --table-alt: #0f172a;
  --table-border: #334155;
  --input-bg: #1e293b;
  --code-bg: #1e293b;
  --nav-bg: rgba(15, 23, 42, 0.92);
  --nav-dropdown-bg: rgba(15, 23, 42, 0.98);
  --hover-bg: #334155;
  --highlight-row-bg: rgba(34, 197, 94, 0.1);
  --highlight-row-hover: rgba(34, 197, 94, 0.18);
  --bar-track-bg: #334155;
  --info-row-border: #334155;
  --scenario-icon-bg: #334155;
  --section-compare-bg: #0f172a;
  --recommend-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --input-border: #475569;
  --input-focus-border: #60a5fa;
}
