/* ===== 成长大陆历险记 - 设计系统主题 ===== */
:root {
  --gc-background: #F0F7FF;
  --gc-foreground: #1A2332;
  --gc-card: #FFFFFF;
  --gc-card-foreground: #1A2332;
  --gc-popover: #FFFFFF;
  --gc-popover-foreground: #1A2332;
  --gc-primary: #4F8CFF;
  --gc-primary-foreground: #FFFFFF;
  --gc-muted: #F0F4F8;
  --gc-muted-foreground: #6B7A8D;
  --gc-border: #E2E8F0;
  --gc-input: #E2E8F0;
  --gc-ring: #4F8CFF;
  --gc-success: #22C55E;
  --gc-danger: #EF4444;
  --gc-warning: #F59E0B;
  --gc-math: #4F8CFF;
  --gc-chinese: #FF6B6B;
  --gc-english: #FFB347;
  --gc-logic: #A78BFA;
  --gc-radius-sm: 8px;
  --gc-radius-md: 14px;
  --gc-radius-lg: 20px;
  --gc-radius-xl: 28px;
  --gc-shadow-sm: 0 2px 8px rgba(79,140,255,0.08);
  --gc-shadow-md: 0 4px 16px rgba(79,140,255,0.12);
  --gc-shadow-lg: 0 8px 32px rgba(79,140,255,0.16);
  --gc-shadow-glow: 0 0 20px rgba(79,140,255,0.3);
  --font-sans: 'PingFang SC', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;

  /* ===== 响应式容器宽度 ===== */
  /* 默认手机：430px；平板竖屏>=768：640px；平板横屏>=1024：820px；>=1280：960px */
  --gc-container-width: 430px;
  /* 内容横向内边距（左右间距统一令牌） */
  --gc-content-pad: 16px;
  /* 卡片栅格最小列宽（用于 grid-template-columns: repeat(auto-fill, minmax(...))） */
  --gc-fun-card-min: 0;
  /* 冒险地图高度（默认手机） */
  --gc-map-height: 560px;
}

/* 平板竖屏（小米平板竖屏等） */
@media (min-width: 768px) {
  :root {
    --gc-container-width: 640px;
    --gc-content-pad: 24px;
    --gc-map-height: 640px;
  }
}

/* 平板横屏（小米平板横屏等） */
@media (min-width: 1024px) {
  :root {
    --gc-container-width: 820px;
    --gc-content-pad: 28px;
    --gc-map-height: 720px;
  }
}

/* 大尺寸平板/桌面（>=1280px，留出更大边距） */
@media (min-width: 1280px) {
  :root {
    --gc-container-width: 960px;
  }
}

/* 小屏手机（<=360px）：紧凑模式 */
@media (max-width: 360px) {
  :root {
    --gc-content-pad: 12px;
    --gc-map-height: 520px;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--gc-background);
  color: var(--gc-foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
