:root {
  --ink: #f4e2b3;
  --muted: #c7aa75;
  --paper: #1b1510;
  --panel: rgba(26, 20, 15, 0.86);
  --panel-strong: #24170f;
  --line: rgba(207, 159, 81, 0.32);
  --red: #8e1f16;
  --red-bright: #c13a22;
  --gold: #d8a847;
  --bronze: #8c6132;
  --jade: #59a36f;
  --shadow: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(142, 31, 22, 0.28), transparent 30rem),
    linear-gradient(180deg, #0d100d 0%, #1b1510 42%, #0d0b09 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.96), rgba(14, 10, 7, 0.68));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff3cf;
  background: linear-gradient(145deg, #b62719, #4c0d0b);
  border: 1px solid #d1a25a;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.28), 0 8px 26px rgba(0, 0, 0, 0.38);
  font-family: SimSun, serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  color: #e6c889;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: #fff2cd;
  border-color: var(--gold);
}

.main-nav .nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: #fff5d7;
  font-weight: 800;
  background: linear-gradient(180deg, #c64625, #76180f);
  border: 1px solid #e1a85b;
  box-shadow: 0 10px 26px rgba(101, 18, 12, 0.34);
}

.main-nav .nav-download:hover {
  color: #fff5d7;
  border-color: #f0c06d;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(18px, 5vw, 78px) 64px;
  overflow: hidden;
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.32) 0%, rgba(7, 11, 15, 0.12) 52%, rgba(7, 11, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  align-self: end;
  margin-bottom: 88px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", SimSun, serif;
  font-size: clamp(72px, 12vw, 150px);
  line-height: 0.92;
  color: #fff3cc;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.68), 0 0 24px rgba(193, 58, 34, 0.32);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 26px 0 30px;
  color: #ead7ad;
  font-size: 19px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.btn.primary {
  color: #fff5d7;
  background: linear-gradient(180deg, #c64625, #76180f);
  border-color: #e1a85b;
  box-shadow: 0 14px 36px rgba(101, 18, 12, 0.44);
}

.btn.secondary {
  color: #f4dfaa;
  background: rgba(20, 15, 11, 0.72);
}

.btn:hover {
  transform: translateY(-1px);
}

.war-panel {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 78px);
  bottom: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(116px, 1fr));
  gap: 1px;
  width: min(560px, calc(100% - 36px));
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 18px 50px var(--shadow);
}

.war-panel div {
  padding: 18px;
  background: rgba(18, 13, 10, 0.84);
}

.war-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.war-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff3cd;
  font-size: 18px;
}

section {
  padding: 86px clamp(18px, 5vw, 78px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: #fff1c7;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.16;
  font-family: "STKaiti", "KaiTi", SimSun, serif;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(45, 23, 14, 0.88), rgba(22, 31, 24, 0.84)),
    repeating-linear-gradient(90deg, rgba(216, 168, 71, 0.06) 0 1px, transparent 1px 72px);
  border-block: 1px solid var(--line);
}

.intro-band p:last-child {
  margin: 0;
  color: #e7d3a6;
  font-size: 18px;
  line-height: 1.9;
}

.features,
.battlefield {
  background: rgba(11, 13, 11, 0.32);
}

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

.feature-grid article {
  min-height: 260px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(48, 36, 23, 0.9), rgba(18, 14, 11, 0.94));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.34);
}

.feature-index {
  color: rgba(216, 168, 71, 0.52);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 800;
}

.feature-grid h3,
.stats-card h3 {
  margin: 18px 0 12px;
  color: #fff0c4;
  font-size: 22px;
}

.feature-grid p,
.stats-card p,
.hero-card p {
  margin: 0;
  color: #cdb98f;
  line-height: 1.75;
}

.heroes-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(89, 163, 111, 0.14), transparent 30rem),
    #16110d;
}

.hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  min-width: 70px;
  min-height: 38px;
  color: #e9d5a8;
  background: rgba(24, 18, 13, 0.82);
  border: 1px solid var(--line);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #fff5d6;
  background: linear-gradient(180deg, #8f271a, #4c120d);
  border-color: #d29b4a;
}

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

.hero-card {
  position: relative;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(37, 28, 20, 0.86), rgba(15, 12, 10, 0.94));
  border: 1px solid var(--line);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 56%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.hero-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 14px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.44));
}

.hero-card-content {
  position: relative;
  z-index: 1;
}

.hero-card h3 {
  margin: 0 0 8px;
  color: #fff1c7;
  font-size: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-meta span {
  padding: 5px 8px;
  color: #ffe5a4;
  font-size: 12px;
  background: rgba(142, 31, 22, 0.62);
  border: 1px solid rgba(216, 168, 71, 0.36);
}

.screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.screen-feature,
.screen-stack {
  margin: 0;
}

.screen-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.screen-feature img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.screen-feature figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px;
  color: #fff4d0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
  font-weight: 700;
}

.screen-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
}

.screen-stack img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.stats-section {
  background: linear-gradient(180deg, #1c140e, #11110d);
}

.stats-card {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(260px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.stats-card img {
  width: 100%;
  border: 1px solid rgba(216, 168, 71, 0.28);
}

.download-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(90deg, rgba(103, 20, 13, 0.9), rgba(33, 24, 15, 0.92)),
    url("assets/screens/battle-lane.jpg") center / cover;
  border-top: 1px solid var(--line);
}

.download-final h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-family: "STKaiti", "KaiTi", SimSun, serif;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 30px;
  padding: 24px;
  color: #bfa46f;
  background: #090806;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .feature-grid,
  .heroes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-layout,
  .stats-card {
    grid-template-columns: 1fr;
  }

  .screen-stack {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 88vh;
    padding-top: 58px;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(8, 12, 16, 0.18), rgba(8, 12, 16, 0.32) 48%, rgba(8, 12, 16, 0.72)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent);
  }

  .hero-bg {
    object-position: 48% center;
  }

  .hero-content {
    margin-bottom: 22px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .war-panel {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .intro-band,
  .feature-grid,
  .heroes-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding-block: 58px;
  }

  .feature-grid article {
    min-height: auto;
  }

  .screen-feature img {
    min-height: 300px;
  }

  .screen-stack {
    grid-template-columns: 1fr;
  }

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