:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #62645f;
  --line: #deded5;
  --accent: #1f7a5c;
  --accent-strong: #155943;
  --gold: #f2b84b;
  --radius: 8px;
  font-family: "Inter", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.footer-links a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.footer-links a:hover {
  color: var(--ink);
  background: #ecece4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  border-radius: var(--radius);
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-ghost {
  color: var(--ink);
  background: #ecece4;
}

.hero,
.section,
.page-main {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  padding: 72px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(18, 24, 27, 0.12);
}

.hero-panel img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.stats div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-size: 1.35rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.game-card,
.info-card,
.download-card,
.sitemap-card,
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card div,
.info-card,
.download-card,
.sitemap-card,
.benefit-card {
  padding: 18px;
}

.game-card span {
  display: block;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
}

.game-card p,
.info-card p,
.download-card p,
.sitemap-card p,
.benefit-card p {
  color: var(--muted);
}

.card-action {
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

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

.benefit-card {
  min-height: 220px;
}

.benefit-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--accent-strong);
  background: #e7efe9;
  border-radius: var(--radius);
  font-size: 1.35rem;
  font-weight: 900;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.category-tabs a {
  padding: 8px 12px;
  color: var(--accent-strong);
  background: #e7efe9;
  border-radius: var(--radius);
  font-weight: 800;
}

.game-list-section {
  display: grid;
  gap: 14px;
}

.game-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.game-row-image {
  width: 220px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.game-detail-hero,
.game-detail-layout {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-top: 52px;
}

.game-detail-hero img,
.download-visual,
.game-stage img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(18, 24, 27, 0.14);
}

.game-detail-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.1fr) 390px;
}

.game-stage {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.game-stage img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.stage-toolbar span {
  color: var(--accent);
  font-weight: 900;
}

.game-summary-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.game-summary-panel h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.game-summary-panel p {
  color: var(--muted);
}

.game-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.game-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.game-facts dt {
  color: var(--muted);
}

.game-facts dd {
  margin: 0;
  font-weight: 800;
}

.feature-grid,
.info-grid,
.download-grid,
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card span {
  color: var(--accent);
  font-weight: 900;
}

.two-column,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.contact-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-card strong {
  display: block;
  margin-bottom: 8px;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-band p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.sitemap-card a {
  display: block;
  padding: 7px 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  margin-top: 60px;
  padding: 34px clamp(20px, 5vw, 64px);
  background: #101814;
  color: #fff;
}

.site-footer p {
  max-width: 760px;
  color: #cdd6cf;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.footer-links a {
  color: #cdd6cf;
}

.compliance-line {
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .site-header,
  .main-nav {
    align-items: flex-start;
  }

  .site-header,
  .hero,
  .game-detail-hero,
  .game-detail-layout,
  .two-column,
  .download-section,
  .download-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .download-band {
    display: grid;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .game-grid,
  .benefit-grid,
  .feature-grid,
  .info-grid,
  .download-grid,
  .sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .game-row .row-actions {
    grid-column: 1 / -1;
  }

  .game-row-image {
    width: 160px;
  }

  .game-summary-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .game-grid,
  .benefit-grid,
  .feature-grid,
  .info-grid,
  .download-grid,
  .sitemap-grid,
  .game-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .game-row-image {
    width: 100%;
  }
}
