/* 元神启动 · 官网静态站 共用样式 */

:root {
  --bg: #04060a;
  --bg-soft: #070a11;
  --ink: #f2f5fa;
  --ink-soft: rgba(236, 242, 250, 0.8);
  --muted: rgba(220, 230, 243, 0.56);
  --gold: #d9b36c;
  --gold-light: #f3e2b8;
  --gold-deep: #a9854b;
  --line: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(217, 179, 108, 0.32);
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(217, 179, 108, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 4px;
}

.container {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 84px;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.68) 0%, rgba(3, 5, 10, 0.12) 70%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.site-header.scrolled {
  background: rgba(4, 6, 10, 0.86);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header.scrolled::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 96px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(217, 179, 108, 0.85);
  transform: rotate(45deg);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 179, 108, 0.42);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: #fff;
}

.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--gold-light);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 6, 10, 0.4);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #05070b;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #05070b;
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-hd {
  opacity: 0;
}

.hero-media.hd-active .hero-video-hd {
  opacity: 1;
}

.hero-media.hd-active .hero-video-low {
  opacity: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 88px);
  min-height: 100svh;
  margin-inline: auto;
  padding-top: 110px;
  padding-bottom: 236px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 26px;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.85),
    1px -1px 0 rgba(0, 0, 0, 0.85),
    -1px 1px 0 rgba(0, 0, 0, 0.85),
    1px 1px 0 rgba(0, 0, 0, 0.85),
    0 0 10px rgba(0, 0, 0, 0.9);
  animation: hero-in 0.9s 0.1s both;
}

.hero-eyebrow::before {
  content: "";
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1 {
  position: absolute;
  right: 0;
  bottom: 40px;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 7.4vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: 0.16em;
  margin: 0;
  color: #fff;
  -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.35);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 3px 10px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(0, 0, 0, 0.8);
  animation: hero-in 1s 0.2s both;
}

.hero h1 .thin {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.16em;
  font-weight: 400;
  letter-spacing: 0.66em;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 33em;
  color: #fff;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 2;
  margin-bottom: 30px;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8),
    -1px 1px 0 rgba(0, 0, 0, 0.8),
    1px 1px 0 rgba(0, 0, 0, 0.8),
    0 0 12px rgba(0, 0, 0, 0.9);
  animation: hero-in 1s 0.35s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8),
    -1px 1px 0 rgba(0, 0, 0, 0.8),
    1px 1px 0 rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.9);
  animation: hero-in 1s 0.5s both;
}

.hero-meta b {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-meta .sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-links {
  position: static;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8),
    -1px 1px 0 rgba(0, 0, 0, 0.8),
    1px 1px 0 rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.9);
  animation: hero-in 1s 0.7s both;
}

.hero-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-links a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 右下角下载浮层（全透明） ---------- */

.dl-dock {
  position: fixed;
  right: 44px;
  bottom: 38px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  text-align: right;
  animation: hero-in 1s 0.85s both;
}

.dl-dock-label {
  font-size: 0.56rem;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.62);
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 1px 8px rgba(0, 0, 0, 0.85);
  margin-bottom: 12px;
  padding-right: 2px;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 226px;
  padding: 12px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.6);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 10px rgba(0, 0, 0, 0.9);
  transition: color 0.25s ease;
}

.dl-item:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.dl-platform {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.dl-platform small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 5px;
  text-transform: uppercase;
}

.dl-ver {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
}

.dl-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.dl-arrow svg {
  width: 13px;
  height: 13px;
}

.dl-item:hover {
  color: var(--gold-light);
}

.dl-item:hover .dl-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120a;
  transform: translateY(2px);
}

.dl-item:hover .dl-platform small {
  color: rgba(243, 226, 184, 0.72);
}

.dl-dock.pulse .dl-item {
  color: var(--gold-light);
}

/* ---------- 区块 ---------- */

.section {
  position: relative;
  padding: 118px 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.section-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0;
  color: #fff;
}

.section-desc {
  max-width: 30em;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.95;
  text-align: right;
}

/* ---------- 功能（无框排版） ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 84px;
}

.feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 32px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 6px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  color: #f5f2ea;
}

.feature p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.46);
}

.feature-tags span::before {
  content: "—";
  margin-right: 8px;
  color: var(--gold-deep);
}

/* ---------- 职业 ---------- */

.classes {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 30px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 179, 108, 0.35) transparent;
}

.classes::-webkit-scrollbar {
  height: 3px;
}

.classes::-webkit-scrollbar-thumb {
  background: rgba(217, 179, 108, 0.35);
}

.class-card {
  position: relative;
  flex: 0 0 380px;
  scroll-snap-align: start;
  overflow: hidden;
  background: #070a10;
}

.class-card img {
  width: 100%;
  aspect-ratio: 700 / 365;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.92);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}

.class-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.92) saturate(1.02);
}

.class-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 10, 0.88) 100%);
  pointer-events: none;
}

.class-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.class-caption h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #fff;
}

.class-caption span {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: rgba(217, 179, 108, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
}

.class-hint {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- 教程入口（无框排版） ---------- */

.tutorials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 84px;
}

.tutorial-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  transition: color 0.25s ease;
}

.tutorial-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}

.tutorial-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f5f2ea;
}

.tutorial-row p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}

.tutorial-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.46);
}

.tutorial-steps li {
  position: relative;
  padding-left: 20px;
}

.tutorial-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--gold-deep);
}

.tutorial-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}

.tutorial-more::after {
  content: "→";
  transition: transform 0.25s ease;
}

.tutorial-row:hover h3,
.tutorial-row:hover .tutorial-more {
  color: var(--gold-light);
}

.tutorial-row:hover .tutorial-more::after {
  transform: translateX(6px);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq details[open] summary {
  color: var(--gold-light);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 26px;
  max-width: 68em;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.95;
}

.faq-answer b {
  color: var(--gold-light);
  font-weight: 500;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: #030509;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 62px 0 40px;
}

.has-dock .site-footer {
  padding-bottom: 170px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  line-height: 1.9;
}

.footer-col h5 {
  margin: 0 0 16px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- 教程页 ---------- */

.doc-hero {
  position: relative;
  padding: 156px 0 68px;
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(217, 179, 108, 0.09), transparent 60%),
    linear-gradient(180deg, #070b13, var(--bg));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.doc-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(217, 179, 108, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb span.sep {
  opacity: 0.35;
}

.doc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  color: #fff;
}

.doc-hero .lead {
  max-width: 44em;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 2;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.doc-meta span {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding: 68px 0 96px;
}

.toc {
  position: sticky;
  top: 110px;
  align-self: start;
  border-left: 1px solid rgba(217, 179, 108, 0.28);
  padding-left: 22px;
  display: grid;
  gap: 3px;
}

.toc-title {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.toc a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.46);
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.doc-body {
  min-width: 0;
}

.step {
  position: relative;
  padding: 30px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  scroll-margin-top: 110px;
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  white-space: nowrap;
}

.step h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
}

.step p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.95;
  margin-bottom: 10px;
}

.step p:last-child {
  margin-bottom: 0;
}

.step ul,
.step ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 2;
}

.step li::marker {
  color: var(--gold-deep);
}

.step a.inline {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(217, 179, 108, 0.32);
}

.step a.inline:hover {
  border-bottom-color: var(--gold-light);
}

.callout {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 1px solid var(--gold);
  background: rgba(217, 179, 108, 0.05);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.9;
}

.callout.warn {
  border-left-color: #d98554;
  background: rgba(217, 133, 84, 0.06);
}

.callout b {
  color: var(--gold-light);
}

.callout.warn b {
  color: #eeb28e;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-sans);
  font-size: 0.78em;
  color: var(--gold-light);
}

.doc-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 38px;
  padding-top: 10px;
}

.doc-nav a {
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.doc-nav a:hover {
  border-color: rgba(217, 179, 108, 0.36);
  background: rgba(217, 179, 108, 0.04);
}

.doc-nav small {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
}

.doc-nav b {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.doc-nav a.next {
  text-align: right;
  align-items: flex-end;
}

/* ---------- 脱盒专区 ---------- */

.nav a.nav-launcher {
  color: var(--gold-light);
  letter-spacing: 0.14em;
}

.nav a.nav-launcher::after {
  background: var(--gold-light);
}

.launcher-section {
  padding: 60px 0 96px;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.launcher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

a.launcher-card:hover {
  border-color: rgba(217, 179, 108, 0.45);
  background: rgba(217, 179, 108, 0.04);
  transform: translateY(-3px);
}

.launcher-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #fff;
}

.launcher-card h2 small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.launcher-card p {
  flex: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  line-height: 1.95;
}

.launcher-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid rgba(217, 179, 108, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--gold-light);
}

.launcher-link {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}

.launcher-card.is-soon {
  opacity: 0.55;
}

.launcher-card.is-soon .launcher-badge {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.5);
}

.launcher-card.is-soon .launcher-link {
  color: rgba(255, 255, 255, 0.5);
}

.launcher-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.36);
}

.launcher-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.launcher-download {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

.launcher-platform {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1.2;
}

.launcher-platform small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

.launcher-ver {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.launcher-download .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.launcher-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ---------- 动效 ---------- */

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

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

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .container,
  .hero-inner {
    width: calc(100% - 64px);
  }

  .header-inner {
    width: calc(100% - 64px);
  }

  .features,
  .tutorials {
    column-gap: 48px;
  }

  .dl-dock {
    right: 32px;
    bottom: 30px;
  }

  .doc-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 44px;
  }
}

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

  .header-inner,
  .container,
  .hero-inner {
    width: calc(100% - 40px);
  }

  .nav {
    position: fixed;
    inset: 66px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(4, 6, 10, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
  }

  body.nav-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 82px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-desc {
    text-align: left;
  }

  .features,
  .tutorials {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .hero-links {
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-inner {
    padding-bottom: 190px;
  }

  .dl-dock {
    right: 20px;
    bottom: 20px;
  }

  .dl-item {
    min-width: 190px;
    padding: 10px 2px;
  }

  .dl-platform {
    font-size: 0.92rem;
  }

  .dl-ver {
    display: none;
  }

  .class-card {
    flex-basis: 300px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    padding: 40px 0 80px;
  }

  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .toc-title {
    width: 100%;
    margin-bottom: 2px;
  }

  .toc a {
    padding: 2px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .has-dock .site-footer {
    padding-bottom: 150px;
  }
}

@media (max-width: 600px) {
  .hero-eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.14em;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hero-eyebrow::before {
    width: 28px;
  }

  .hero h1 {
    letter-spacing: 0.08em;
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .hero-sub {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }

  .hero-meta {
    gap: 10px 16px;
  }

  .hero-meta .sep {
    display: none;
  }

  .dl-dock {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }

  .dl-dock-label {
    font-size: 0.5rem;
    margin-bottom: 8px;
  }

  .dl-item {
    min-width: 0;
    width: auto;
    gap: 12px;
  }

  .dl-platform {
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .dl-platform small {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }

  .dl-arrow {
    width: 24px;
    height: 24px;
  }

  .class-card {
    flex-basis: 258px;
  }

  .step {
    padding: 26px 0 30px;
  }

  .step-head {
    flex-direction: column;
    gap: 6px;
  }

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

  .doc-nav a.next {
    text-align: left;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-meta,
  .hero-links,
  .dl-dock {
    animation: none;
  }

  .class-card img,
  .dl-arrow {
    transition: none;
  }
}

/* =========================================================
   四页全屏布局 / 左侧刻度 / 音乐
   ========================================================= */

body[data-page] {
  height: 100svh;
  overflow: hidden;
}

.pages {
  position: relative;
  z-index: 1;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pages::-webkit-scrollbar {
  display: none;
}

.page {
  position: relative;
  height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.page-home {
  background: #05070b;
}

.page-regions,
.page-classes,
.page-project {
  background: radial-gradient(90% 90% at 80% 0%, rgba(217, 179, 108, 0.07), transparent 60%);
}

.page-regions::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(80% 80% at 60% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 80% at 60% 45%, #000 0%, transparent 78%);
  pointer-events: none;
}

.page-classes::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(217, 179, 108, 0.1);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.page-project::before {
  content: "";
  position: absolute;
  left: 42%;
  top: -140px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 179, 108, 0.12), transparent 65%);
  pointer-events: none;
}

.page-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  margin-left: 150px;
  margin-right: 64px;
  padding: 118px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-head {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
}

.page-lead {
  max-width: 48em;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 2;
}

/* ---------- 地区 ---------- */

.region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 70px;
  margin-top: 12px;
}

.region-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  transition: border-color 0.3s ease;
}

.region-item:hover {
  border-bottom-color: rgba(217, 179, 108, 0.5);
}

.region-no {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  min-width: 22px;
}

.region-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}

.region-item p {
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.38);
}

.region-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

.region-foot span::before {
  content: "—";
  margin-right: 8px;
  color: var(--gold-deep);
}

/* ---------- 职业页 ---------- */

.class-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 54px;
  align-items: center;
  margin-top: 34px;
  min-height: 0;
}

.class-preview {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #070a10;
}

.class-preview img {
  width: 100%;
  aspect-ratio: 700 / 365;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.02);
  transition: opacity 0.25s ease;
}

.class-preview figcaption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 16px;
}

.class-preview-no {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.class-preview h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.class-preview p {
  grid-column: 2;
  margin-top: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.class-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.class-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: none;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.class-list button span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.class-list button b {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.class-list button small {
  grid-column: 2;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.class-list button:hover,
.class-list button.active {
  color: var(--gold-light);
  border-top-color: rgba(217, 179, 108, 0.5);
}

.class-list button.active b {
  color: #fff;
}

.class-list button.active small {
  color: rgba(217, 179, 108, 0.7);
}

/* ---------- 项目页 ---------- */

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
  margin-top: 18px;
}

.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
}

.project-stats div {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.project-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold-light);
}

.project-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
}

.project-features {
  list-style: none;
}

.project-features li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.project-features b {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

.project-features span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f0d8a5 0%, #d9b36c 50%, #bd8f48 100%);
  color: #171004;
  font-weight: 600;
}

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

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
}

.btn-ghost:hover {
  border-color: rgba(217, 179, 108, 0.5);
  color: var(--gold-light);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-links a {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

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

.project-note {
  margin-top: 16px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
}

/* ---------- 左侧页面刻度 ---------- */

.page-rail {
  position: fixed;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 62;
  width: 128px;
  height: 62vh;
  min-height: 380px;
  pointer-events: none;
}

.rail-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.3) 18%, rgba(255, 255, 255, 0.3) 82%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.rail-spark {
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: rail-run 7.5s linear infinite;
}

.rail-spark:nth-child(2) {
  animation-delay: 2.5s;
}

.rail-spark:nth-child(3) {
  animation-delay: 5s;
}

@keyframes rail-run {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  90% {
    opacity: 0.95;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.rail-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.rail-tick {
  position: relative;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

.rail-tick i {
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.rail-tick span {
  position: absolute;
  left: 48px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.58);
  opacity: 0.55;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease, color 0.3s ease;
}

.rail-tick:hover i {
  width: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.rail-tick:hover span {
  opacity: 0.9;
}

.rail-tick.active i {
  width: 42px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}

.rail-tick.active span {
  opacity: 1;
  color: #fff;
}

/* ---------- 音乐开关 ---------- */

.music-dock {
  position: fixed;
  left: 40px;
  bottom: 28px;
  z-index: 66;
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(4, 6, 10, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.music-toggle:hover {
  border-color: var(--gold);
  background: rgba(217, 179, 108, 0.12);
}

.music-toggle svg {
  width: 19px;
  height: 19px;
}

.music-toggle .icon-pause {
  display: none;
}

.music-toggle.is-playing .icon-play {
  display: none;
}

.music-toggle.is-playing .icon-pause {
  display: block;
}

.nav a.nav-trade {
  color: var(--gold-light);
  letter-spacing: 0.14em;
}

.nav a.nav-trade::after {
  background: var(--gold-light);
}

.nav a.nav-faq {
  color: rgba(111, 215, 255, 0.9);
  letter-spacing: 0.14em;
}

.nav a.nav-faq::after {
  background: var(--cyan);
}

.nav a.nav-faq:hover,
.nav a.nav-faq.active {
  color: var(--cyan);
}

/* ---------- 手机版问题解答 ---------- */

.faq-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 6px;
}

.faq-shot {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #070a10;
  overflow: hidden;
}

.faq-shot.wide {
  grid-column: 1 / -1;
  margin: 18px 0 6px;
}

.faq-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-shot figcaption {
  padding: 10px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.music-name {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: color 0.2s ease;
}

.music-name:hover,
.music-name:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="1"] .dl-dock,
body[data-page="2"] .dl-dock,
body[data-page="3"] .dl-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.dl-dock {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  animation: none;
}

@media (max-width: 1080px) {
  .page-inner {
    margin-left: 120px;
    margin-right: 40px;
  }

  .class-stage {
    gap: 34px;
  }

  .project-body {
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .page-rail {
    left: 18px;
    width: 52px;
    height: 54vh;
    min-height: 280px;
  }

  .rail-tick span {
    display: none;
  }

  .rail-tick.active i {
    width: 30px;
  }

  .page-inner {
    margin-left: 48px;
    margin-right: 24px;
    padding: 92px 0 40px;
    height: auto;
    min-height: 100svh;
    justify-content: flex-start;
  }

  .page {
    height: auto;
    min-height: 100svh;
  }

  .region-grid {
    column-gap: 30px;
  }

  .class-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .class-list {
    grid-template-columns: 1fr 1fr;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .music-dock {
    left: 20px;
    right: auto;
    bottom: 18px;
  }

  .music-name {
    display: none;
  }
}

@media (max-width: 600px) {
  .faq-shots {
    grid-template-columns: 1fr;
  }

  .page-head {
    padding-bottom: 18px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-lead {
    font-size: 0.82rem;
  }

  .region-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .region-item {
    padding: 13px 0;
  }

  .region-foot {
    margin-top: 18px;
  }

  .class-preview h3 {
    font-size: 1.3rem;
  }

  .class-list {
    gap: 0 14px;
  }

  .project-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .project-features li {
    flex-direction: column;
    gap: 2px;
  }

  .project-features span {
    text-align: left;
  }

  .project-actions {
    gap: 8px;
  }

  .btn {
    flex: 1 1 100%;
  }

  .rail-track {
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail-spark {
    animation: none;
    opacity: 0.6;
  }
}

/* =========================================================
   地区 / 职业：半透明弧形选择菜单
   ========================================================= */

.page-regions,
.page-classes {
  --wheel: 380px;
}

.region-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--wheel);
  align-items: center;
  gap: 60px;
  margin-top: 22px;
}

.region-readout-wrap {
  max-width: 430px;
}

.wheel-kicker {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  margin-bottom: 6px;
}

.region-readout {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 16px;
}

.region-readout-no {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 179, 108, 0.45);
}

.region-readout-main h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #fff;
}

.region-readout-main p {
  margin: 8px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
}

.region-divider {
  width: 90px;
  height: 1px;
  margin: 24px 0 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.region-stage .region-foot {
  margin-top: 0;
}

.wheel {
  position: relative;
  width: var(--wheel);
  height: clamp(430px, 56vh, 520px);
  flex-shrink: 0;
}

.wheel-glow {
  position: absolute;
  inset: 3% 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at 50% 50%, rgba(217, 179, 108, 0.09), transparent 62%);
  pointer-events: none;
}

.wheel-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.wheel-center span {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 5px;
}

.wheel-center strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}

.wheel-ring {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.wheel-ring li {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
}

.wheel-ring button {
  position: static;
  transform: translateX(var(--x, 0px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 16, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wheel-ring button span {
  font-family: var(--font-display);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.wheel-ring button b {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.wheel-ring button:hover,
.wheel-ring button.active {
  color: #fff;
  border-color: rgba(217, 179, 108, 0.55);
  background: rgba(217, 179, 108, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(217, 179, 108, 0.14);
}

.wheel-ring button.active span {
  color: var(--gold-light);
}

.class-stage {
  grid-template-columns: minmax(0, 1fr) var(--wheel);
  gap: 48px;
}

@media (max-width: 1080px) {
  .region-stage {
    gap: 38px;
  }
}

@media (max-height: 820px) {
  .page-regions .page-inner,
  .page-classes .page-inner {
    padding-top: 92px;
    padding-bottom: 28px;
  }
}

@media (max-width: 960px) {
  .region-stage,
  .class-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .region-readout-wrap {
    max-width: none;
  }

  .wheel {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: auto;
    justify-self: center;
  }

  .wheel-glow,
  .wheel-arc,
  .wheel-center {
    display: none;
  }

  .wheel-ring {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .wheel-ring li {
    position: static;
    width: auto;
    height: auto;
    transform: none;
  }

  .wheel-ring button {
    position: static;
    transform: none;
    width: 100%;
    justify-content: flex-start;
  }
}


/* =========================================================
   首页商业区三角入口 / 非首页粒子背景
   ========================================================= */

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}

body[data-page="0"] .particle-canvas {
  opacity: 0;
}

.trade-triangle {
  position: fixed;
  top: 92px;
  right: 0;
  width: 220px;
  height: 220px;
  z-index: 56;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  background: linear-gradient(225deg, rgba(217, 179, 108, 0.52) 0%, rgba(111, 215, 255, 0.14) 58%, rgba(4, 6, 10, 0.02) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, background-color 0.25s ease;
}

body[data-page="0"] .trade-triangle {
  opacity: 1;
  visibility: visible;
}

.trade-triangle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 141.4%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 233, 184, 0.95), rgba(217, 179, 108, 0.15));
  transform: rotate(45deg);
  transform-origin: left top;
}

.trade-triangle span {
  position: absolute;
  left: 112px;
  top: 108px;
  transform: rotate(-45deg);
  transform-origin: left top;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  color: #fff8e8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(217, 179, 108, 0.45);
}

.trade-triangle:hover {
  background: linear-gradient(225deg, rgba(217, 179, 108, 0.72) 0%, rgba(111, 215, 255, 0.22) 58%, rgba(4, 6, 10, 0.03) 100%);
}

@media (max-width: 860px) {
  .trade-triangle {
    display: none;
  }
}

/* =========================================================
   职业页：立绘居中 + 右侧技能图标 / 粒子开关
   ========================================================= */

.particle-canvas {
  opacity: 0;
}

body.particles-on:not([data-page="0"]) .particle-canvas {
  opacity: 1;
}

.particle-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(4, 6, 10, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.particle-toggle:hover {
  border-color: var(--gold);
  background: rgba(217, 179, 108, 0.12);
}

.particle-toggle svg {
  width: 18px;
  height: 18px;
}

.particle-toggle.active {
  border-color: var(--gold);
  background: rgba(217, 179, 108, 0.2);
  color: var(--gold-light);
}

.page-classes {
  --wheel: 280px;
  --skill-w: 300px;
}

.class-stage {
  grid-template-columns: var(--wheel) minmax(0, 1fr) var(--skill-w);
  grid-template-areas: "wheel portrait skills";
  gap: 30px;
  align-items: center;
}

.class-wheel {
  grid-area: wheel;
}

.page-classes .wheel {
  height: clamp(360px, 46vh, 440px);
}

.class-portrait {
  grid-area: portrait;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.portrait-frame {
  position: relative;
  width: min(310px, 100%);
  height: clamp(340px, 46vh, 430px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 45%, rgba(217, 179, 108, 0.14), transparent 68%);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(217, 179, 108, 0.18);
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.class-portrait figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.class-portrait .class-preview-no {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.class-portrait h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #fff;
}

.class-portrait p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.skill-panel {
  grid-area: skills;
  align-self: center;
}

.skill-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-head span {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}

.skill-head strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.skill-icon {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 16, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.skill-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.skill-icon:hover {
  border-color: rgba(217, 179, 108, 0.5);
  background: rgba(217, 179, 108, 0.12);
  transform: translateY(-2px);
}

.skill-note {
  margin-top: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
  .page-classes {
    --wheel: 240px;
    --skill-w: 240px;
  }

  .class-stage {
    gap: 22px;
  }

  .skill-icon img {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 960px) {
  .class-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "wheel" "portrait" "skills";
    gap: 22px;
  }

  .page-classes .wheel {
    width: 100%;
    max-width: 520px;
    height: auto;
    justify-self: center;
  }

  .page-classes {
    height: auto;
    min-height: 100svh;
  }

  .portrait-frame {
    height: 360px;
  }
}

@media (max-height: 820px) {
  .page-classes .wheel {
    height: 340px;
  }

  .page-classes .portrait-frame {
    height: 330px;
  }
}

/* =========================================================
   职业页最终布局：技能 30% / 立绘 50% / 职业选择 20%
   ========================================================= */

.class-stage {
  grid-template-columns: 30% minmax(0, 1fr) 20%;
  grid-template-areas: "skills portrait classes";
  gap: 20px;
  align-items: stretch;
}

.class-wheel {
  grid-area: classes;
  width: 100%;
  max-width: 250px;
  height: clamp(360px, 48vh, 440px);
  justify-self: end;
  align-self: center;
}

.class-portrait {
  grid-area: portrait;
  align-self: center;
}

.portrait-frame {
  width: min(360px, 100%);
  height: clamp(380px, 48vh, 440px);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-panel {
  grid-area: skills;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  align-self: center;
  height: clamp(380px, 48vh, 440px);
}

.skill-icons {
  min-width: 0;
}

.skill-grid {
  grid-template-columns: repeat(2, 44px);
  gap: 6px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
}

.skill-icon img {
  width: 32px;
  height: 32px;
}

.skill-desc {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-desc-title {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 8px;
}

.skill-desc-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 179, 108, 0.35) transparent;
}

.skill-desc-list::-webkit-scrollbar {
  width: 3px;
}

.skill-desc-list::-webkit-scrollbar-thumb {
  background: rgba(217, 179, 108, 0.35);
}

.skill-desc-item {
  margin-bottom: 12px;
}

.skill-desc-item b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.skill-desc-item p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.skill-desc-empty {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1280px) {
  .class-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "skills classes" "portrait portrait";
    gap: 16px;
    min-height: 0;
    position: relative;
  }

  .skill-panel {
    grid-area: skills;
    width: 100%;
    height: 360px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 14, 0.55);
  }

  .class-wheel {
    grid-area: classes;
    width: 100%;
    max-width: none;
    height: 360px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 14, 0.55);
  }

  .class-portrait {
    grid-area: portrait;
    position: relative;
    z-index: 0;
  }

  .portrait-frame {
    width: min(420px, 88%);
    height: clamp(440px, 58vh, 560px);
    margin: 0 auto;
  }

  .page-classes {
    height: auto;
    min-height: 100svh;
  }

  .page-classes .page-inner {
    padding-bottom: 80px;
  }
}

@media (max-width: 700px) {
  .class-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "skills" "classes" "portrait";
  }

  .skill-panel {
    height: auto;
  }

  .skill-desc {
    height: 160px;
  }

  .portrait-frame {
    height: 460px;
  }
}

.skill-icon {
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.skill-icon.active {
  border-color: rgba(217, 179, 108, 0.75);
  background: rgba(217, 179, 108, 0.18);
  box-shadow: 0 0 18px rgba(217, 179, 108, 0.18);
}
