/* AIGame39 — 创意模板 "Neon Bento"：霓虹 + 不规则网格 */
:root {
  --bg: #050508;
  --bg-panel: #0a0a0f;
  --bg-card: #0e0e14;
  --bg-card-hover: #14141c;
  --border: rgba(0, 240, 255, 0.12);
  --border-strong: rgba(0, 240, 255, 0.25);
  --text: #e8e8ec;
  --text-soft: #9898a8;
  --muted: #5c5c6c;
  --accent: #00f0ff;
  --accent-dim: #00b8c4;
  --accent-glow: rgba(0, 240, 255, 0.35);
  --accent-soft: rgba(0, 240, 255, 0.1);
  --pink: #ff006e;
  --pink-soft: rgba(255, 0, 110, 0.15);
  --font-display: 'Orbitron', sans-serif;
  --font: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --width: 1280px;
  --width-narrow: 960px;
  --radius: 12px;
  --radius-sm: 6px;
  --bp-tablet: 640px;
  --bp-desktop: 960px;
  --bp-wide: 1200px;
  --bp-max: 1440px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ========== Header — 透明顶栏 + 霓虹边框 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-header .header-inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
@media (min-width: 640px) {
  .site-header .header-inner { padding: var(--space-md) var(--space-xl); }
}
@media (min-width: 1200px) {
  .site-header .header-inner { padding: var(--space-md) var(--space-2xl); max-width: var(--width); }
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }
.logo-icon {
  color: var(--accent);
  font-size: 0.85em;
}
.site-header .search-form { flex: 1; min-width: 0; max-width: 200px; }
@media (min-width: 640px) { .site-header .search-form { max-width: 220px; } }
.site-header .search-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 38px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header .search-form input::placeholder { color: var(--muted); }
.site-header .search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0.15rem; align-items: center; }
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .nav-links a { font-size: 0.875rem; padding: 0.4rem 0.65rem; min-height: 0; min-width: 0; }
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }

/* ========== Hero 全幅 — 斜切背景 + 大标题 ========== */
.hero-full {
  position: relative;
  padding: var(--space-2xl) var(--space-lg);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}
.hero-full-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    linear-gradient(280deg, rgba(255, 0, 110, 0.04) 0%, transparent 35%),
    var(--bg-panel);
}
.hero-full-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.6;
}
.hero-full-inner {
  position: relative;
  max-width: var(--width);
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 1200px) {
  .hero-full { padding: var(--space-2xl) var(--space-2xl); }
  .hero-title { font-size: clamp(2.5rem, 5vw, 4rem); }
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  opacity: 0.95;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 var(--space-sm);
  color: var(--text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* 兼容旧 hero-strip（其他页） */
.hero-strip {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-strip-inner { max-width: 36rem; }
.hero-strip .hero-title { font-size: clamp(1.5rem, 4vw, 2rem); text-transform: none; }
.hero-strip .hero-title-line { display: block; }
.hero-strip .hero-title-accent { color: var(--accent); }
.hero-visual { display: none; }

/* ========== Main 内容区 ========== */
main { padding-bottom: var(--space-3xl); }
.main-wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-2xl);
}
@media (min-width: 960px) {
  .main-wrap { padding: 0 var(--space-xl) var(--space-2xl); }
}
@media (min-width: 1200px) {
  .main-wrap { padding: 0 var(--space-2xl) var(--space-2xl); max-width: var(--width); }
}
@media (min-width: 1440px) {
  .main-wrap { max-width: min(var(--width), 90vw); }
}

/* ========== 分类栏 — 霓虹药丸 ========== */
.category-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-xs) 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.category-bar a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-soft);
}
@media (min-width: 640px) {
  .category-bar { flex-wrap: wrap; overflow-x: visible; }
}

/* ========== 精选 / 热门 横向区块 ========== */
.game-block {
  margin-bottom: var(--space-2xl);
}
.game-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-right: var(--space-sm);
}
.game-block-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.game-block-title::before {
  content: '';
  width: 3px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
}
.game-block-featured .game-block-title { color: var(--accent); }
.game-block-popular .game-block-title::before { background: var(--pink); }
.game-block-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
.game-block-link:hover { color: var(--accent); }
.game-strip-wrap {
  position: relative;
}
/* 左右切换按钮：移动端隐藏，PC 端显示 */
.strip-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.strip-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.strip-btn:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.strip-prev { left: 0; }
.strip-next { right: 0; }
@media (min-width: 960px) {
  .strip-btn { display: flex; }
}
.game-strip {
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.game-strip::-webkit-scrollbar { display: none; }
.game-strip > li {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.game-card-strip {
  width: 280px;
  min-width: 280px;
}
@media (min-width: 640px) {
  .game-card-strip { width: 300px; min-width: 300px; }
}
/* PC 端显示横向滚动条，支持拖动与 Shift+滚轮 */
@media (min-width: 960px) {
  .game-strip {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-bottom: var(--space-sm);
  }
  .game-strip::-webkit-scrollbar {
    display: block;
    height: 8px;
  }
  .game-strip::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
  }
  .game-strip::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }
  .game-strip::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
  }
}
.game-block-popular { margin-bottom: var(--space-2xl); }

/* ========== 游戏列表标题 ========== */
.game-list-section { margin-bottom: var(--space-2xl); }
.list-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
@media (min-width: 960px) {
  .list-section-header { margin-bottom: var(--space-sm); }
}
.list-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.list-section-count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

/* ========== 游戏列表 — 媒体卡片网格，PC 多列 + 紧凑 ========== */
.game-list-section .game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .game-list-section .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}
@media (min-width: 960px) {
  .game-list-section .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}
@media (min-width: 1200px) {
  .game-list-section .game-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
  }
}
@media (min-width: 1440px) {
  .game-list-section .game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
  }
}
.game-grid > li { margin: 0; }

/* 全部游戏列表：紧凑卡片，缩小占位 */
.game-list-section .game-card .game-card-thumb { aspect-ratio: 16 / 9; }
.game-list-section .game-card-body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.game-list-section .game-card-title { font-size: 0.875rem; -webkit-line-clamp: 1; }
.game-list-section .game-card-meta { font-size: 0.625rem; }
.game-list-section .game-card-desc { font-size: 0.75rem; -webkit-line-clamp: 1; }
.game-list-section .game-card-play { padding: 0.4rem var(--space-sm); font-size: 0.6875rem; margin: 0 var(--space-sm) var(--space-sm); }
@media (min-width: 960px) {
  .game-list-section .game-card-body { padding: var(--space-xs) var(--space-sm) var(--space-sm); }
  .game-list-section .game-card-desc { display: none; }
  .game-list-section .game-card-play { padding: 0.35rem var(--space-sm); margin: 0 var(--space-sm) var(--space-sm); }
}

/* 游戏卡片 — 标题/描述叠在图上，Play 在下方 */
.game-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.game-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 32px var(--accent-soft);
  transform: translateY(-3px);
}
.game-card > a:first-of-type {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.game-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--border);
  position: relative;
}
.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-thumb img { transform: scale(1.06); }
/* 信息叠在图片底部 */
.game-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(to top, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.4) 60%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.game-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.game-card:hover .game-card-title { color: var(--accent); }
.game-card-meta {
  font-size: 0.6875rem;
  color: var(--text-soft);
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
}
.game-card-desc {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  opacity: 0.9;
}
/* Play 按钮 — 贴底、全宽 */
.game-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.65rem var(--space-md);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.game-card-play::after {
  content: '→';
  font-size: 1em;
  opacity: 0.9;
}
.game-card-play:hover {
  background: var(--accent-dim);
  color: var(--bg);
  box-shadow: 0 0 24px var(--accent-glow);
}


/* ========== Legacy game-row（列表页等） ========== */
.game-list { list-style: none; margin: 0; padding: 0; }
.game-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  min-height: 80px;
}
.game-row:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .game-row { grid-template-columns: 140px 1fr auto; gap: 1rem; padding: 1rem 0; min-height: 90px; }
}
.game-row-thumb {
  display: block;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.game-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-row-body { min-width: 0; }
.game-row-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.2rem; line-height: 1.3; }
.game-row-title a { color: var(--text); text-decoration: none; }
.game-row-title a:hover { color: var(--accent); }
.game-row-meta { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.game-row-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-row-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.game-row-play:hover { background: var(--accent-dim); box-shadow: 0 0 20px var(--accent-glow); }

/* ========== About strip ========== */
.about-strip {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}
.about-strip p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 65ch;
}
.about-strip a { color: var(--accent); text-decoration: none; font-weight: 600; }
.about-strip a:hover { text-decoration: underline; }

/* ========== Footer ========== */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  padding-left: calc(var(--space-lg) + env(safe-area-inset-left));
  padding-right: calc(var(--space-lg) + env(safe-area-inset-right));
}
@media (min-width: 640px) { .site-footer { padding: var(--space-xl); padding-bottom: var(--space-xl); } }
@media (min-width: 1200px) { .site-footer { padding: var(--space-xl) var(--space-2xl); } }
.site-footer .footer-inner {
  max-width: var(--width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
@media (min-width: 500px) {
  .site-footer .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.9rem; }
.footer-nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; }
.footer-nav a:hover { color: var(--accent); }
.footer-share-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
  display: block;
}
.footer-share .share-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.footer-share .share-links a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-share .share-links a:hover { background: var(--accent); color: var(--bg); }
.footer-copy { font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }

/* ========== Utility ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Detail 详情页 ========== */
.page-title { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; margin: 0 0 0.5rem; color: var(--text); letter-spacing: 0.02em; }
.page-desc { font-size: 0.9375rem; color: var(--text-soft); margin: 0 0 var(--space-xl); max-width: 40ch; }
.category-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 28rem; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); font-weight: 600; color: var(--text); text-decoration: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s, color 0.2s; }
.category-list a:hover { color: var(--accent); border-color: var(--accent); }
.category-list .category-count { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.detail-hero { margin-bottom: 1.5rem; }
.detail-hero .thumb-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.detail-hero .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero .meta h1 { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; margin: 0 0 0.75rem; color: var(--text); letter-spacing: 0.02em; }
.detail-hero .meta .play-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-bottom: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.detail-hero .meta .play-btn:hover { background: var(--accent-dim); box-shadow: 0 0 24px var(--accent-glow); }
.detail-hero .meta .desc { font-size: 0.9rem; color: var(--text-soft); margin: 0 0 0.5rem; }
.detail-hero .meta .game-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.detail-hero .meta .game-desc p { margin: 0 0 0.75rem; }
.detail-hero .meta .game-desc p:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .detail-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
  .detail-hero .thumb-wrap { margin-bottom: 0; }
}

/* ========== About / Legal / FAQ / Contact ========== */
.about-content, .legal-content, .contact-content, .faq-content {
  max-width: 65ch;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.about-content h2, .legal-content h2, .contact-content h2, .faq-content h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.about-content h2:first-of-type, .legal-content h2:first-of-type,
.contact-content h2:first-of-type, .faq-content h2:first-of-type { margin-top: 0.5rem; }
.about-content p, .legal-content p, .contact-content p { margin: 0 0 0.6rem; }
.contact-content a { color: var(--accent); text-decoration: none; }
.contact-content a:hover { text-decoration: underline; }
.faq-list { margin: 0; padding: 0; list-style: none; }
.faq-item { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--text); }
.faq-a { margin: 0; font-size: 0.9rem; color: var(--text-soft); line-height: 1.65; }
.faq-a a { color: var(--accent); text-decoration: none; }

/* ========== Spotlight / 其他布局 ========== */
.spotlight { margin-bottom: 1.5rem; }
.spotlight-inner { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 500px) { .spotlight-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .spotlight-inner { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.spotlight-item {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.spotlight-item:hover { border-color: var(--border-strong); box-shadow: 0 0 24px var(--accent-soft); }
.spotlight-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--border); }
.spotlight-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-title { display: block; padding: 0.6rem 0.75rem 0.2rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text); }
.spotlight-meta { display: block; padding: 0 0.75rem 0.75rem; font-size: 0.8rem; color: var(--muted); }

.game-grid .game-card .play-link { display: none; }
.game-card .info, .game-card .thumb { display: block; }
.game-card .info { padding: 1rem 1.2rem; }
.game-card .info .title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text); }
.game-card .info .meta { font-size: 0.8rem; color: var(--muted); }
.game-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--border); }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.game-card:hover .thumb img { transform: scale(1.05); }

/* ========== Empty / Search ========== */
.empty-state {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid var(--border);
}
.empty-state .icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; opacity: 0.6; }
.empty-state a { color: var(--accent); text-decoration: none; font-weight: 600; }
.empty-state a:hover { text-decoration: underline; }
.search-result-count { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }

/* ========== Share ========== */
.share-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.share-label { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; display: block; color: var(--muted); }
.share-links a, .share-copy {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.share-links a:hover, .share-copy:hover { background: var(--accent); color: var(--bg); }

/* ========== Category pills（标签页） ========== */
.category-pills, .categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; list-style: none; margin-left: 0; padding: 0; }
.category-pills a, .categories a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.category-pills a:hover, .categories a:hover { color: var(--accent); border-color: var(--accent); }
.section-heading, .section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 1rem; letter-spacing: 0.04em; }
.section-count { color: var(--muted); font-size: 0.85em; font-weight: 500; }
.games-section { margin-bottom: 2rem; }
.games-section:last-of-type { margin-bottom: 0; }

/* ========== Ad slot ========== */
.ad-slot {
  position: relative;
  width: 100%;
  min-height: 90px;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 12px 12px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.ad-slot::before { content: "Ad"; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ========== Ad Banner (Top) ========== */
.ad-banner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
}
.ad-banner::before {
  content: "Advertisement";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ad-banner-top,.ad-banner-middle {
  padding: 1.25rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ad-banner-inner {
  max-width: var(--width);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.ad-banner-inner:empty { display: none; }
.ad-banner:has(.ad-banner-inner:empty) { display: none; }
.ad-banner:has(.ad-banner-inner:empty)::before { display: none; }

/* ========== Legacy 隐藏 ========== */
.header-bar, .hero-scroll, .hero-scroll-inner, .hero-banner, .hero-bento, .tagline { display: none !important; }
.site-header .inner { max-width: var(--width); margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
