:root {
  --bg: #090705;
  --panel: rgba(20, 13, 10, .88);
  --panel-solid: #17100d;
  --text: #f6ead2;
  --muted: #b79b72;
  --gold: #f2c15d;
  --gold-deep: #a76c22;
  --red: #b31717;
  --red-hot: #ef3b1d;
  --line: rgba(242, 193, 93, .28);
  --shadow: 0 20px 80px rgba(0, 0, 0, .62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(132, 30, 18, .26), transparent 34rem),
    linear-gradient(180deg, #080604 0%, #160b08 52%, #080604 100%);
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .48));
  border-bottom: 1px solid rgba(242, 193, 93, .18);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(1320px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle, #5e0f0a, #130907 72%);
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(179, 23, 23, .45);
  animation: sealPulse 2.4s ease-in-out infinite;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  color: #ffe4a0;
  text-shadow: 0 0 12px rgba(239, 59, 29, .55);
}

.brand em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #e7d0a8;
  font-size: 16px;
}

.nav a {
  padding: 24px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--gold);
  border-color: var(--gold);
  text-shadow: 0 0 14px rgba(242, 193, 93, .72);
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  isolation: isolate;
  background: #070403;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  filter: saturate(1.15) contrast(1.05);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .32) 48%, rgba(0, 0, 0, .78)),
    linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(6, 4, 3, .92) 90%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 32% 62%, rgba(239, 59, 29, .24), transparent 18rem),
    radial-gradient(circle at 70% 72%, rgba(242, 193, 93, .16), transparent 16rem);
  opacity: .8;
  animation: fireGlow 3.2s ease-in-out infinite alternate;
}

.ember-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember-field i {
  position: absolute;
  bottom: -40px;
  width: 4px;
  height: 4px;
  background: #ffc15c;
  border-radius: 50%;
  box-shadow: 0 0 18px #f1451c, 0 0 34px rgba(255, 200, 92, .7);
  opacity: 0;
  animation: emberRise 7s linear infinite;
}

.ember-field i:nth-child(1) { left: 12%; animation-delay: 0s; }
.ember-field i:nth-child(2) { left: 24%; animation-delay: 1.1s; }
.ember-field i:nth-child(3) { left: 39%; animation-delay: 2.3s; }
.ember-field i:nth-child(4) { left: 48%; animation-delay: .5s; }
.ember-field i:nth-child(5) { left: 63%; animation-delay: 3.2s; }
.ember-field i:nth-child(6) { left: 75%; animation-delay: 1.8s; }
.ember-field i:nth-child(7) { left: 86%; animation-delay: 4.1s; }
.ember-field i:nth-child(8) { left: 94%; animation-delay: 2.7s; }

.hero-content {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 210px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.legend-title {
  position: relative;
  margin: 0;
  max-width: 720px;
  font-size: clamp(64px, 10vw, 132px);
  line-height: .95;
  font-family: "STXingkai", "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(180deg, #fff4c5 0%, #ffc95a 35%, #b71e12 68%, #4b0905 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 232, 159, .72);
  text-shadow:
    0 5px 0 #3b0704,
    0 0 24px rgba(239, 59, 29, .84),
    0 0 70px rgba(242, 193, 93, .48);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .72));
}

.legend-title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #7d1009;
  transform: translate(8px, 8px);
  -webkit-text-stroke: 6px rgba(70, 8, 5, .86);
}

.legend-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 32%, rgba(255, 255, 255, .82) 48%, transparent 62%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: titleShine 3.8s ease-in-out infinite;
}

.hero-slogan {
  max-width: 720px;
  margin: 26px 0 36px;
  color: #f5dfbd;
  font-size: 22px;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.hero-actions,
.download-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download-btn,
.download-card {
  position: relative;
  overflow: hidden;
  min-width: 210px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid rgba(255, 220, 128, .42);
  background: linear-gradient(180deg, #7b1510, #2a0b08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 35px rgba(0, 0, 0, .42);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.download-btn::before,
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .18) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}

.download-btn:hover::before,
.download-card:hover::before {
  transform: translateX(120%);
}

.download-btn:hover,
.download-card:hover,
.float-panel a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 232, 159, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 42px rgba(179, 23, 23, .38);
}

.download-btn span,
.download-card strong {
  position: relative;
  color: #fff5d6;
  font-size: 26px;
  font-weight: 900;
}

.download-btn small,
.download-card span {
  position: relative;
  margin-top: 5px;
  color: #e2bc7b;
  font-size: 13px;
}

.download-btn.secondary {
  background: linear-gradient(180deg, #9b6c22, #2e1b08);
}

.download-btn.ghost {
  background: linear-gradient(180deg, rgba(18, 18, 18, .9), rgba(8, 8, 8, .92));
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 18px;
  color: #ffe39b;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(43, 8, 5, .86), rgba(109, 18, 10, .82), rgba(43, 8, 5, .86));
  border-top: 1px solid var(--line);
  text-shadow: 0 2px 8px #000;
}

.marquee span {
  animation: hotText 1.8s ease-in-out infinite alternate;
}

.marquee span:nth-child(2n) {
  animation-delay: .45s;
}

.float-panel {
  position: fixed;
  right: 22px;
  top: 250px;
  z-index: 18;
  width: 156px;
  padding: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(34, 24, 20, .96), rgba(10, 8, 7, .96));
  border: 1px solid rgba(242, 193, 93, .32);
  box-shadow: var(--shadow);
  animation: panelFloat 3.4s ease-in-out infinite;
}

.float-cover {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  background: radial-gradient(circle, #862016, #070403 72%);
  border: 1px solid rgba(242, 193, 93, .35);
}

.float-panel strong {
  display: block;
  margin-bottom: 10px;
  color: #fff1cc;
}

.float-panel a {
  display: block;
  margin-top: 7px;
  padding: 10px 8px;
  background: linear-gradient(180deg, #7b4c18, #2d1808);
  border: 1px solid rgba(242, 193, 93, .24);
  color: #fff1ce;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.float-panel .back-top {
  background: #5f5b55;
}

.section-band {
  position: relative;
  padding: 92px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
    radial-gradient(circle at 80% 10%, rgba(179, 23, 23, .16), transparent 28rem);
  border-top: 1px solid rgba(242, 193, 93, .12);
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 193, 93, .55), transparent);
}

.section-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

h2 {
  margin: 0 0 26px;
  color: #ffe7b0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  text-shadow: 0 0 24px rgba(179, 23, 23, .58), 0 3px 0 #3b0704;
}

.intro-grid,
.two-col,
.download-grid,
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.intro p,
.guide p,
.download-section p {
  color: #d8c2a0;
  font-size: 18px;
  line-height: 1.9;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.intro-stats div,
.guide-card,
.feature-grid article,
.showcase-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .32);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.intro-stats div:hover,
.guide-card:hover,
.feature-grid article:hover,
.showcase-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 211, 111, .62);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42), 0 0 32px rgba(179, 23, 23, .2);
}

.intro-stats div {
  min-height: 132px;
  padding: 24px;
}

.intro-stats strong {
  display: block;
  color: var(--gold);
  font-size: 38px;
}

.intro-stats span {
  color: var(--muted);
}

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

.feature-grid article {
  min-height: 230px;
  padding: 26px;
}

.feature-grid span {
  color: var(--red-hot);
  font-weight: 900;
}

h3 {
  margin: 10px 0 12px;
  color: #ffe5ab;
  font-size: 24px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  text-shadow: 0 0 12px rgba(239, 59, 29, .45);
}

.feature-grid p,
.guide-list,
.showcase-grid p {
  color: #d5bd98;
  font-size: 16px;
  line-height: 1.8;
}

.guide-list {
  margin: 0;
  padding-left: 24px;
}

.guide-list li {
  margin: 0 0 12px;
}

.guide-card {
  padding: 34px;
  border-color: rgba(239, 59, 29, .36);
  background:
    linear-gradient(145deg, rgba(103, 18, 12, .72), rgba(18, 10, 8, .92)),
    var(--panel-solid);
}

.video-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(179, 23, 23, .18), transparent 26rem),
    linear-gradient(180deg, #100806, #070504);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050403;
  border: 1px solid rgba(242, 193, 93, .36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(242, 193, 93, .72), transparent 28%, rgba(179, 23, 23, .72) 58%, transparent);
  opacity: .42;
  animation: frameGlow 4s linear infinite;
  pointer-events: none;
}

.video-frame video {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  object-fit: cover;
  background: #050403;
}

.video-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  color: #fff0c5;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(242, 193, 93, .28);
  pointer-events: none;
}

.showcase-grid article {
  overflow: hidden;
  padding: 0 24px 24px;
}

.item-visual {
  height: 250px;
  margin: 0 -24px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(242, 193, 93, .42), transparent 36%),
    linear-gradient(145deg, #30130d, #090604);
}

.item-visual.sword {
  background:
    linear-gradient(125deg, transparent 42%, rgba(255, 238, 178, .95) 45%, rgba(151, 25, 18, .9) 48%, transparent 52%),
    radial-gradient(circle at 50% 56%, rgba(239, 59, 29, .5), transparent 36%),
    linear-gradient(145deg, #30130d, #090604);
}

.item-visual.ring {
  background:
    radial-gradient(circle, transparent 22%, rgba(242, 193, 93, .92) 24%, rgba(151, 25, 18, .7) 36%, transparent 38%),
    radial-gradient(circle at 50% 56%, rgba(239, 59, 29, .5), transparent 36%),
    linear-gradient(145deg, #30130d, #090604);
}

.item-visual.gem {
  background:
    conic-gradient(from 45deg, #f8e3a2, #af1610, #3d0c08, #f8e3a2),
    linear-gradient(145deg, #30130d, #090604);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.download-card {
  min-height: 120px;
}

.footer {
  padding: 38px 16px;
  text-align: center;
  color: #a89473;
  background: #060403;
  border-top: 1px solid rgba(242, 193, 93, .18);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  color: #fff4d4;
  background: rgba(24, 12, 8, .96);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

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

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(179, 23, 23, .42); }
  50% { box-shadow: 0 0 36px rgba(242, 193, 93, .55); }
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(-8px, 0, 0); }
  to { transform: scale(1.08) translate3d(12px, -8px, 0); }
}

@keyframes fireGlow {
  from { opacity: .42; filter: saturate(1); }
  to { opacity: .9; filter: saturate(1.45); }
}

@keyframes emberRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(40px, -920px, 0) scale(1.6); }
}

@keyframes titleShine {
  0%, 48% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes hotText {
  from { color: #ffe39b; text-shadow: 0 2px 8px #000; }
  to { color: #fff6cf; text-shadow: 0 0 16px rgba(255, 198, 76, .9), 0 0 28px rgba(239, 59, 29, .68); }
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes frameGlow {
  from { transform: translateX(-20%); }
  to { transform: translateX(20%); }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    position: sticky;
  }

  .header-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    font-size: 14px;
  }

  .nav a {
    padding: 8px 0;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 130px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .marquee {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 18px;
  }

  .float-panel {
    position: static;
    width: min(100% - 32px, 520px);
    margin: 24px auto;
  }

  .intro-grid,
  .two-col,
  .download-grid,
  .video-grid,
  .feature-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .hero {
    min-height: 760px;
  }

  .download-btn,
  .download-card {
    width: 100%;
  }

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