:root {
  --bg: #080504;
  --bg-soft: #120b08;
  --panel: rgba(28, 16, 10, 0.82);
  --panel-strong: rgba(56, 25, 15, 0.88);
  --gold: #d6a94d;
  --gold-bright: #ffe19a;
  --gold-dark: #8d6122;
  --ember: #d84a24;
  --blood: #64160e;
  --jade: #5fb8a6;
  --ink: #fff4d8;
  --muted: #c3aa82;
  --line: rgba(255, 205, 109, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --max: 1160px;
  --header-h: 72px;
  --tabbar-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #160805 0%, var(--bg) 36%, #0d0806 100%),
    var(--bg);
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--tabbar-h);
  }
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.section {
  position: relative;
  padding: 82px 24px;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2 {
  margin-top: 8px;
  font-size: 2.15rem;
  color: var(--gold-bright);
  text-shadow: 0 0 28px rgba(216, 74, 36, 0.26);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(255, 225, 154, 0.2);
  background: linear-gradient(180deg, rgba(8, 5, 4, 0.92), rgba(8, 5, 4, 0.55));
  backdrop-filter: blur(12px);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 5, 4, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 14px rgba(255, 225, 154, 0.38));
}

.brand-name {
  font-family: "Noto Serif SC", serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  color: rgba(255, 244, 216, 0.78);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(255, 225, 154, 0.35);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 225, 154, 0.66);
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe5a1, #c89436);
  color: #2b1408;
  font-weight: 700;
  box-shadow: 0 0 26px rgba(216, 74, 36, 0.26);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(28, 16, 10, 0.84);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold-bright);
}

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

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(8, 5, 4, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255, 205, 109, 0.12);
  }

  .main-nav a::after {
    display: none;
  }

  .header-download {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 1rem;
  }

  .header-download {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 42px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 28px) 28px 46px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 5, 4, 0.34) 0%, rgba(8, 5, 4, 0.16) 40%, rgba(8, 5, 4, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 5, 4, 0.1) 0%, rgba(8, 5, 4, 0.36) 58%, var(--bg) 100%);
}

.hero::after {
  position: absolute;
  inset: auto -10% 0 -10%;
  z-index: -1;
  height: 230px;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 4, 0.84) 65%, var(--bg));
  content: "";
}

.hero-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 42px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}

.hero-content h1 {
  margin-top: 12px;
  font-size: 4.75rem;
  color: var(--gold-bright);
  text-shadow:
    0 3px 0 rgba(88, 26, 11, 0.88),
    0 0 28px rgba(216, 74, 36, 0.58),
    0 0 48px rgba(255, 225, 154, 0.25);
}

.hero-slogan {
  margin-top: 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 2.05rem;
  font-weight: 700;
  color: #ff6239;
  text-shadow: 0 0 20px rgba(216, 74, 36, 0.6);
}

.hero-copy {
  max-width: 590px;
  margin-top: 18px;
  color: rgba(255, 244, 216, 0.86);
  font-size: 1.04rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  min-width: 86px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 225, 154, 0.38);
  border-radius: 4px;
  background: rgba(30, 12, 8, 0.58);
  color: var(--gold-bright);
  font-size: 0.92rem;
  text-align: center;
  box-shadow: inset 0 0 22px rgba(216, 74, 36, 0.16);
}

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

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 62px;
  padding: 13px 28px;
  border-radius: 5px;
  font-size: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn span {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
}

.btn small {
  margin-top: 2px;
  font-size: 0.78rem;
  opacity: 0.78;
}

.btn-primary {
  border: 1px solid #fff1b7;
  background: linear-gradient(180deg, #fff0b6 0%, var(--gold) 52%, #9b621e 100%);
  color: #2a1307;
  box-shadow:
    0 10px 28px rgba(216, 74, 36, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.btn-outline {
  border: 1px solid rgba(255, 225, 154, 0.56);
  background: linear-gradient(180deg, rgba(69, 24, 13, 0.8), rgba(20, 9, 7, 0.78));
  color: var(--gold-bright);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(216, 74, 36, 0.34),
    0 0 26px rgba(255, 225, 154, 0.18);
}

.download-board {
  border: 1px solid rgba(255, 225, 154, 0.42);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 225, 154, 0.1), transparent 28%),
    rgba(20, 10, 7, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 225, 154, 0.2);
  background: linear-gradient(90deg, rgba(100, 22, 14, 0.88), rgba(28, 12, 8, 0.78));
}

.board-head span {
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 700;
}

.board-head strong {
  color: var(--gold-bright);
  font-family: "Noto Serif SC", serif;
  font-size: 1.08rem;
}

.board-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 18px;
  align-items: center;
}

.board-body img {
  width: 150px;
  height: 150px;
  padding: 6px;
  border: 1px solid rgba(255, 225, 154, 0.46);
  border-radius: 5px;
  background: #fff;
}

.board-actions {
  display: grid;
  gap: 10px;
}

.board-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 225, 154, 0.35);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(216, 74, 36, 0.74), rgba(92, 20, 12, 0.82));
  color: #fff8df;
  font-weight: 700;
}

.board-actions a:nth-child(2) {
  background: linear-gradient(180deg, rgba(95, 184, 166, 0.66), rgba(35, 95, 84, 0.8));
}

.board-actions a:nth-child(3) {
  background: linear-gradient(180deg, rgba(75, 122, 210, 0.72), rgba(35, 61, 130, 0.82));
}

.board-actions a:nth-child(4) {
  background: linear-gradient(180deg, rgba(255, 225, 154, 0.92), rgba(184, 122, 37, 0.92));
  color: #2a1307;
}

.download-board p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Benefits */
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: -20px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.benefit-item {
  min-height: 104px;
  padding: 20px 22px;
  border-top: 1px solid rgba(255, 225, 154, 0.38);
  border-bottom: 1px solid rgba(255, 225, 154, 0.18);
  background: linear-gradient(180deg, rgba(54, 20, 12, 0.9), rgba(14, 8, 6, 0.9));
}

.benefit-item span {
  color: rgba(255, 225, 154, 0.5);
  font-family: "Noto Serif SC", serif;
  font-size: 0.9rem;
}

.benefit-item strong {
  display: block;
  margin-top: 2px;
  color: var(--gold-bright);
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
}

.benefit-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Features */
.features-section {
  background:
    linear-gradient(180deg, rgba(8, 5, 4, 0), rgba(100, 22, 14, 0.18) 48%, rgba(8, 5, 4, 0)),
    var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.feature-card {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 154, 0.26);
  border-radius: 8px;
  background: #150b07;
  box-shadow: var(--shadow);
}

.feature-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.35s ease;
}

.feature-card-one .feature-media {
  background-image: url("../images/feature-classes.png");
}

.feature-card-two .feature-media {
  background-image: url("../images/feature-siege.png");
}

.feature-card-three .feature-media {
  background-image: url("../images/feature-boss.png");
}

.feature-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 4, 0.05), rgba(8, 5, 4, 0.2) 35%, rgba(8, 5, 4, 0.92) 100%),
    linear-gradient(90deg, rgba(100, 22, 14, 0.34), transparent 55%);
  content: "";
}

.feature-card:hover .feature-media {
  transform: scale(1.04);
}

.feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 24px;
}

.feature-content span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 225, 154, 0.34);
  border-radius: 4px;
  color: var(--jade);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-content h3 {
  color: var(--gold-bright);
  font-size: 1.45rem;
}

.feature-content p {
  margin-top: 10px;
  color: rgba(255, 244, 216, 0.78);
  font-size: 0.96rem;
}

/* Download */
.download-section {
  background:
    linear-gradient(180deg, rgba(8, 5, 4, 0.94), rgba(36, 13, 8, 0.92)),
    var(--bg-soft);
}

.download-showcase {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.download-copy {
  padding-top: 8px;
}

.download-copy strong {
  display: block;
  color: var(--gold-bright);
  font-family: "Noto Serif SC", serif;
  font-size: 1.7rem;
}

.download-copy p {
  max-width: 460px;
  margin-top: 12px;
  color: var(--muted);
}

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

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  padding: 24px;
  border: 1px solid rgba(255, 225, 154, 0.32);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(216, 74, 36, 0.16), transparent 45%),
    rgba(16, 8, 6, 0.74);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.download-card:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(216, 74, 36, 0.2);
}

.download-card strong {
  color: var(--gold-bright);
  font-family: "Noto Serif SC", serif;
  font-size: 1.16rem;
}

.download-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-steps {
  grid-column: 2;
  padding: 0 0 0 4px;
}

.install-steps h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.install-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

.install-steps li + li {
  margin-top: 7px;
}

/* Support */
.support-section {
  background:
    linear-gradient(180deg, rgba(12, 7, 5, 0.94), rgba(8, 5, 4, 1)),
    var(--bg);
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.support-info {
  display: grid;
  gap: 14px;
}

.support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 225, 154, 0.32);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(45, 18, 11, 0.82), rgba(14, 8, 6, 0.82));
}

.support-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.support-link strong {
  color: var(--gold-bright);
  font-size: 1.08rem;
}

.support-info p {
  color: var(--muted);
}

.support-qr {
  text-align: center;
}

.support-qr img {
  width: 180px;
  height: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 225, 154, 0.42);
  border-radius: 7px;
  background: #fff;
}

.support-qr p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  padding: 30px 18px 38px;
  text-align: center;
  border-top: 1px solid rgba(255, 225, 154, 0.14);
  background: #070504;
}

.site-footer p {
  color: rgba(195, 170, 130, 0.82);
  font-size: 0.85rem;
}

.site-footer p + p {
  margin-top: 6px;
}

/* Mobile tabbar */
.mobile-tabbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  height: var(--tabbar-h);
  background: rgba(8, 5, 4, 0.97);
  border-top: 1px solid rgba(255, 225, 154, 0.22);
  backdrop-filter: blur(10px);
}

.mobile-tabbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 244, 216, 0.76);
}

.mobile-tabbar a.is-active,
.mobile-tabbar a:hover {
  color: var(--gold-bright);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-board {
    max-width: 520px;
  }

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

  .feature-card {
    min-height: 310px;
  }

  .feature-media {
    background-size: cover;
  }

  .download-showcase {
    grid-template-columns: 1fr;
  }

  .install-steps {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 18px;
  }

  .section-head h2 {
    font-size: 1.72rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 30px) 18px 34px;
  }

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

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 5, 4, 0.22), rgba(8, 5, 4, 0.88) 58%, var(--bg) 100%),
      linear-gradient(90deg, rgba(8, 5, 4, 0.2), rgba(8, 5, 4, 0.76));
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-slogan {
    font-size: 1.42rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions,
  .download-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    min-width: unset;
    width: 100%;
  }

  .download-board {
    display: none;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .benefit-item {
    min-height: 94px;
  }

  .support-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .support-info {
    width: 100%;
  }

  .support-link {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .mobile-tabbar {
    display: flex;
  }
}

@media (max-width: 420px) {
  .site-header {
    height: 66px;
  }

  :root {
    --header-h: 66px;
  }

  .hero-content h1 {
    font-size: 2.62rem;
  }

  .hero-tags span {
    min-width: calc(50% - 5px);
  }
}

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

  .btn:hover,
  .download-card:hover,
  .feature-card:hover .feature-media {
    transform: none;
  }
}
