/* =========================================================
   style.css —— 极简杂志风 · 动效升级版
   参考 Awwwards 级工作室网站的体验语言：
   惯性滚动 / 逐字入场 / 图片揭示 / 视差 / 跑马灯 / 自定义光标
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #FAF9F6;            /* 暖纸白 */
  --bg-soft: #F1EDE4;       /* 奶油色块 */
  --ink: #2A2723;           /* 正文深灰（不用纯黑） */
  --ink-soft: #4A453E;
  --ink-title: #36322C;     /* 标题深灰，比正文更柔和 */
  --muted: #8A857C;
  --accent: #D2261E;        /* 可赞红（与 logo 同源 #D2261E，只作点缀） */
  --line: rgba(42, 39, 35, 0.12);
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 英文 / 数字标签：细衬线，克制但有设计感 */
  --en: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html { scroll-behavior: auto; }
/* 整站滚动条槽位常驻：页面内容高度变化导致滚动条出现/消失时，可视视口宽度不跳变(防横向抖) */
html { scrollbar-gutter: stable; }
/* 开场锁定：不用 overflow:hidden 隐藏滚动条，否则开场结束(移除 is-locked)瞬间
   垂直滚动条“从无到有”会让可视视口宽度突变约 15px → 整页向左抖一下。
   overflow-y:scroll 在锁定阶段也保留滚动条槽位，解锁后宽度不变，消除横向跳动。
   注：开场仅约 2.25s 且 preloader 全屏覆盖，锁定期间允许滚动无碍(内容仍在顶部)。 */
html.is-locked { overflow-y: scroll; }
html.no-scroll { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* 惯性滚动容器（桌面端由 JS 启用 html.smooth） */
#smoothWrapper { position: relative; }
html.smooth #smoothWrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
html.smooth #smoothContent { will-change: transform; }

/* ---------- 纹理噪点 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 400;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(1.5%, -1%); }
  100% { transform: translate(-1%, 1.5%); }
}

/* =========================================================
   开场加载 Preloader
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s var(--ease-io);
}
body.loaded .preloader { transform: translateY(-101%); }
body.loaded .preloader * { pointer-events: none; }
/* 站内跳转进入：head 内联脚本命中 wbSkip 会给 <html> 加 no-pre，从首字节起就不渲染 preloader，彻底杜绝跳转闪 logo 帧 */
html.no-pre .preloader { display: none !important; }

.pre-center { text-align: center; }
.pre-brand {
  font-family: var(--display);
  font-size: clamp(26px, 4.4vw, 50px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-title);
  animation: preName 1.4s var(--ease) both;
}
.pre-roles {
  margin-top: 14px;
  font-family: var(--en);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--muted);
  animation: preFade 1.2s 0.35s var(--ease) both;
}
@keyframes preName {
  from { opacity: 0; letter-spacing: 0.35em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.08em; filter: blur(0); }
}
@keyframes preFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* 红色细线：从左往右一次展开，无回弹无高光 */
.pre-rule {
  position: relative;
  width: clamp(140px, 20vw, 280px);
  height: 1px;
  margin: 30px auto 0;
  background: var(--line);
  overflow: hidden;
}
.pre-rule span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: preRule 1.1s 0.2s var(--ease) both;
}
@keyframes preRule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* ---------- 开场 E 版："可"外框淡入 + "口"手写描边 + "赞"撇捺手写 → kezan 靠过来 → 声调 Q 弹落下 ----------
   logo 为内联 SVG（build_logo_inline.py 生成）；行内 style 变量 --tx/--ty/--r/--d
   控制笔画的走向与节奏。可拆 口/外框两子路径；赞 #5 拆描边/填充两 path。"口"与"撇捺"
   用 stroke-dashoffset 做真实"书写"描边，再淡入填充，呈现手写感。v69 把「可」切成 4 条斜带
   被否 → v70 不切字 → D 版 clip-path 揭示 → E 版改为逐笔手写 */
.pre-logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: clamp(158px, 21vw, 216px);
  height: auto;
  overflow: visible;
}
/* 笔画通用起始态 */
.lg-p {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: strokeIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) both;
}
/* F 版：可 / 赞 整字逐笔描边写出，再上红填充 */
.lg-draw {
  fill: #D2261E;
  fill-opacity: 0;
  stroke: #D2261E;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: drawStroke 0.5s var(--ease) var(--d, 0s) both;
}
.lg-draw-stroke {
  fill: none;
  stroke: #D2261E;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: drawStrokeKeep 0.5s var(--ease) var(--d, 0s) both;
}
@keyframes drawStroke {
  0%   { stroke-dashoffset: var(--len); fill-opacity: 0; }
  60%  { stroke-dashoffset: 0; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
@keyframes drawStrokeKeep {
  0%   { stroke-dashoffset: var(--len); }
  100% { stroke-dashoffset: 0; }
}
@keyframes strokeIn {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, 0deg)) scale(0.96);
  }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
/* kezan 字母：同样从四面八方、距离不远地轻轻聚合（小位移，非大跨度"靠过来"） */
.lg-letter {
  animation-name: converge;
  animation-duration: 0.56s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* 声调：最后从上方落下，弹两下——第一下明显，第二下很细微 */
.lg-tone {
  --d: 1.05s;
  animation-name: toneBounce;
  animation-duration: 0.72s;
  animation-timing-function: cubic-bezier(0.25, 1.5, 0.4, 1);
}
@keyframes toneBounce {
  0%   { opacity: 0; transform: translateY(-46px) scale(1.5) rotate(16deg); }
  16%  { opacity: 1; transform: translateY(10px) scale(0.78) rotate(-4deg); }
  46%  { opacity: 1; transform: translateY(-25px) scale(1.27) rotate(2deg); }
  66%  { opacity: 1; transform: translateY(4px) scale(0.9); }
  82%  { opacity: 1; transform: translateY(-9px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
/* ===== 「可赞」笔画：从各自方位（四面八方、距离不远）轻轻缩小聚拢而来 =====
   主笔（.lg-g）从四面八方轻聚，次笔（.lg-g-static）安静原位淡入 → 主次分明。
   每笔方位/幅度由行内 --tx/--ty/--sc 决定（见 @keyframes converge），--d 为延迟、--dur 为时长。 */
.lg-g {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: converge var(--dur, 0.72s) cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both;
}
@keyframes converge {
  0%   { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--sc, 1.18)); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
/* 「可赞」次要笔画：不位移、安静淡入（主次分明，避免所有笔一起动太碎） */
.lg-g-static {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: fadeRest var(--dur, 0.72s) cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both;
}
@keyframes fadeRest {
  0%   { opacity: 0; filter: blur(0.8px); transform: scale(1.01); }
  55%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
/* 下方 slogan：灰色排版，安静淡入（字号放大、间距收近、颜色加深、延迟稍提前） */
.pre-slogan {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #6E6A61;
  opacity: 0;
  animation: preFade 0.5s 1.6s var(--ease) both;
}
/* 底部红色进度条（v69 补回：替换 B 版块时误删） */
.pre-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.pre-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: preBarGrow 1.1s var(--ease) both;
}
@keyframes preBarGrow {
  from { width: 0; }
  to   { width: 100%; }
}
/* 左下角：衬线小字 Loading */
.pre-tip {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 3vw, 44px);
  font-family: var(--en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--muted);
  animation: preFade 1s 0.45s var(--ease) both;
}
/* 老版 preloader（design/photography/tools/about）内嵌红色 logo 图：
   默认必须透明，再由入场动画淡入。否则站内跳转（点工具/设计/关于）进入新页时，
   body 底部 JS 尚未执行、preloader 尚未被 wbSkip 隐藏前，这个 logo 会整块闪现一帧。 */
.pre-logo {
  /* 必须显式定位+尺寸：logo-red.svg 无 width/height 属性，
     裸放 flex 里会被拉伸到近整屏宽（2026-09-08 线上事故） */
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 3vw, 44px);
  height: 30px;
  width: auto;
  opacity: 0;
  animation: preFade 0.55s 0.05s var(--ease) both;
}
/* reduced-motion：笔画直接就位，无位移无 Q 弹 */
@media (prefers-reduced-motion: reduce) {
  .lg-p { animation: none; opacity: 1; transform: none; filter: none; }
  .lg-g { animation: none; opacity: 1; transform: none; filter: none; }
  .lg-g-static { animation: none; opacity: 1; transform: none; filter: none; }
  .lg-draw { animation: none; opacity: 1; fill-opacity: 1; stroke-dashoffset: 0; }
  .lg-draw-stroke { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .pre-slogan { animation: none; opacity: 1; }
  .pre-logo { animation: none; opacity: 1; }
}
/* ===== 电脑版微信（XWEB 内核）兼容降级 =====
   XWEB 对「SVG path + CSS 变量 transform 关键帧」的逐帧插值不兼容，
   会跳过中间帧直接把笔画落到终值（表现：logo 完整但毫无生长动画）。
   命中 html.xwb 时改走纯 opacity 逐笔淡入（保留 --d 错落节奏），
   opacity 动画在内核里最可靠；同时去掉 transform-box / translate 位移依赖。 */
@keyframes xwbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* 基础态置为可见（动画 from 自行淡入）；若内核连 opacity 动画都不认，仍显示完整静态 logo，绝不空白。
   html.xwb:not(.xwb-js) —— 未启用 JS 引擎(降级淡入)时生效；.xwb-js 代表 xwb-anim.js 正在逐帧驱动笔画，
   此时这些 transform:none !important / opacity:1 会与 JS 打架，必须排除。 */
html.xwb:not(.xwb-js) .lg-g,
html.xwb:not(.xwb-js) .lg-p,
html.xwb:not(.xwb-js) .lg-g-static,
html.xwb:not(.xwb-js) .lg-letter,
html.xwb:not(.xwb-js) .lg-tone,
html.xwb .pre-slogan,
html.xwb .pre-tip {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}
/* 可赞/kezan 逐字错落淡入：用错落的 --d 保留「先后浮现」节奏，不用 transform 聚拢（XWEB 不支持 SVG transform 插值） */
html.xwb:not(.xwb-js) .lg-g,
html.xwb:not(.xwb-js) .lg-g-static,
html.xwb:not(.xwb-js) .lg-letter { animation: xwbFade 0.55s ease-out var(--d, 0s) both; }
/* 声调在 1.05s 后单独落下淡入，保留「最后出场」节奏 */
html.xwb:not(.xwb-js) .lg-tone { animation: xwbFade 0.55s 1.05s ease-out both; }
html.xwb:not(.xwb-js) .lg-draw,
html.xwb:not(.xwb-js) .lg-draw-stroke { opacity: 1; fill-opacity: 1; stroke-dashoffset: 0; }
html.xwb .pre-slogan { animation: xwbFade 0.5s 1.6s ease-out both; }
html.xwb .pre-tip { animation: xwbFade 0.5s ease-out both; }

/* 加载完成后角落元素淡出 */
body.loaded .pre-logo,
body.loaded .pre-tip { opacity: 0; transition: opacity 0.3s; }

/* =========================================================
   站内页面切换：淡淡的淡出 / 淡入（不播加载动画）
   ========================================================= */
body.page-leave { animation: pageLeave 0.24s var(--ease) both; }
@keyframes pageLeave {
  from { opacity: 1; }
  to   { opacity: 0; }
}
body.page-enter { animation: pageEnter 0.55s var(--ease) both; }
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* 站内切换时导航不再重复滑入动画，直接显示（.nav 默认 opacity:0，必须显式给回最终状态） */
body.loaded.page-enter .nav { animation: none; opacity: 1; transform: none; }

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px clamp(20px, 4vw, 64px) 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.45s, padding 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
  /* 暖纸白毛玻璃（正文深灰 + 红色 logo 作点缀） */
  background: rgba(250, 249, 246, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-16px);
}
body.loaded .nav { animation: navIn 0.9s 0.35s var(--ease) both; }
@keyframes navIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
.nav.scrolled {
  background: rgba(250, 249, 246, 0.93);
  box-shadow: 0 2px 24px rgba(42, 39, 35, 0.06);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 12px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 左上角品牌 logo（红色字标版，配浅色导航栏） */
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
/* 品牌红点缀（VI 色，仅作点缀，主色仍为墨黑） */
.nav-logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
  margin-left: -5px;
}
.nav-brand-en {
  font-family: var(--en);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-links a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-io);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--ink); }

/* =========================================================
   通用揭示动画
   ========================================================= */
/* 逐字/逐词遮罩揭示（JS 拆分 data-split 元素） */
.wm { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.05s var(--ease);
}
.in-view .wi { transform: translateY(0); }

/* 上浮淡入 */
.fade-in {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 图片揭示（配合内部 img 缩放回落） */
.media { overflow: hidden; background: var(--bg-soft); position: relative; }
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  transition: transform 1.35s var(--ease);
}
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-io);
}
.img-reveal.visible { clip-path: inset(0 0 0 0); }
.img-reveal.visible .media img { transform: scale(1); }

/* 细线从左到右生长 */
.line-grow {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-io);
}
.line-grow.visible { transform: scaleX(1); }

/* =========================================================
   主页 Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  /* 给定确定高度，视频画布才能按需收缩：
     视口越矮，先压缩画布，保证下方两个入口卡始终完整落在首屏内 */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 顶部留白收紧，保证常见视口下两个入口卡完整落在首屏内 */
  padding: 116px clamp(20px, 4vw, 64px) 32px;
  position: relative;
}
.hero-kicker {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 3vh;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-kicker::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--accent);
}
/* ---------- 首屏主视觉：静音循环视频 ---------- */
.hero-canvas {
  position: relative;
  /* 视频原生 1470×630（约 21:9），画布给足高度以减少 cover 裁切。
     flex:1 1 auto → 高视口可长到填满，矮视口自动让位给入口卡（下限 150px） */
  flex: 1 1 auto;
  height: clamp(240px, 45vh, 500px);
  min-height: 150px;
  margin: clamp(14px, 2.2vh, 30px) 0 clamp(14px, 2.2vh, 28px);
  overflow: hidden;
  border-radius: 2px;
  background: #E7E3DC;
}
/* 视频：铺满裁切，静音循环；底色与画布同色，防移动端内核给 video 默认黑底 */
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #E7E3DC;
}
/* ---------- 视频未就位 / 加载失败：米色底虚线框 ---------- */
.hero-canvas.media-fail::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(42, 39, 35, 0.16);
  border-radius: 2px;
  pointer-events: none;
}
/* ---------- 移动端兜底：视频没播起来 → 直接铺 poster 静态画面 ----------
   部分手机内核（微信 / 低电量模式 / 省流）会拒绝自动播放并显示黑块；
   JS 检测到未播放会加 .media-fallback，这里撤掉 video 换成同帧静态图，视觉几乎无差别 */
.hero-canvas.media-fallback .hero-video { display: none; }
.hero-canvas.media-fallback {
  background-image: url("../assets/img/hero-poster.jpg?v=4");
  background-size: cover;
  background-position: center;
}
/* ---------- 播放按钮：仅当视频可播却被暂停（iOS 微信禁止静默自动播放）时显示 ---------- */
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: rgba(42, 39, 35, 0.42);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
  z-index: 3;
}
.hero-canvas.show-play .hero-play { display: flex; }
.hero-play:hover { background: rgba(42, 39, 35, 0.6); transform: translate(-50%, -50%) scale(1.05); }
.hero-play svg { margin-left: 3px; }
/* 屏幕阅读器专用（隐藏但保留语义，如首屏 h1） */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 入口卡片（磁吸 + 底部红线从左展开） */
.hero-cta {
  flex: 0 0 auto;
  margin-top: clamp(20px, 3.4vh, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.4s, background 0.4s;
  will-change: transform;
}
/* 悬停：只有一条红线贴着底边展开，红色面积克制 */
.cta-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-io);
}
.cta-card:hover::after { transform: scaleX(1); }
.cta-card:hover {
  border-color: rgba(210, 38, 30, 0.38);
  background: rgba(210, 38, 30, 0.025);
}
.cta-card > * { position: relative; z-index: 1; transition: color 0.35s, transform 0.5s var(--ease); }
.cta-index {
  font-family: var(--en);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.cta-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.06em;
  display: block;
}
.cta-desc {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 6px;
  transition: color 0.35s;
}
.cta-arrow {
  font-size: 22px;
  font-weight: 300;
}
.cta-card:hover .cta-title { color: var(--ink); }
.cta-card:hover .cta-arrow { color: var(--accent); }
.cta-card:hover .cta-arrow { transform: translateX(6px); }
/* 磁吸跟手（覆盖入场过渡） */
.cta-card.visible { transition: transform 0.3s ease-out, border-color 0.4s; }

/* =========================================================
   跑马灯 Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: mq 26s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.marquee-track > span {
  display: flex;
  align-items: baseline;
  gap: clamp(28px, 4vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 0.16em;
}
.marquee-track i {
  font-family: var(--en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  color: var(--accent);
  letter-spacing: 0.05em;
}
@keyframes mq {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* =========================================================
   通用区块
   ========================================================= */
.section {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 64px) 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink-title);
}
.section-title-en {
  font-family: var(--en);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.section-rule {
  height: 1px;
  background: var(--line);
  margin-top: clamp(40px, 8vh, 90px);
}

/* ---------- 精选作品 ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 4px;
  grid-auto-flow: row dense;
  align-items: start;
  gap: clamp(28px, 5vw, 90px) clamp(20px, 3vw, 48px);
}
.featured-item {
  display: block;
  text-align: left;
  width: 100%;
  grid-row-end: span 90;
}
.featured-item .featured-media {
  aspect-ratio: 4 / 3;
  display: block;
}
.featured-item.featured-work .featured-media { aspect-ratio: 3 / 4; }
.featured-item.visible .featured-media img { transform: scale(1); }
.featured-item.visible:hover .featured-media img { transform: scale(1.05); }
.featured-info {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.featured-title {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 400;
  position: relative;
}
.featured-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-io);
}
.featured-item:hover .featured-title::after { transform: scaleX(1); transform-origin: left; }
.featured-tag {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.22em;
  white-space: nowrap;
}
.featured-more {
  margin-top: clamp(56px, 9vh, 110px);
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 96px);
  flex-wrap: wrap;
}
.featured-more a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.18em;
  padding: 10px 0;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.featured-more a::before {
  content: "→ ";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.4s var(--ease);
  display: inline-block;
}
.featured-more a:hover { color: var(--accent); }
.featured-more a:hover::before { transform: translateX(6px); }

/* =========================================================
   列表页头部
   ========================================================= */
.page-head {
  padding: clamp(160px, 24vh, 240px) clamp(20px, 4vw, 64px) clamp(40px, 7vh, 80px);
}
.page-head-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 18px;
}
.page-head-kicker::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--accent);
}
.page-title {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink-title);
}
.page-desc {
  margin-top: 26px;
  max-width: 36em;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-soft);
}

/* ---------- 工具页列表 ---------- */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1080px;
  padding: 0 clamp(20px, 4vw, 64px) clamp(100px, 16vh, 180px);
}
.tool-note {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 clamp(20px, 4vw, 64px) clamp(40px, 6vh, 64px);
}
.filter-btn {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 8px 2px;
  transition: color 0.3s;
}
.filter-btn::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-io);
}
.filter-btn:hover, .filter-btn.active { color: var(--ink); }
.filter-btn:hover::after, .filter-btn.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 设计作品网格（三栏，横版跨列放大；行跨度瀑布流消除空隙） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  grid-auto-flow: row dense;
  gap: clamp(48px, 8vh, 110px) clamp(20px, 3vw, 48px);
  padding: 0 clamp(20px, 4vw, 64px) clamp(100px, 16vh, 180px);
  align-items: start;
}
.work-card { text-align: left; width: 100%; display: block; grid-row-end: span 90; }
.work-card .work-media { aspect-ratio: 3 / 4; display: block; }
/* 横版封面（ratio: "wide"）跨两列、超宽围挡（ratio: "banner"）跨整行，按真实比例放大，不再是小而矮的窄条 */
.grid .work-card.wide { grid-column: span 2; }
.grid .work-card.banner { grid-column: 1 / -1; }
.work-card.wide .work-media { aspect-ratio: 16 / 9; }
.work-card.banner .work-media { aspect-ratio: 23 / 7; }
.work-card.visible .work-media img { transform: scale(1); }
.work-card.visible:hover .work-media img { transform: scale(1.06); }
.work-num {
  font-family: var(--en);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  display: block;
  margin-top: 18px;
}
.work-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.work-title {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 400;
  position: relative;
}
.work-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-io);
}
.work-card:hover .work-title::after { transform: scaleX(1); transform-origin: left; }
.work-meta {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.empty-tip {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--en);
  font-style: italic;
  font-size: 18px;
}

/* ---------- 摄影瀑布流（行跨度瀑布流：保持 1,2,3 横排顺序 + 无空隙） ---------- */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  grid-auto-flow: row dense;
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
  padding: 0 clamp(20px, 4vw, 64px) clamp(100px, 16vh, 180px);
}
.photo-card {
  display: block;
  width: 100%;
  text-align: left;
  grid-row-end: span 90;
}
.photo-media { display: block; }
.photo-media img { width: 100%; height: auto; }
.photo-card.visible .photo-media img { transform: scale(1); }
.photo-card.visible:hover .photo-media img { transform: scale(1.04); }
.photo-info {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.photo-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}
.photo-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

/* =========================================================
   关于页
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(48px, 7vw, 110px);
  padding: 0 clamp(20px, 4vw, 64px) clamp(110px, 18vh, 200px);
}
.about-intro {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink-title);
}
.about-body {
  margin-top: 30px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 40em;
}
.about-skills { margin-top: 56px; }
.about-subtitle {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-subtitle::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--accent);
}
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.skill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.skill-list li:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-contact {
  display: inline-block;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  padding: 18px 44px;
  font-size: 14px;
  letter-spacing: 0.24em;
  border-radius: 999px;
  will-change: transform;
}
.btn-contact::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 250%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.55s var(--ease-io);
}
.btn-contact span { position: relative; z-index: 1; transition: color 0.35s; }
.btn-contact:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn-contact:hover span { color: #fff; }
/* 磁吸跟手（覆盖入场过渡） */
.btn-contact.visible { transition: transform 0.3s ease-out; }

.about-portrait { position: relative; }
.about-portrait .media {
  aspect-ratio: 3 / 4;
  filter: saturate(0.92);
}
.portrait-caption {
  margin-top: 16px;
  font-family: var(--en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* =========================================================
   页脚
   ========================================================= */
.footer { margin-top: clamp(90px, 14vh, 160px); }
.footer-marquee { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); }
.footer-marquee .marquee-track { animation-duration: 20s; }
.footer-marquee span {
  font-size: clamp(16px, 2vw, 24px);
  color: var(--muted);
  font-family: var(--en);
  font-style: italic;
  letter-spacing: 0.14em;
}
.footer-inner {
  padding: clamp(48px, 8vh, 90px) clamp(20px, 4vw, 64px) 36px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
}
.footer-giant {
  font-family: var(--sans);
  /* 中文整句 10 字：字号按一行刚好放下控制（10.6em ≈ 容器 92vw） */
  font-size: clamp(30px, 7vw, 118px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.06em;
  color: var(--ink-title);
  white-space: nowrap;
}
.footer-giant .wi { transition-duration: 1.3s; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-brand { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.06em; }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.footer-contact .dot { color: var(--accent); }
.footer-contact a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.footer-contact a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-io);
}
.footer-contact a:hover { color: var(--ink); }
.footer-contact a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-copy { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }

/* =========================================================
   Lightbox
   ========================================================= */
/* 注册 --slide-w 使其可被 transition 插值：横竖画幅切换时
   轨道宽度与位移同步过渡，当前图保持居中平滑缩放，不跳动 */
@property --slide-w {
  syntax: "<length>";
  inherits: true;
  initial-value: 620px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 234, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lb-stage {
  position: relative;
  width: min(1060px, 88vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.55s var(--ease);
}
.lightbox.open .lb-stage { transform: none; }
/* 系列轮播轨道：当前图大而清晰居中，相邻图缩小隐约露出 */
.lb-track {
  --slide-w: min(620px, 46vw);
  --slide-gap: clamp(24px, 3.5vw, 60px);
  width: 100%; /* 关键：与舞台同宽并从左缘起排，margin-left 才能准确把当前图居中 */
  display: flex;
  align-items: center;
  gap: var(--slide-gap);
  margin-left: calc((100% - var(--slide-w)) / 2);
  transform: translateX(calc(var(--i, 0) * (var(--slide-w) + var(--slide-gap)) * -1));
  /* --slide-w 与 transform 同步过渡：画幅切换(如横图 620→1120px)时当前图保持居中平滑缩放,不会扫过中间画面 */
  transition: transform 0.72s var(--ease), --slide-w 0.72s var(--ease);
  will-change: transform;
}
.lb-slide {
  margin: 0;
  flex: 0 0 var(--slide-w);
  height: min(66vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
  transform: scale(0.58);
  filter: blur(5px) saturate(0.7);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(22, 19, 15, 0.18);
  border-radius: 2px;
}
.lb-slide.active { opacity: 1; transform: scale(1); filter: none; }
.lb-slide.active img { box-shadow: 0 36px 100px rgba(22, 19, 15, 0.28); }
/* 横版 / 超宽围挡作品（JS 按作品 ratio 给 lightbox 加模式类）：电脑端主图放大看得清 */
.lightbox.lb-wide .lb-stage { width: min(1240px, 92vw); }
.lightbox.lb-wide .lb-track { --slide-w: min(920px, 74vw); }
.lightbox.lb-wide .lb-slide { height: min(72vh, 780px); }
.lightbox.lb-banner .lb-stage { width: min(1500px, 94vw); }
.lightbox.lb-banner .lb-track { --slide-w: min(1320px, 88vw); }
.lightbox.lb-banner .lb-slide { height: min(56vh, 560px); }
/* 图片级横版自适应：混合画幅系列里的单张横图（如 2:1 扁图），比 wide 再大一档 */
.lightbox.lb-horiz .lb-stage { width: min(1460px, 95vw); }
.lightbox.lb-horiz .lb-track { --slide-w: min(1120px, 87vw); }
.lightbox.lb-horiz .lb-slide { height: min(78vh, 860px); }
/* 设计页（电脑端）：横版图点开再大一档，主图更宽更清楚 */
@media (min-width: 1025px) {
  body[data-page="design"] .lightbox.lb-horiz .lb-stage { width: min(1600px, 92vw); }
  body[data-page="design"] .lightbox.lb-horiz .lb-track { --slide-w: min(1300px, 88vw); }
  body[data-page="design"] .lightbox.lb-horiz .lb-slide { height: min(78vh, 860px); }
  body[data-page="design"] .lightbox.lb-wide .lb-stage { width: min(1400px, 90vw); }
  body[data-page="design"] .lightbox.lb-wide .lb-track { --slide-w: min(1060px, 84vw); }
  body[data-page="design"] .lightbox.lb-wide .lb-slide { height: min(76vh, 820px); }
  body[data-page="design"] .lightbox.lb-banner .lb-stage { width: min(1660px, 94vw); }
  body[data-page="design"] .lightbox.lb-banner .lb-track { --slide-w: min(1400px, 90vw); }
  body[data-page="design"] .lightbox.lb-banner .lb-slide { height: min(58vh, 600px); }
}
.lb-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.lb-thumb {
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.3s;
}
.lb-thumb img { height: 100%; width: auto; display: block; object-fit: cover; }
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb.active { opacity: 1; }
.lb-caption {
  margin-top: 22px;
  text-align: center;
  max-width: 46em;
}
.lb-title { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; display: block; }
.lb-meta { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0.16em; color: var(--accent); }
.lb-desc { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 10;
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250, 249, 246, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--accent);
  color: #fff;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 641px) and (max-width: 1024px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 480px; }
  .hero-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #grid { grid-template-columns: 1fr; }
  .grid .work-card.wide,
  .grid .work-card.banner { grid-column: auto; }
  .masonry { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .hero-cta { grid-template-columns: 1fr; }
  .cta-card { padding: 20px 24px; }
  .cta-title { font-size: 20px; white-space: nowrap; }
  .cta-desc { font-size: 12px; }
  .nav { padding: 16px 20px 12px; }
  /* 手机端不锁死高度（地址栏会改变视口），画布保持横幅比例不参与伸缩 */
  .hero { padding-top: 120px; height: auto; }
  /* 手机竖屏：画布压成横幅比例，减少 21:9 视频被横向裁掉的量 */
  .hero-canvas { height: clamp(170px, 24vh, 230px); flex: 0 0 auto; }
  .lb-track { --slide-w: 76vw; --slide-gap: 14px; }
  /* 移动端横版/超宽同样放宽主图宽度（覆盖上面桌面模式的 74vw/88vw） */
  .lightbox.lb-wide .lb-track, .lightbox.lb-banner .lb-track, .lightbox.lb-horiz .lb-track { --slide-w: 88vw; }
  .lb-slide { height: 54vh; }
  .lb-thumb { height: 38px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  /* 页脚中文大标语：窄屏收字号，保证一行放得下 */
  .footer-giant { font-size: clamp(21px, 7.6vw, 30px); letter-spacing: 0.05em; }
  /* 手机端开场画面：preloader 内整块（logo + slogan）整体上移到视觉黄金点（避开偏中下） */
  .pre-center { margin-top: -6vh; }
  /* 关于页移动端：单列 + 舒适字号 */
  .about {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 20px clamp(64px, 14vh, 110px);
  }
  .about-portrait { max-width: 320px; margin: 0 auto; width: 100%; order: -1; }
  .about-intro { font-size: 20px; }
  .about-body { font-size: 15px; }
  .about-skills { margin-top: 40px; }
  .btn-contact {
    width: 100%;
    text-align: center;
    padding: 16px 32px;
    margin-top: 40px;
  }
  .page-head { padding: clamp(120px, 18vh, 180px) 20px clamp(32px, 6vh, 60px); }
  .page-title { font-size: clamp(36px, 10vw, 48px); }
  .page-head-kicker { font-size: 14px; gap: 12px; }
  .page-head-kicker::before { width: 32px; }
}

/* 极矮视口（如 1366×768 开了书签栏）：不再压缩画布，改为自然滚动，避免内容重叠 */
@media (max-height: 560px) {
  .hero { height: auto; }
  .hero-canvas { flex: 0 0 auto; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* 跑马灯字幕是装饰性元素，豁免：避免被压成 0.01ms 瞬间闪跳（抽风/残影的根因） */
  .marquee-track {
    animation-duration: 26s !important;
  }
  .footer-marquee .marquee-track {
    animation-duration: 20s !important;
  }
  .wi, .fade-in { transform: none; opacity: 1; }
  .img-reveal { clip-path: none; }
  /* 首屏视频是用户指定的主视觉内容，不因减少动效偏好而隐藏，保持正常播放 */
}
