/* =========================================================
   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; }
/* 关掉系统默认的"点击高亮"（安卓 Chrome / 微信 WebView 会在被点元素上刷一层半透明蓝灰）——
   2026-09-13 逐帧取证：点开一组图时，这张高亮会盖在被点的卡片上约 100–150ms，
   整张图明显"发蓝发灰"（红海报实测 R105,G28,B26 → R82,G88,B107），
   正好压在打开动画的起手帧上 → 用户感觉"点开时的动画有点问题"。
   关掉后同一帧实测 R104.5,G26.9,B25.0（与点击前一致）。
   卡片自己已有 hover/按下微交互，不需要系统这层闪光。 */
* { -webkit-tap-highlight-color: transparent; }
/* 整站滚动条槽位常驻：页面内容高度变化导致滚动条出现/消失时，可视视口宽度不跳变(防横向抖) */
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;
  /* ⚠️ 关闭后整层不接收点击（含 0.4s 淡出窗口）：否则那层 opacity 已到 0、但
     visibility 仍是 visible 的全屏遮罩仍会吃掉紧接着落在卡片上的第一次点击，
     用户感觉"第一次点点不进去、再点一次才行"。打开时由 .open 恢复可点。 */
  pointer-events: none;
  /* 入场：背景 0.4s 缓慢淡入盖住底层 → stage 0.62s 从容放大上浮 → caption 0.5s 跟上，整段连贯有层次 */
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
/* —— 触摸手势归属声明（手机端"横滑翻页/下滑退出"都是自绘手势）——
   不声明的话，竖向拖动会被浏览器当成页面滚动/下拉刷新，浏览器随即给页面发 touchcancel，
   跟手动画就永久停在半途（用户描述："往下滑卡到一个固定位置"）。
   ⚠️ 只给"实现手势的那几块"写 none，绝不要写在整个 .lightbox / .lb-stage 上：
   touch-action 沿祖先链取交集，写在外层会把 .lb-thumbs 的横向原生滚动一起禁掉。 */
.lb-backdrop, .lb-track, .lb-slide, .lb-caption,
.lb-close, .lb-prev, .lb-next { touch-action: none; }
.lb-thumbs { touch-action: pan-x; }
/* 长按图片会弹"保存图片"菜单并中断手势 → 关掉长按菜单与原生图片拖拽 */
.lb-slide img, .lb-thumb img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.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;
  /* 起点更明显一点（从 ~88% 放大到位 + 上抬 32px），用 easeOutQuart 让前段稍慢、整段更从容 --
     之前 easeOutQuint (--ease) 头 0.15s 就跑过 50%，人眼根本感受不到"展开"；
     will-change 提 GPU */
  transform: translateY(32px) scale(0.88);
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.25, 1, 0.4, 1), opacity 0.55s cubic-bezier(0.25, 1, 0.4, 1);
  will-change: transform, opacity;
}
.lightbox.open .lb-stage { transform: none; opacity: 1; }
/* 系列轮播轨道：当前图大而清晰居中，相邻图缩小隐约露出 */
.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 已用 @property 注册为 <length>，这里是"真插值"过渡：
     画幅切换(620→1060px)时当前图居中平滑缩放、不扫屏。翻页手感靠它。
     ⚠️ 但飞行(共享元素过渡)期间必须冻结它(见 .lightbox.lb-snap .lb-track)：
     否则点开宽幅作品时，起跳瞬间画幅还在旧的 620px，量到的飞行终点偏小一半，
     落地后真图已变成 1060px → 用户看到"飞过去的大小不对"。 */
  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;
  /* 缩窄初始态差距(原 0.12/0.58/blur5/saturate0.7 → 现 0.45/0.86/blur3/saturate0.85)，
     移动端避免 filter:blur 5px 过渡卡帧；同时让 slide 与 stage 同节奏，整段同步化。
     缓动与 stage 一致 cubic-bezier(0.25,1,0.4,1)，让图跟舞台一起"从容展开"。 */
  opacity: 0.45;
  transform: scale(0.86);
  filter: blur(3px) saturate(0.85);
  transition: opacity 0.62s cubic-bezier(0.25, 1, 0.4, 1), transform 0.62s cubic-bezier(0.25, 1, 0.4, 1), filter 0.62s cubic-bezier(0.25, 1, 0.4, 1);
}
.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;
  /* 图片加载完后再淡入，避免打开时主图在 slide 透明度/缩放过渡中突然"蹦"出。
     缓动与 stage 一致 cubic-bezier(0.25,1,0.4,1)，让图跟舞台同一节奏。 */
  opacity: 0;
  /* transform 也进过渡：点当前图"放到最大"是给这张图加 translate+scale 变形（见 .lb-zoom），
     必须与 opacity 同一份 transition，否则放大那一下是硬跳 */
  transition: opacity 0.55s cubic-bezier(0.25, 1, 0.4, 1), box-shadow 0.55s cubic-bezier(0.25, 1, 0.4, 1), transform 0.46s cubic-bezier(0.25, 1, 0.4, 1);
}
.lb-slide img.loaded { opacity: 1; }
.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); }
/* —— 「再点一次放到最大」：点当前主图 → 图按视口最大化、四周 chrome 淡出（再点 / 滑动 / 退出还原）——
   实现要点：**绝不改布局尺寸**（改 --slide-w / slide 高度会让 8 张 slide 重排、图片逐帧重排 = 卡），
   而是给当前这张图一个 translate+scale 的合成层变形，几何由 JS 精确算：
   目标中心 = 视口中心，尺寸上限 = 可用视口（含安全区留边）。全程只剩合成器动画。 */
.lightbox.lb-zoom .lb-slide.active { position: relative; z-index: 3; }
.lightbox.lb-zoom .lb-slide.active img { will-change: transform; box-shadow: none; }
/* 相邻预览图淡出：否则放大的图会与它们叠在一起（模糊的邻图糊在主图上） */
.lightbox.lb-zoom .lb-slide:not(.active) { opacity: 0; }
/* 缩略条 / 标题说明 / 翻页箭头一并退场，让"最大"是纯粹的一张图。
   ⚠️ 说明那一条必须写成 .lightbox.open.lb-zoom：`.lightbox.open .lb-caption{opacity:1}`
   写在更靠后的位置且特异性相同，只写 .lightbox.lb-zoom 会被它盖掉 →
   放大后标题文字仍留在图下方（2026-09-13 实测 capOp=1）。 */
.lightbox.lb-zoom .lb-thumbs,
.lightbox.open.lb-zoom .lb-caption,
.lightbox.lb-zoom .lb-prev,
.lightbox.lb-zoom .lb-next { opacity: 0; pointer-events: none; }
/* 横版 / 超宽围挡作品（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;
  transition: opacity 0.3s var(--ease);   /* 进/出"放到最大"时缩略条淡入淡出 */
}
.lb-thumb {
  height: 46px;
  width: 64px;   /* 必须钉死：auto 宽度随图片加载逐张变宽 → 缩略条换行数变化 → stage 高度漂移，
                    飞行图落点会与真图错位(实测 24px)；固定宽高后布局从第 0 帧就稳定 */
  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: 100%; 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;
  /* 标题/描述在 stage 接近到位后再轻微上浮淡入，节奏更丝滑有层次。
     延迟缩短到 0.12s 让文字紧跟 stage，避免节奏被切得太散 */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.4, 1) 0.12s, transform 0.5s cubic-bezier(0.25, 1, 0.4, 1) 0.12s;
}
.lightbox.open .lb-caption { opacity: 1; transform: none; }
/* —— 共享元素"飞行图"(ghost)：点开时把被点的那张封面平滑飞到中央位置 ——
   它独立于轮播(.lb-track/.lb-slide)之外、悬浮在舞台之上，尺寸/坐标由 JS 按 FLIP 思路设置，
   用 transform 做位移动画(合成层丝滑)，到达后淡出让位给下方真正的居中大图。
   pointer-events:none 保证它绝不挡住关闭/翻页等点击。 */
.lb-ghost {
  position: fixed;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0;              /* JS 显示时置 1 */
  z-index: 30;             /* 高于 backdrop/stage/按钮，飞在最上层 */
  transform-origin: 0 0;   /* 左上角为基准，方便用 translate+scale 做 FLIP */
  will-change: transform, opacity;
}
.lb-ghost img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* 飞行期间：让舞台/轮播的真实图"即刻就位"(跳过缩放展开过渡)，
   既不抢飞行图的镜，也保证能精确量到终点矩形做 FLIP。
   落地后随即移除本类，不影响后续轮播/翻页的过渡。 */
.lightbox.lb-snap .lb-stage,
.lightbox.lb-snap .lb-slide,
.lightbox.lb-snap .lb-track { transition: none !important; }
.lightbox.lb-snap .lb-slide img { transition: opacity 0.55s cubic-bezier(0.25, 1, 0.4, 1); }
.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, opacity 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; }
  /* --- 手机端单列：彻底关掉「按测量高度算跨行」的瀑布流（2026-09-11 真机实测定案）---
     桌面三栏靠 JS 把每张卡高度量化成「4px 行 × 跨行数」来消除行内空隙，但跨行
     量化是个放大器：行间距用的是 clamp(48px,8vh,110px)，微信工具栏收起/展开时
     视口高度在 688↔774 之间变化 → 8vh 从 55px 变 62px → 每张卡的跨行数整体 ±1
     → 13 张卡合计页面高度跳 ±900px（真机探针实测 −905/+922/≥999）。页面高度突变
     会让浏览器钳制滚动位置，体感就是「滑到一半卡在固定位置 / 往回弹」。
     手机端是单列，本来不需要跨行；改为 auto 行高后页面高度只由内容真实高度决定，
     与 vh、字体加载时序、图片加载时序全部解耦。行间距同时钉成固定值（不再用 vh）。 */
  /* 只有 #grid 的行间距用了 vh（clamp(48px,8vh,110px)），必须钉成固定值；
     摄影页/首页的间距本来就是 vw 基准，保持原样不动。 */
  #grid { grid-auto-rows: auto; row-gap: 60px; }
  #masonry, #featuredGrid { grid-auto-rows: auto; }
  #grid .work-card,
  #masonry .photo-card,
  #featuredGrid .featured-item { grid-row-end: auto !important; }
  /* --- 作品卡说明区：手机端改为「标题 / 说明」确定性上下堆叠 ---
     350px 宽下标题+说明挤一行必然折行，而折行与否取决于 Noto Sans SC(Google Fonts,
     大陆加载慢, display=swap)是否已换装——换装瞬间每张卡 +33px、下方内容整体下移，
     滚动中就是一次"卡到固定的位置"。堆叠后高度与字体时序彻底解耦，永不再跳。 */
  .work-info { display: block; }
  .work-meta { display: block; margin-top: 3px; }
  /* --- 手机端图片揭示：不用 clip-path，改纯 opacity 淡入 ---
     iOS WKWebView(微信)对 clip-path 过渡有渲染残留：过渡未完成时整图一直停留在
     裁剪态=封面永远空白(2026-09-11 用户 iPhone 实拍复现：卡片标题已显示、图区全白)，
     且逐帧裁剪重绘在移动 GPU 上昂贵。淡入 + 内部图 scale 回落，视觉几乎一致。 */
  .img-reveal { clip-path: none; opacity: 0; transition: opacity 0.55s var(--ease); }
  .img-reveal.visible { clip-path: none; opacity: 1; }
  .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; }
  /* --- iOS 滚动顺畅化（2026-09-11）：两个常驻合成层杀手，iPhone 滚动掉帧元凶 ---
     1) .grain 是 inset:-50% 的 200%×200% 固定层 + 0.9s 无限 transform 动画：iPhone 上等于
        常驻 4 倍屏面积的合成层每 0.45s 重栅格化一次，且每个滚动帧都要带着它合成。
        噪点本就只有 5% 不透明度，手机端直接关掉，肉眼几乎无差别。
     2) .nav 毛玻璃 backdrop-filter:blur(16px)：iOS WKWebView 滚动时每帧都要对导航底下
        的整条内容重新模糊，是 iOS 滚动卡顿最经典的来源。改为近实色底(96%)，
        桌面端不受影响、依旧毛玻璃。 */
  .grain { display: none; }
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(250, 249, 246, 0.96);
  }
  /* --- 页尾"空白死区"收紧（2026-09-11）---
     桌面端 .grid 尾部 16vh + .footer 上边距 14vh ≈ 250px 纯空白，在手机上正好是
     拇指高频滑动区：最后一张卡(yonganqu 封面 759px 高，页底只露出一条)之后是一大段
     空白再到跑马灯，看起来像"内容没加载出来"，在这片区域上滑必然立即到底回弹，
     体感就是"卡在固定位置"。手机端收紧为 56px+56px，页面结束得干脆；桌面端不动。 */
  .grid { padding-bottom: 56px; }
  .footer { margin-top: 56px; }
  /* --- 手机端把所有「用 vh 的纵向间距」钉成固定值（2026-09-11 真机定案）---
     iOS 微信滚动时工具栏会收起/展开，视口高度在 688↔774 之间来回变；凡是 vh 基准的
     纵向 padding/margin/gap 都会跟着变，整页高度随之涨落几十像素。页面高度一变，
     浏览器就会在贴近底部时钳制滚动位置——这正是「缓慢上滑卡一下 / 快滑卡在固定位置」
     的物理来源。手机端改用固定 px（取 780 视口高度下的等效值），页面高度从此不受
     工具栏状态影响；桌面端保持 vh 自适应不变。
     ⚠️ .page-head / .about / .footer-inner 的钉子必须写在本媒体查询最末尾（见文件末），
     否则会被上面同名的手机端规则按源码顺序覆盖（踩过）。 */
  .masonry { padding-bottom: 124px; }
  /* 跑马灯永远在动，will-change 的常驻合成层在 iOS 上没有必要，卸掉 */
  .marquee-track { will-change: auto; }
  /* 手机端不锁死高度（地址栏会改变视口），画布保持横幅比例不参与伸缩 */
  .hero { padding-top: 120px; height: auto; }
  /* 手机竖屏：画布压成横幅比例，减少 21:9 视频被横向裁掉的量 */
  .hero-canvas { height: clamp(170px, 24vh, 230px); flex: 0 0 auto; }
  /* --- 手机看图：统一弹性纵向布局，横图竖图体验一致、下方标题介绍始终可见 ---
     图区(.lb-track)吃掉 stage 中间所有弹性空间并内部居中；缩略图+标题介绍固定在底部。
     横竖画幅宽统一(92vw)、不随横竖跳变 → 切换只是左右平移+淡入，无宽度突变，动画平滑。 */
  .lightbox { padding: 0; }
  .lb-stage {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    justify-content: center;
    gap: clamp(8px, 2vh, 14px);
    padding: max(58px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
    transform: none;
  }
  /* 图区占满中段弹性高度 */
  .lb-track {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    --slide-w: 92vw;
    --slide-gap: clamp(8px, 2vw, 16px);
    /* 手机端画幅统一 92vw、不存在宽度变化 → 去掉 --slide-w 过渡（自定义属性过渡会逐帧重算布局），
       只保留 transform（合成层），并把时长收到 0.55s，翻页更跟手 */
    transition: transform 0.55s var(--ease);
  }
  /* ⚠️ 手机端必须显式"归零"电脑端的画幅模式类(lb-wide / lb-banner / lb-horiz)：
     这些规则的选择器权重(0,3,0)高于本媒体查询里的 .lb-stage(0,1,0) / .lb-slide(0,1,0)，
     若不覆盖，滑到横版图那一刻（如永安渠 04 竖 → 05 横）舞台宽度会从 100%(390) 突变为
     95vw(370.5)、幻灯片布局高度从 100%(537) 突变为 78vh(658) → 整条轨道 8 张图 + 图片
     max-height 全部重排重绘，翻页动画中途"卡住再跳到新位置"。手机端画幅本已统一(92vw)，
     这里把三档模式全部钉成同一套几何，翻页就只剩纯位移(合成层)。 */
  .lightbox.lb-wide .lb-stage,
  .lightbox.lb-banner .lb-stage,
  .lightbox.lb-horiz .lb-stage { width: 100%; }
  .lightbox.lb-wide .lb-track,
  .lightbox.lb-banner .lb-track,
  .lightbox.lb-horiz .lb-track { --slide-w: 92vw; }
  .lightbox.lb-wide .lb-slide,
  .lightbox.lb-banner .lb-slide,
  .lightbox.lb-horiz .lb-slide { height: 100%; }
  .lb-slide { height: 100%; }
  .lb-slide img { max-width: 100%; max-height: 100%; }
  /* --- 手机端看图层"性能降级"：滑动翻页必须丝滑，砍掉所有在移动 GPU 上昂贵的绘制 ---
     1) 背景毛玻璃 backdrop-filter:blur(14px) 在整屏上常驻极耗 GPU，而底色本就是 96% 不透明的米白，
        模糊几乎看不出来 → 手机端直接用纯色底，省掉全屏模糊重算。
     2) 非当前图原来带 filter:blur(3px) saturate(0.85) + 大 box-shadow(80~100px 模糊)，
        每次左右滑动都会对两张 1400px 大图做 filter/阴影过渡 = 逐帧重绘 → 卡顿。
        手机端改为只用 opacity + transform（都是合成层属性，最便宜），投影改为静态小阴影不参与过渡。 */
  .lb-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(246, 243, 236, 0.985);
  }
  .lb-slide {
    filter: none !important;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    will-change: opacity, transform;
  }
  .lb-slide.active { filter: none; }
  .lb-slide img,
  .lb-slide.active img {
    box-shadow: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .lb-slide.active img { box-shadow: 0 12px 30px rgba(22, 19, 15, 0.16); }
  .lb-thumbs { flex: 0 0 auto; margin-top: 0; }
  .lb-thumb { height: 38px; width: 52px; }
  .lb-caption { flex: 0 0 auto; margin-top: 0; max-width: 100%; padding: 0 4px; }
  /* 手机端隐藏左右切换箭头：滑动 / 点击两侧预览图 / 底部缩略图已足够 */
  .lb-prev, .lb-next { display: none; }
  .lb-close { top: max(10px, env(safe-area-inset-top)); right: 12px; }
  /* 「放到最大」时手机端隐去关闭按钮：最大化后图按视口留边(12px)铺满，按钮会压在图上。
     退出方式有三条且都好发现：再点一下图 / 下滑 / 左右滑动。 */
  .lightbox.lb-zoom .lb-close { opacity: 0; pointer-events: none; }
  .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%; }
  /* 手机单列：肖像图插在介绍与服务范围之间(app.js 移动 DOM 时加 .portrait-mid) */
  .about.portrait-mid .about-portrait { margin-top: 40px; }
  .about.portrait-mid .about-skills { margin-top: 36px; }
  .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; }

  /* ===== vh 钉子（必须留在本媒体查询最末尾，见上方说明）=====
     取 780 视口高度下的等效值，页面高度与微信工具栏状态彻底解耦。 */
  .page-head { padding: 140px 20px 46px; }
  .about { padding: 0 20px 108px; }
  .footer-inner { padding: 62px clamp(20px, 4vw, 64px) 36px; gap: 40px; }
}

/* 极矮视口（如 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; opacity: 1; }
  /* 「再点一次放到最大」豁免上面的全局压缩：它是**用户主动点击触发**的核心反馈，
     属于"明确要看"的动效。不豁免的话，Windows「显示动画」关闭 / 手机「减弱动态效果」
     打开的设备上，放大与周边 chrome（缩略条/说明/箭头）退场会变成一帧硬跳——
     2026-09-13 用户反馈"点击放到最大的时候，第一次点击的动画有问题"就是这个。
     放大主体 .lb-slide img 已改由 WAAPI 播放（见 render.js lbZoomApply），
     这里的豁免覆盖周边 chrome，并作为 img 的降级兜底。 */
  .lightbox .lb-slide,
  .lightbox .lb-slide img,
  .lightbox .lb-caption,
  .lightbox .lb-prev,
  .lightbox .lb-next {
    transition-duration: 0.46s !important;
  }
  .lightbox .lb-thumbs,
  .lightbox .lb-thumb {
    transition-duration: 0.3s !important;
  }
  /* 首屏视频是用户指定的主视觉内容，不因减少动效偏好而隐藏，保持正常播放 */
}

/* =========================================================
   留言墙（messageboard.html）—— Waline v3 主题定制
   把 Waline 的 CSS 变量映射到可赞 VI：暖纸白 / 深灰 / 唯一红
   ========================================================= */
.guestbook {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px clamp(48px, 8vh, 96px);
}

#waline-widget {
  /* 品牌色：主按钮/聚焦态走可赞红，悬停加深 */
  --waline-theme-color: var(--accent);
  --waline-active-color: #A81B14;
  /* 中性色：全部换成暖纸色系的深灰，不用 Waline 默认冷灰 */
  --waline-color: var(--ink);
  --waline-border-color: #E3DED4;
  --waline-border: 1px solid #E3DED4;
  --waline-bg-color: transparent;
  --waline-bg-color-light: #F5F2EC;
  --waline-bg-color-hover: #EFEBE2;
  --waline-bq-color: #F1EDE4;
  --waline-info-bg-color: #F5F2EC;
  --waline-info-color: var(--muted);
  --waline-disabled-bg-color: #F1EDE4;
  --waline-disabled-color: #B5AFA4;
  /* 版式 */
  --waline-font-size: 15px;
  --waline-border-radius: 8px;
  --waline-avatar-size: 40px;
  font-family: var(--sans);
}

/* 站点徽标行隐藏"powered by"之外的多余元素，保持极简 */
#waline-widget .wl-header-item label { font-size: 13px; color: var(--muted); }
#waline-widget .wl-btn { letter-spacing: 0.04em; font-weight: 400; }
#waline-widget .wl-count { font-size: 13px; color: var(--muted); letter-spacing: 0.18em; }
#waline-widget .wl-meta-head { display: none; }
#waline-widget .wl-time { font-size: 12px; color: var(--muted); }
#waline-widget .wl-head .wl-nick { font-weight: 400; color: var(--ink-title); }
/* 评论正文行高与站内正文一致 */
#waline-widget .wl-content { line-height: 1.85; font-weight: 400; }
/* 输入面板聚焦时边框染红（VI：强调一律红） */
#waline-widget .wl-panel:focus-within { border-color: var(--accent) !important; }
/* RSS 订阅按钮对访客无意义，隐藏保持极简 */
#waline-widget .wl-rss { display: none; }

@media (max-width: 640px) {
  .guestbook { padding: 0 20px 48px; }
}

/* 关于页低调留言入口（2026-09-13：留言墙从主导航撤下，降级为彩蛋入口） */
.guestbook-whisper {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.guestbook-whisper a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.guestbook-whisper a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* =========================================================
   复制反馈 toast（页脚微信/邮箱复制，2026-09-13）
   深灰底白字圆胶囊，底部居中浮出；红色仅作点缀圆点
   ========================================================= */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 8vh;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #36322C;
  color: #FAF9F6;
  font: 300 13px/1 var(--sans);
  letter-spacing: .14em;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(42, 39, 35, .18);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .28s ease, transform .32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.copy-toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 640px) {
  .copy-toast { bottom: 10vh; }
}
