:root {
  --bg: #070605;
  --ink: #120f0c;
  --gold: #d4b45a;
  --gold-2: #f0d78c;
  --fire: #ff6a1f;
  --text: #e8dcc0;
  --muted: rgba(232, 220, 192, 0.7);
  --line: rgba(212, 180, 90, 0.35);
  /* 仅用开源可商用字体，避免系统宋体/未授权商用字体风险 */
  --font: "Noto Serif SC", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
}

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

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

/* 战场氛围层：黑烟 / 火苗 / 飞灰 */
.war-field {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

#warFx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.war-heat {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 12% 100%, rgba(255, 70, 10, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 32% at 88% 100%, rgba(255, 90, 20, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 28% at 50% 108%, rgba(180, 40, 0, 0.1), transparent 65%);
  animation: warHeatPulse 5.5s ease-in-out infinite;
  mix-blend-mode: screen;
}

.war-embers-css {
  position: absolute;
  inset: 0;
}

.war-embers-css span {
  position: absolute;
  bottom: -2%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffb040;
  box-shadow: 0 0 6px #ff6a1f, 0 0 12px rgba(255, 80, 0, 0.55);
  animation: warEmberRise linear infinite;
  opacity: 0;
}

.war-embers-css span:nth-child(1) { left: 8%; animation-duration: 12s; animation-delay: 0s; }
.war-embers-css span:nth-child(2) { left: 18%; width: 2px; height: 2px; animation-duration: 15s; animation-delay: 1.2s; }
.war-embers-css span:nth-child(3) { left: 28%; animation-duration: 11s; animation-delay: 2.1s; }
.war-embers-css span:nth-child(4) { left: 42%; animation-duration: 13.5s; animation-delay: 0.6s; }
.war-embers-css span:nth-child(5) { left: 55%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 3s; }
.war-embers-css span:nth-child(6) { left: 66%; animation-duration: 12.5s; animation-delay: 1.5s; }
.war-embers-css span:nth-child(7) { left: 74%; animation-duration: 14s; animation-delay: 4s; }
.war-embers-css span:nth-child(8) { left: 82%; width: 2px; height: 2px; animation-duration: 10.5s; animation-delay: 2.8s; }
.war-embers-css span:nth-child(9) { left: 90%; animation-duration: 15.5s; animation-delay: 0.9s; }
.war-embers-css span:nth-child(10) { left: 48%; animation-duration: 18s; animation-delay: 5s; }

@keyframes warHeatPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes warEmberRise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 0.75; }
  100% { transform: translate3d(22px, -110vh, 0) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .war-field { display: none; }
}

@media (max-width: 720px) {
  .war-field { opacity: 0.75; }
  .war-embers-css span:nth-child(n+7) { display: none; }
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.2rem);
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.92), rgba(7, 6, 5, 0.35) 80%, transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(7, 6, 5, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  width: clamp(110px, 18vw, 160px);
  filter: drop-shadow(0 0 12px rgba(255, 100, 20, 0.35));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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

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

/* Hero — one composition */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.4) 0%, transparent 24%, rgba(7, 6, 5, 0.25) 48%, rgba(7, 6, 5, 0.78) 78%, rgba(7, 6, 5, 0.95) 100%),
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(120, 30, 0, 0.28), transparent 65%);
}

/* 首屏城墙一带：缓缓下沉的硝烟 */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  padding: 0 1.25rem;
  margin-top: -6vh;
  text-align: center;
  animation: riseIn 1s ease-out both;
}

.hero-title {
  width: min(760px, 94%);
  margin: 0 auto;
  filter:
    drop-shadow(0 10px 30px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 28px rgba(255, 90, 0, 0.35));
  animation: titleGlow 3.5s ease-in-out infinite;
}

.hero-lead {
  margin: 0.85rem auto 1.5rem;
  max-width: 28em;
  letter-spacing: 0.18em;
  font-size: clamp(0.9rem, 2.2vw, 1.08rem);
  color: rgba(240, 215, 140, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  align-items: center;
}

.btn-img {
  display: inline-block;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.btn-img img {
  width: min(420px, 88vw);
  height: auto;
}

.btn-img:hover {
  transform: translateY(-3px) scale(1.03);
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 18px rgba(255, 110, 20, 0.45));
}

.btn-img:active {
  transform: translateY(0) scale(0.98);
}

/* keep text buttons as fallback if needed */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.4rem;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(180deg, #f0c35a, #c45a12 55%, #8a2a08);
  color: #1a0c06;
  border: 1px solid #ffe09a;
  font-weight: 700;
}

.btn-ghost {
  border: 1px solid rgba(240, 215, 140, 0.55);
  color: var(--gold-2);
  background: rgba(7, 6, 5, 0.45);
}


/* Sections */
.section-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--gold-2);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.weapons-section {
  padding: 4.2rem clamp(1rem, 4vw, 2.2rem);
}

.lore-chapter.map-section {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.map-board {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: #0a1218;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  max-height: 100vh;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.map-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 60px 50px -30px rgba(8, 10, 14, 0.75),
    inset 0 -40px 40px -24px rgba(8, 10, 14, 0.65);
}

.map-board::after {
  display: none;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transform: none;
  transition: none;
}

.map-board:hover .map-art {
  transform: none;
}

.map-overlay-head {
  position: absolute;
  left: 50%;
  top: 2.5%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.map-overlay-head .lore-kicker {
  color: rgba(255, 220, 140, 0.8);
}

.map-overlay-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #ffe7a8;
  font-weight: 700;
}

.map-overlay-head .lore-sub {
  color: rgba(255, 240, 210, 0.72);
  font-size: 0.82rem;
}

.map-legend,
.map-tip {
  display: none;
}

.map-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.map-fx .spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 8px #ff8a20;
  opacity: 0;
  animation: sparkFly 7s linear infinite;
}

.map-fx .spark:nth-child(1) { left: 18%; bottom: 20%; animation-delay: 0s; }
.map-fx .spark:nth-child(2) { left: 40%; bottom: 15%; animation-delay: 1.2s; }
.map-fx .spark:nth-child(3) { left: 55%; bottom: 25%; animation-delay: 2.1s; }
.map-fx .spark:nth-child(4) { left: 70%; bottom: 18%; animation-delay: 3.4s; }
.map-fx .spark:nth-child(5) { left: 30%; bottom: 30%; animation-delay: 4.2s; }
.map-fx .spark:nth-child(6) { left: 82%; bottom: 22%; animation-delay: 5.5s; }

.map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.map-routes .route {
  fill: none;
  stroke: rgba(255, 190, 80, 0.55);
  stroke-width: 0.35;
  stroke-linecap: round;
  stroke-dasharray: 1.2 1.6;
  animation: routeDash 12s linear infinite;
  filter: drop-shadow(0 0 2px rgba(255, 140, 40, 0.45));
}

.map-routes .route-sea {
  stroke: rgba(160, 210, 255, 0.45);
  stroke-dasharray: 0.8 1.8;
  filter: drop-shadow(0 0 2px rgba(80, 160, 255, 0.35));
}

.pin {
  --x: 50%;
  --y: 50%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  z-index: 4;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pin-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff1c2 0%, #e2b45a 42%, #9a4a12 72%, #3a1408 100%);
  box-shadow:
    0 0 0 1px rgba(255, 220, 150, 0.35),
    0 0 10px rgba(212, 140, 40, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pin-core.fire {
  background:
    radial-gradient(circle at 35% 28%, #ffe9a0 0%, #ff6a1f 48%, #8a1200 100%);
  box-shadow:
    0 0 0 1px rgba(255, 180, 80, 0.45),
    0 0 14px rgba(255, 70, 10, 0.75);
}

.pin-beacon {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(232, 190, 100, 0.55);
  border-radius: 50%;
  animation: ping 2.2s ease-out infinite;
}

.pin-beacon.hot {
  border-color: rgba(255, 100, 40, 0.8);
  animation-duration: 1.6s;
}

.pin-name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.22rem 0.58rem 0.26rem;
  white-space: nowrap;
  font-family: var(--font);
  font-size: clamp(0.66rem, 1.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  line-height: 1.2;
  color: #f6e6b0;
  background:
    linear-gradient(180deg, rgba(42, 32, 18, 0.94), rgba(14, 11, 8, 0.96));
  border: 1px solid rgba(212, 180, 90, 0.58);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 230, 170, 0.16);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.pin-name::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 7px;
  height: 5px;
  transform: translateX(-50%);
  background: rgba(14, 11, 8, 0.96);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 1px 0 rgba(212, 180, 90, 0.35));
}

.pin-name-below .pin-name {
  bottom: auto;
  top: calc(100% + 9px);
}

.pin-name-below .pin-name::after {
  top: auto;
  bottom: 100%;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.pin:hover .pin-name,
.pin:focus-visible .pin-name,
.pin.is-active .pin-name {
  color: #fff3c8;
  border-color: rgba(240, 215, 140, 0.85);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(212, 160, 60, 0.22),
    inset 0 1px 0 rgba(255, 230, 170, 0.22);
}

.pin-sub {
  width: 10px;
  height: 10px;
  opacity: 0.72;
  z-index: 3;
}

.pin-sub .pin-core {
  box-shadow:
    0 0 0 1px rgba(255, 210, 140, 0.25),
    0 0 7px rgba(180, 100, 30, 0.4);
}

.pin:hover .pin-core,
.pin:focus-visible .pin-core,
.pin.is-active .pin-core {
  transform: scale(1.28);
}

.pin-card {
  position: absolute;
  left: 50%;
  top: calc(100% + 28px);
  transform: translateX(-50%) translateY(8px);
  width: min(250px, 66vw);
  padding: 0.72rem 0.82rem 0.82rem;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(22, 18, 12, 0.94), rgba(8, 8, 10, 0.96));
  border: 1px solid rgba(212, 180, 90, 0.46);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 230, 170, 0.08);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 6;
}

.pin-name-below .pin-card {
  top: calc(100% + 36px);
}

.pin:hover .pin-card,
.pin:focus-visible .pin-card,
.pin.is-active .pin-card {
  opacity: 1;
  pointer-events: none;
  transform: translateX(-50%) translateY(0);
}

.pin-up .pin-card {
  top: auto;
  bottom: calc(100% + 36px);
  transform: translateX(-50%) translateY(-8px);
}

.pin-up:hover .pin-card,
.pin-up:focus-visible .pin-card,
.pin-up.is-active .pin-card {
  transform: translateX(-50%) translateY(0);
}

.pin-sub .pin-card {
  top: calc(100% + 14px);
}

.pin-card strong {
  display: block;
  color: var(--gold-2);
  letter-spacing: 0.16em;
  text-indent: 0.08em;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.pin-card em {
  display: block;
  margin: 0;
  font-style: normal;
  color: rgba(232, 220, 192, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.pin-btn {
  display: none;
}

@media (max-width: 720px) {
  .map-board {
    min-height: 78vh;
  }

  .map-stage {
    width: 100vw;
    max-height: none;
  }

  .pin-name {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    padding: 0.16rem 0.4rem 0.18rem;
  }

  .pin-card {
    width: min(220px, 78vw);
    padding: 0.6rem 0.7rem;
  }

  .pin-card em {
    font-size: 0.7rem;
  }
}

/* 中间内容区：整幅渐变 + 传奇暗纹，首屏与底部除外 */
.mid-flow {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      180deg,
      #0a0806 0%,
      #100c08 18%,
      #14100b 42%,
      #120e0a 68%,
      #0c0907 100%
    );
}

.mid-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/bg-mir-pattern.png");
  background-size: 420px 420px;
  background-repeat: repeat;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

.mid-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 40% at 50% 8%, rgba(120, 50, 12, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 35% at 20% 55%, rgba(80, 35, 10, 0.1), transparent 60%),
    radial-gradient(ellipse 70% 35% at 80% 70%, rgba(90, 40, 12, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.15), transparent 12%, transparent 88%, rgba(7, 6, 5, 0.35));
}

.mid-flow > section,
.lore-band {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* 地图 → 版本 → 须知：同一条怀旧长卷 */
.lore-band {
  position: relative;
  margin-top: 0.5rem;
  padding: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 8, 6, 0) 0%,
      rgba(14, 10, 7, 0.35) 8%,
      rgba(16, 12, 9, 0.2) 45%,
      rgba(12, 9, 7, 0.45) 100%
    );
}

.lore-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(720px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 180, 90, 0.35),
    transparent
  );
  pointer-events: none;
}

.lore-chapter {
  position: relative;
  padding: 3.4rem clamp(1rem, 4vw, 2.2rem);
}

.lore-chapter + .lore-chapter {
  padding-top: 2.4rem;
}

.lore-chapter + .lore-chapter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(160px, 28vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 180, 90, 0.28),
    transparent
  );
  pointer-events: none;
}

.lore-head {
  text-align: center;
  margin: 0 auto 1.6rem;
  max-width: 40em;
}

.lore-kicker {
  margin: 0 0 0.55rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: rgba(212, 180, 90, 0.65);
  font-size: 0.72rem;
}

.lore-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--gold-2);
  font-weight: 700;
  text-shadow: 0 0 24px rgba(255, 110, 25, 0.12);
}

.lore-sub {
  margin: 0;
  color: rgba(232, 220, 192, 0.55);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

/* Weapons gallery — 1:1 nostalgic sprites */
.weapons-section {
  background: transparent;
}

.weapons-lead {
  max-width: 40em;
  margin: -0.4rem auto 2rem;
  text-align: center;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-size: 0.95rem;
}

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1040px;
  margin: 0 auto;
}

.weapon-card {
  margin: 0;
  text-align: center;
  transition: transform 0.25s ease;
}

.weapon-card:hover {
  transform: translateY(-6px);
}

.weapon-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(212, 180, 90, 0.3);
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 120, 30, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(28, 20, 12, 0.85), rgba(8, 6, 4, 0.95));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
}

.weapon-frame img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
  transition: filter 0.25s ease;
}

.weapon-card:hover .weapon-frame img {
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px rgba(255, 140, 40, 0.35));
}

.weapon-card figcaption {
  margin-top: 0.7rem;
}

.weapon-card strong {
  display: block;
  color: var(--gold-2);
  letter-spacing: 0.16em;
  font-size: 0.98rem;
}

.weapon-card em {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .weapons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .weapons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 版本介绍 — 满屏一镜：2003 赤月复古长卷 */
.intro {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
}

.intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #070605;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(clamp(1.6rem, 3.5vh, 2.8rem) - 20px);
}

.intro-bg img {
  width: auto;
  height: auto;
  max-width: min(100%, 96vw);
  max-height: min(92vh, 960px);
  object-fit: contain;
  object-position: center top;
  transform: none;
  filter: saturate(0.92) contrast(1.04) brightness(0.8);
  opacity: 0.92;
}

.intro-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 6, 5, 0.35) 0%,
      rgba(7, 6, 5, 0.12) 22%,
      rgba(7, 6, 5, 0.55) 48%,
      rgba(7, 6, 5, 0.94) 72%,
      rgba(7, 6, 5, 1) 100%
    ),
    radial-gradient(ellipse 70% 45% at 50% 18%, rgba(120, 45, 10, 0.18), transparent 68%);
}

.intro-panel {
  position: relative;
  z-index: 2;
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: 0 0 clamp(3.2rem, 8vh, 5.5rem);
  text-align: center;
}

.intro-kicker {
  margin: 0 0 0.55rem;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: rgba(240, 215, 140, 0.72);
  font-size: 0.74rem;
}

.intro-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--gold-2);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.intro-year {
  margin: 0 0 1.35rem;
  color: rgba(232, 220, 192, 0.55);
  letter-spacing: 0.2em;
  text-indent: 0.1em;
  font-size: 0.88rem;
}

.intro-lead {
  margin: 0 auto 1.8rem;
  max-width: 28em;
  line-height: 2;
  letter-spacing: 0.07em;
  color: rgba(232, 220, 192, 0.82);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.intro-lead em {
  font-style: normal;
  color: #f0d78c;
}

.intro-jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  max-width: 640px;
  margin: 0 auto 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 180, 90, 0.28);
}

.intro-job {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.2rem 0.3rem;
}

.intro-job strong {
  color: #ffe7a8;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  font-size: 1rem;
  font-weight: 700;
}

.intro-job span {
  color: rgba(232, 220, 192, 0.58);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  line-height: 1.55;
}

.intro-rules {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.35rem;
  margin: 0;
  padding: 0;
}

.intro-rules li {
  position: relative;
  padding: 0 0.85rem;
  color: rgba(240, 215, 140, 0.78);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.intro-rules li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 0.75em;
  transform: translateY(-50%);
  background: rgba(212, 180, 90, 0.35);
}

@media (max-width: 640px) {
  .intro {
    align-items: flex-end;
  }

  .intro-panel {
    padding-bottom: 2.6rem;
  }

  .intro-jobs {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 16em;
  }

  .intro-rules {
    gap: 0.45rem 0;
  }

  .intro-rules li {
    width: 100%;
    padding: 0.15rem 0;
  }

  .intro-rules li::after {
    display: none;
  }
}

/* Finale download — last chance CTA */
.finale {
  position: relative;
  padding: 4.5rem clamp(1rem, 4vw, 2.2rem) 3.5rem;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(140, 35, 8, 0.35), transparent 65%),
    linear-gradient(180deg, #0c0907, #140c08 50%, #080605);
}

.finale::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(520px, 60%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 180, 90, 0.28),
    transparent
  );
  pointer-events: none;
}

.finale-glow {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 70%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 90, 20, 0.28), transparent 70%);
  filter: blur(20px);
  animation: auraPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

.finale-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.finale-kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--gold);
  font-size: 0.85rem;
}

.finale-title {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  letter-spacing: 0.12em;
  line-height: 1.35;
  color: var(--gold-2);
  text-shadow: 0 0 24px rgba(255, 100, 20, 0.25);
}

.finale-copy {
  margin: 0 auto 1.35rem;
  max-width: 34em;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: justify;
}

.finale-reasons {
  list-style: none;
  margin: 0 auto 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 28em;
  text-align: left;
}

.finale-reasons li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.7rem;
  border: 1px solid rgba(212, 180, 90, 0.22);
  background: rgba(18, 12, 8, 0.55);
  color: rgba(240, 215, 140, 0.88);
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.finale-reasons li::before {
  content: "◆";
  position: absolute;
  left: 0.55rem;
  color: var(--fire);
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.finale-cta {
  display: inline-block;
  animation: finalePulse 2.8s ease-in-out infinite;
}

.finale-cta img {
  width: min(520px, 94vw);
  height: auto;
}

.finale-note {
  margin: 1rem 0 0;
  color: rgba(212, 180, 90, 0.65);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

@keyframes finalePulse {
  0%, 100% {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(255, 90, 20, 0.25));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(255, 110, 20, 0.5));
    transform: translateY(-3px);
  }
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* Footer */
.footer {
  position: relative;
  padding: 2.5rem 1rem 2.8rem;
  text-align: center;
  border-top: 1px solid rgba(212, 180, 90, 0.18);
}

.footer-main {
  max-width: 820px;
  margin: 0 auto;
}

.footer-logo {
  width: min(220px, 55%);
  margin: 0 auto 0.6rem;
  opacity: 0.9;
}

.footer p {
  margin: 0;
  color: rgba(232, 220, 192, 0.45);
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

.footer-health {
  margin: 0.25rem 0 !important;
  line-height: 1.7;
  letter-spacing: 0.06em !important;
  font-size: 0.78rem !important;
  color: rgba(232, 220, 192, 0.4) !important;
}

/* 进入门页：浏览器要求首次手势才能出声，做成进服仪式 */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #070605;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.enter-gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(140, 45, 8, 0.28), transparent 65%),
    url("assets/bg-mir-pattern.png");
  background-size: auto, 420px 420px;
  opacity: 0.55;
  pointer-events: none;
}

.enter-gate-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(212, 180, 90, 0.35);
  background: rgba(10, 8, 6, 0.72);
  color: var(--gold-2);
  font-family: var(--font);
  cursor: pointer;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.enter-gate-btn img {
  width: min(420px, 72vw);
  filter: drop-shadow(0 0 22px rgba(255, 100, 20, 0.35));
}

.enter-gate-btn strong {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-weight: 700;
}

.enter-gate-btn em {
  font-style: normal;
  color: rgba(232, 220, 192, 0.55);
  letter-spacing: 0.18em;
  font-size: 0.86rem;
}

.enter-gate-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(240, 200, 100, 0.65);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 120, 30, 0.22);
}

/* 登录器下载 · 全页随机漂浮 */
.float-download {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  width: clamp(150px, 18vw, 210px);
  will-change: transform;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  transition: filter 0.25s ease;
  cursor: pointer;
}

.float-download img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.float-download:hover {
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 18px rgba(255, 110, 20, 0.45));
  z-index: 58;
}

/* 996 正版授权 · 右侧中间悬浮 */
.float-996 {
  position: fixed;
  right: clamp(0.5rem, 1.5vw, 1rem);
  top: 50%;
  bottom: auto;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease, filter 0.25s ease;
  animation: floatBobSide 3.2s ease-in-out infinite;
}

.float-996 img {
  width: clamp(128px, 14vw, 168px);
  height: auto;
}

.float-996-tip {
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(240, 200, 100, 0.55);
  background: rgba(20, 12, 6, 0.92);
  color: #f0d78c;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(255, 140, 40, 0.25);
}

.float-996:hover {
  transform: translateY(-50%) scale(1.05);
  filter:
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 18px rgba(255, 150, 40, 0.45));
  animation: none;
}

@keyframes floatBobSide {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 6px)); }
}

@media (max-width: 720px) {
  .float-download {
    width: clamp(130px, 38vw, 170px);
  }

  .float-996 img {
    width: clamp(100px, 22vw, 128px);
  }

  .float-996-tip {
    font-size: 0.74rem;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 10px 30px rgba(0,0,0,0.75)) drop-shadow(0 0 22px rgba(255,90,0,0.3)); }
  50% { filter: drop-shadow(0 10px 30px rgba(0,0,0,0.75)) drop-shadow(0 0 36px rgba(255,120,20,0.55)); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.3); opacity: 0; }
}

@keyframes routeDash {
  to { stroke-dashoffset: -40; }
}

@keyframes mapBreath {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes sparkFly {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-220px) translateX(18px) scale(0.2); opacity: 0; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-content { margin-top: -4vh; padding-bottom: 0; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .btn-img img { width: min(320px, 92vw); }
}

