:root {
  color-scheme: light;
  --bg: #f7efe5;
  --bg-soft: #fff8ef;
  --ink: #21170f;
  --muted: #6f6051;
  --line: rgba(75, 49, 30, 0.14);
  --brand: #d66b2d;
  --brand-dark: #9d3f18;
  --gold: #f4b64f;
  --card: rgba(255, 252, 247, 0.82);
  --shadow: 0 24px 70px rgba(83, 48, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(244, 182, 79, 0.28), transparent 34rem), radial-gradient(circle at top right, rgba(214, 107, 45, 0.2), transparent 30rem), var(--bg);
}

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

img {
  display: block;
  width: 100%;
}

.hero {
  min-height: 720px;
  padding: 28px max(28px, calc((100vw - 1180px) / 2));
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(214, 107, 45, 0.18), rgba(244, 182, 79, 0.12));
  filter: blur(1px);
  z-index: -1;
}

.nav,
.hero-content,
.section,
footer {
  max-width: 1180px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(83, 48, 21, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff8ef;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 10px 24px rgba(214, 107, 45, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--brand-dark);
  background: rgba(214, 107, 45, 0.1);
}

.hero-content {
  padding: 132px 20px 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 26px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  color: #fff8ef;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 16px 34px rgba(157, 63, 24, 0.25);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.58);
}

.section {
  padding: 90px 20px;
}

.split,
.company {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.split > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.95;
}

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

.stats article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 16px 48px rgba(83, 48, 21, 0.08);
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.stats span {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 28px;
}

.game-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.game-card.featured {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.game-copy {
  padding: 12px;
}

.game-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  background: rgba(214, 107, 45, 0.1);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery.three {
  grid-template-columns: repeat(3, 1fr);
}

.gallery img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(75, 49, 30, 0.1);
  background: #fff;
  box-shadow: 0 16px 32px rgba(83, 48, 21, 0.12);
}

.company {
  margin-bottom: 60px;
  border-top: 1px solid var(--line);
}

dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

dl div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
}

dd a {
  color: var(--brand-dark);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 20px 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--brand-dark);
  font-weight: 700;
}

.floating-vip-button {
  position: fixed;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff8ef;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 42px rgba(157, 63, 24, 0.32);
}

.vip-page {
  min-height: 100vh;
  padding: 28px 20px 118px;
}

.vip-nav {
  margin-bottom: 48px;
}

.vip-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.vip-product-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}

.vip-icon {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 34px;
  border: 1px solid rgba(75, 49, 30, 0.12);
  background: #fff;
  box-shadow: 0 18px 38px rgba(83, 48, 21, 0.12);
}

.vip-price {
  display: inline-flex;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
  background: rgba(214, 107, 45, 0.1);
}

.vip-description {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.vip-description p {
  margin: 0;
}

.vip-main-button {
  border: 0;
  cursor: pointer;
}

.contact-panel {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.7);
  border: 1px solid var(--line);
}

.contact-panel[hidden],
.qr-panel[hidden],
.vip-shell[hidden],
.vip-pay-bar[hidden] {
  display: none;
}

.contact-panel label {
  font-weight: 800;
}

.contact-panel textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.form-hint.error {
  color: #b33a1c;
  font-weight: 800;
}

.qr-panel {
  margin-top: 28px;
  padding: 28px;
  text-align: center;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-panel h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.qr-image {
  width: min(320px, 82vw);
  margin: 8px auto 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.vip-pay-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 239, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 36px rgba(83, 48, 21, 0.1);
}

.vip-pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(920px, 100%);
  min-height: 54px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  color: #fff8ef;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 30px rgba(157, 63, 24, 0.24);
}

.vip-pay-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.result-shell {
  display: grid;
  justify-items: start;
  gap: 18px;
  min-height: 360px;
  align-content: center;
}

.result-shell p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .nav,
  .split,
  .company,
  .game-card.featured,
  .game-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-content {
    padding-top: 92px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    padding: 56px 14px;
  }

  .floating-vip-button {
    left: 20px;
    right: 20px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .game-card {
    padding: 16px;
    border-radius: 26px;
  }

  .gallery,
  .gallery.three {
    grid-template-columns: 1fr;
  }

  dl div,
  footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .vip-page {
    padding: 14px 14px 112px;
  }

  .vip-product-card {
    grid-template-columns: 1fr;
  }

  .vip-icon {
    width: 132px;
    height: 132px;
  }
}
