:root {
  --bg: #07131d;
  --panel: rgba(7, 19, 29, 0.76);
  --panel-solid: #0d1b27;
  --text: #edf4f3;
  --muted: #a8b7ba;
  --gold: #cda45e;
  --sea: #66c7c9;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top, rgba(71, 137, 150, 0.22), transparent 30%),
    linear-gradient(180deg, #0a1620 0%, #07131d 30%, #08131d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(205, 164, 94, 0.08), transparent 35%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.02) 80px
    );
  pointer-events: none;
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 3rem;
  backdrop-filter: blur(18px);
  background: rgba(3, 10, 17, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(205, 164, 94, 0.5);
  border-radius: 50%;
  font-family: "Cinzel", serif;
  font-weight: 800;
  color: var(--gold);
  box-shadow: inset 0 0 0 0.35rem rgba(205, 164, 94, 0.08);
}

.brand-text {
  display: grid;
}

.brand-text strong,
.hero h1,
.section-head h2,
.champion-copy h3,
.download-card h2 {
  font-family: "Cinzel", serif;
}

.brand-text small,
.eyebrow,
.news-tag,
.faction-index,
.tournament-card span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
}

.nav a:hover,
.section-link:hover,
.secondary-link:hover,
.footer-links a:hover {
  color: var(--text);
}

.cta,
.cta-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  color: #091117;
  font-weight: 800;
  background: linear-gradient(135deg, #e1c17d, #b8843a);
  box-shadow: 0 10px 30px rgba(205, 164, 94, 0.28);
}

.cta-small {
  min-height: 2.6rem;
  padding: 0 1.15rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--text);
}

.panel {
  width: min(1240px, calc(100vw - 2rem));
  margin: 1rem auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 22, 32, 0.88), rgba(8, 18, 26, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(42rem, 52vw, 60rem);
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("image/CC_wangye01.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: clamp(42rem, 52vw, 60rem);
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 7rem 4rem 4rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sea);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1,
.section-head h2,
.download-card h2 {
  margin: 0;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.hero-copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.9;
  margin: 1.6rem 0 0;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.secondary-link {
  color: var(--sea);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  width: min(720px, 100%);
}

.hero-stats article {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--gold);
}

.hero-stats span,
.section-head,
.news-feature p,
.news-side p,
.faction-card p,
.feature-card p,
.champion-copy p,
.download-card p,
.tournament-card p,
.footer p {
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 3rem 1.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-link {
  color: var(--gold);
}

.news-grid,
.faction-cards,
.champion-showcase,
.feature-grid,
.tournament-grid,
.footer {
  padding: 0 3rem 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr;
  gap: 1.2rem;
}

.news-feature,
.news-side,
.faction-card,
.feature-card,
.tournament-card,
.download-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.02);
}

.news-feature,
.news-side {
  min-height: 19rem;
  padding: 2rem;
}

.news-feature.is-active {
  background:
    radial-gradient(circle at top right, rgba(102, 199, 201, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.02);
}

.news-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
}

.news-feature h3,
.news-side h3,
.champion-copy h3 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
}

.news-list {
  display: grid;
  gap: 0.8rem;
}

.news-item {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  padding: 1.1rem 1rem;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.news-item span {
  color: var(--sea);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.news-item.is-selected {
  border-color: rgba(205, 164, 94, 0.55);
  background: rgba(205, 164, 94, 0.08);
}

.faction-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.faction-card,
.feature-card,
.tournament-card {
  padding: 1.6rem;
}

.faction-index {
  color: var(--gold);
  font-size: 0.8rem;
}

.faction-card h3,
.feature-card h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.35rem;
}

.champion-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.champion-copy,
.champion-visual {
  min-height: 28rem;
  border: 1px solid var(--line);
}

.champion-copy {
  padding: 2rem;
}

.ability-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.ability-list li {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.champion-visual {
  position: relative;
  background:
    radial-gradient(circle at center, rgba(102, 199, 201, 0.22), transparent 28%),
    linear-gradient(160deg, rgba(205, 164, 94, 0.16), transparent 40%),
    linear-gradient(180deg, #0b1821, #11151c 70%, #0b1821);
}

.portrait-frame,
.sigil {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(205, 164, 94, 0.26);
}

.portrait-frame::before,
.portrait-frame::after,
.sigil::before {
  content: "";
  position: absolute;
}

.portrait-frame::before {
  inset: 8%;
  border: 1px solid rgba(102, 199, 201, 0.2);
}

.portrait-frame::after {
  left: 50%;
  top: 16%;
  width: 34%;
  aspect-ratio: 0.7;
  transform: translateX(-50%);
  border-radius: 45% 45% 30% 30%;
  background:
    radial-gradient(circle at 50% 30%, rgba(205, 164, 94, 0.9), transparent 20%),
    linear-gradient(180deg, rgba(205, 164, 94, 0.2), rgba(34, 56, 65, 0.4)),
    linear-gradient(180deg, #1f3138, #0d151b);
  box-shadow:
    0 0 0 1px rgba(205, 164, 94, 0.25),
    0 40px 60px rgba(0, 0, 0, 0.36);
}

.sigil::before {
  inset: 23%;
  border-radius: 50%;
  border: 1px solid rgba(102, 199, 201, 0.16);
}

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

.esports-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 3rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(205, 164, 94, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.02);
}

.esports-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-family: "Cinzel", serif;
}

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

.tournament-card strong {
  display: block;
  margin: 0.9rem 0 0.7rem;
  font-size: 1.6rem;
  color: var(--gold);
}

.download-card {
  padding: 4rem 3rem;
  margin: 3rem;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(102, 199, 201, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.02);
}

.download-card p {
  width: min(44rem, 100%);
  margin: 1.2rem auto 0;
  line-height: 1.9;
}

.download-actions {
  justify-content: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.9rem;
    padding-top: 0.75rem;
  }

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

  .cta-small {
    display: none;
  }

  .hero-content,
  .section-head,
  .news-grid,
  .faction-cards,
  .champion-showcase,
  .feature-grid,
  .esports-band,
  .tournament-grid,
  .footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-content {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .news-grid,
  .faction-cards,
  .champion-showcase,
  .feature-grid,
  .esports-band,
  .tournament-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .download-card {
    margin: 1.25rem;
    padding: 2.6rem 1.25rem;
  }
}

@media (max-width: 720px) {
  .panel {
    width: min(100vw - 0.8rem, 100%);
  }

  .hero {
    min-height: 34rem;
  }

  .hero-backdrop {
    background-size: cover;
    background-position: center center;
  }

  .hero-content,
  .hero-stats {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-head h2,
  .esports-band h2,
  .download-card h2 {
    font-size: 2.2rem;
    line-height: 1.12;
  }
}
