:root {
  --brand: #0b6e3e;
  --brand-dark: #085230;
  --brand-light: #e8f5ee;
  --gold: #b8860b;
  --gold-soft: #f7efd4;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --line: #d8e0e8;
  --bg: #f4f7f5;
  --bg-deep: #0c1f17;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(12, 31, 23, 0.08);
  --max: 1180px;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(11, 110, 62, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 134, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--bg) 35%, #eef2f0 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.75em;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo:hover { color: var(--brand); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  color: var(--ink-soft);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11, 110, 62, 0.35);
}

.btn-primary:hover { color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-gold {
  background: linear-gradient(135deg, #d4a017 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}

.btn-gold:hover { color: var(--white); }

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 0.75rem 0 1rem;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--ink);
  border-radius: 6px;
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.mobile-nav .mobile-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
}

.mobile-nav .mobile-actions .btn { flex: 1; }

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: #8a6508;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-meta strong {
  color: var(--brand);
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 420px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(11, 110, 62, 0.2), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.section-label {
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* Feature / content grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(11, 110, 62, 0.35);
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.feature-item p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Game categories */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-deep);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.game-card-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(8, 28, 18, 0.92));
  color: var(--white);
}

.game-card-body h3 {
  color: var(--white);
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.game-card-body p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Content prose */
.prose {
  max-width: 820px;
}

.prose-wide {
  max-width: none;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.content-block h2,
.content-block h3 {
  color: var(--brand-dark);
}

.content-with-media {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.content-with-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.partner-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  min-height: 110px;
}

.partner-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.partner-item span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Promo strip */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.promo-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.promo-item h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
}

.promo-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

.auth-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-form-wrap h1 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.auth-form-wrap .sub {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fafbfa;
}

.form-group input:focus {
  outline: 2px solid rgba(11, 110, 62, 0.35);
  border-color: var(--brand);
  background: var(--white);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.form-footer {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.auth-seo {
  padding-top: 0.25rem;
}

.auth-seo h2 {
  font-size: 1.35rem;
}

.auth-side-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}

/* Page banner (inner pages) */
.page-banner {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(11, 110, 62, 0.08), rgba(184, 134, 11, 0.06));
}

.page-banner h1 { margin-bottom: 0.5rem; }

.page-banner p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--brand); }

/* Legal */
.legal-content {
  padding: 2.5rem 0 3.5rem;
  max-width: 860px;
}

.legal-content h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.legal-content h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 { margin-bottom: 0.75rem; }

.error-page p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 1.5rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--bg-deep) 0%, #143d2a 55%, #0b6e3e 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.65rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: none;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Internal link chips */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.link-chips a {
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.link-chips a:hover {
  background: var(--brand);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0;
  font-size: 0.92rem;
}

.footer-col a:hover { color: #f0d78c; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

/* Table of contents / jump links */
.toc {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  columns: 2;
  gap: 1.5rem;
}

.toc a {
  font-weight: 500;
}

/* Highlight box */
.note-box {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.note-box p { margin: 0; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 980px) {
  .nav-desktop,
  .header-actions .btn { display: none; }

  .menu-toggle { display: flex; }

  .hero-grid,
  .content-with-media,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .content-with-media img {
    position: static;
    max-height: 260px;
    width: 100%;
    object-fit: cover;
  }

  .feature-grid,
  .promo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol { columns: 1; }
}

@media (max-width: 600px) {
  .feature-grid,
  .promo-grid,
  .game-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 2rem 0; }

  .hero-cta .btn { width: 100%; }

  .auth-form-wrap { padding: 1.35rem; }

  .header-actions { display: none; }
}

/* Top ads bar */
.ads-bar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
