/* ============================================================
   硅基经纬 — AI 家纺生图 · 首页样式（蓝白画风）
   公共部分（设计变量 / reset / 按钮 / 品牌 / 主题开关 / 夜间变量）
   已抽至 css/base.css，首页与工作台共用。
   ============================================================ */

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* 渐变强调文字：缓慢流动的宝蓝→天青 */
.title-line-inner em,
.section-title em,
.statement em,
.cta-title em,
.stat-num {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 45%, var(--accent) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: emFlow 9s ease-in-out infinite alternate;
}

@keyframes emFlow {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

/* ---------------- 通用布局 ---------------- */

.section {
  position: relative;
  padding: clamp(96px, 12vw, 168px) 0;
}

.section-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-body {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 52ch;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background-color 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out),
    backdrop-filter 0.6s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(246, 249, 253, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 日 / 夜主题开关与品牌标识样式见 css/base.css */

.site-nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: color 0.5s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
}

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

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 细腻颗粒，柔化数字感 */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------------- Hero 场景镜头 ---------------- */

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1402px;
  height: 1122px;
  will-change: transform;
  transition: opacity 0.5s ease;
}

/* 日夜换图时整台淡出 */
.scene-stage.is-swapping {
  opacity: 0;
}

.scene-img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 奶白遮纱：保住文字阅读性；推近时消散 */
.scene-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    115% 85% at 50% 40%,
    rgba(248, 251, 255, 0.86) 0%,
    rgba(248, 251, 255, 0.58) 44%,
    rgba(248, 251, 255, 0.3) 70%,
    rgba(248, 251, 255, 0.16) 100%
  );
  transition: opacity 0.7s ease;
}

.hero.is-zoomed .scene-veil {
  opacity: 0;
}

/* 织物热点：白芯蓝晕的呼吸圆点 */
.scene-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.scene-hotspot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  animation: hotspot-pulse 2.8s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.scene-hotspot::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 2px 10px rgba(46, 107, 255, 0.4),
    inset 0 0 0 3px rgba(46, 107, 255, 0.55);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scene-hotspot:hover::after,
.scene-hotspot:focus-visible::after {
  transform: scale(1.4);
}

@keyframes hotspot-pulse {
  0% { transform: scale(0.55); opacity: 0.95; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.hero.is-zoomed .scene-hotspot {
  opacity: 0;
  pointer-events: none;
}

/* 操作提示 */
.scene-hint {
  position: absolute;
  left: 36px;
  bottom: 40px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero.is-zoomed .scene-hint {
  opacity: 0 !important;
}

/* 推近后的名称签 */
.scene-caption {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(35, 68, 120, 0.16);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero.is-zoomed .scene-caption {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.scene-caption-tag {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--accent);
  white-space: nowrap;
}

.scene-caption-label {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.scene-caption-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scene-caption-close:hover {
  background: #1f56e0;
}

.scene-caption-close svg {
  width: 14px;
  height: 14px;
}

/* 指针靠近热点时，文案渐隐露出可点目标，遮纱同步减淡 */
.hero.is-explore .hero-inner {
  opacity: 0.08 !important; /* 覆盖 GSAP 视差内联 opacity */
}

.hero.is-explore .scene-veil {
  opacity: 0.55;
}

/* 推近时文案让位（!important 覆盖 GSAP 内联样式） */
.hero-inner {
  pointer-events: none; /* 让下方的织物热点可点；链接单独放开 */
  transition: opacity 0.55s ease;
}

.hero-inner a {
  pointer-events: auto;
}

.hero.is-zoomed .hero-inner {
  opacity: 0 !important;
}

.hero.is-zoomed .scroll-hint {
  opacity: 0 !important;
}

@media (max-width: 720px) {
  .scene-hint {
    left: 20px;
    bottom: 28px;
  }
  .scene-caption {
    gap: 10px;
    padding: 10px 14px;
    bottom: 56px;
    max-width: calc(100vw - 32px);
  }
  .scene-caption-label {
    font-size: 17px;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 176px;
  max-width: 900px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.label-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.18;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.title-line-inner {
  display: inline-block;
  will-change: transform;
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
}

.hero-sub {
  font-size: clamp(15.5px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 滚动提示：竖线 + 缓慢下滑的圆点 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scroll-hint-text {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-hint-line {
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--hairline);
  overflow: hidden;
}

.scroll-hint-dot {
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-2);
  animation: hintDrop 2.6s var(--ease-out) infinite;
}

@keyframes hintDrop {
  0%   { transform: translateY(-6px); opacity: 0; }
  25%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}

/* ---------------- Marquee ---------------- */

.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  background: #fff;
  user-select: none;
}

.marquee-track {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  animation: marqueeMove 46s linear infinite;
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.marquee-item {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee-item-en {
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  flex: 0 0 auto;
}

/* ---------------- Philosophy ---------------- */

.philosophy {
  background: var(--bg);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.statement {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.5;
  margin-bottom: 40px;
}

.statement-line {
  display: block;
}

.philosophy-figure .figure-frame {
  aspect-ratio: 4 / 5;
  transition:
    transform 1s var(--ease-out),
    box-shadow 1s var(--ease-out);
}

.philosophy-figure:hover .figure-frame {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 34px 72px -26px rgba(20, 33, 60, 0.35), 0 0 44px -12px rgba(46, 107, 255, 0.28);
}

/* ---------------- 图片框：视差 + hover ---------------- */

.figure-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid rgba(46, 107, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

/* 注：img 的基础放大（scale 1.12）用于给视差位移留出余量；
   hover 的缩放反馈放在 .figure-frame 上，避免与 JS 视差的
   内联 transform 冲突。 */
.figure-frame img {
  transform: scale(1.12);
  will-change: transform;
  transition: opacity 0.45s ease;
}

/* 日夜换图时的短暂淡出 */
.figure-frame img.is-swapping {
  opacity: 0;
}

/* 极淡的蓝色罩层，统一影调 */
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(87, 184, 255, 0.08), rgba(20, 33, 60, 0.1) 85%);
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
}

.figure-frame:hover::after {
  opacity: 0.4;
}

.figure-caption {
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* 「AI 生成」角标 */
.figure-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 40px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  background: rgba(236, 243, 255, 0.72);
  border: 1px solid rgba(46, 107, 255, 0.18);
  border-radius: 999px;
  box-shadow: none;
}

/* ---------------- Gallery ---------------- */

.gallery {
  background: #fff;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.gallery-head-body {
  max-width: 38ch;
  padding-bottom: 6px;
}

.gallery-grid {
  display: block;
  column-width: 220px;
  column-count: auto;
  column-gap: 8px;
}

.g-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
  vertical-align: top;
}

.g-item .figure-frame {
  aspect-ratio: 3 / 4;
  transition:
    transform 1s var(--ease-out),
    box-shadow 1s var(--ease-out);
}

.g-item:hover .figure-frame {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 34px 72px -26px rgba(20, 33, 60, 0.35), 0 0 44px -12px rgba(46, 107, 255, 0.28);
}

.g-item-wide {
  width: 100%;
}

.g-item-wide .figure-frame {
  aspect-ratio: 16 / 8.5;
}

/* 第二行两张：等宽半行，构图更均衡 */
.g-item-half {
  width: 100%;
}

.g-item-half .figure-frame {
  aspect-ratio: 4 / 3;
}

/* ---------------- Compare 效果对比 ---------------- */

.compare {
  background: var(--bg);
}

.compare .section-title {
  margin-bottom: 20px;
}

.compare-sub {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.compare-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 720px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 90px -34px rgba(20, 33, 60, 0.4);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  --pos: 50%;
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer img {
  transform: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.compare-after {
  z-index: 1;
}

.compare-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(20, 33, 60, 0.35);
  transform: translateX(-1px);
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 107, 255, 0.3);
  color: var(--accent);
  box-shadow: 0 10px 30px -8px rgba(20, 33, 60, 0.4);
  backdrop-filter: blur(6px);
}

.compare-knob svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.compare-side {
  position: absolute;
  top: 18px;
  z-index: 3;
  padding: 7px 16px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare-side-before {
  left: 18px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 33, 60, 0.1);
}

.compare-side-after {
  right: 18px;
  color: #1d3f9e;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(46, 107, 255, 0.3);
}

/* ---------------- Stats 数据带 ---------------- */

.stats {
  background: #fff;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(64px, 8vw, 104px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.stat {
  text-align: center;
  padding: 8px 12px;
}

.stat + .stat {
  border-left: 1px solid var(--hairline);
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.15;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------------- Process ---------------- */

.process {
  background: var(--bg);
}

.process .section-title {
  margin-bottom: clamp(56px, 7vw, 88px);
}

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 44px 36px 40px;
  border-top: 1px solid var(--hairline);
  border-radius: 0 0 8px 8px;
  transition:
    transform 0.9s var(--ease-out),
    background-color 0.9s var(--ease-out),
    box-shadow 0.9s var(--ease-out);
}

.process-step:hover {
  transform: translateY(-6px);
  background: var(--card);
  box-shadow: 0 24px 54px -28px rgba(20, 33, 60, 0.3), 0 0 38px -14px rgba(46, 107, 255, 0.25);
}

.step-index {
  position: absolute;
  top: 34px;
  right: 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  color: rgba(87, 184, 255, 0.55);
  line-height: 1;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--accent);
  background: #fff;
  margin-bottom: 28px;
  transition:
    background-color 0.7s var(--ease-out),
    color 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    box-shadow 0.7s var(--ease-out);
}

.process-step:hover .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(46, 107, 255, 0.5);
}

.step-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.step-body {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------------- CTA ---------------- */

.cta {
  background: var(--bg-soft);
  overflow: hidden;
  text-align: center;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.35;
  margin-bottom: 48px;
}

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* CTA 背景：两个缓慢漂移的蓝色柔光斑，与 hero 粒子海呼应 */
.cta-blob {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.cta-blob-a {
  left: -12vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(46, 107, 255, 0.2), transparent 65%);
  animation: blobDriftA 26s ease-in-out infinite alternate;
}

.cta-blob-b {
  right: -14vw;
  bottom: -22vw;
  background: radial-gradient(circle, rgba(87, 184, 255, 0.22), transparent 65%);
  animation: blobDriftB 32s ease-in-out infinite alternate;
}

@keyframes blobDriftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 6vh) scale(1.12); }
}

@keyframes blobDriftB {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-8vw, -7vh) scale(0.94); }
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-brand .brand-mark {
  font-size: 26px;
}

.footer-brand .brand-sub {
  margin-left: 10px;
}

.footer-tag {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-credits {
  font-size: 12.5px;
  color: var(--muted);
}

.footer-credits a {
  border-bottom: 1px solid var(--hairline);
  transition: color 0.4s, border-color 0.4s;
}

.footer-credits a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer-copy p + p {
  margin-top: 6px;
}

/* ---------------- Viewer（FLIP 飞图转场） ---------------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.viewer.is-open {
  display: block;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 28, 52, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 飞行中的图片容器：由 JS 用 top/left/width/height 驱动 */
.viewer-stack {
  position: fixed;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 60px 120px -40px rgba(10, 22, 44, 0.65);
  background: #0d1830;
  will-change: top, left, width, height;
}

.viewer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.viewer-img-b {
  opacity: 0;
}

/* 控制层：飞行结束后才淡入 */
.viewer-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.viewer.is-settled .viewer-ui {
  opacity: 1;
  pointer-events: auto;
}

.viewer-toggle {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(16, 28, 52, 0.45);
  color: #eaf1ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  transition:
    background-color 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out);
}

.viewer-toggle {
  right: 26px;
  bottom: 26px;
  padding: 10px 20px;
  font-size: 13px;
}

.viewer-toggle:hover {
  background: rgba(46, 107, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.viewer-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}

.viewer-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(234, 241, 255, 0.85);
  pointer-events: none;
}

/* viewer 打开时锁定滚动 */
.lb-lock,
.lb-lock body {
  overflow: hidden;
}

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

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

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-figure {
    max-width: 480px;
  }

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .g-item,
  .g-item-wide,
  .g-item-half {
    grid-column: span 1;
  }

  .g-item-wide .figure-frame {
    aspect-ratio: 16 / 10;
  }

  .compare-frame {
    aspect-ratio: 4 / 3.4;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .stat:nth-child(3) {
    border-left: none;
  }

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

  .br-desktop {
    display: none;
  }
}

/* ---------------- 降低动态偏好 ---------------- */

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .scroll-hint-dot,
  .cta-blob-a,
  .cta-blob-b,
  .cta-gauze,
  .label-line,
  .title-line-inner em,
  .section-title em,
  .statement em,
  .cta-title em,
  .stat-num {
    animation: none;
  }

  .figure-frame img,
  .btn,
  .process-step,
  .g-item .figure-frame {
    transition: none;
  }
}

/* ?noanim 静态模式：hero 退化为固定高度，便于整页渲染/打印 */
.is-static .hero {
  min-height: 920px;
}

/* ============================================================
   动效增强：流纱配套样式
   ============================================================ */

/* ---------------- 顶部金纱进度线 ---------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c9a96a, #e8d3a3);
  box-shadow: 0 0 10px rgba(201, 169, 106, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------------- Hero 标签纱线：从左织到右 ---------------- */

.label-line {
  transform: scaleX(0);
  transform-origin: left center;
  animation: labelDraw 1.6s var(--ease-out) 0.7s forwards;
}

@keyframes labelDraw {
  to { transform: scaleX(1); }
}

/* ---------------- 图片框：hover 光泽掠过绸面 ---------------- */

.figure-frame::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -90%;
  width: 52%;
  z-index: 2;
  background: linear-gradient(102deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-16deg);
  transition: left 1.15s var(--ease-out);
  pointer-events: none;
}

.g-item:hover .figure-frame::before,
.philosophy-figure:hover .figure-frame::before {
  left: 150%;
}

/* ---------------- 数据带：odometer 翻滚 + 金纱线 ---------------- */

.stat::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, #c9a96a, transparent);
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) 0.45s;
}

.stat.is-counted::after {
  transform: scaleX(1);
}

/* odometer：数字位滚轮。渐变文字需逐位施加，父级取消裁剪 */
.stat-num.is-odometer {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
  animation: none;
}

.odo-wheel {
  display: inline-block;
  height: 1.15em;
  overflow: hidden;
  vertical-align: top;
}

.odo-strip {
  display: inline-block;
  will-change: transform;
}

.odo-strip > span {
  display: block;
  height: 1.15em;
  line-height: 1.15;
}

.odo-strip > span,
.odo-suffix {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 45%, var(--accent) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: emFlow 9s ease-in-out infinite alternate;
}

/* ---------------- 创作流程：纱线穿引 ---------------- */

.process .section-inner {
  position: relative;
}

.process-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(46, 107, 255, 0.35));
}

.process .process-step {
  z-index: 2;
  transition-property: transform, background-color, box-shadow, border-color;
}

.process-step.is-lit {
  border-top-color: rgba(46, 107, 255, 0.55);
}

.process-step.is-lit .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 26px rgba(46, 107, 255, 0.45);
}

.process-step.is-lit .step-index {
  color: rgba(201, 169, 106, 0.9);
}

/* ---------------- CTA：夜色纱布 ---------------- */

.cta {
  background: linear-gradient(165deg, #0c1930 0%, #14294f 52%, #0d1d3c 100%);
}

.cta .section-label {
  color: rgba(172, 198, 242, 0.6);
}

.cta-title {
  color: #edf3ff;
}

.cta-title em {
  background-image: linear-gradient(100deg, #8ab4ff 10%, #cfe2ff 45%, #8ab4ff 80%);
}

.cta .cta-note {
  color: rgba(172, 198, 242, 0.62);
}

.cta .cta-blob-a {
  background: radial-gradient(circle, rgba(64, 120, 255, 0.38), transparent 65%);
}

.cta .cta-blob-b {
  background: radial-gradient(circle, rgba(201, 169, 106, 0.15), transparent 65%);
}

/* 缓缓漂移的纱纹光泽 */
.cta-gauze {
  position: absolute;
  inset: 0 -180px;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(68deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 160px);
  animation: gauzeDrift 52s linear infinite;
}

@keyframes gauzeDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-110px); }
}

/* ---------------- 磁吸按钮：关闭 transform 的 CSS 过渡，交给 GSAP ---------------- */

.btn.is-magnetic {
  transition-property: box-shadow, background-color, color, border-color;
}

/* 数据带：Cormorant 默认旧式数字高低不齐，强制等高 lining 数字 */
.stat-num {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ============================================================
   夜间主题：body.theme-night
   深暮蓝底 + 提亮蓝 accent；Hero 换夜景图（JS 联动）
   ============================================================ */

/* 夜间变量已抽至 css/base.css；此处保留首页各区块的夜间适配 */

/* 主题切换时的平滑过渡 */
body,
.marquee,
.gallery,
.stats,
.site-footer,
.philosophy,
.compare,
.process,
.step-icon {
  transition:
    background-color 0.7s ease,
    color 0.7s ease,
    border-color 0.7s ease;
}

body.theme-night .site-header.is-scrolled {
  background: rgba(11, 19, 34, 0.72);
}

/* 硬编码白底区块跟随主题 */
body.theme-night .marquee,
body.theme-night .gallery,
body.theme-night .stats,
body.theme-night .site-footer {
  background: var(--bg);
}

body.theme-night .step-icon {
  background: var(--card);
}

/* Hero：夜里遮纱换深蓝，名称签换深色玻璃 */
body.theme-night .scene-veil {
  background: radial-gradient(
    115% 85% at 50% 40%,
    rgba(8, 14, 27, 0.8) 0%,
    rgba(8, 14, 27, 0.52) 44%,
    rgba(8, 14, 27, 0.28) 70%,
    rgba(8, 14, 27, 0.12) 100%
  );
}

body.theme-night .scene-caption {
  background: rgba(13, 22, 40, 0.72);
  border-color: rgba(111, 157, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

body.theme-night .hero-grain {
  opacity: 0.22;
}

/* 「AI 生成」角标与对比滑块控件换深色玻璃 */
body.theme-night .figure-tag {
  background: rgba(143, 184, 255, 0.1);
  border-color: rgba(143, 184, 255, 0.22);
  color: rgba(235, 242, 255, 0.94);
  box-shadow: none;
}

body.theme-night .compare-knob {
  background: rgba(13, 22, 40, 0.9);
  border-color: rgba(111, 157, 255, 0.4);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}

body.theme-night .compare-side-before,
body.theme-night .compare-side-after {
  color: #b3c1de;
  background: rgba(13, 22, 40, 0.66);
  border-color: rgba(111, 157, 255, 0.3);
}
