/* ===== CSS 变量 ===== */
:root {
  /* 颜色 - 深蓝黑赛博风格 */
  --bg-1: #0b0e14;
  --bg-2: #10151f;
  --surface: #151c2a;
  --surface-2: #1a2335;
  --border: rgba(74, 158, 255, 0.15);
  --border-hover: rgba(74, 158, 255, 0.45);
  --primary: #4a9eff;
  --primary-glow: rgba(74, 158, 255, 0.35);
  --accent: #00e5ff;
  --accent-purple: #a05cff;
  --success: #3ecf8e;
  --warning: #ffb020;
  --text-1: rgba(255, 255, 255, 0.9);
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.45);

  /* 品质色 */
  --quality-common: #9aa4b2;
  --quality-rare: #4a9eff;
  --quality-epic: #a05cff;
  --quality-legend: #ffb020;
  --quality-myth: #ff5a5a;

  /* 间距 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* 圆角与切角 */
  --cut-corner: 12px;
  --radius-card: 6px;
  --radius-chip: 999px;

  /* 阴影 */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 16px 48px rgba(0, 0, 0, 0.55);
  --neon-glow: 0 0 16px var(--primary-glow);

  /* 动效 */
  --dur-fast: 180ms;
  --dur-mid: 280ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* 跳过导航 */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--primary);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-card);
  z-index: 1000;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: var(--sp-4);
}

/* ===== 背景氛围层 ===== */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      ellipse 80% 60% at 20% 10%,
      rgba(74, 158, 255, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 80%,
      rgba(160, 92, 255, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-1) 0%, #0a0d13 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(74, 158, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(74, 158, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: 18px;
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  font-size: 15px;
  transition: color var(--dur-fast), text-shadow var(--dur-fast);
  padding: var(--sp-2) 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-1);
  text-shadow: 0 0 8px var(--primary-glow);
  outline: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--dur-fast) var(--ease-out), left var(--dur-fast) var(--ease-out);
  box-shadow: 0 0 8px var(--primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-card);
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2979ff);
  color: #fff;
  box-shadow: var(--neon-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 24px var(--primary-glow), 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* 光扫效果 */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 500ms;
}

.btn:hover::before {
  left: 100%;
}

/* ===== 首屏 Hero ===== */
.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}

.hero-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--primary);
  opacity: 0.5;
}
.hero-corner.tl {
  top: var(--sp-5);
  left: var(--sp-5);
  border-top: 2px solid;
  border-left: 2px solid;
}
.hero-corner.tr {
  top: var(--sp-5);
  right: var(--sp-5);
  border-top: 2px solid;
  border-right: 2px solid;
}
.hero-corner.bl {
  bottom: var(--sp-5);
  left: var(--sp-5);
  border-bottom: 2px solid;
  border-left: 2px solid;
}
.hero-corner.br {
  bottom: var(--sp-5);
  right: var(--sp-5);
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 16px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  font-size: 13px;
  color: var(--primary);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto var(--sp-6);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}

/* 统计数据 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  position: relative;
}

.hero-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.05), transparent);
  pointer-events: none;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
}

/* ===== 区块通用 ===== */
.section {
  padding: var(--sp-8) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.section-desc {
  color: var(--text-2);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.filter-chip {
  padding: 8px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  min-height: 40px;
}

.filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(0, 229, 255, 0.1));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.2);
}

/* ===== 游戏卡片网格 ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--dur-mid) var(--ease-out);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.game-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-2), 0 0 24px rgba(74, 158, 255, 0.15);
}

/* 品质边框光效 */
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--primary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-mid);
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 14, 20, 0.8) 100%);
}

/* 品质标签 */
.game-quality {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.quality-legend {
  background: linear-gradient(135deg, var(--quality-legend), #ff9500);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 176, 32, 0.5);
}

.quality-epic {
  background: linear-gradient(135deg, var(--quality-epic), #7c3aed);
  color: #fff;
  box-shadow: 0 0 12px rgba(160, 92, 255, 0.5);
}

.quality-rare {
  background: linear-gradient(135deg, var(--quality-rare), #2563eb);
  color: #fff;
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.5);
}

/* 标签组 */
.game-tags {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  gap: var(--sp-1);
  z-index: 2;
}

.game-tag {
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-1);
  font-weight: 500;
}

.game-tag.gm {
  background: rgba(255, 90, 90, 0.8);
}

.game-tag.noad {
  background: rgba(62, 207, 142, 0.8);
}

.game-tag.free {
  background: rgba(0, 229, 255, 0.8);
  color: #000;
}

.game-card-body {
  padding: var(--sp-4);
}

.game-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  line-height: 1.4;
  color: var(--text-1);
}

.game-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.game-size {
  font-size: 13px;
  color: var(--text-3);
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--warning);
  font-weight: 600;
}

.game-card-footer {
  display: flex;
  gap: var(--sp-2);
}

.game-card-footer .btn {
  flex: 1;
}

/* ===== 特性区块 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-5);
  text-align: center;
  transition: all var(--dur-mid) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(0, 229, 255, 0.1));
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  border: 1px solid var(--border);
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--dur-fast);
  z-index: -1;
}

.feature-card:hover .feature-icon::after {
  opacity: 0.2;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===== 教程区块 ===== */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}

.guide-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-5);
  position: relative;
  padding-left: calc(var(--sp-5) + 48px);
}

.guide-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-5);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.guide-step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.guide-step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  gap: var(--sp-4);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-mid) var(--ease-out),
    padding var(--dur-mid) var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CTA 区块 ===== */
.cta-section {
  padding: var(--sp-8) 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(160, 92, 255, 0.08));
  border: 1px solid var(--primary);
  border-radius: var(--radius-card);
  padding: var(--sp-8) var(--sp-5);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.15), transparent 70%);
}

.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  position: relative;
}

.cta-desc {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: var(--sp-5);
  position: relative;
}

.cta-box .btn {
  position: relative;
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-6) 0 var(--sp-5);
  background: rgba(11, 14, 20, 0.6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.footer-links a {
  color: var(--text-2);
  font-size: 14px;
  transition: color var(--dur-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--sp-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== 滚动进度条 ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: var(--sp-7) 0 var(--sp-6);
  }

  .hero-corner {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5) var(--sp-3);
  }

  .section {
    padding: var(--sp-7) 0;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .filter-bar {
    gap: var(--sp-2);
  }

  .filter-chip {
    padding: 6px 14px;
    font-size: 13px;
  }

  .guide-step {
    padding-left: calc(var(--sp-4) + 44px);
  }

  .cta-box {
    padding: var(--sp-6) var(--sp-4);
  }
}

@media (max-width: 480px) {
  .container,
  .nav-inner {
    padding: 0 var(--sp-4);
  }

  .game-card-body {
    padding: var(--sp-3);
  }
}

/* ===== 焦点可见 ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.2);
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
