:root {
  --black: #080604;
  --panel: rgba(18, 14, 10, 0.86);
  --panel-strong: rgba(28, 18, 13, 0.94);
  --gold: #ffd76a;
  --gold-soft: #c89a43;
  --red: #d93324;
  --red-dark: #8d1e18;
  --jade: #5fd6c4;
  --cream: #f6ead1;
  --muted: #cbbf9f;
  --line: rgba(255, 215, 106, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background: var(--black);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: #180b05;
  background: var(--gold);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 5%;
  background: linear-gradient(180deg, rgba(7, 5, 4, 0.92), rgba(7, 5, 4, 0.56));
  border-bottom: 1px solid rgba(255, 215, 106, 0.22);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: #301205;
  background: linear-gradient(180deg, #ffe28a, #b9791f);
  border: 1px solid #fff0a7;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(255, 190, 63, 0.28);
}

.brand-text {
  overflow: hidden;
  color: var(--gold);
  font-size: 1.18rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(246, 234, 209, 0.82);
}

.nav-links a {
  min-width: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  background: rgba(255, 215, 106, 0.1);
}

.header-download,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-download,
.primary-button {
  color: #2a0804;
  background: linear-gradient(180deg, #ffe78a, #f2a22d 46%, #c93d22);
  border: 1px solid rgba(255, 239, 154, 0.9);
  box-shadow: 0 10px 26px rgba(197, 49, 30, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.header-download:hover,
.primary-button:hover,
.header-download:focus-visible,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(214, 59, 35, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ghost-button {
  color: var(--cream);
  background: rgba(10, 8, 6, 0.38);
  border: 1px solid rgba(246, 234, 209, 0.38);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 215, 106, 0.1);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
  padding: 112px 5% 76px;
  background:
    linear-gradient(90deg, rgba(6, 4, 3, 0.98) 0%, rgba(10, 6, 4, 0.84) 38%, rgba(10, 6, 4, 0.34) 68%, rgba(6, 4, 3, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72)),
    url("assets/bg-palace.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(8, 6, 4, 0), var(--black));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.82);
}

.engine-logo {
  width: min(300px, 64vw);
  height: 76px;
  margin: 0 0 18px -4px;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: screen;
  filter: brightness(1.18) contrast(1.12) drop-shadow(0 8px 20px rgba(255, 215, 106, 0.28));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--jade);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  color: var(--gold);
  font-size: 5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(246, 234, 209, 0.93);
  font-size: 1.18rem;
  line-height: 1.9;
}

.promo-panel {
  width: min(620px, 100%);
  margin-top: 24px;
  padding: 16px 18px;
  color: #fff4c9;
  background: linear-gradient(90deg, rgba(115, 20, 13, 0.9), rgba(35, 17, 8, 0.88));
  border: 1px solid rgba(255, 215, 106, 0.58);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.promo-panel p {
  margin: 0;
}

.gift-code {
  color: #fff06f;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 0 16px rgba(255, 215, 106, 0.3);
}

.gift-code strong,
.hero-trade-note strong,
.download-note strong,
.download-service strong {
  color: #fff06f;
  font-weight: 900;
}

.trade-line {
  margin-top: 8px;
  color: rgba(246, 234, 209, 0.96);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-trade-note {
  width: min(620px, 100%);
  margin: 18px 0 0;
  padding: 12px 16px;
  color: rgba(246, 234, 209, 0.96);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
  background: rgba(18, 11, 6, 0.66);
  border: 1px solid rgba(255, 215, 106, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.primary-button.large {
  min-width: 176px;
  height: 58px;
  font-size: 1.08rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  min-width: 96px;
  padding: 10px 14px;
  color: #fff5ce;
  text-align: center;
  background: rgba(255, 215, 106, 0.12);
  border: 1px solid rgba(255, 215, 106, 0.32);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-character {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: -13%;
  width: min(42%, 560px);
  max-height: 92%;
  object-fit: contain;
  opacity: 0.86;
  filter: saturate(1.1) contrast(1.05) drop-shadow(0 30px 44px rgba(0, 0, 0, 0.66));
  mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0, 0, 0, 0.88) 62%, transparent 78%);
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading.light h2 {
  color: #1f1309;
}

.benefits-section {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background:
    linear-gradient(180deg, var(--black), #19110b 46%, #0b0806),
    radial-gradient(circle at 84% 14%, rgba(95, 214, 196, 0.08), transparent 28%);
  border-top: 1px solid rgba(255, 215, 106, 0.2);
}

.benefits-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 215, 106, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 215, 106, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.24;
  pointer-events: none;
}

.decor-character {
  position: absolute;
  right: -40px;
  bottom: -110px;
  width: min(42%, 460px);
  opacity: 0.2;
  filter: saturate(1.2) contrast(1.05);
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 86%, transparent 100%);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--jade));
}

.benefit-card.wide {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(34, 22, 14, 0.96), rgba(14, 10, 8, 0.9));
}

.benefit-card.boss {
  background: linear-gradient(180deg, rgba(53, 17, 13, 0.96), rgba(15, 10, 8, 0.92));
}

.benefit-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.benefit-title h3 {
  margin: 0;
  color: var(--gold);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.benefit-title span {
  flex: 0 0 auto;
  color: #fff067;
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 240, 103, 0.32);
}

.benefit-card p {
  margin: 0;
  color: rgba(246, 234, 209, 0.9);
  line-height: 1.85;
}

.benefit-card p + p {
  margin-top: 10px;
}

.screenshots-section {
  padding: 78px 0 86px;
  color: #25190d;
  background:
    linear-gradient(180deg, #ead9b7, #c8b08a 52%, #21140d);
}

.screenshots-section .eyebrow {
  color: #8d1e18;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  background: #120d09;
  border: 1px solid rgba(71, 38, 15, 0.44);
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(34, 18, 8, 0.28);
}

.shot.large-shot {
  grid-row: auto;
}

.shot img {
  width: 100%;
  height: 100%;
  min-height: 236px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0d0907;
}

.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-width: 112px;
  padding: 9px 12px;
  color: #fff2cb;
  font-weight: 800;
  background: rgba(8, 6, 4, 0.78);
  border: 1px solid rgba(255, 215, 106, 0.36);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.download-section {
  position: relative;
  overflow: hidden;
  padding: 82px 20px 92px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(6, 4, 3, 0.82), rgba(6, 4, 3, 0.96)),
    url("assets/bg-palace.jpg") center / cover no-repeat;
  border-top: 1px solid rgba(255, 215, 106, 0.22);
}

.download-content {
  width: min(760px, 100%);
  margin: 0 auto;
}

.download-content h2 {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.82);
}

.download-note {
  width: min(700px, 100%);
  margin: -8px auto 22px;
  padding: 13px 16px;
  color: rgba(246, 234, 209, 0.96);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.65;
  background: rgba(18, 11, 6, 0.72);
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.download-service {
  width: min(420px, 100%);
  margin: 18px auto 0;
  padding: 10px 14px;
  color: rgba(246, 234, 209, 0.96);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  background: rgba(18, 11, 6, 0.58);
  border: 1px solid rgba(255, 215, 106, 0.34);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.health-footer {
  display: grid;
  place-items: center;
  padding: 28px 18px 34px;
  background: #1a1002;
}

.health-footer img {
  width: min(358px, 100%);
  border-radius: 4px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 66px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-character {
    right: -12%;
    width: min(58%, 430px);
    opacity: 0.42;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .shot.large-shot {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-text {
    max-width: 96px;
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .header-download {
    min-width: 104px;
    height: 42px;
    padding: 0 14px;
  }

  .hero {
    min-height: 82svh;
    padding: 96px 20px 56px;
    background:
      linear-gradient(180deg, rgba(6, 4, 3, 0.9), rgba(6, 4, 3, 0.76) 42%, rgba(6, 4, 3, 0.94)),
      url("assets/bg-palace-mobile.jpg") center / cover no-repeat;
  }

  .download-section {
    background:
      linear-gradient(180deg, rgba(6, 4, 3, 0.82), rgba(6, 4, 3, 0.96)),
      url("assets/bg-palace-mobile.jpg") center / cover no-repeat;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .engine-logo {
    width: min(240px, 68vw);
    height: 60px;
    margin-bottom: 14px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.78;
  }

  .promo-panel {
    padding: 14px;
  }

  .gift-code {
    font-size: 1.18rem;
  }

  .trade-line,
  .hero-trade-note,
  .download-note,
  .download-service {
    font-size: 0.95rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .hero-tags li {
    min-width: calc(50% - 5px);
  }

  .hero-character {
    right: -34%;
    bottom: -7%;
    width: 82%;
    opacity: 0.22;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .section-heading h2,
  .download-content h2 {
    font-size: 2rem;
  }

  .benefits-section,
  .screenshots-section {
    padding: 58px 0 66px;
  }

  .decor-character {
    display: none;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card.wide {
    grid-column: auto;
  }

  .benefit-card {
    min-height: 0;
    padding: 20px;
  }

  .benefit-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shot img {
    min-height: 188px;
  }

  .shot figcaption {
    min-width: 96px;
    font-size: 0.92rem;
  }
}
