@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --space-dark: #faf7f2;
  --space-blue: #ffffff;
  --star-white: #1c1917;
  --nebula-pink: #e85d4c;
  --comet-cyan: #0d9488;
  --sun-gold: #d97706;
  --planet-purple: #4f46e5;
  --ink-muted: #57534e;
  --line-soft: #e7e5e4;
  --shadow-card: 0 1px 3px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.06);
  --shadow-lift: 0 12px 40px rgba(28, 25, 23, 0.1);
  --g15-border: 1px solid var(--line-soft);
  --g15-radius: 16px;
  --g15-radius-sm: 10px;
  --transition-fast: 0.2s ease;
  --g15-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--space-dark);
  color: var(--star-white);
  font-family: 'Outfit', system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* 防止主内容撑破视口（顶栏仍全宽） */
.hero,
.g15-top-picks,
.daily-special,
.tags-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 广告与列表同宽：必须用 .container，顶距用 padding 避免 margin 折叠 */
.g15-page-ad--top {
  margin-top: 0;
  margin-bottom: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.g15-page-ad--top .ad-content {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 250px;
  margin-left: auto;
  margin-right: auto;
}

.g15-between-ad {
  margin: 20px auto;
  overflow: hidden;
}

.g15-page-ad iframe,
.g15-page-ad ins,
.g15-page-ad > div,
.g15-page-ad .ad-content,
.g15-between-ad iframe,
.g15-between-ad ins,
.g15-between-ad > div {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  margin-top: 0;
  color: var(--star-white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 须在 .container 之后：否则 padding: 0 24px 会覆盖顶栏留白 */
.container.g15-page-ad--top {
  padding-top: calc(var(--g15-header-h) + 24px);
  padding-bottom: 24px;
}

.brief-comment-game {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.module-description {
  margin: 0 0 1.25rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 62ch;
  font-size: 0.95rem;
}

.breadcrumb-nav { margin: 16px 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a,
.breadcrumb-item span[aria-current="page"] {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--comet-cyan);
}

.breadcrumb-item a:hover { text-decoration: underline; }

.breadcrumb-separator {
  color: var(--ink-muted);
  user-select: none;
}

/* Header — light sticky bar */
header {
  height: 64px;
  background: var(--space-blue);
  border-bottom: var(--g15-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--star-white);
}

.logo-text { color: var(--star-white); }

.nav-desktop { display: flex; gap: 8px; min-width: 0; align-items: center; }

.nav-link {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  color: var(--star-white);
  background: var(--space-dark);
}

.nav-link.active {
  color: var(--space-blue);
  background: var(--star-white);
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 58px;
  background: var(--space-blue);
  border-top: var(--g15-border);
  box-shadow: 0 -4px 20px rgba(28, 25, 23, 0.06);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  font-size: 1.25rem;
  opacity: 0.45;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-item.active {
  opacity: 1;
  transform: scale(1.08);
}

/* Footer — dark contrast band */
footer {
  background: #1c1917;
  color: #faf7f2;
  margin-top: auto;
  position: relative;
  padding: 48px 0 20px;
}

footer:has(+ #game-modal)::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
}

.footer-wave { display: none; }

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 28px;
}

.footer-col > div:first-child {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: #faf7f2;
  margin-bottom: 12px;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #a8a29e;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: #5eead4; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-social-link {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6d3d1;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--comet-cyan);
  color: #1c1917;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #78716c;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--star-white);
  color: var(--space-blue);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-lift);
  z-index: 999;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* Hero — editorial magazine */
.hero.g15-hero-editorial {
  margin-top: 64px;
  padding: 56px 24px 48px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.g15-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
}

.g15-hero-copy { max-width: 520px; }

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: 38ch;
}

.g15-hero-search {
  display: flex;
  gap: 0;
  max-width: 100%;
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  padding: 6px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.g15-hero-search .form-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: none;
  border-radius: var(--g15-radius-sm);
  background: transparent;
  color: var(--star-white);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.g15-hero-search .form-input::placeholder { color: #a8a29e; }

.g15-hero-search .hero-cta {
  border-radius: var(--g15-radius-sm);
  flex-shrink: 0;
}

a.hero-cta.g15-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--comet-cyan);
  background: none;
  box-shadow: none;
  padding: 0;
}

a.hero-cta.g15-hero-link:hover { text-decoration: underline; }

.g15-hero-panel {
  background: var(--nebula-pink);
  color: #fff;
  border-radius: var(--g15-radius);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.g15-hero-panel::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  top: -30px;
  right: -20px;
}

.g15-hero-panel p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.g15-hero-panel strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--star-white);
  color: var(--space-blue);
  border: none;
  border-radius: var(--g15-radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.g15-hero-search .hero-cta {
  background: var(--comet-cyan);
  color: #fff;
}

.hero-cta:hover { transform: translateY(-1px); opacity: 0.92; }

/* Featured — 与 daily-special 相同：外层 section + 内层 .container */
.g15-top-picks {
  width: 100%;
  margin-bottom: 16px;
  display: block;
}

.g15-page-ad--top + .g15-top-picks {
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.hero.g15-hero-editorial + .g15-top-picks {
  margin-top: 16px;
}

.g15-top-picks > .container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.g15-featured-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}

.g15-top-picks + .daily-special {
  padding-top: 0;
}

.g15-featured-compact > .g15-fc-card {
  width: 100%;
  min-width: 0;
}

.g15-fc-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 96px;
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.g15-fc-card--lead {
  border-left: 3px solid var(--nebula-pink);
}

.g15-fc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.g15-fc-thumb {
  flex: 0 0 108px;
  width: 108px;
  background: var(--space-dark);
  overflow: hidden;
}

.g15-fc-thumb img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  display: block;
}

.g15-fc-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.g15-fc-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nebula-pink);
  margin-bottom: 4px;
}

.g15-fc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g15-fc-card--lead .g15-fc-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
}

/* Modules */
.daily-special { padding: 8px 0 44px; }

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--star-white);
}

.section-header-row h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0;
}

.g15-section-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--planet-purple);
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 10px;
  vertical-align: middle;
}

.module-link-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nebula-pink);
  white-space: nowrap;
}

.module-link-more:hover { text-decoration: underline; }

.special-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.special-card,
.carousel-card {
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.special-card::before,
.carousel-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--comet-cyan);
}

.special-card:nth-child(4n+2)::before,
.carousel-card:nth-child(4n+2)::before { background: var(--nebula-pink); }
.special-card:nth-child(4n+3)::before,
.carousel-card:nth-child(4n+3)::before { background: var(--planet-purple); }
.special-card:nth-child(4n+4)::before,
.carousel-card:nth-child(4n+4)::before { background: var(--sun-gold); }

.special-card:hover,
.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.special-card-img,
.carousel-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.special-card-content,
.carousel-card-content {
  padding: 14px 16px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.special-card-content h3,
.carousel-card-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px;
  width: 100%;
  min-width: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g15-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  margin: 0 0 8px;
}

.g15-tag-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--comet-cyan);
  background: rgba(13, 148, 136, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.special-carousel {
  position: relative;
  padding: 4px 48px 8px;
}

.carousel-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 4px 0 12px;
}

.carousel-card { flex: 0 0 260px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: var(--g15-border);
  border-radius: 50%;
  background: var(--space-blue);
  color: var(--star-white);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.carousel-btn:hover { background: var(--space-dark); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Categories — scroll strip */
.orbit-categories.g15-cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 24px 56px;
  max-width: 1180px;
  margin: 0 auto;
  scrollbar-width: none;
}

.orbit-categories.g15-cat-strip::-webkit-scrollbar { display: none; }

.orbit-categories .planet.g15-cat-pill {
  flex: 0 0 auto;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  background: var(--space-blue);
  border: var(--g15-border);
  color: var(--star-white);
  box-shadow: var(--shadow-card);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.orbit-categories .planet.g15-cat-pill:hover {
  background: var(--star-white);
  color: var(--space-blue);
  border-color: var(--star-white);
}

.orbit-categories .planet.g15-cat-pill:nth-child(6n+1) { border-left: 4px solid var(--comet-cyan); }
.orbit-categories .planet.g15-cat-pill:nth-child(6n+2) { border-left: 4px solid var(--nebula-pink); }
.orbit-categories .planet.g15-cat-pill:nth-child(6n+3) { border-left: 4px solid var(--planet-purple); }

/* Detail */
.game-detail-container {
  padding-top: 88px;
  padding-bottom: 28px;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
  padding: 28px;
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  box-shadow: var(--shadow-card);
}

.game-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--g15-radius-sm);
}

.game-info h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.tags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--space-dark);
  color: var(--ink-muted);
  border-radius: 999px;
}

.btn-launch {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--g15-radius-sm);
  background: var(--nebula-pink);
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 0 #c2410c;
}

.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c2410c;
}

.detail-content-section {
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  padding: 8px 24px 24px;
  box-shadow: var(--shadow-card);
}

.tab-btn {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 0;
  margin-right: 20px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active {
  color: var(--star-white);
  border-bottom-color: var(--comet-cyan);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.detail-split-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.detail-split-block:last-child { border-bottom: none; }

.detail-split-block h2 {
  font-size: 1.15rem;
  color: var(--star-white);
  margin-bottom: 10px;
}

#game-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#game-modal.is-open { display: flex; }

.g15-modal-panel {
  width: min(1100px, 100%);
  height: min(88vh, 760px);
  background: var(--space-blue);
  border-radius: var(--g15-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.g15-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--space-dark);
  color: var(--star-white);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
}

.g15-modal-close:hover { background: var(--nebula-pink); color: #fff; }

#game-frame { width: 100%; height: 100%; border: none; }

.game-empty {
  margin: 48px auto;
  padding: 48px 32px;
  max-width: 440px;
  text-align: center;
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  box-shadow: var(--shadow-card);
}

.game-empty-title,
.game-empty h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin: 12px 0 8px;
}

.empty-orbit {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 3px solid var(--line-soft);
  border-top-color: var(--comet-cyan);
  border-radius: 50%;
  animation: g15-spin 0.8s linear infinite;
}

@keyframes g15-spin { to { transform: rotate(360deg); } }

/* Tags */
.tags-box {
  padding-top: 88px;
  padding-bottom: 40px;
}

.tags-layout { display: flex; gap: 28px; align-items: flex-start; }
.tags-box > * + .tags-layout { margin-top: 24px; }
.tags-box > .tags-layout:not(:last-child) { padding-bottom: 24px; }
.game-detail-container > *:first-child + * { margin-top: 24px; }

.g15-detail-related {
  margin-top: 40px;
  padding-bottom: 0;
}

.game-detail-container > .g15-detail-related:last-of-type {
  padding-bottom: 8px;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}

.g15-sidebar-card {
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--space-dark);
}

.category-list { display: flex; flex-direction: column; gap: 2px; }

.category-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.category-item:hover,
.category-item.active {
  background: var(--space-dark);
  color: var(--star-white);
  font-weight: 600;
}

.tags-main { flex: 1; min-width: 0; }

.tags-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.tags-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 6px;
}

.tag-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin: 0;
}

.tags-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g15-view-toggle {
  display: inline-flex;
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius-sm);
  padding: 3px;
}

.g15-view-btn {
  width: 36px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.g15-view-btn.is-active {
  background: var(--star-white);
  color: var(--space-blue);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card {
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-content { padding: 12px 14px 14px; }

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  width: 100%;
  min-width: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta { font-size: 0.8rem; }

.filter-toggle-btn {
  display: none;
  height: 36px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--star-white);
  color: var(--space-blue);
  border: none;
  border-radius: var(--g15-radius-sm);
  cursor: pointer;
}

.games-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.games-grid.list-view .game-card {
  flex-direction: row;
  align-items: stretch;
}

.games-grid.list-view .card-img {
  width: 200px;
  max-width: 38%;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  align-self: center;
}

.games-grid.list-view .card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
}

.games-grid.list-view .card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g15-legal-ad { margin-top: 80px; }

.legal-container {
  max-width: 720px;
  margin: 80px auto 40px;
  padding: 36px 40px;
  background: var(--space-blue);
  border: var(--g15-border);
  border-radius: var(--g15-radius);
  box-shadow: var(--shadow-card);
  line-height: 1.75;
}

.container > * + .legal-container { margin-top: 24px; }

.legal-container h1,
.legal-container h2 {
  font-family: 'Fraunces', serif;
  color: var(--star-white);
}

/* star_html 统一渲染（无 Font Awesome 时用 ::before 显示 ★☆） */
.game-star,
.game-star .star-rating,
.star-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  font-size: 0.88rem;
  line-height: 1;
  color: #e8a317;
  min-height: 1.25em;
}

.game-star .star-icon,
.game-star .star-full,
.game-star .star-empty,
.game-star .star-half,
.game-star .fa,
.game-star .fas,
.game-star .far,
.game-star i,
.star-rating .star-icon,
.star-rating .star-full,
.star-rating .star-empty,
.star-rating i {
  display: inline-block;
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  color: inherit;
}

.game-star .star-icon::before,
.game-star .star-full::before,
.game-star .fa-star::before,
.game-star .star-rating .star-icon::before,
.game-star .star-rating .star-full::before,
.game-star .star-rating .fa-star::before,
.star-rating .star-icon::before,
.star-rating .star-full::before,
.star-rating .fa-star::before {
  content: "★";
}

.game-star .star-empty::before,
.game-star .star-half::before,
.game-star .fa-star-o::before,
.game-star .far.fa-star::before,
.game-star .fa-regular.fa-star::before,
.game-star .star-rating .star-empty::before,
.game-star .star-rating .fa-star-o::before,
.game-star .star-rating .far.fa-star::before,
.star-rating .star-empty::before,
.star-rating .fa-star-o::before {
  content: "☆";
}

.game-star .star-placeholder {
  display: inline-flex;
  align-items: center;
  color: rgba(232, 163, 23, 0.5);
  letter-spacing: 1px;
  white-space: nowrap;
}

.special-card-content .game-star,
.carousel-card-content .game-star,
.card-meta > .game-star,
.g15-fc-body .game-star {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.card-meta > .brief-comment-game {
  width: 100%;
  margin-top: 0;
}

.game-info .game-star--detail-hero,
.game-info .game-star--detail-hero .star-rating {
  font-size: 1rem;
  margin-bottom: 4px;
}

.game-title,
.card-title { display: block; min-width: 0; }

@media (max-width: 1024px) {
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .g15-hero-inner { grid-template-columns: 1fr; }
  .g15-hero-panel { max-width: 360px; }
  .sidebar { display: none; width: auto; position: static; }
  .sidebar.mobile-active {
    display: block;
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    z-index: 900;
  }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-toggle-btn { display: block; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .g15-featured-compact { grid-template-columns: 1fr; }
  .g15-top-picks { margin-bottom: 12px; }
}

@media (max-width: 768px) {
  body { padding-bottom: 64px; }

  .nav-desktop {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  header .nav-more { display: none !important; }

  .mobile-nav { display: flex; }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container.g15-page-ad--top {
    padding-top: calc(var(--g15-header-h) + 16px);
    padding-bottom: 20px;
  }

  .g15-page-ad--top + .g15-top-picks {
    margin-top: 20px;
  }
  .hero.g15-hero-editorial { padding: 40px 20px 32px; }
  .g15-hero-search { flex-direction: column; padding: 8px; }
  .g15-hero-search .hero-cta { width: 100%; text-align: center; }
  .g15-fc-thumb {
    flex: 0 0 96px;
    width: 96px;
  }
  .g15-fc-thumb img { min-height: 88px; }
  .game-hero { grid-template-columns: 1fr; padding: 20px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .games-grid .card-content { padding: 10px 10px 12px; }
  .games-grid .card-title { font-size: 0.82rem; }
  .games-grid.list-view {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .games-grid.list-view .game-card {
    flex-direction: row;
    align-items: stretch;
  }
  .games-grid.list-view .card-img {
    width: 112px;
    max-width: 38%;
    flex-shrink: 0;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 84px;
    object-fit: cover;
  }
  .games-grid.list-view .card-content {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    justify-content: center;
  }
  .games-grid.list-view .card-title { font-size: 0.92rem; }
  .footer-content { grid-template-columns: 1fr; }
  .tags-header { flex-direction: column; }
  .carousel-card { flex: 0 0 220px; }
  .special-carousel { padding-left: 40px; padding-right: 40px; }
  .legal-container { margin-top: 72px; padding: 24px 20px; }
  .back-to-top { bottom: 72px; }
}
