:root {
  --bg: #050812;
  --bg-soft: #091229;
  --surface: rgba(11, 20, 42, 0.82);
  --surface-strong: rgba(13, 24, 50, 0.94);
  --line: rgba(92, 174, 255, 0.22);
  --text: #f4f8ff;
  --muted: #9aa8c8;
  --cyan: #3ad7ff;
  --blue: #246bff;
  --violet: #8c5cff;
  --gold: #f0c36a;
  --gold-soft: #8f6f35;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 10%, rgba(39, 100, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 255, 0.22), transparent 32rem),
    linear-gradient(180deg, #050812 0%, #071127 42%, #050812 100%);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(89, 170, 255, 0.18);
  background: rgba(4, 8, 19, 0.78);
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  min-height: 66px;
  background: rgba(4, 8, 19, 0.92);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.brand-logo {
  display: block;
  width: clamp(58px, 6vw, 82px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(240, 195, 106, 0.22));
}

.brand-name {
  color: #ffffff;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(58, 215, 255, 0.22);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: #dce8ff;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 180ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.is-active {
  color: #ffffff;
}

.site-nav a.is-active::after {
  width: 100%;
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(240, 195, 106, 0.58);
  background: linear-gradient(135deg, #f1c96f, #8f6f35);
  color: #071021;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(240, 195, 106, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(240, 195, 106, 0.25);
}

.header-action:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.contact-list a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 44, 0.84);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 72px) 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.98) 0%, rgba(5, 8, 18, 0.7) 34%, rgba(5, 8, 18, 0.4) 100%),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%),
    url("assets/hero-dragon-bg.png") center / cover no-repeat;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(58, 215, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 215, 255, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 72%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(58, 215, 255, 0.32);
}

.hero-subtitle {
  margin: 24px 0 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
}

.hero-text {
  max-width: 580px;
  margin: 20px 0 0;
  color: #c8d6f4;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.btn {
  min-width: 142px;
}

.btn-secondary {
  border-color: rgba(58, 215, 255, 0.45);
  background: rgba(8, 19, 42, 0.72);
  color: var(--text);
  box-shadow: inset 0 0 24px rgba(58, 215, 255, 0.1);
}

.hero-panel {
  border: 1px solid rgba(90, 172, 255, 0.28);
  background: linear-gradient(180deg, rgba(12, 24, 52, 0.86), rgba(5, 9, 20, 0.86));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 24px;
}

.panel-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.panel-line span {
  color: var(--muted);
  font-size: 13px;
}

.panel-line strong {
  color: var(--cyan);
  font-size: 18px;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: 54px;
  margin-top: 22px;
  align-items: end;
}

.signal-bars i {
  display: block;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(58, 215, 255, 0.35);
}

.signal-bars i:nth-child(1) { height: 34%; }
.signal-bars i:nth-child(2) { height: 58%; }
.signal-bars i:nth-child(3) { height: 82%; }
.signal-bars i:nth-child(4) { height: 68%; }
.signal-bars i:nth-child(5) { height: 96%; }

.section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 40px);
}

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

.section-index {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 40px;
  padding: 42px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(12, 25, 55, 0.82), rgba(8, 13, 29, 0.86));
  box-shadow: var(--shadow);
}

.about-layout p {
  margin: 0;
  color: #d4def4;
  font-size: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-stats div,
.game-card,
.advantage-list article,
.news-card {
  border: 1px solid rgba(94, 174, 255, 0.2);
  background: rgba(10, 20, 42, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.about-stats div {
  padding: 22px 16px;
  text-align: center;
}

.about-stats strong {
  display: block;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.about-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.game-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-card::before {
  position: absolute;
  inset: -30% -30% auto auto;
  width: 130px;
  height: 130px;
  content: "";
  background: radial-gradient(circle, rgba(58, 215, 255, 0.24), transparent 68%);
}

.game-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(240, 195, 106, 0.46);
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.game-card h3,
.news-card h3 {
  margin: 24px 0 10px;
  font-size: 21px;
}

.game-card p,
.news-card p,
.advantage-list span {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.game-card:hover,
.news-card:hover,
.advantage-list article:hover {
  border-color: rgba(58, 215, 255, 0.45);
  background: rgba(12, 27, 58, 0.9);
}

.game-card:hover {
  transform: translateY(-4px);
}

.advantage-section {
  max-width: none;
  margin-top: 24px;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.94), rgba(11, 28, 58, 0.72), rgba(5, 8, 18, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(139, 92, 255, 0.16), transparent 40rem);
}

.advantage-section .section-head,
.advantage-list {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid rgba(94, 174, 255, 0.22);
}

.advantage-list article {
  min-height: 180px;
  padding: 28px 22px;
  border-width: 0 1px 0 0;
  background: rgba(6, 14, 31, 0.7);
}

.advantage-list article:last-child {
  border-right: 0;
}

.advantage-list strong {
  display: block;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 20px;
}

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

.news-card {
  padding: 26px;
}

.news-card time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  padding: 44px;
  border: 1px solid rgba(240, 195, 106, 0.36);
  background:
    linear-gradient(135deg, rgba(26, 22, 38, 0.88), rgba(7, 19, 45, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(240, 195, 106, 0.16), transparent 24rem);
  box-shadow: var(--shadow);
}

.contact-lead {
  max-width: 520px;
  color: #cdd8ef;
  font-size: 17px;
}

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

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(94, 174, 255, 0.22);
  background: rgba(5, 12, 28, 0.62);
}

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

.contact-list strong {
  color: var(--cyan);
  font-size: clamp(18px, 3vw, 26px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(94, 174, 255, 0.18);
  color: var(--muted);
  background: #040713;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-header.nav-open .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: rgba(5, 10, 24, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 700px;
  }

  .hero-inner,
  .about-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 420px;
  }

  .game-grid,
  .advantage-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-list article {
    border-width: 0 1px 1px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    width: 46px;
    max-height: 46px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-header.nav-open .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 650px;
    padding: 128px 18px 64px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-text,
  .about-layout p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 64px 18px;
  }

  .section-head {
    display: block;
  }

  .about-layout,
  .contact-panel {
    padding: 24px;
  }

  .about-stats,
  .game-grid,
  .advantage-list {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 190px;
  }

  .contact-list a,
  .site-footer {
    display: grid;
  }
}
