@font-face {
  font-family: "JiujieSerif";
  src: local("STKaiti"), local("KaiTi"), local("Songti SC");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06100f;
  --bg-2: #0b171b;
  --panel: rgba(14, 28, 31, 0.78);
  --panel-strong: rgba(10, 21, 24, 0.92);
  --line: rgba(221, 183, 98, 0.24);
  --line-bright: rgba(255, 215, 128, 0.58);
  --gold: #e8bd66;
  --gold-2: #fff0b7;
  --cyan: #6dd7ff;
  --red: #d35c4d;
  --ink: #f7efe0;
  --muted: #b9c8c4;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --shell: min(1080px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(115, 40, 70, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 16%, rgba(64, 170, 190, 0.16), transparent 30rem),
    linear-gradient(180deg, #030605 0%, var(--bg) 42%, #090914 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.18));
  z-index: -1;
}

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

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

button,
summary {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #111;
  transform: translateY(-140%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 12, 14, 0.74);
  border-color: rgba(232, 189, 102, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px rgba(232, 189, 102, 0.42));
  transition: transform .35s ease, filter .35s ease;
}

.brand:hover img {
  transform: rotate(24deg) scale(1.08);
  filter: drop-shadow(0 0 18px rgba(255, 225, 146, 0.65));
}

.brand strong {
  display: block;
  font-family: "JiujieSerif", "Microsoft YaHei", sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-size: .68rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(7, 16, 18, 0.38);
  backdrop-filter: blur(10px);
}

.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  color: #dce7e3;
  font-family: "JiujieSerif", "Microsoft YaHei", sans-serif;
  font-size: .88rem;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold-2);
  background: rgba(232, 189, 102, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 189, 102, 0.28);
  border-radius: var(--radius);
  background: rgba(9, 18, 21, 0.62);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: start;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 26px;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 26%;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 5, 6, 0.92), rgba(1, 5, 6, 0.58) 44%, rgba(1, 5, 6, 0.28)),
    linear-gradient(0deg, rgba(3, 6, 5, 0.96), rgba(3, 6, 5, 0.12) 46%, rgba(3, 6, 5, 0.56));
}

.hero-runes {
  position: absolute;
  right: max(26px, 8vw);
  bottom: 13vh;
  width: min(30vw, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 189, 102, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 38px rgba(232, 189, 102, 0.08), 0 0 70px rgba(109, 215, 255, 0.14);
  opacity: .72;
  animation: runeSpin 26s linear infinite;
}

.hero-runes::before,
.hero-runes::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(109, 215, 255, 0.22);
  transform: rotate(45deg);
}

.hero-runes::after {
  inset: 23%;
  border-color: rgba(211, 92, 77, 0.22);
  transform: rotate(0deg);
}

@keyframes runeSpin {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

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

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

h1 {
  margin: 0;
  font-family: "JiujieSerif", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  line-height: .88;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(232, 189, 102, 0.42), 0 9px 26px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--cyan);
  font-size: clamp(.95rem, 1.6vw, 1.22rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 610px;
  margin: 16px 0 0;
  color: #e7eee9;
  font-size: .98rem;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 17px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.3), transparent, rgba(232,189,102,.45), transparent);
  opacity: 0;
  transition: opacity .25s ease;
  animation: runeSpin 3.8s linear infinite;
}

.btn span,
.btn {
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 26px rgba(232, 189, 102, 0.28);
}

.btn:hover::before {
  opacity: .55;
}

.btn-primary {
  background: linear-gradient(135deg, #f1ca74, #9e6f2d);
  color: #14100a;
  border-color: rgba(255, 236, 178, 0.68);
}

.btn-ghost {
  background: rgba(12, 23, 26, 0.58);
  color: var(--gold-2);
  backdrop-filter: blur(10px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 570px;
  margin: 24px 0 0;
}

.hero-stats div {
  padding: 11px 12px;
  border: 1px solid rgba(232, 189, 102, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 12, 13, 0.48);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  color: var(--muted);
  font-size: .78rem;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--gold-2);
  font-weight: 800;
  font-size: .94rem;
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.section-copy h2,
.download-card h2 {
  margin: 0;
  font-family: "JiujieSerif", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.68rem, 3.1vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.section-copy p,
.download-card p,
.faq-list p {
  color: var(--muted);
}

.lead-text {
  margin: 10px 0 0;
  color: var(--gold-2) !important;
  font-weight: 800;
}

.intro-grid,
.world-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .82fr);
  gap: 34px;
  align-items: center;
}

.feature-figure,
.wide-shot,
.gallery-grid figure {
  margin: 0;
  border: 1px solid rgba(232, 189, 102, 0.2);
  border-radius: var(--radius);
  background: rgba(5, 13, 15, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-figure img,
.wide-shot img,
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  padding: 10px 12px;
  color: #c8d8d2;
  font-size: .86rem;
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(7, 19, 21, 0.72), rgba(13, 11, 22, 0.76)),
    radial-gradient(circle at 70% 40%, rgba(232, 189, 102, 0.08), transparent 28rem);
  border-block: 1px solid rgba(232, 189, 102, 0.12);
}

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

.sigil-card,
.chapter-card,
.guide-panel,
.timeline-item,
.download-card,
.faq-list details {
  border: 1px solid rgba(232, 189, 102, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 33, 36, 0.78), rgba(8, 17, 19, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.sigil-card {
  position: relative;
  min-height: 176px;
  padding: 19px;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.sigil-card:hover,
.chapter-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 189, 102, 0.44);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32), 0 0 28px rgba(232, 189, 102, 0.1);
}

.sigil {
  width: 34px;
  height: 34px;
  display: inline-block;
  border: 1px solid var(--line-bright);
  transform: rotate(45deg);
  box-shadow: inset 0 0 18px rgba(232, 189, 102, 0.16), 0 0 18px rgba(109, 215, 255, 0.14);
  transition: transform .35s ease;
}

.sigil-card:hover .sigil {
  transform: rotate(135deg) scale(1.05);
}

.sigil-card h3,
.chapter-card h3,
.guide-panel h3,
.timeline-item h3 {
  margin: 14px 0 6px;
  color: var(--gold-2);
  font-size: 1.08rem;
}

.sigil-card p,
.chapter-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span {
  padding: 6px 10px;
  border: 1px solid rgba(109, 215, 255, 0.22);
  border-radius: 999px;
  color: #daf7ff;
  background: rgba(109, 215, 255, 0.08);
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.guide-panel {
  position: sticky;
  top: 96px;
  padding: 19px;
}

.guide-panel h3 {
  margin-top: 0;
}

.guide-panel ol,
.check-list {
  padding-left: 1.25rem;
  margin: 0;
  color: var(--muted);
}

.guide-panel li + li,
.check-list li + li {
  margin-top: 8px;
}

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

.chapter-card {
  padding: 18px;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.chapter-card span {
  color: var(--cyan);
  font-weight: 800;
}

.wide-shot {
  margin-top: 22px;
}

.timeline {
  display: grid;
  gap: 12px;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.timeline-item time {
  color: var(--gold);
  font-weight: 900;
}

.timeline-item h3 {
  margin-top: 0;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3.2vw, 34px);
  background:
    linear-gradient(135deg, rgba(17, 34, 36, 0.92), rgba(29, 13, 25, 0.82)),
    radial-gradient(circle at 90% 20%, rgba(232, 189, 102, 0.16), transparent 24rem);
}

.download-actions {
  margin: 0;
  justify-content: flex-end;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 15px 40px 15px 18px;
  color: var(--gold-2);
  font-weight: 800;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: var(--cyan);
  transition: transform .2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list p {
  margin: 0;
  padding: 0 18px 15px;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(232, 189, 102, 0.14);
  background: rgba(3, 7, 8, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: #d8e4df;
  font-size: .86rem;
}

.footer-links a {
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

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

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

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: revealByScroll both ease-out;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
  }

  @keyframes revealByScroll {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 66px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(6, 14, 16, 0.88);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

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

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .intro-grid,
  .world-grid,
  .faq-grid,
  .guide-layout,
  .download-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    position: static;
  }

  .download-actions,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
    padding: 78px 0 22px;
  }

  .hero-content {
    transform: none;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(1, 5, 6, 0.97), rgba(1, 5, 6, 0.32) 62%, rgba(1, 5, 6, 0.66)),
      linear-gradient(90deg, rgba(1, 5, 6, 0.78), rgba(1, 5, 6, 0.28));
  }

  .hero-runes {
    width: 210px;
    right: -88px;
    bottom: 18vh;
  }

  .hero-stats,
  .feature-grid,
  .chapter-list,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .brand small {
    white-space: normal;
  }

  .feature-grid {
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .download-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-stats div {
    padding: 12px;
  }
}
