/* ─────────────────────────────────────────────
   祁夜档案 · 共享样式表
   所有页面共用同一份 CSS 变量、字体、通用类
   ───────────────────────────────────────────── */

:root {
  /* 深色系底 —— 深蓝墨，不是纯黑 */
  --paper: #14141c;
  --paper-warm: #1c1c26;
  --paper-elev: #1e1e2a;

  /* 内容色 —— 近白暖调 */
  --ink: #ece8e0;
  --ink-80: rgba(236, 232, 224, 0.82);
  --ink-60: rgba(236, 232, 224, 0.55);
  --ink-40: rgba(236, 232, 224, 0.32);
  --ink-20: rgba(236, 232, 224, 0.14);

  /* 极细分割线 */
  --line: rgba(236, 232, 224, 0.12);
  --line-soft: rgba(236, 232, 224, 0.06);

  /* 蓝粉渐变 —— 暖调、饱和度比莫兰迪稍高 */
  --pink: #e8a4b8;
  --blue: #8ab4d8;
  --pink-warm: #d99aa8;
  --blue-warm: #97a8d0;
  --grad: linear-gradient(120deg, #e8a4b8 0%, #c8a0c8 45%, #8ab4d8 100%);
  --grad-soft: linear-gradient(120deg, rgba(232,164,184,0.18) 0%, rgba(138,180,216,0.18) 100%);
  --accent: #e0a8c0;
  --accent-soft: rgba(224, 168, 192, 0.12);

  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* 导航栏高度 */
  --nav-h: 84px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  /* 极细暗纹理 */
  background-image:
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.008) 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 2px;
  background-color: var(--paper);
}
body::before {
  content: '';
  position: fixed;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle at center, rgba(232,164,184,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%; left: -10%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle at center, rgba(138,180,216,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
#root { position: relative; z-index: 1; }

::selection {
  background: rgba(232,164,184,0.35);
  color: var(--ink);
}

/* 链接下划线动画 */
.link-underline {
  position: relative;
  text-decoration: none;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.link-underline:hover::after { transform: scaleX(1); }

/* 滚动淡入 —— 支持 no-js fallback：如果 JS 报错，元素依然可见 */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* JS 就绪后，主动给 fade-in 加上 pre-visible，才隐藏 */
.js-ready .fade-in:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 渐变文字 */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink-20);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; }

button:focus, a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4, p { margin: 0; }

/* ─────────────────────────────────────────────
   顶部导航栏 · B样式（中文大字 + 英文小副标）
   ───────────────────────────────────────────── */
.nav-bar {
  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 48px;
  background: rgba(20, 20, 28, 0.72);
  /* 【性能优化】blur 半径从 20px 降到 12px：毛玻璃每帧重采样整块区域，
     半径越小开销越低，12px 视觉上几乎无差 */
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav-bar.transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nav-brand-en {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-40);
  letter-spacing: 0.08em;
}
.nav-items {
  display: flex;
  gap: 44px;
  align-items: flex-end;
}
.nav-item {
  position: relative;
  text-decoration: none;
  color: var(--ink-80);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 8px;
  transition: color 0.35s ease;
}
.nav-item-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-40);
  letter-spacing: 0.1em;
}
.nav-item-cn {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.05em;
  color: inherit;
}
.nav-item-en {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--ink-40);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-item:hover {
  color: var(--ink);
}
.nav-item.active {
  color: var(--ink);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--grad);
}

/* 页面基础布局：让内容留出导航栏空间 */
.page-body {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.page-body.no-pad {
  padding-top: 0;   /* 首页轮播用，导航栏悬浮在图片上 */
}

/* 页脚 */
.page-footer {
  border-top: 1px solid var(--line);
  padding: 60px 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-40);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────────
   自定义光标 · 全站通用
   ───────────────────────────────────────────── */
html.cursor-active:not(.no-custom-cursor),
html.cursor-active:not(.no-custom-cursor) body,
html.cursor-active:not(.no-custom-cursor) * {
  cursor: none !important;
}
/* 触摸设备回退到系统光标 */
@media (hover: none) {
  html, html body, html * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}
/* ring 变成 chevron 容器 —— 不再是圆圈边框 */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  color: rgba(236,232,224,0.85);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: color 0.35s, opacity 0.3s, filter 0.35s;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}
.cursor-ring svg {
  display: block;
  width: 100%; height: 100%;
  transform-origin: 50% 50%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
/* hover 可点击时：chevron 变粉、稍微放大 */
.cursor-ring.hovering-link {
  color: var(--pink);
  width: 36px; height: 36px;
  filter: drop-shadow(0 2px 8px rgba(232,164,184,0.35));
}
.cursor-dot.hovering-link {
  opacity: 0;
}
/* hover 文本时：chevron 隐藏，dot 变成竖线 */
.cursor-ring.hovering-text {
  opacity: 0;
}
.cursor-dot.hovering-text {
  width: 2px; height: 22px;
  border-radius: 1px;
  background: rgba(232,164,184,0.7);
}
/* 页面刚加载：光标透明，鼠标一动才淡入 */
.cursor-dot, .cursor-ring {
  opacity: 0;
}
.cursor-active .cursor-dot,
.cursor-active .cursor-ring {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   页面进入动效 · 通用类
   ───────────────────────────────────────────── */
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-bar { animation: nav-drop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.nav-brand { animation: nav-drop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) 0.15s both; }
.nav-item {
  animation: nav-drop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.nav-item:nth-child(1) { animation-delay: 0.25s; }
.nav-item:nth-child(2) { animation-delay: 0.30s; }
.nav-item:nth-child(3) { animation-delay: 0.35s; }
.nav-item:nth-child(4) { animation-delay: 0.40s; }
.nav-item:nth-child(5) { animation-delay: 0.45s; }
.nav-item:nth-child(6) { animation-delay: 0.50s; }

/* 导航项 hover 强化 —— 英文小副标从下浮出 */
.nav-item .nav-item-en {
  opacity: 0.55;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav-item:hover .nav-item-en {
  opacity: 1;
  transform: translateY(-1px);
}
.nav-item .nav-item-cn {
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav-item:hover .nav-item-cn {
  transform: translateY(-2px);
}
.nav-item .nav-item-num {
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}
.nav-item:hover .nav-item-num {
  color: var(--pink);
  letter-spacing: 0.15em;
}
/* 高亮线条呼吸 */
@keyframes hi-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.nav-item.active::after {
  animation: hi-breathe 2.6s ease-in-out infinite;
}

/* 品牌名 hover：字符间距展开 */
.nav-brand {
  transition: letter-spacing 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav-brand:hover {
  letter-spacing: 0.14em;
}

/* ─────────────────────────────────────────────
   标题字符逐个渐入
   用后代选择器：兼容嵌套在渐变 span 内的字符（StaggerRich）
   ───────────────────────────────────────────── */
.char-stagger .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes char-in {
  to { opacity: 1; transform: translateY(0); }
}
/* 空白字符占位 */
.char-stagger .char.space { width: 0.35em; }

/* 渐变文字内的逐字字符：把渐变下沉到每个字符自身，
   避免父级 background-clip:text 对带 transform 动画的子元素渲染异常 */
.grad-text .char {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─────────────────────────────────────────────
   素材·服务 货架卡片入场（依次错峰）
   ───────────────────────────────────────────── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.shelf-card {
  animation: card-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* 分割线展开动画 */
@keyframes divider-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.divider-anim {
  transform-origin: left center;
  animation: divider-in 1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s both;
}

/* 页面主标题的副标——延迟淡入 */
.subtitle-fade {
  opacity: 0;
  animation: subtitle-in 1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.9s forwards;
}
@keyframes subtitle-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   首屏以下章节头的统一入场节奏（滚动到可见时才播放）
   与骨架页 SectionHeader 一致：小字淡入 -> 横线展开 -> 大字逐字
   均挂在 .fade-in 容器内，滚入加 .visible 后依次触发；
   无 JS 时不加门控，元素保持直接可见（回退安全）
   ───────────────────────────────────────────── */
/* 章节小字（如"关于 · About"） */
.js-ready .fade-in .section-eyebrow {
  opacity: 0;
}
.js-ready .fade-in.visible .section-eyebrow {
  animation: subtitle-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) 0.15s forwards;
}
/* 章节渐变横线 */
.js-ready .fade-in .section-divider {
  transform: scaleX(0);
  transform-origin: left center;
}
.js-ready .fade-in.visible .section-divider {
  animation: divider-in 1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.35s forwards;
}
/* 逐字入场：先冻结隐藏，滚入后重播（延迟序号从可见时刻起算）
   用后代选择器，兼容嵌套在渐变 span 内的字符 */
.js-ready .stagger-on-visible .char {
  animation: none;
}
.js-ready .fade-in.visible .stagger-on-visible .char {
  animation: char-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* ─────────────────────────────────────────────
   首页轮播 · 切换亮线扫过
   ───────────────────────────────────────────── */
@keyframes projector-sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  15%  { opacity: 0.6; }
  100% { transform: translateX(100%); opacity: 0; }
}
.projector-sweep {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 20%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,164,184,0.15) 40%,
    rgba(236,232,224,0.35) 50%,
    rgba(138,180,216,0.15) 60%,
    transparent 100%);
  pointer-events: none;
  z-index: 9;
  mix-blend-mode: screen;
  animation: projector-sweep 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* 柔焦渐变遮罩 —— 每次切换晕开一层朦胧的光 */
/* 【性能优化】blur 改为静态一次性计算（结果可被浏览器缓存），
   动画只跑 opacity/transform（纯合成器属性），不再每帧重算模糊 */
@keyframes blur-veil {
  0%   { opacity: 0;    transform: scale(1.08); }
  35%  { opacity: 0.95; transform: scale(1.02); }
  100% { opacity: 0;    transform: scale(1); }
}
.blur-veil {
  filter: blur(14px);
  animation: blur-veil 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform;
}

/* 铭牌淡出淡入 */
.meta-swap {
  animation: meta-out 0.35s cubic-bezier(0.4, 0, 0.2, 1) both,
             meta-in  0.6s cubic-bezier(0.2, 0.9, 0.3, 1) 0.35s both;
}
@keyframes meta-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(6px); }
}
@keyframes meta-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   首页 · 下滑提示（SCROLL）
   ───────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(236,232,224,0.55);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}
.scroll-hint:hover { color: var(--ink); }
.scroll-hint-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
}
.scroll-hint-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, currentColor 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute; left: 0; right: 0; top: -50%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: scroll-dot 2.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(200%); }
  100% { transform: translateY(200%); }
}

/* ─────────────────────────────────────────────
   首页 · 介绍区（第二屏起）
   ───────────────────────────────────────────── */
.intro-section {
  position: relative;
  padding: 140px 8vw;
  max-width: 100%;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.intro-section::before {
  /* 每个 section 顶部一层柔和的粉蓝晕 */
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%; height: 1px;
  background: var(--grad);
  opacity: 0.35;
}
.intro-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-40);
  margin-bottom: 56px;
  text-transform: uppercase;
}

/* 欢迎屏（第一屏）—— 全屏问候，入场元素依次错峰浮现 */
.welcome-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8vw 140px;
  background: var(--paper);
  overflow: hidden;
}
/* 欢迎屏右侧留白的肖像：从文字侧向右渐现，整体透明度不给满；
   其余子元素垫一层 position:relative，保证文字永远盖在照片上 */
.welcome-section > *:not(.welcome-portrait) { position: relative; }
.welcome-portrait {
  position: absolute;
  top: 0; right: 0;
  height: 100%;   /* 关键：img 是替换元素，光写 bottom:0 会按 1:1 内在比例算高度导致悬空，必须显式给高度 */
  width: 46%;
  object-fit: cover;
  object-position: center 16%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 58%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 58%, #000 100%);
  animation: welcome-portrait-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
@keyframes welcome-portrait-in {
  from { opacity: 0; }
  to   { opacity: 0.62; }
}
@media (max-width: 900px) {
  .welcome-portrait { display: none; }   /* 窄屏把版面留给文字 */
}
/* 上面的 > * 垫层会把 scroll-hint 的 absolute 顶成 relative，
   这里用更高特异性钉回绝对定位，避免后续布局变化时错位 */
.welcome-section .scroll-hint { position: absolute; }
@keyframes welcome-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.welcome-section .intro-meta {
  animation: welcome-up 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) 0.05s both;
}
.welcome-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 96px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 44px;
}
.welcome-lede {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-80);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 0 48px;
  animation: welcome-up 1s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}
.welcome-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: welcome-up 1s cubic-bezier(0.22, 1, 0.36, 1) 1.25s both;
}
/* 欢迎屏底部 SCROLL 提示最后浮现；
   关键帧里必须保留 translateX(-50%)，否则 fill-mode 会把居中位移顶掉导致偏右 */
@keyframes welcome-hint-in {
  from { opacity: 0; transform: translateX(-50%) translateY(28px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.welcome-section .scroll-hint {
  animation: welcome-hint-in 1s cubic-bezier(0.22, 1, 0.36, 1) 1.7s both;
}
.intro-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 88px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  max-width: 1000px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1);
}
.intro-h2.in { opacity: 1; transform: none; }
.intro-h2 em {
  font-style: italic;
  color: var(--pink);
  font-family: var(--font-serif);
}
.intro-lede {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-80);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 0 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s 0.15s cubic-bezier(0.22,1,0.36,1),
              transform 1s 0.15s cubic-bezier(0.22,1,0.36,1);
}
.intro-lede.in { opacity: 1; transform: none; }
.intro-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s 0.3s cubic-bezier(0.22,1,0.36,1),
              transform 1s 0.3s cubic-bezier(0.22,1,0.36,1);
}
.intro-cta-row.in { opacity: 1; transform: none; }
.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              background 0.4s, color 0.4s, border-color 0.4s;
}
.intro-cta svg { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.intro-cta.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.intro-cta.primary:hover { transform: translateY(-2px); }
.intro-cta.primary:hover svg { transform: translateX(4px); }
.intro-cta.ghost {
  background: transparent;
  color: var(--ink-80);
  border: 1px solid var(--ink-40);
}
.intro-cta.ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* IntroWhatsInside ------------------------------------------ */
.intro-h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 72px;
  max-width: 900px;
}
.intro-inside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.intro-inside-list li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.intro-inside.in .intro-inside-list li { opacity: 1; transform: none; }
.intro-inside-item {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.5s cubic-bezier(0.22,1,0.36,1),
              background 0.4s;
}
.intro-inside-item:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}
.ii-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-40);
  letter-spacing: 0.15em;
}
.ii-body { display: flex; flex-direction: column; gap: 8px; }
.ii-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ii-cn {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink);
}
.ii-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-40);
  text-transform: uppercase;
}
.ii-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-60);
  max-width: 640px;
}
.ii-arrow {
  color: var(--ink-40);
  transition: color 0.4s, transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.intro-inside-item:hover .ii-arrow {
  color: var(--pink);
  transform: translateX(6px);
}

/* IntroNumbers ---------------------------------------------- */
.intro-numbers { padding-top: 80px; padding-bottom: 100px; }
.intro-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: end;
}
.num-cell {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.intro-numbers.in .num-cell { opacity: 1; transform: none; }
.num-big {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-40);
  margin-top: 14px;
}
.num-cn {
  font-size: 13px;
  color: var(--ink-60);
  margin-top: 6px;
}

/* IntroFooter ----------------------------------------------- */
.intro-footer {
  padding: 100px 8vw 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, #0f0f16 100%);
}
.if-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.if-brand-cn {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0.05em;
}
.if-brand-en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--ink-40);
  margin-top: 10px;
}
.if-lede {
  font-size: 15px;
  color: var(--ink-80);
  line-height: 1.85;
}
.if-lede a {
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-40);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.if-lede a:hover { border-color: var(--pink); }
.if-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-40);
}

.only-mobile { display: none; }

/* ─────────────────────────────────────────────
   响应式适配（≤900px 平板，≤640px 手机）
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-bar { padding: 0 24px; }
  .nav-items { gap: 22px; }
  .nav-item-en { display: none; }
  .nav-brand-en { display: none; }

  .intro-section { padding: 100px 24px; }
  .welcome-section { min-height: auto; padding: 110px 24px 120px; }
  .intro-meta { margin-bottom: 40px; font-size: 10px; letter-spacing: 0.15em; }
  .intro-inside-item {
    grid-template-columns: 56px 1fr 28px;
    gap: 20px;
    padding: 24px 0;
  }
  .intro-inside-item:hover { padding-left: 8px; }
  .intro-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .if-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .only-mobile { display: block; }

  /* —— 首页 hero 手机适配 —— */
  /* 大箭头缩小、更贴近边缘 */
  .home-arrow-btn {
    width: 22vw !important;
    min-width: 60px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .home-arrow-btn svg {
    width: 46px !important;
    height: 76px !important;
  }
  /* 右下角标题铭牌位置和字号收紧 */
  .home-hero .meta-swap {
    right: 20px !important;
    bottom: 96px !important;
    max-width: 70vw !important;
  }
  .home-hero .meta-swap > div:nth-child(2) { font-size: 17px !important; }
  /* 左下角宣言：移到左上，避免和铭牌冲突 */
  .home-manifesto {
    left: 20px !important;
    bottom: auto !important;
    top: calc(var(--nav-h) + 20px) !important;
    max-width: 78vw !important;
  }
  .home-manifesto > div { font-size: 13px !important; }
  /* 底部点点导航上移 */
  .home-dots { bottom: 24px !important; }
  /* 下滑提示位置 */
  .scroll-hint { bottom: 52px; }
  .scroll-hint-line { height: 32px; }

  /* —— 欢迎屏手机适配 —— */
  .welcome-section { padding: 96px 20px 110px; }
  .welcome-h1 { font-size: 34px; margin-bottom: 28px; }
  .welcome-lede { font-size: 14px; margin-bottom: 36px; }

  /* —— 介绍区手机适配 —— */
  .intro-section { padding: 80px 20px; }
  .intro-meta { flex-direction: column; gap: 6px; margin-bottom: 32px; }
  .intro-h2 { font-size: 32px; margin-bottom: 28px; }
  .intro-lede { font-size: 14px; margin-bottom: 40px; }
  .intro-cta { padding: 14px 22px; font-size: 13px; }
  .intro-cta-row { width: 100%; }
  .intro-cta { flex: 1; justify-content: center; }
  .intro-h3 { font-size: 26px; margin-bottom: 48px; }
  .intro-inside-item {
    grid-template-columns: 42px 1fr 22px;
    gap: 14px;
    padding: 20px 0;
  }
  .ii-num { font-size: 11px; }
  .ii-cn { font-size: 18px; }
  .ii-desc { font-size: 13px; line-height: 1.7; }
  .intro-numbers-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .num-big { font-size: 44px; }
  .num-sub { font-size: 10px; margin-top: 10px; }
  .num-cn { font-size: 12px; }
  .intro-footer { padding: 60px 20px 40px; }
  .if-brand-cn { font-size: 36px; }
  .if-bottom { flex-direction: column; gap: 10px; }
}

/* 触摸设备：大箭头保持可见亮度 */
@media (hover: none) {
  .home-arrow-btn svg { color: rgba(236,232,224,0.75) !important; }
}

/* 图序入口：沿用档案站的字体、蓝粉配色和细线。 */
.progressive-image { position: relative; overflow: clip; isolation: isolate; }
.image-load-overlay { position: absolute; inset: 0; padding: 10px; pointer-events: none; }
.welcome-section .welcome-portrait.progressive-image { position: absolute; }
.image-load-note {
  position: sticky; z-index: 1; top: calc(var(--nav-h) + 12px);
  width: fit-content; margin-left: auto; pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 20px); padding: 7px 10px; border-radius: 3px;
  background: rgba(20,20,28,.82); color: #ece8e0;
  font: 12px/1.5 var(--font-sans); letter-spacing: .02em;
}
.image-load-note button {
  color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5);
  padding: 4px 9px; font: inherit; cursor: pointer;
}
.canvas-entry {
  display: flex; flex-direction: column; gap: 10px;
  width: fit-content; max-width: 100%; margin-top: 28px;
  padding: 20px 24px; border: 1px solid var(--line);
  border-left: 2px solid var(--pink);
  background: linear-gradient(110deg, rgba(232,164,184,.06), rgba(138,180,216,.04));
  color: var(--ink); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.canvas-entry:hover, .canvas-entry:focus-visible { border-color: var(--pink); background-color: rgba(232,164,184,.06); }
.canvas-entry-label { font-size: 11px; letter-spacing: .15em; color: var(--pink); }
.canvas-entry-title { font-family: var(--font-serif); font-size: 19px; line-height: 1.6; }
.canvas-entry-title span { margin-left: 18px; color: var(--blue); }
.canvas-entry-desc { font-size: 12px; color: var(--ink-60); line-height: 1.7; }
.blur-veil { filter: none; will-change: auto; }
.home-hero.is-paused .projector-sweep,
.home-hero.is-paused .blur-veil,
.home-hero.is-paused .scroll-hint-line::after { animation-play-state: paused !important; }
@media (max-width: 640px) {
  .canvas-entry { padding: 16px 18px; margin-top: 22px; }
  .canvas-entry-title { font-size: 17px; }
  .welcome-cta-row { flex-wrap: wrap; }
  .nav-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,20,28,.97); }
  .nav-bar.transparent { background: transparent; }
  .nav-bar { padding: 0 16px; gap: 16px; }
  .nav-brand { flex-shrink: 0; white-space: nowrap; font-size: 17px; }
  .nav-items { gap: 14px; min-width: 0; overflow-x: auto; align-items: center; scrollbar-width: thin; }
  .nav-item { flex-shrink: 0; }
  .nav-item-cn { white-space: nowrap; font-size: 12px; }
  .nav-item-num { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js-ready .fade-in, .char-stagger .char { opacity: 1 !important; transform: none !important; }
  .intro-inside-list li, .num-cell, .meta-swap { opacity: 1 !important; transform: none !important; }
  .meta-swap { animation: none !important; }
  html, html body, html * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Series videos are explicitly played, with native seeking/sound controls. */
.archive-video-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 20px; margin:0 0 72px; align-items:start; }
.archive-video-grid figure { margin:0; min-width:0; }
.archive-video-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:60px; height:60px; border-radius:50%; border:1px solid rgba(255,255,255,.7); background:rgba(20,20,28,.75); color:#fff; cursor:pointer; font-size:22px; }
.archive-video-retry { position:absolute; left:10px; right:10px; bottom:48px; border:1px solid var(--line); background:var(--paper); color:var(--ink); padding:12px; cursor:pointer; }
@media(max-width:900px) { .archive-video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .archive-video-grid { grid-template-columns:1fr; gap:32px; } }
