/* =====================================================================
   去野星球 · 数字展厅 — 设计系统
   灵感来源：蔚来（NIO）视觉识别系统 —— 浅色、简约、留白、产品感
   ===================================================================== */

:root {
  /* 色彩体系 */
  --paper:      #F7F7F4;   /* 暖白 · 主背景 */
  --paper-2:    #F0F1ED;   /* 暖白 · 次级 */
  --card:       #FFFFFF;   /* 纯白卡片 */
  --ink:        #0E1513;   /* 近黑 · 主文字 */
  --ink-2:      #4E5651;   /* 深灰 · 次级文字 */
  --ink-3:      #8A918D;   /* 浅灰 · 弱化文字 */
  --hair:       #E4E6E1;   /* 发丝线 */
  /*--brand:      #0F7B83;   !* 冰湖青 · 主色 *!*/
  --brand:      #62b0a1;   /* 冰湖青 · 主色 */
  --brand-ink:  #0A565C;   /* 深青 */
  --brand-soft: #E3F1F2;   /* 冰蓝 · 浅底 */
  --sky:        #EAF4F5;   /* 天空蓝 · 浅底 */
  --gold:       #BE9E6B;   /* 香槟金 · 点缀 */
  --dark:       #0B1613;   /* 深色 · 少量沉浸章节 */
  --dark-2:     #12201C;

  /* 字体 */
  --font-latin: "Manrope", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-cjk:   "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;

  /* 布局 */
  --nav-h: 72px;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --radius-lg: 26px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cjk);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--brand); color: #fff; }

/* ============ 3D 画布 ============ */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
#stage-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #FDFDFB 0%, var(--paper) 55%, var(--sky) 130%);
  display: none;
}

/* ============ 滚动进度 ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-ink));
  transform-origin: left;
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background .4s var(--ease-soft), backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--hair);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
}
.nav-mark {
  display: grid; place-items: center;
  /*width: 30px; */
    height: 30px;
  border-radius: 9px;
  color: #fff;
}
.nav-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 2px 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--brand);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .3s, transform .3s var(--ease);
}
.nav-cta:hover { background: var(--brand); transform: translateY(-1px); }

/* ============ 真实模型缺失提示 ============ */
.model-warn {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 160;
  max-width: min(720px, calc(100vw - 40px));
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(190,158,107,.4);
  border-radius: 14px;
  box-shadow: 0 18px 50px -20px rgba(14,21,19,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.model-warn.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.model-warn code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ============ 主容器 ============ */
#main {
  position: relative;
  z-index: 10;
}

/* ============ 场景通用 ============ */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) var(--pad) 48px;
  max-width: 100%;
}
.scene-hero { min-height: 100vh; }

/* 02 · 未来移动生活：视频背景，铺满浏览器可视窗口高度（随窗口 resize 动态适配） */
.scene-mobility { overflow: hidden; justify-content: flex-start; padding-top: calc(var(--nav-h) + 20px); }
.scene-mobility__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;      /* 浏览器可视窗口高度，动态适配全屏 */
  height: 100dvh;     /* 移动端地址栏收缩时的高度，随窗口动态变化（不支持时回退 100vh） */
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* 视频之上的文字/卡片内容抬到视频上层 */
.scene-mobility > *:not(.scene-mobility__bg) {
  position: relative;
  z-index: 1;
}
/* 02 板块：黑色视频背景上提亮标题与底部文字，保证可读性 */
.scene-mobility .section-title { color: #FFFFFF; }
.scene-mobility .section-lead  { color: rgba(255, 255, 255, .82); }
.scene-mobility .eyebrow       { color: #4FD1DC; }  /* 亮青，比品牌色 #0F7B83 在黑底上更醒目 */
.scene-mobility .section-foot {
  color: rgba(255, 255, 255, .92);
  background: rgba(0, 0, 0, .38);      /* 深色半透明底，贴合黑色视频背景 */
  border-color: rgba(255, 255, 255, .18);
}

/* 从 04 · AI 房车管家 开始的板块：白色雾状遮盖背景，微微透出 3D 模型车，
   保证文字可读性，又保留产品在数字空间中的沉浸感 */
/* 从 04 · AI 房车管家 开始整体雾化：
   仅在 airv 板块内完成“无 → 逐渐雾化”的过渡，之后持续雾化到页面底部，
   避免每个板块各自重新渐变造成雾面断续 */
.scene[data-act="airv"] {
  background: linear-gradient(to bottom,
    rgba(249,249,246,0) 0%,
    rgba(249,249,246,.45) 16%,
    rgba(249,249,246,.72) 34%,
    rgba(249,249,246,.8) 60%,
    rgba(249,249,246,.8) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.scene[data-act="aibuild"],
.scene[data-act="product"],
.scene[data-act="detail"],
.scene[data-act="stats"],
.scene[data-act="human"],
.scene[data-act="finale"] {
  background: rgba(249,249,246,.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* 板块底部说明也做成轻量毛玻璃 */
.section-foot {
  margin: 28px auto 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  width: fit-content;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .03em;
}

.eyebrow {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 22px;
}
.section-title {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}
.section-lead {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Hero ============ */
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: left;
  padding: 4vh 0;
  position: relative;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-title .accent {
  color: var(--brand);
  font-weight: 300;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 300;
  color: var(--ink-2);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -14px rgba(15,123,131,.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}
.scroll-cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--ink-3), transparent);
  animation: cue 2s var(--ease) infinite;
  transform-origin: top;
}
.scroll-cue-text {
  font-size: 12px;
  letter-spacing: .16em;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ 02 支柱 ============ */
.pillars {
  max-width: var(--maxw);
  margin: 64px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar {
  padding: 34px 30px;
  border-radius: 26px;
  background: rgba(255,255,255,.55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 20px 50px -30px rgba(14,21,19,.28);
  transition: transform .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); }
.pillar-num {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .12em;
}
.pillar h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 14px 0 10px;
  letter-spacing: .02em;
}
.pillar p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ============ 03 3D 房车 ============ */
.scene-rv3d { justify-content: flex-start; padding-top: calc(var(--nav-h) + 20px); }
.rv3d-head { margin-bottom: 0; }

.hotspots {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 20;
}
.hotspot {
  position: absolute;
  pointer-events: none;   /* 未显示时不可点击，避免遮挡/误触其他板块 */
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 30px -14px rgba(14,21,19,.35);
  transition: transform .3s var(--ease), background .3s, color .3s;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
}
.hotspot.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.hotspot:hover, .hotspot.active { background: var(--ink); color: #fff; }
.hotspot-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(15,123,131,.4);
  animation: pulse 2.4s infinite;
}
.hotspot:hover .hotspot-dot, .hotspot.active .hotspot-dot { background: #fff; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,123,131,.4); }
  70% { box-shadow: 0 0 0 10px rgba(15,123,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,123,131,0); }
}

.part-panel {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  width: min(360px, 88vw);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(14,21,19,.4);
  padding: 22px 24px 26px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(14,21,19,.25) transparent;
}
.part-panel.show { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.part-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 22px;
  color: var(--ink-3);
  line-height: 1;
  transition: color .2s;
  z-index: 2;
}
.part-close:hover { color: var(--ink); }

/* 部件真实产品图（缺失时自动隐藏） */
.part-img {
  position: relative;
  width: calc(100% + 48px);
  margin: -22px -24px 16px;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--paper-2), var(--brand-soft));
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  display: none;
}
.part-img.has-img { display: block; }
.part-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.part-panel:hover .part-img img { transform: scale(1.04); }
.part-img-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .14em;
}
.part-eyebrow {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}
.part-title { font-size: 24px; font-weight: 500; margin: 6px 0 12px; }
.part-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.part-stats { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.part-stats .ps-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}
.part-stats .ps-row:last-child { border-bottom: none; }
.ps-row .ps-k { color: var(--ink-3); }
.ps-row .ps-v { color: var(--ink); font-weight: 500; }

.view-hint {
  position: fixed;
  left: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .08em;
  z-index: 20;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.view-hint i { width: 1px; height: 30px; background: var(--hair); }
.zoom-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--hair);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;   /* 父容器 pointer-events:none，按钮需单独可点 */
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.zoom-btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* ---------- 全屏预览入口（右侧，与左侧 view-hint 水平） ---------- */
.fullscreen-btn {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 12px 32px -16px rgba(14,21,19,.4);
  color: var(--ink-2);
  display: grid; place-items: center;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), background .25s, color .25s, transform .3s var(--ease);
}
.fullscreen-btn.show { opacity: 1; pointer-events: auto; }
.fullscreen-btn:hover { background: var(--ink); color: #fff; transform: translateY(-50%) translateY(-1px); }

/* ---------- 全屏预览退出（右上角圆形） ---------- */
.fullscreen-exit {
  position: fixed;
  top: clamp(16px, 3vw, 26px);
  right: clamp(16px, 3vw, 26px);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 12px 32px -16px rgba(14,21,19,.4);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: grid; place-items: center;
  z-index: 1250;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.fullscreen-exit:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

/* ---------- 沉浸式预览模式 ---------- */
body.immersive { overflow: hidden; }
body.immersive #main,
body.immersive .nav,
body.immersive .footer,
body.immersive .scroll-progress,
body.immersive .model-warn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease), visibility .45s;
}
body.immersive #stage { z-index: 1100; }
body.immersive #hotspots { z-index: 1150; }
body.immersive .part-panel { z-index: 1160; }
body.immersive .view-hint { z-index: 1140; }
body.immersive .fullscreen-exit { opacity: 1; pointer-events: auto; }

.view-actions {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 6vh, 56px);
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 20;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

/* ============ 04 车内 ============ */
.interior-features {
  max-width: var(--maxw);
  margin: 56px auto 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.interior-features li {
  list-style: none;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  color: var(--ink-2);
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.interior-features li:hover { transform: translateY(-4px); background: var(--ink); color: #fff; }
.interior-features li.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px rgba(15,123,131,.55);
}

/* ---------- 内部 / 外观真实图库 ---------- */
.int-gallery, .ext-gallery {
  max-width: var(--maxw);
  margin: 64px auto 0;
  width: 100%;
}
.int-gallery-head {
  text-align: center;
  margin-bottom: 32px;
}
.int-gallery-eyebrow {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.int-gallery-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.int-gallery-lead {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.int-gallery-grid, .ext-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ext-gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}
.gal-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--hair);
  aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  cursor: pointer;
}
.gal-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(14,21,19,.3); }
.gal-card[data-zone].active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), 0 20px 50px -20px rgba(15,123,131,.4);
}
.gal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}
.gal-card:hover img { transform: scale(1.06); }
.gal-card .gal-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(11,22,19,.65));
  color: #fff;
}
.gal-card .gal-cap h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
}
.gal-card .gal-cap p {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.gal-card .gal-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--paper-2), var(--brand-soft));
}

/* ============ 05 AI 管家 ============ */
.scene-ai-rv { justify-content: flex-start; padding-top: calc(var(--nav-h) + 40px); }
.ai-demo {
  max-width: 1080px;
  margin: 56px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ---------- 触发器：提示文字 + 城市 chip ---------- */
.ai-trigger {
  background: rgba(255,255,255,.6);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  box-shadow: 0 30px 80px -40px rgba(14,21,19,.4);
  padding: 26px;
}
.ai-trigger-tip { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.ai-cities { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ai-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hair);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.ai-city-chip:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15,123,131,.35); }
.ai-city-chip .ai-chip-emoji { font-size: 17px; line-height: 1; }
.ai-city-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .3s, transform .3s var(--ease);
}
.ai-city-new:hover { background: var(--brand); transform: translateY(-2px); }
.ai-city-new .ai-chip-plus { font-size: 18px; line-height: 1; font-weight: 400; }

/* ---------- 输出容器（三态：占位 / 表单 / 行程） ---------- */
.ai-output {
  background: rgba(255,255,255,.6);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  box-shadow: 0 30px 80px -40px rgba(14,21,19,.4);
  padding: 26px;
  min-height: 140px;
  overflow: hidden;
}
.ai-output-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 88px;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
}
.ai-orbit { position: relative; width: 34px; height: 34px; flex: none; }
.ai-orbit span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
.ai-orbit span:nth-child(2) { inset: 6px; animation-duration: 1.4s; border-top-color: var(--brand-ink); }
.ai-orbit span:nth-child(3) { inset: 12px; animation-duration: 1.8s; border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 表单态：圆角矩形弹窗 ---------- */
.ai-form { max-width: 560px; margin: 0 auto; }
.ai-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ai-form-title { font-size: 18px; font-weight: 500; }
.ai-form-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  transition: background .25s, color .25s;
}
.ai-form-close:hover { background: rgba(14,21,19,.06); color: var(--ink); }
.ai-form-field { margin-bottom: 18px; }
.ai-form-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.ai-form-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.ai-form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ai-form-input.invalid { border-color: #D9534F; box-shadow: 0 0 0 3px rgba(217,83,79,.14); }
.ai-form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.ai-form-row .ai-form-field { margin-bottom: 0; }
.ai-form-actions { margin-top: 24px; display: flex; justify-content: flex-end; }
.ai-form-submit {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 12px 34px;
  border-radius: 999px;
  transition: background .3s, transform .3s var(--ease);
}
.ai-form-submit:hover { background: var(--brand); transform: translateY(-1px); }
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.ai-form-shake { animation: shakeX .4s var(--ease-soft); }

/* ---------- 行程态：DAY 列横向滚动 ---------- */
.ai-itinerary-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ai-itinerary-title { font-size: 17px; font-weight: 500; }
.ai-itinerary-meta { font-size: 13px; color: var(--ink-3); }
.ai-itinerary-actions { display: flex; gap: 10px; }
.ai-mini-btn {
  font-size: 13px;
  color: var(--ink-2);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: #fff;
  transition: all .25s;
}
.ai-mini-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.ai-day-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
}
.ai-day-col {
  scroll-snap-align: start;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-day-head { display: flex; align-items: center; gap: 10px; }
.ai-day-chip {
  flex: none;
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--brand);
}
.ai-day-title { font-size: 15px; font-weight: 500; line-height: 1.35; }

.ai-stop { display: flex; flex-direction: column; gap: 8px; }
.ai-stop-thumb {
  position: relative;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}
.ai-stop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-stop-tag {
  position: absolute;
  left: 8px; top: 8px;
  font-size: 11px;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.ai-stop-body { display: flex; gap: 8px; align-items: baseline; }
.ai-stop-idx { font-family: var(--font-latin); font-size: 12px; font-weight: 600; color: var(--brand); flex: none; }
.ai-stop-name { font-size: 14px; font-weight: 500; }
.ai-stop-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-stop-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); }
.ai-stop-meta span { display: inline-flex; align-items: center; gap: 4px; }

.ai-day-add {
  margin-top: auto;
  display: grid; place-items: center;
  height: 40px;
  border-radius: 12px;
  border: 1px dashed var(--hair);
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  transition: all .25s;
}
.ai-day-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* 三种 tag 颜色 */
.ai-stop-tag-吃喝 { background: linear-gradient(135deg, #E8863A, #D96C2A); }
.ai-stop-tag-游玩 { background: linear-gradient(135deg, #2F9E77, #1F7A5A); }
.ai-stop-tag-购物 { background: linear-gradient(135deg, #7C3AED, #5B21B6); }

/* toast */
.ai-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 300;
}
.ai-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ai-day-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ai-day-grid { grid-template-columns: 1fr; }
  .ai-form-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ============ 06 AI 编程生产力 ============ */
.scene-ai-build { justify-content: flex-start; padding-top: calc(var(--nav-h) + 40px); }
.workflow {
  max-width: var(--maxw);
  margin: 64px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  counter-reset: wf;
}
.wf-step {
  position: relative;
  padding: 26px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.75);
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s;
}
.wf-step:hover { transform: translateY(-6px); background: rgba(255,255,255,.9); border-color: rgba(15,123,131,.4); }
.wf-step.active { background: #fff; border-color: var(--brand); box-shadow: 0 14px 34px -14px rgba(15,123,131,.4); }
.wf-step.active .wf-num { color: var(--brand); }
.wf-step.active h3 { color: var(--ink); }
.wf-step.active p { color: var(--ink-2); }
.wf-num {
  display: block;
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.wf-step h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.wf-step p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 工作流步骤详情 ---------- */
.wf-detail {
  max-width: var(--maxw);
  margin: 18px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.6);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 30px 80px -40px rgba(14,21,19,.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.wf-detail.show { opacity: 1; transform: translateY(0); }
.wf-detail-info { padding: 30px 34px; }
.wf-detail-head { display: flex; align-items: baseline; gap: 14px; }
.wf-detail-num {
  font-family: var(--font-latin);
  font-size: 36px;
  font-weight: 200;
  color: var(--brand);
  line-height: 1;
  letter-spacing: .02em;
}
.wf-detail-title { font-size: 22px; font-weight: 500; }
.wf-detail-brief {
  margin-top: 14px;
  display: inline-block;
  font-size: 14px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 8px 14px;
  border-radius: 10px;
}
.wf-detail-desc { margin-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.wf-detail-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.wf-detail-actions li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--hair);
}
.wf-detail-actions li i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.wf-detail-code {
  background: var(--dark);
  color: #9ecbb8;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wf-code-label {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232,240,238,.5);
}
.wf-detail-code pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  min-height: 140px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,203,184,.4) transparent;
}
.wf-detail-code .c-key { color: #7fd4e8; }
.wf-detail-code .c-str { color: #e8d3a0; }
.wf-detail-code .c-num { color: #b9a0e8; }
.wf-detail-code .c-com { color: rgba(158,203,184,.45); }

/* ---------- 01 一个需求：白灰背景 AI 思考结果（替代代码框） ---------- */
.wf-detail-code.show-goal { background: #EFF0EC; }
.wf-detail-code.show-goal .wf-code-label,
.wf-detail-code.show-goal pre { display: none; }
.wf-goal {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 10px 6px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,123,131,.35) transparent;
}
.wf-detail-code.show-goal .wf-goal { display: flex; animation: goalIn .6s var(--ease); }
@keyframes goalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* 逐条生成：每条追加时的淡入上移动画 */
.wf-reveal { animation: wfItemIn .5s var(--ease) both; }
@keyframes wfItemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wf-goal-eyebrow {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.wf-goal-title { font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.wf-goal-lead { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.wf-goal-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.wf-goal-item { display: flex; gap: 12px; align-items: flex-start; }
.wf-goal-k {
  flex: none;
  min-width: 68px;
  font-size: 12.5px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.5;
}
.wf-goal-v { font-size: 14px; color: var(--ink); line-height: 1.6; padding-top: 2px; }

/* ---------- 02 AI 分析：白灰背景 AI 思考过程（替代代码框） ---------- */
.wf-detail-code.show-think { background: #EFF0EC; }
.wf-detail-code.show-think .wf-code-label,
.wf-detail-code.show-think pre { display: none; }
.wf-think {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 10px 6px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,123,131,.35) transparent;
}
.wf-detail-code.show-think .wf-think { display: flex; animation: goalIn .6s var(--ease); }
.wf-think-list { display: flex; flex-direction: column; gap: 11px; margin-top: 2px; }
.wf-think-item { display: flex; gap: 10px; align-items: flex-start; }
.wf-think-dot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 9px;
  box-shadow: 0 0 6px rgba(15,123,131,.5);
}
.wf-think-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

/* ---------- 03 AI 生成：白灰背景 UI 形状量化展示各模块（替代代码框） ---------- */
.wf-detail-code.show-modules { background: #EFF0EC; }
.wf-detail-code.show-modules .wf-code-label,
.wf-detail-code.show-modules pre { display: none; }
.wf-modules {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 10px 6px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,123,131,.35) transparent;
}
.wf-detail-code.show-modules .wf-modules { display: flex; animation: goalIn .6s var(--ease); }
.wf-mod-group { display: flex; flex-direction: column; gap: 10px; }
.wf-mod-label { font-size: 12.5px; font-weight: 500; color: var(--brand-ink); letter-spacing: .02em; }

/* 页面结构：竖长圆角矩形（模拟页面骨架） */
.wf-mod-grid-sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wf-mod-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 10px 6px;
  transition: border-color .25s, transform .25s var(--ease);
}
.wf-mod-page:hover { border-color: var(--brand); transform: translateY(-2px); }
.wf-mod-page-bar { width: 70%; height: 6px; border-radius: 3px; background: var(--brand-soft); }
.wf-mod-page-name { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.wf-mod-page-meta { font-size: 11px; color: var(--ink-3); }

/* 交互组件：圆角矩形组件卡 */
.wf-mod-grid-components { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wf-mod-comp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 12px 14px;
  transition: border-color .25s, transform .25s var(--ease);
}
.wf-mod-comp:hover { border-color: var(--brand); transform: translateY(-2px); }
.wf-mod-comp-name { font-family: var(--font-latin); font-size: 13px; font-weight: 600; color: var(--ink); }
.wf-mod-comp-meta { font-size: 11.5px; color: var(--ink-3); }

/* 数据接口：接口行 */
.wf-mod-grid-api { display: flex; flex-direction: column; gap: 8px; }
.wf-mod-api {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 10px 14px;
}
.wf-mod-api-method {
  flex: none;
  font-family: var(--font-latin);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand);
  letter-spacing: .02em;
}
.wf-mod-api-method.post { background: var(--gold); }
.wf-mod-api-path { font-family: var(--font-latin); font-size: 12.5px; color: var(--ink); }
.wf-mod-api-meta { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* 滚动动画：动画行 + 时长条 */
.wf-mod-grid-motion { display: flex; flex-direction: column; gap: 8px; }
.wf-mod-motion {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 10px 14px;
}
.wf-mod-motion-name { flex: none; font-family: var(--font-latin); font-size: 12px; color: var(--ink); }
.wf-mod-motion-bar { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-soft)); }
.wf-mod-motion-dur { flex: none; font-family: var(--font-latin); font-size: 11.5px; color: var(--ink-3); }

/* ---------- 06 产品完成：白灰背景 3D 模型展示（替代代码框） ---------- */
.wf-detail-code.show-model { background: #EFF0EC; }
.wf-detail-code.show-model .wf-code-label,
.wf-detail-code.show-model pre { display: none; }
.wf-model {
  display: none;
  position: relative;
  flex: 1;
  min-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: #EFF0EC;
}
.wf-detail-code.show-model .wf-model { display: flex; align-items: center; justify-content: center; }
.wf-model canvas { display: block; width: 100%; height: 100%; }
.wf-model-actions {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.wf-fullscreen {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--hair);
  color: var(--ink-2);
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.wf-fullscreen:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.wf-model:fullscreen { background: #EFF0EC; border-radius: 0; }
.wf-model:fullscreen .wf-model-actions { bottom: 24px; }
/* 全屏退出按钮（仅全屏时显示） */
.wf-exit {
  display: none;
  position: absolute;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--hair);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  place-items: center;
  z-index: 6;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.wf-exit:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.wf-model:fullscreen .wf-exit { display: grid; }

/* ---------- 炫酷加载动画（代码跑完后 → 模型出现前） ---------- */
.wf-model-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #EFF0EC;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.wf-model-loading.show { opacity: 1; pointer-events: auto; }
.wf-load-ring { position: relative; width: 76px; height: 76px; }
.wf-load-ring i {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--brand);
  filter: drop-shadow(0 0 8px rgba(15,123,131,.45));
  animation: wfSpin 1s linear infinite;
}
.wf-load-ring i:nth-child(2) { inset: 9px; animation-duration: 1.35s; border-top-color: var(--gold); filter: drop-shadow(0 0 8px rgba(190,158,107,.45)); }
.wf-load-ring i:nth-child(3) { inset: 18px; animation-duration: 1.7s; border-top-color: var(--brand-ink); filter: drop-shadow(0 0 8px rgba(10,86,92,.4)); }
@keyframes wfSpin { to { transform: rotate(360deg); } }
.wf-load-text { font-size: 13.5px; color: var(--ink-2); letter-spacing: .02em; }
.wf-load-pct { font-family: var(--font-latin); font-size: 22px; font-weight: 600; color: var(--brand); line-height: 1; }
.wf-model canvas { cursor: grab; touch-action: none; }
.wf-model canvas:active { cursor: grabbing; }

/* 打字机光标 */
.type-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #7fe08e;
  box-shadow: 0 0 8px rgba(87,201,107,.6);
  animation: blink 0.9s steps(2, start) infinite;
}

/* AI 思考提示（代码滚动前的占位） */
.code-thinking {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(158,203,184,.85);
  animation: thinkPulse 1.6s ease-in-out infinite;
}
.code-thinking i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(158,203,184,.25);
  border-top-color: #7fe08e;
  animation: spin .8s linear infinite;
}
@keyframes thinkPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.workspace {
  max-width: var(--maxw);
  margin: 56px auto 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  color: #e8f0ee;
  box-shadow: 0 40px 100px -40px rgba(11,22,19,.7);
}
.ws-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ws-dots { display: flex; gap: 6px; }
.ws-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.ws-dots i:nth-child(1) { background: #ff6b5e; }
.ws-dots i:nth-child(2) { background: #f5bd4f; }
.ws-dots i:nth-child(3) { background: #57c96b; }
.ws-title { font-size: 13px; color: rgba(232,240,238,.75); letter-spacing: .04em; }
.ws-live {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: .14em;
  color: #57c96b;
}
.ws-live i { width: 7px; height: 7px; border-radius: 50%; background: #57c96b; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.ws-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ws-left { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.ws-row { display: flex; flex-direction: column; gap: 6px; }
.ws-label { font-size: 12px; color: rgba(232,240,238,.5); letter-spacing: .06em; }
.ws-value { font-size: 15px; font-weight: 500; }
.ws-status { display: flex; align-items: center; gap: 8px; color: var(--brand-soft); }
.ws-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: blink 1.2s infinite; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-chips span {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}
.ws-chips span.done { background: rgba(87,201,107,.14); border-color: rgba(87,201,107,.3); color: #7fe08e; }
.ws-progress { margin-top: 4px; }
.ws-progress-top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(232,240,238,.6); margin-bottom: 8px; }
.ws-progress-top span:last-child { font-family: var(--font-latin); font-weight: 600; color: #fff; }
.ws-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ws-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #57c96b); transition: width 1s var(--ease); }

.ws-right {
  padding: 26px;
  background: rgba(0,0,0,.22);
  border-left: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.ws-right pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.8;
  color: #9ecbb8;
  white-space: pre-wrap;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,203,184,.4) transparent;
}
.ws-right code .c-key { color: #7fd4e8; }
.ws-right code .c-str { color: #e8d3a0; }
.ws-right code .c-num { color: #b9a0e8; }
.ws-right code .c-com { color: rgba(158,203,184,.45); }

/* ============ 07 去野星球 ============ */
.scene-product { justify-content: flex-start; padding-top: calc(var(--nav-h) + 40px); }
.business-grid {
  max-width: var(--maxw);
  margin: 56px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.biz {
  padding: 26px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.75);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.biz:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(14,21,19,.4); }
.biz-icon { font-size: 26px; display: block; margin-bottom: 14px; }
.biz h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.biz p { font-size: 13px; color: var(--ink-2); }

/* ============ 08 数字产品 ============ */
.scene-detail { justify-content: flex-start; padding-top: calc(var(--nav-h) + 40px); }
.spec-grid {
  max-width: var(--maxw);
  margin: 56px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.spec-k { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.spec-v { font-family: var(--font-latin); font-size: 18px; font-weight: 500; color: var(--ink); }
.spec-cols {
  max-width: var(--maxw);
  margin: 18px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.spec-col {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.spec-col h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.spec-col p { font-size: 14px; color: var(--ink-2); }

/* ============ 09 生产力数据 ============ */
.scene-stats { justify-content: center; }
.stat-grid {
  max-width: var(--maxw);
  margin: 72px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 72px) 20px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: 28px;
  background: rgba(255,255,255,.5);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.7);
}
.stat-num {
  font-family: var(--font-latin);
  font-size: clamp(52px, 9vw, 118px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.stat-unit {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--brand);
  margin-left: 8px;
}
.stat-label {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: .05em;
}
.stat-note {
  margin: 56px auto 0;
  width: fit-content;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* ============ 10 人与 AI ============ */
.scene-human { justify-content: center; }
.human-duo {
  max-width: 720px;
  margin: 56px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
}
.human {
  flex: 1;
  text-align: center;
  padding: 40px 32px;
  border-radius: 28px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.human h3 { font-size: clamp(28px, 4vw, 44px); font-weight: 200; }
.human p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.human-plus { font-family: var(--font-latin); font-size: 40px; font-weight: 200; color: var(--brand); }

/* ============ 11 终章 ============ */
.scene-finale { justify-content: center; }
.finale-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.finale-title { font-size: clamp(40px, 7vw, 88px); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
.finale-pause { margin-top: 28px; font-size: clamp(20px, 3vw, 30px); font-weight: 300; color: var(--ink-2); }
.finale-tag {
  margin: 34px 0;
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ============ 页脚 ============ */
.footer {
  position: relative;
  z-index: 10;
  padding: 40px var(--pad) 56px;
  background: rgba(247,247,244,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-brand { font-weight: 500; color: var(--ink); letter-spacing: .04em; }

/* ============ 揭示动画（从下往上逐渐升起） ============ */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .wf-detail { grid-template-columns: 1fr; }
  .wf-detail-code { border-top: 1px solid rgba(255,255,255,.08); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-body { grid-template-columns: 1fr; }
  .ws-right { border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .human-duo { flex-direction: column; }
  .human-plus { transform: rotate(90deg); }
  .view-hint { display: none; }
  .int-gallery-grid, .ext-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-cols { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-tag { display: none; }
  .int-gallery-grid, .ext-gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ============ 360 全景查看器 ============ */
body.pano-open { overflow: hidden; }

.pano {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0b0d0c;
  opacity: 0;
  visibility: hidden;
  cursor: grab;
  transition: opacity .45s var(--ease), visibility .45s;
}
.pano.show { opacity: 1; visibility: visible; }
.pano.dragging { cursor: grabbing; }

.pano-canvas-wrap { position: absolute; inset: 0; }
.pano-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.pano-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  z-index: 2;
}
.pano-title {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
}
.pano-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 24px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s var(--ease-soft);
}
.pano-close:hover { background: rgba(255, 255, 255, .24); }

.pano-tabs {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.pano-tab {
  padding: 10px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 14px;
  transition: background .2s var(--ease-soft), color .2s var(--ease-soft);
}
.pano-tab:hover { background: rgba(255, 255, 255, .22); }
.pano-tab.active { background: var(--brand); color: #fff; }

.pano-hint {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .5);
  font-size: 12px; letter-spacing: .08em;
  white-space: nowrap;
  z-index: 1;
}

.pano-loading {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .85);
  font-size: 14px; letter-spacing: .05em;
  pointer-events: none;
}

/* ============ 10 · 彩蛋 · 头像 & 屏保 ============ */
.easter-grid {
  max-width: var(--maxw);
  margin: 56px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.easter-card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 50px -30px rgba(14, 21, 19, 0.28);
}
.easter-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  font-weight: 500;
}
.easter-h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.easter-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 22px;
  font-weight: 300;
}
.avatar-frames {
  width: 100%;
  max-width: 400px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.avatar-frame,
.screensaver-frame {
  width: 100%;
  max-width: 360px;
  background: var(--paper-2);
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.avatar-item {
  flex: 1 1 0;
  max-width: 190px; /* (400 - 20 间距) / 2，与屏保预览框 400px 同宽对齐 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.avatar-item .avatar-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
}
.avatar-save {
  padding: 9px 16px;
  font-size: 13px;
}
.avatar-frame--circle { border-radius: 50%; }
.screensaver-frame { height: 320px; max-width: 400px; margin-bottom: 22px; }
.avatar-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.screensaver-frame canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.easter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.easter-actions .btn {
  padding: 12px 22px;
  font-size: 14px;
}
.easter-actions .btn.active {
  background: var(--brand);
  color: #fff;
}
.easter-save-wrap {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .easter-card { padding: 24px 20px; }
}

/* ============ 启动加载遮罩 ============ */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.boot-loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.boot-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.boot-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .14);
  border-top-color: var(--brand);
  animation: boot-spin .9s linear infinite;
}
@keyframes boot-spin {
  to { transform: rotate(360deg); }
}
.boot-percent {
  font-family: var(--font-latin);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .92);
}
.boot-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  overflow: hidden;
}
.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #6fd3d8);
  border-radius: 999px;
  transition: width .25s var(--ease-soft);
}
.boot-hint {
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .5);
}
