:root {
  color-scheme: light;
  --ink: #14242b;
  --ink-soft: #52616a;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #d8e3df;
  --teal: #087f83;
  --teal-dark: #075563;
  --gold: #f2b84b;
  --coral: #e96c4c;
  --mint: #dff4ee;
  --shadow: 0 18px 45px rgba(20, 36, 43, 0.12);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  color: #ffffff;
  background: rgba(7, 42, 50, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.site-header--solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  width: 78px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  font-weight: 800;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header--solid .site-nav a:hover,
.site-header--solid .site-nav a:focus-visible,
.site-header--solid .site-nav a[aria-current="page"] {
  background: var(--mint);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  cursor: pointer;
}

.site-header--solid .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 620px;
  min-height: calc(100svh - 112px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 32, 38, 0.46);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.legal-content h1 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 640px;
  font-size: 58px;
}

.hero__lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  color: #17252b;
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(242, 184, 75, 0.3);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffd06f;
  outline: none;
}

.button--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.12);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 12px;
  margin: 42px 0 0;
}

.hero__facts div {
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.hero__facts dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero__facts dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.section {
  padding: 88px 0;
}

.section__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section--intro {
  padding-top: 76px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.section h2 {
  color: var(--ink);
  font-size: 34px;
}

.section p,
.legal-content p {
  color: var(--ink-soft);
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

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

.feature-card {
  min-height: 310px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 36, 43, 0.07);
}

.feature-card img {
  width: 100%;
  height: 126px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 18px;
}

.feature-card h3,
.notice-box h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature-card p,
.notice-box p {
  margin: 0;
}

.section--recharge {
  background: #edf6f2;
}

.notice-box {
  padding: 28px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.section--rules {
  background: #fff7e7;
}

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

.rules-grid article {
  min-height: 208px;
  padding: 26px;
  border: 1px solid rgba(242, 184, 75, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.rules-grid h2 {
  font-size: 24px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal-dark);
}

.contact-panel h2,
.contact-panel p {
  color: #ffffff;
}

.contact-panel p {
  max-width: 720px;
  margin-bottom: 0;
  opacity: 0.88;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 40px;
  color: #d7ece8;
  background: #0b2d34;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.legal-page {
  padding: 72px 0 88px;
}

.legal-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 42px;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 800;
}

.updated {
  margin: 10px 0 28px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px 18px;
    color: var(--ink);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(20, 36, 43, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    background: var(--mint);
  }

  .hero {
    min-height: 590px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .two-column,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .brand__logo {
    width: 62px;
    height: 34px;
  }

  .brand__name {
    font-size: 15px;
  }

  .site-nav {
    top: 66px;
  }

  .hero {
    min-height: 610px;
    background-position: center;
  }

  .hero__content,
  .section__inner,
  .legal-content {
    width: min(100% - 28px, 1120px);
  }

  .hero__content {
    padding: 44px 0 54px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero__facts,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero__facts {
    margin-top: 28px;
  }

  .section {
    padding: 58px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .feature-card {
    min-height: 0;
  }

  .notice-box,
  .contact-panel,
  .legal-content {
    padding: 24px;
  }

  .legal-page {
    padding: 46px 0 64px;
  }

  .legal-content h1 {
    font-size: 34px;
  }

  .site-footer {
    padding: 24px 20px;
  }
}
