/* 森语官网 — iOS 色板 + 毛玻璃控件 + 双行跑马灯 */

:root {
  /* 与主题无关的基础变量（暗色为唯一主题） */
  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font-display: "Newsreader", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fefefe;
  --ink-soft: #e0e0e0;
  --muted: rgba(255, 255, 255, 0.66);
  --hint: #b0b0b0;
  --line: rgba(255, 255, 255, 0.12);
  --bg: #020914;
  --module: #151e28;
  --module-2: #0c1824;
  --accent: #0a84ff;
  --accent-bright: #409cff;
  --accent-press: #409cff;
  --glass: rgba(21, 30, 40, 0.55);
  --glass-strong: rgba(21, 30, 40, 0.72);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  --darkband: #01060f;
  --darkband-text: #fefefe;
  --darkband-muted: rgba(255, 255, 255, 0.6);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  position: relative;
  min-height: 100%;
  /* 不用 overflow-x:hidden，否则部分浏览器会关掉纵向回弹 */
  overflow-x: clip;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a1628 0%, #020914 50%, #0a1628 100%);
}

html[data-theme="dark"] .atmosphere__sky {
  background: linear-gradient(180deg, #04111e 0%, var(--bg) 45%, #051625 100%);
}

/* 星空背景（已关闭光点，保留层以备后续启用） */
.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: none;
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: stars-twinkle 8s ease-in-out infinite alternate;
}

html[data-theme="dark"] .atmosphere__grid {
  opacity: 0.5;
}

.atmosphere__orb--a,
.atmosphere__orb--b,
.atmosphere__orb--c {
  display: none;
}

.atmosphere__sheen {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  display: none;
}

@keyframes sky-shift {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.1) hue-rotate(6deg);
  }
}

@keyframes stars-twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes saturn-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes ring-rotate {
  from {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
  }
}

@keyframes moon-orbit-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(-30px, 20px) scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, 50px) scale(0.85);
    opacity: 0.7;
  }
  75% {
    transform: translate(-30px, 80px) scale(0.9);
    opacity: 0.85;
  }
}

@keyframes moon-orbit-2 {
  0%, 100% {
    transform: translate(0, 0) scale(0.85);
    opacity: 0.7;
  }
  25% {
    transform: translate(20px, -30px) scale(0.95);
    opacity: 0.85;
  }
  50% {
    transform: translate(40px, -50px) scale(1);
    opacity: 1;
  }
  75% {
    transform: translate(20px, -30px) scale(0.95);
    opacity: 0.85;
  }
}

@keyframes drift-a {
  50% {
    transform: translate(8%, 12%) scale(1.08);
  }
}
@keyframes drift-b {
  50% {
    transform: translate(-10%, 8%) scale(1.1);
  }
}
@keyframes drift-c {
  50% {
    transform: translate(5%, -8%);
  }
}
@keyframes sheen {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--accent-press);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 50;
  background: var(--module);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(calc(var(--max) - 2.5rem), calc(100% - (var(--pad) + 1.25rem) * 2));
  margin-inline: auto;
}

/* ——— 毛玻璃（纯 CSS backdrop-filter） ——— */
.btn--glass,
.btn--glass-secondary,
.glass-panel,
.glass-chip {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .btn--glass,
html[data-theme="dark"] .btn--glass-secondary,
html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .glass-chip {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 16px 48px rgba(19, 47, 76, 0.12),
    0 8px 24px rgba(19, 47, 76, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="dark"] .glass-panel {
  background: rgba(21, 30, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .glass-chip {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Header：贴顶贴边直角条 */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 0;
  background: transparent !important;
  border-bottom: none;
  pointer-events: none;
  transition: padding 0.2s ease;
}

.top__glass {
  pointer-events: auto;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  border-radius: 16px;
  position: relative;
  background: transparent !important;
  box-shadow: none;
  border: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.top.is-scrolled .top__glass {
  background: rgba(12, 20, 32, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 0.75rem;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}

.logo span {
  line-height: 1;
  transform: translateY(0.06em);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(150deg, #173a5e, #0a1a2e);
  padding: 5px;
  box-sizing: border-box;
  box-shadow: none;
}

html[data-theme="dark"] .logo img {
  background: linear-gradient(150deg, #1d2f45, #0e1b2c);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.top-nav > a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn__apple {
  flex: 0 0 auto;
  display: block;
}

.btn__content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn__text {
  position: relative;
  white-space: nowrap;
}

/* 可点击毛玻璃按钮 —— 增强视觉对比和深度 */
.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.btn--glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .btn--glass {
  /* 深色模式已是默认，保持一致 */
  color: #fff;
}

.btn--glass-secondary {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn--glass-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    transparent 50%);
  pointer-events: none;
}

.btn--glass-secondary:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .btn--glass-secondary {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.8rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

/* 桌面端：Hero 改为文案左 / 设备右 双栏（≤959px 维持居中单列） */
@media (min-width: 960px) {
  .hero {
    text-align: left;
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
  }
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
  .hero__copy {
    max-width: 34rem;
  }
  .hero__title {
    margin-left: 0;
    margin-right: 0;
  }
  .hero__desc {
    margin-left: 0;
    margin-right: 0;
  }
  .hero__actions {
    justify-content: flex-start;
  }
  .hero__stage {
    width: auto;
    max-width: 360px;
    margin: 0 auto;
    padding-top: 0;
  }
  .hero__stage .phone {
    width: min(310px, 100%);
    margin: 0;
  }
}

/* 品牌行：Woodsper · 森语（小字 kicker） */
.hero__kicker {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 主标题：与AI居民一起探索真实世界 */
.hero__title {
  max-width: 15em;
  margin: 0 auto 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  background: linear-gradient(120deg, var(--ink) 15%, var(--accent) 55%, #1a9b7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-wrap: balance;
}

html[data-theme="dark"] .hero__title {
  background: linear-gradient(120deg, #fff 10%, var(--accent-bright) 55%, #2ec4a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__desc {
  max-width: 28em;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  line-height: 1.85;
  text-wrap: balance;
}

.hero__stage {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.phone {
  width: min(250px, 58vw);
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(80, 90, 105, 0.9), rgba(18, 24, 32, 0.95));
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: phone-float 5.5s ease-in-out infinite;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0d2138;
}

.phone__map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(52, 199, 89, 0.35), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(0, 122, 255, 0.4), transparent 40%),
    linear-gradient(160deg, #1e4a72, #0f2a45 45%, #16324a);
}

.phone__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.phone__pins span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  z-index: 1;
  animation: pin-pulse 2.4s ease-in-out infinite;
}
.phone__pins span:nth-child(1) {
  top: 28%;
  left: 32%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.35);
}
.phone__pins span:nth-child(2) {
  top: 48%;
  left: 62%;
  background: #2ec4a6;
  animation-delay: 0.4s;
  box-shadow: 0 0 0 6px rgba(46, 196, 166, 0.35);
}
.phone__pins span:nth-child(3) {
  top: 62%;
  left: 40%;
  background: #ffb020;
  animation-delay: 0.8s;
  box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.35);
}

/* 仿真 App 界面：状态栏 + 顶栏 + 底部森灵卡片（无需真实截图也好看） */
.phone__statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.95rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.phone__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.phone__signals {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.phone__signals i {
  display: block;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
}

.phone__signals i:nth-child(1) {
  width: 3px;
  height: 5px;
}
.phone__signals i:nth-child(2) {
  width: 3px;
  height: 7px;
}
.phone__signals i:nth-child(3) {
  width: 3px;
  height: 9px;
}
.phone__signals .phone__wifi {
  width: 9px;
  height: 7px;
  background: transparent;
  border-radius: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  position: relative;
}
.phone__signals .phone__wifi::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 5px;
  height: 4px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.92);
  transform: rotate(0deg);
}
.phone__signals .phone__battery {
  width: 14px;
  height: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  position: relative;
}
.phone__signals .phone__battery::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 2px;
  width: 1.5px;
  height: 3px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 1px 1px 0;
}
.phone__signals .phone__battery::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  bottom: 1px;
  width: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
}

.phone__appbar {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.95rem;
}

.phone__appname {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.phone__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffd27a, #ff8a5b);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.phone__card {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  background: rgba(13, 33, 56, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.phone__card-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #cfe6ff, #3b82f6 60%, #1d4ed8);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.phone__card-text {
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.phone__card-text strong {
  display: block;
  color: #fff;
  font-size: 0.72rem;
  margin-bottom: 0.1rem;
}

/* Spirit placeholders */
.spirit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.spirit__body {
  width: 88px;
  height: 110px;
  border-radius: 44px 44px 28px 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(180deg, #7ec8ff, #3b82f6 40%, #1d4ed8);
  box-shadow: 0 14px 30px rgba(0, 122, 255, 0.28);
  position: relative;
}

.spirit__body::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  top: 28%;
  left: 28%;
  box-shadow: 22px 0 0 rgba(255, 255, 255, 0.9);
}

.spirit__body::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 10px;
  border-radius: 0 0 14px 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top: 0;
  left: 50%;
  top: 48%;
  transform: translateX(-50%);
}

.spirit__tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__stage .spirit--hero {
  position: absolute;
  right: 0;
  bottom: 8%;
  z-index: 3;
  animation: chip-float 4.2s ease-in-out infinite;
}

.visual .spirit {
  position: absolute;
  right: 8%;
  bottom: 10%;
  z-index: 2;
}

/* Vision dark band */
.vision--darkband {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background: transparent;
  color: var(--ink);
}

.vision__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}

.vision__inner {
  max-width: 36rem;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.vision--darkband .vision__inner {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  box-shadow: 
    0 16px 48px rgba(19, 47, 76, 0.12),
    0 8px 24px rgba(19, 47, 76, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="dark"] .vision--darkband .vision__inner {
  background: rgba(21, 30, 40, 0.90);
  border-color: rgba(255, 255, 255, 0.20);
  color: var(--ink);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.vision--darkband h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
}

.vision--darkband p {
  margin: 0;
  color: var(--muted);
}

.vision--darkband .spirit__tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Bands */
.band {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.band--atlas {
  background: transparent;
  position: relative;
  overflow: visible;
}

/* 月亮容器：fixed 居中，作为页面背景装饰，不随滚动移动 */
.moon-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 46vw);
  height: min(480px, 46vw);
  pointer-events: none;
  z-index: -1;
  opacity: 0.58;
}

/* 月亮主体：透明容器，月相与星环全部由 canvas 绘制 */
.moon {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
}

.moon-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}
.moon-canvas canvas {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  max-height: none;
  /* 月光辉光：screen 混合让星球像月光一样叠亮在夜空上，
     只有亮部透出、暗部与背景融合，对比度低且无边界 */
  mix-blend-mode: screen;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle, #000 32%, rgba(0, 0, 0, 0.7) 56%, transparent 78%);
  mask-image: radial-gradient(circle, #000 32%, rgba(0, 0, 0, 0.7) 56%, transparent 78%);
}
.band--map {
  background: transparent;
}
.band--spirit {
  background: transparent;
}

.band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.band__grid--flip .band__copy {
  order: 2;
}
.band__grid--flip .band__visual {
  order: 1;
}

@media (max-width: 820px) {
  .band__grid,
  .band__grid--flip {
    grid-template-columns: 1fr;
  }
  .band__grid--flip .band__copy,
  .band__grid--flip .band__visual {
    order: unset;
  }
  .hero__stage .spirit {
    display: none;
  }
  .moon-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
  }
}

.band__kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.band--atlas .band__kicker {
  color: #0f8f72;
}
.band--spirit .band__kicker {
  color: #b87900;
}
html[data-theme="dark"] .band--atlas .band__kicker {
  color: #2ec4a6;
}
html[data-theme="dark"] .band--spirit .band__kicker {
  color: #ffb020;
}

.band h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin: 0 0 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.band p {
  margin: 0;
  color: var(--muted);
  max-width: 28em;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
}

.visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.visual__label {
  position: relative;
  z-index: 3;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.visual--atlas {
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.45), transparent 40%),
    linear-gradient(145deg, #b8f0df, #3aa88c);
}
.visual--map {
  background:
    radial-gradient(circle at 40% 35%, rgba(61, 160, 255, 0.45), transparent 40%),
    linear-gradient(155deg, #1a4d7a, #0d2844);
}
.visual--map .visual__label {
  color: #fff;
}

/* 空 visual 加一层「设备屏幕」内框，读起来像待填真实截图的预览而非未完成 */
.visual--atlas::before,
.visual--map::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.14);
  z-index: 2;
  pointer-events: none;
}
.band__copy {
  max-width: 32em;
}

.visual--spirit {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* 森灵头像垂直跑马灯 - 完全参考横向跑马灯原理 */
.spirits-constellation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 5%;
  padding: 0 5%;
  overflow: hidden;
  /* 上下边缘柔和渐隐遮罩 - 扩大羽化区域到30% */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 5%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.3) 15%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.7) 25%,
    black 30%,
    black 70%,
    rgba(0, 0, 0, 0.7) 75%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0.15) 90%,
    rgba(0, 0, 0, 0.05) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 5%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.3) 15%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.7) 25%,
    black 30%,
    black 70%,
    rgba(0, 0, 0, 0.7) 75%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0.15) 90%,
    rgba(0, 0, 0, 0.05) 95%,
    transparent 100%
  );
}

.spirit-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: max-content;
  will-change: transform;
  /* 性能优化：启用GPU加速 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 奇数列向上滚动 - 参考 marquee-left */
.spirit-column:nth-child(odd) {
  animation: spirit-marquee-up 20s linear infinite;
}

/* 偶数列向下滚动 - 参考 marquee-right */
.spirit-column:nth-child(even) {
  animation: spirit-marquee-down 22s linear infinite;
}

/* 每列不同的速度 - 确保明显差异 */
.spirit-column:nth-child(1) { animation-duration: 18s; }
.spirit-column:nth-child(2) { animation-duration: 42s; }
.spirit-column:nth-child(3) { animation-duration: 25s; }
.spirit-column:nth-child(4) { animation-duration: 33s; }
.spirit-column:nth-child(5) { animation-duration: 52s; }

.spirit-avatar {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1.1rem; /* 替代列的 gap：保证列总高 = 偶数×间距，-50% 无缝循环 */
  border-radius: 50%;
  /* 性能优化：简化阴影 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  /* 性能优化：移除实时模糊 */
  /* backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); */
  flex-shrink: 0;
  /* 不在此处强制提层：列本身已合成图层，
     避免 80 个头像各自常驻 GPU 图层造成内存与合成开销 */
  /* 支持背景图片 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 使用 gap 而不是 margin，这样更适合跑马灯循环 */
.spirit-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0; /* 间距改由 .spirit-avatar 的 margin-bottom 提供，保证 -50% 无缝 */
  height: max-content;
  will-change: transform;
}

/* 向上滚动 - 完全参考 marquee-left */
@keyframes spirit-marquee-up {
  0% {
    transform: translate3d(0, 0%, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

/* 向下滚动 - 完全参考 marquee-right */
@keyframes spirit-marquee-down {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  100% {
    transform: translate3d(0, 0%, 0);
  }
}

/* 响应式：移动端保持5列 */
@media (max-width: 820px) {
  .spirits-constellation {
    gap: 4%;
    padding: 0 4%;
  }
}

.spirit-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: spirit-fade-in 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.spirit-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 60%);
}

.spirit-avatar:nth-child(1) { animation-delay: 0.05s; }
.spirit-avatar:nth-child(2) { animation-delay: 0.1s; }
.spirit-avatar:nth-child(3) { animation-delay: 0.15s; }
.spirit-avatar:nth-child(4) { animation-delay: 0.2s; }
.spirit-avatar:nth-child(5) { animation-delay: 0.25s; }
.spirit-avatar:nth-child(6) { animation-delay: 0.3s; }
.spirit-avatar:nth-child(7) { animation-delay: 0.35s; }
.spirit-avatar:nth-child(8) { animation-delay: 0.4s; }
.spirit-avatar:nth-child(9) { animation-delay: 0.45s; }
.spirit-avatar:nth-child(10) { animation-delay: 0.5s; }
.spirit-avatar:nth-child(11) { animation-delay: 0.55s; }
.spirit-avatar:nth-child(12) { animation-delay: 0.6s; }
.spirit-avatar:nth-child(13) { animation-delay: 0.65s; }
.spirit-avatar:nth-child(14) { animation-delay: 0.7s; }
.spirit-avatar:nth-child(15) { animation-delay: 0.75s; }
.spirit-avatar:nth-child(16) { animation-delay: 0.8s; }
.spirit-avatar:nth-child(17) { animation-delay: 0.85s; }
.spirit-avatar:nth-child(18) { animation-delay: 0.9s; }
.spirit-avatar:nth-child(19) { animation-delay: 0.95s; }
.spirit-avatar:nth-child(20) { animation-delay: 1s; }
.spirit-avatar:nth-child(21) { animation-delay: 1.05s; }
.spirit-avatar:nth-child(22) { animation-delay: 1.1s; }
.spirit-avatar:nth-child(23) { animation-delay: 1.15s; }
.spirit-avatar:nth-child(24) { animation-delay: 1.2s; }
.spirit-avatar:nth-child(25) { animation-delay: 1.25s; }

/* 淡入仅动画 opacity：配合 forwards 保留不透明度，
   不再占用 transform，hover 放大可正常生效且无需 JS 清除动画 */
@keyframes spirit-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 森灵头像 hover：悬停某头像时暂停所在列跑马灯并放大该头像。
   纯 CSS 实现（:has），无 JS 事件抖动；transform 过渡走合成线程，
   不动画 box-shadow，避免快速扫过时频繁重绘 */
.spirits-constellation .spirit-column:has(.spirit-avatar:hover) {
  animation-play-state: paused;
  z-index: 5;
}

.spirits-constellation .spirit-avatar {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1);
}

.spirits-constellation .spirit-avatar:hover {
  transform: scale(1.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.marquee-block {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  overflow: hidden;
  text-align: center;
}

.marquee-block__glow {
  position: absolute;
  inset: 18% 10% 18%;
  display: none; /* 去掉模块背景光晕 */
  background: radial-gradient(
    ellipse at center,
    rgba(0, 122, 255, 0.16),
    rgba(236, 72, 153, 0.08),
    transparent 70%
  );
  pointer-events: none;
}

html[data-theme="dark"] .marquee-block__glow {
  background: radial-gradient(
    ellipse at center,
    rgba(10, 132, 255, 0.22),
    rgba(139, 92, 246, 0.12),
    transparent 70%
  );
}

.marquee-block__center {
  position: relative;
  z-index: 2;
  padding: clamp(2.4rem, 5.5vw, 3.6rem) 0;
}

.marquee-block__center h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.7rem;
}

.marquee-block__center h2 span,
.marquee-block__center .grad {
  background: linear-gradient(90deg, #7c3aed, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee-block__center p {
  margin: 0 auto;
  max-width: 28em;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
}

.marquee {
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 8%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 8%,
    #000 22%,
    #000 78%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
}

.marquee--top {
  transform: perspective(900px) rotateX(5deg) rotateZ(-2deg);
  margin-bottom: 0.75rem;
}

.marquee--bottom {
  transform: perspective(900px) rotateX(-5deg) rotateZ(2deg);
  margin-top: 0.75rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  /* 性能优化：启用GPU加速 */
  will-change: transform;
  transform: translate3d(0%, 0, 0);
  backface-visibility: hidden;
}

.marquee__track--left {
  animation: marquee-left 42s linear infinite;
}

.marquee__track--right {
  animation: marquee-right 42s linear infinite;
}

.marquee__set {
  display: flex;
  gap: 1.1rem;
  padding: 0.55rem 0.55rem;
}

.marquee-card {
  width: clamp(168px, 22vw, 210px);
  height: clamp(224px, 29vw, 280px);
  border-radius: 22px;
  flex: 0 0 auto;
  box-shadow: 0 16px 36px rgba(19, 47, 76, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: end center;
  padding: 0.85rem 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .marquee-card {
  border-color: rgba(255, 255, 255, 0.12);
}

@keyframes marquee-left {
  from {
    transform: translate3d(0%, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0%, 0, 0);
  }
}

/* 小屏放宽跑马灯遮罩：避免卡片被 mask 截断 */
@media (max-width: 820px) {
  .marquee {
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 4%,
      #000 10%,
      #000 90%,
      rgba(0, 0, 0, 0.35) 96%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 4%,
      #000 10%,
      #000 90%,
      rgba(0, 0, 0, 0.35) 96%,
      transparent 100%
    );
  }
}

@keyframes phone-float {
  50% {
    transform: translateY(-12px);
  }
}
@keyframes chip-float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes pin-pulse {
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

/* Close */
.close {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.close__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.close__inner {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 34rem;
}

.close h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.55rem;
}

.close p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0 1.1rem;
  color: var(--hint);
  font-size: 0.88rem;
  background: color-mix(in srgb, var(--module) 40%, transparent);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.foot__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.foot__tag {
  color: var(--muted);
  font-size: 0.82rem;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* 联系我们弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal[hidden] {
  display: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 20, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade 0.18s ease;
}
.modal__card {
  position: relative;
  width: min(420px, 100%);
  background: var(--module);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: modal-pop 0.2s ease;
}
.modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.modal__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
  line-height: 1.5;
}
.modal__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.modal__key {
  color: var(--muted);
  font-size: 0.85rem;
}
.modal__val {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}
.modal__copy {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.modal__copy:hover {
  background: rgba(10, 132, 255, 0.12);
}
.modal__copy.is-done {
  color: #30d158;
}
.modal__action {
  display: block;
  margin-top: 1rem;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  transition: filter 0.15s;
}
.modal__action:hover {
  filter: brightness(1.08);
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.foot__link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.foot__link:hover {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop,
  .modal__card {
    animation: none;
  }
}

/* 短文档页：保证可滚动 + 回弹 */
.page-doc {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.page-doc > main {
  flex: 1 0 auto;
  min-height: calc(100dvh - 9rem);
  padding-bottom: 2rem;
}

.page-doc > .foot {
  flex-shrink: 0;
  margin-top: auto;
}

/* Legal */
.page-head {
  padding: 3rem 0 1.1rem;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.page-head p {
  margin: 0;
  color: var(--hint);
  font-size: 0.95rem;
}
.prose {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 2.75rem) 3rem;
  margin-bottom: 2rem;
}

/* 支持页面导航栏保持透明，不随滚动出现背景（隐私政策页面与首页一致） */
body.page-support .top.is-scrolled .top__glass {
  background: transparent !important;
  box-shadow: none;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
}
.prose h3 {
  font-size: 1.02rem;
  margin: 1.35rem 0 0.45rem;
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.prose ul {
  padding-left: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .atmosphere__sky,
  .atmosphere__orb,
  .atmosphere__sheen,
  .atmosphere__grid,
  .phone,
  .spirit,
  .phone__pins span,
  .spirit-column {
    animation: none !important;
  }
  .atmosphere__orb--a::before,
  .atmosphere__orb--a::after {
    animation: none !important;
  }
  /* 禁用3D变换提升性能 */
  .marquee--top,
  .marquee--bottom {
    transform: none;
  }
}

.wechat-tip {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 9, 20, 0.5);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.wechat-tip[hidden] {
  display: none;
}
.wechat-tip__panel {
  width: min(360px, 100%);
  background: var(--module);
  color: var(--ink);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
}
.wechat-tip__panel p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}
.wechat-tip__panel .btn {
  width: 100%;
  margin-top: 0.85rem;
}


/* 底部 CTA */
.cta-final {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
  overflow: hidden;
}

.cta-final__glow {
  position: absolute;
  inset: 0;
  display: none; /* 去掉模块背景光晕 */
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(10, 132, 255, 0.15),
    rgba(139, 92, 246, 0.1),
    transparent 70%
  );
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.cta-final__inner {
  position: relative;
  z-index: 2;
}

.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #fff 20%, var(--accent-bright) 60%, #2ec4a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-final__subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn--large {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn--large .btn__apple {
  width: 20px;
  height: 20px;
}

.spirit-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: spirit-fade-in 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.spirit-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 60%);
}

.spirit-avatar:nth-child(1) { animation-delay: 0.05s; }
.spirit-avatar:nth-child(2) { animation-delay: 0.1s; }
.spirit-avatar:nth-child(3) { animation-delay: 0.15s; }
.spirit-avatar:nth-child(4) { animation-delay: 0.2s; }
.spirit-avatar:nth-child(5) { animation-delay: 0.25s; }
.spirit-avatar:nth-child(6) { animation-delay: 0.3s; }
.spirit-avatar:nth-child(7) { animation-delay: 0.35s; }
.spirit-avatar:nth-child(8) { animation-delay: 0.4s; }
.spirit-avatar:nth-child(9) { animation-delay: 0.45s; }
.spirit-avatar:nth-child(10) { animation-delay: 0.5s; }
.spirit-avatar:nth-child(11) { animation-delay: 0.55s; }
.spirit-avatar:nth-child(12) { animation-delay: 0.6s; }
.spirit-avatar:nth-child(13) { animation-delay: 0.65s; }
.spirit-avatar:nth-child(14) { animation-delay: 0.7s; }
.spirit-avatar:nth-child(15) { animation-delay: 0.75s; }
.spirit-avatar:nth-child(16) { animation-delay: 0.8s; }
.spirit-avatar:nth-child(17) { animation-delay: 0.85s; }
.spirit-avatar:nth-child(18) { animation-delay: 0.9s; }
.spirit-avatar:nth-child(19) { animation-delay: 0.95s; }
.spirit-avatar:nth-child(20) { animation-delay: 1s; }
.spirit-avatar:nth-child(21) { animation-delay: 1.05s; }
.spirit-avatar:nth-child(22) { animation-delay: 1.1s; }
.spirit-avatar:nth-child(23) { animation-delay: 1.15s; }
.spirit-avatar:nth-child(24) { animation-delay: 1.2s; }
.spirit-avatar:nth-child(25) { animation-delay: 1.25s; }

@keyframes spirit-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 移动端适配 */
@media (max-width: 820px) {
  .cta-final {
    padding: clamp(4rem, 10vw, 6rem) 0;
  }
  
  .spirits-constellation {
    width: 100%;
    height: 100%;
  }
  
  .spirit-avatar {
    width: 48px;
    height: 48px;
  }
  
  .spirits-meta__count {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
}

/* ========================================
   性能优化
   ======================================== */

/* 启用硬件加速的关键元素 */
.phone,
.spirit__body,
.phone__pins span,
.btn {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 低性能设备优化：减少动画复杂度 */
@media (max-width: 820px) {
  /* 森灵跑马灯始终保留 5 列（与「移动端保持5列」设计一致），
     不再用 display:none 藏列，避免小窗切大窗后列数卡在 3 列不恢复 */
  /* 简化阴影效果 */
  .glass-panel,
  .btn--glass,
  .btn--glass-secondary {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
}

/* 省电模式检测 - Safari/iOS */
@media (prefers-reduced-transparency: reduce) {
  .glass-panel,
  .btn--glass,
  .btn--glass-secondary,
  .glass-chip {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--module) !important;
  }
  
  .top.is-scrolled .top__glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--module) !important;
  }
}

/* 低端设备：禁用3D月球渲染 - 临时注释掉用于调试 */
/*
@media (max-width: 640px), (max-height: 640px) {
  .moon-container {
    display: none;
  }
}
*/

/* 性能优化：will-change 仅用于正在动画的元素 */
.spirit-column,
.marquee__track {
  will-change: transform;
}

/* 动画完成后移除 will-change */
.reveal.on {
  will-change: auto;
}

/* GSAP SplitText 拆分出的字符：inline-block 以支持变换动画，保留空格宽度 */
.char {
  display: inline-block;
  white-space: pre;
}
