/**
 * 赳赳大秦 · 山水水墨 Hero（深浅色 token）
 */
.hero--mountain {
  --mh-bg: #0a0807;
  --mh-ink: 227, 217, 194;
  --mh-ink-muted: 227, 217, 194;
  --mh-gold: 201, 168, 106;
  --mh-vignette: 10, 8, 7;
  --mh-grain: 0.04;
  position: relative;
  display: block;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--mh-bg);
  isolation: isolate;
  transition: background 0.45s ease;
}

.hero--mountain .mountain-scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero--mountain .mountain-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: var(--mh-grain);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero--mountain .mountain-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 38%, transparent 38%, rgb(var(--mh-vignette) / 0.82) 100%);
  transition: background 0.45s ease;
}

.hero--mountain .mountain-title-box {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.hero--mountain .mountain-title-center {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(92vw, 720px);
  pointer-events: auto;
}

.hero--mountain .mountain-title-center h1 {
  margin: 0;
  font-family: 'Noto Serif SC', 'SimSun', 'Songti SC', serif;
  font-weight: 900;
  font-size: clamp(36px, 8vw, 100px);
  letter-spacing: 0.25em;
  color: rgba(227, 217, 194, 0);
  animation: mountainTitleReveal 5s 2s ease forwards, mountainTitleBreathe 5s 7s ease-in-out infinite;
}

@keyframes mountainTitleReveal {
  0% {
    color: rgb(var(--mh-ink) / 0);
    filter: blur(4px);
    transform: translateY(6px);
  }
  100% {
    color: rgb(var(--mh-ink) / 0.88);
    filter: blur(0);
    transform: translateY(0);
    text-shadow: 0 0 20px rgb(var(--mh-gold) / 0.18), 0 0 60px rgb(var(--mh-gold) / 0.1), 0 0 120px rgb(var(--mh-gold) / 0.05);
  }
}

@keyframes mountainTitleBreathe {
  0%,
  100% {
    text-shadow: 0 0 20px rgb(var(--mh-gold) / 0.18), 0 0 60px rgb(var(--mh-gold) / 0.1), 0 0 120px rgb(var(--mh-gold) / 0.05);
  }
  50% {
    text-shadow: 0 0 30px rgb(var(--mh-gold) / 0.25), 0 0 80px rgb(var(--mh-gold) / 0.15), 0 0 150px rgb(var(--mh-gold) / 0.08);
  }
}

.hero--mountain .mountain-sub {
  margin: clamp(10px, 2vw, 20px) 0 0;
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-weight: 200;
  font-size: clamp(12px, 1.6vw, 18px);
  letter-spacing: 0.5em;
  color: rgba(227, 217, 194, 0);
  animation: mountainSubReveal 4s 5s ease forwards;
}

@keyframes mountainSubReveal {
  0% {
    color: rgb(var(--mh-ink-muted) / 0);
    letter-spacing: 0.8em;
  }
  100% {
    color: rgb(var(--mh-ink-muted) / 0.65);
    letter-spacing: 0.5em;
  }
}

.hero--mountain .mountain-line {
  margin: clamp(16px, 3vw, 28px) auto 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--mh-gold) / 0.45), transparent);
  animation: mountainLineGrow 3s 6.5s ease forwards;
}

@keyframes mountainLineGrow {
  to {
    width: min(260px, 38vw);
  }
}

.hero--mountain .mountain-desc {
  margin: clamp(18px, 3vw, 28px) auto 0;
  max-width: 36em;
  padding: 0 1rem;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: rgba(227, 217, 194, 0);
  animation: mountainDescReveal 3.5s 7.2s ease forwards;
}

@keyframes mountainDescReveal {
  to {
    color: rgb(var(--mh-ink-muted) / 0.52);
  }
}

.hero--mountain .mountain-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(20px, 3vw, 32px);
  opacity: 0;
  animation: mountainCtaReveal 2s 8.2s ease forwards;
}

@keyframes mountainCtaReveal {
  to {
    opacity: 1;
  }
}

.hero--mountain .mountain-title-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 50vw, 700px);
  height: clamp(200px, 30vh, 400px);
  background: radial-gradient(ellipse, rgb(var(--mh-gold) / 0.06) 0%, rgb(var(--mh-gold) / 0.02) 40%, transparent 70%);
  animation: mountainGlowPulse 6s 4s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes mountainGlowPulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero--mountain .mountain-bottom-text {
  position: absolute;
  bottom: clamp(24px, 5vh, 44px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Serif SC', serif;
  font-weight: 200;
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 0.6em;
  color: rgba(227, 217, 194, 0);
  white-space: nowrap;
  animation: mountainSubReveal 3s 8s ease forwards;
}

.hero--mountain .mountain-eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero--mountain .scroll-hint {
  z-index: 6;
  color: rgb(var(--mh-ink-muted) / 0.35);
}

.hero--mountain .btn-explore {
  border-color: rgb(var(--mh-gold) / 0.35);
  background: rgb(var(--mh-gold) / 0.08);
  color: rgb(var(--mh-ink) / 0.9);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero--mountain .btn-explore:hover {
  background: rgb(var(--mh-gold) / 0.16);
  border-color: rgb(var(--mh-gold) / 0.55);
}

/* ===== 浅色模式 · 宣纸水墨 Hero ===== */
.portal-app.n-layout--light .hero--mountain {
  --mh-bg: #ebe4d8;
  --mh-ink: 44, 42, 40;
  --mh-ink-muted: 74, 68, 62;
  --mh-gold: 154, 102, 64;
  --mh-vignette: 235, 228, 216;
  --mh-grain: 0.028;
}

.portal-app.n-layout--light .hero--mountain .mountain-vignette {
  background: radial-gradient(
    ellipse at 50% 38%,
    transparent 42%,
    rgb(var(--mh-vignette) / 0.55) 100%
  );
}

/* 顶栏在 Hero 上：浅色模式与宣纸底协调 */
.portal-app.n-layout--light #navbar {
  background: rgb(246 241 232 / 0.72);
  border-bottom-color: rgb(154 102 64 / 0.12);
}

.portal-app.n-layout--light #navbar.scrolled {
  background: rgb(246 241 232 / 0.94);
  box-shadow: 0 4px 24px rgb(44 36 24 / 0.08);
}

.portal-app.n-layout--light #navbar .nav-left {
  color: #4a3424;
}

.portal-app.n-layout--light #navbar .nav-theme-btn,
.portal-app.n-layout--light #navbar .nav-right-link {
  border-color: rgb(154 102 64 / 0.22);
  color: rgb(74 52 36 / 0.78);
}

.portal-app.n-layout--light #navbar .nav-theme-btn:hover,
.portal-app.n-layout--light #navbar .nav-right-link:hover {
  border-color: rgb(154 102 64 / 0.42);
  color: #8b4f2e;
}

@media (prefers-reduced-motion: reduce) {
  .hero--mountain .mountain-title-center h1,
  .hero--mountain .mountain-sub,
  .hero--mountain .mountain-line,
  .hero--mountain .mountain-desc,
  .hero--mountain .mountain-cta,
  .hero--mountain .mountain-bottom-text,
  .hero--mountain .mountain-title-glow {
    animation: none !important;
    opacity: 1;
    color: rgb(var(--mh-ink) / 0.88);
    width: min(260px, 38vw);
    filter: none;
    transform: none;
  }

  .hero--mountain .mountain-sub {
    color: rgb(var(--mh-ink-muted) / 0.65);
  }

  .hero--mountain .mountain-desc {
    color: rgb(var(--mh-ink-muted) / 0.52);
  }
}
