:root {
  --brand: #0a7d3e;
  --brand-dark: #065c2d;
  --brand-light: #12a854;
  --ink: #0f1a14;
  --muted: #5a6b60;
  --bg: #f3f7f4;
  --surface: #ffffff;
  --line: #d7e3db;
  --accent: #c9a227;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 40, 22, 0.08);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(18, 168, 84, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(201, 162, 39, 0.08), transparent 35%),
    linear-gradient(180deg, #eef6f1 0%, var(--bg) 28%, #edf3ef 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand-light);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-family: var(--display);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  background: rgba(10, 125, 62, 0.1);
  color: var(--brand-dark);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 125, 62, 0.25);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-outline:hover {
  background: rgba(10, 125, 62, 0.08);
  color: var(--brand-dark);
}

.btn-gold {
  background: linear-gradient(135deg, #dfc15a, #a88416);
  color: #1a1505;
}

.btn-gold:hover {
  color: #1a1505;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: 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);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  background: #0b1f14;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 28, 16, 0.92) 0%, rgba(6, 28, 16, 0.7) 48%, rgba(6, 28, 16, 0.35) 100%),
    linear-gradient(0deg, rgba(6, 28, 16, 0.9) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
  max-width: 720px;
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.hero p {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  font-family: var(--display);
  scroll-margin-top: 90px;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.55rem;
  border-left: 4px solid var(--brand);
  padding-left: 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  color: var(--brand-dark);
}

.prose p {
  margin: 0.85rem 0;
  color: #24322a;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: #24322a;
}

.prose li {
  margin: 0.4rem 0;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 2rem;
}

.toc a {
  display: block;
  padding: 0.7rem 0.9rem;
  background: #f4faf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.feature-grid,
.game-grid,
.partner-grid,
.advantage-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.game-grid {
  grid-template-columns: repeat(4, 1fr);
}

.partner-grid {
  grid-template-columns: repeat(4, 1fr);
}

.advantage-grid {
  grid-template-columns: repeat(2, 1fr);
}

.faq-grid {
  grid-template-columns: 1fr;
}

.card-soft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card-soft h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.1rem;
}

.card-soft p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.game-card img,
.feature-card img,
.partner-card img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8eee9;
}

.partner-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.partner-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8faf8;
}

.partner-card span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.media-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0;
}

.media-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  background: #f6fbf8;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.7rem;
}

.auth-panel .lead {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fbfdf9;
}

.form-group input:focus {
  outline: 2px solid rgba(10, 125, 62, 0.25);
  border-color: var(--brand);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 0.6rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0;
  color: var(--brand-dark);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.site-footer {
  background: #0d1b13;
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.cta-band {
  background: linear-gradient(120deg, #0a7d3e, #0b3f24 55%, #1e5c32);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.inline-links a {
  margin-right: 0.65rem;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .feature-grid,
  .game-grid,
  .partner-grid,
  .advantage-grid,
  .footer-grid,
  .auth-layout,
  .media-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    max-height: calc(100vh - 72px);
    overflow: auto;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    flex-direction: column;
  }

  .nav a,
  .nav .btn {
    width: 100%;
  }

  .feature-grid,
  .game-grid,
  .partner-grid,
  .advantage-grid,
  .footer-grid,
  .auth-layout,
  .media-row {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 4rem 0 2.5rem;
  }
}

/* 顶部广告位 */
.ads-wrap {
  position: sticky;
  top: 72px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 0;
  padding: 0.55rem 0.5rem 0.35rem;
  min-height: 0;
}

#ads:empty {
  display: none;
}

#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;
}
