@charset "utf-8";
/* finesse · register=brand · layout=photo-carousel-hero+sticky-h-rail+justified-grid
 * engine=canvas2d-ink-develop(fallback) + css-crossfade-kenburns · substrate=darkroom-silver-halide
 * SOUL=8 SPECTACLE=6 DENSITY=4 · palette=墨黑+相纸白+暗房红(single accent, locked)
 */

/* ============================================================
   0 · 字体（自托管子集，不依赖任何外部 CDN）
   ============================================================ */
@font-face {
  font-family: 'AYSerif';
  src: url('../fonts/serif.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AYSans';
  src: url('../fonts/sans.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AYSans';
  src: url('../fonts/sans-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================================================
   1 · 色板与刻度
   墨黑 Darkroom Black (#0C0B0A)      页面底色，偏暖的近黑，非纯黑
   相纸白 Paper White  (#EFEBE4)      正文与浅色带的底，非纯白
   二级灰 Ash          (#938C83)      次级文字
   三级灰 Iron         (#4A443E)      极细分割线
   暗房红 Safelight    (#C2452E)      唯一强调色，全站锁定
   ============================================================ */
:root {
  --bg:            #0C0B0A;
  --bg-2:          #141210;
  --ink:           #EFEBE4;
  --ink-2:         #C3BCB1;
  --muted:         #938C83;
  --dim:           #4A443E;
  --accent:        #C2452E;
  --accent-soft:   #7E2B1C;
  --border:        rgba(239, 235, 228, .10);
  --border-strong: rgba(239, 235, 228, .20);

  --paper-bg:      #EFEBE4;
  --paper-ink:     #14110F;
  --paper-muted:   #6B645C;
  --paper-border:  rgba(20, 17, 15, .12);

  --nav-h:         68px;
  --gut:           52px;
  --maxw:          1280px;

  --ease:          cubic-bezier(.16, 1, .3, 1);
  --slow:          cubic-bezier(.22, .61, .21, 1);

  --f-serif: 'AYSerif', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', serif;
  --f-sans:  'AYSans', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: clip;                        /* M1：绝不用 hidden，否则钉住的横向轨会失效 */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 颗粒层：静止不动，它只负责让画面不是一块矢量塑料 */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: .034;
  background-size: 190px 190px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 渐晕：把视线压到画面中心 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 92% 72% at 50% 44%,
    transparent 42%, rgba(6, 5, 4, .78) 100%);
}

::selection { background: var(--accent); color: #FFF7F3; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 锚点跳转要落在固定导航下面，而不是被它盖住 */
main > section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ============================================================
   2 · 首屏：墨迹在显影液里散开（全站唯一的重活）
   ============================================================ */
#developer {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.nav.is-solid {
  background: rgba(12, 11, 10, .82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--border);
}
.nav__brand {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .14em;
  white-space: nowrap;                      /* M3 */
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-2);
  white-space: nowrap;                      /* M3 */
  position: relative;
  transition: color .35s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.hero {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gut) 96px;
  text-align: center;
}
.hero__inner { position: relative; z-index: 3; width: 100%; max-width: 940px; }

/* —— 首屏精选轮播：底片在背后自动换 —— */
.hero__stage {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero__slide {
  position: absolute; inset: 0;
  background: var(--bg-2) center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.7s var(--slow);
}
.hero__slide.is-on { opacity: 1; z-index: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__slide.is-on img { animation: kenburns 9.5s var(--slow) both; }
@keyframes kenburns {
  from { transform: scale(1.015); }
  to   { transform: scale(1.085); }
}

/* 遮罩：只做压暗渐变，保证 logo 在照片上站得住（不要颗粒） */
.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(12, 11, 10, .55) 0%,
    rgba(12, 11, 10, .28) 36%,
    rgba(12, 11, 10, .38) 62%,
    rgba(12, 11, 10, .82) 100%);
}

/* 胶片计数器：第几张 / 共几张 */
.hero__count {
  position: absolute; left: var(--gut); bottom: 40px; z-index: 3;
  font-size: 11px; letter-spacing: .3em;
  color: rgba(239, 235, 228, .68);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;                      /* M3 */
}
.hero__count::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  margin-right: 12px; vertical-align: middle;
  background: var(--accent);
}

/* 左右方向箭头：无圆圈，只留箭头本体，50% 不透明度 */
.hero__arrow {
  position: absolute; top: 50%; z-index: 4;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: rgba(239, 235, 228, .5);
  border: 0;
  background: none;
  transition: color .35s var(--ease), opacity .35s var(--ease);
  opacity: 1;
}
.hero__arrow:hover {
  color: rgba(255, 244, 240, .92);
}
.hero__arrow svg { display: block; width: 26px; height: 26px; }
.hero__arrow--prev { left: calc(var(--gut) + 8px); }
.hero__arrow--next { right: calc(var(--gut) + 8px); }

.hero__logo { margin: 0 auto; min-width: 0; max-width: 100%; }
.hero__logo img {
  width: 100%; max-width: 820px; height: auto;
  margin: 0 auto;
  /* 终态是完整可见；扫过动画由 JS 加类后才启动 */
  -webkit-mask-image: linear-gradient(101deg, #000 0%, #000 50%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(101deg, #000 0%, #000 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-size: 230% 100%;  mask-size: 230% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0;   mask-position: 0% 0;
}
.js-anim .hero__logo img {
  -webkit-animation: developSweep 2.6s var(--slow) .25s both;
          animation: developSweep 2.6s var(--slow) .25s both;
}
@-webkit-keyframes developSweep {
  from { -webkit-mask-position: 100% 0; }
  to   { -webkit-mask-position: 0% 0; }
}
@keyframes developSweep {
  from { mask-position: 100% 0; }
  to   { mask-position: 0% 0; }
}

.hero__sub {
  margin-top: 34px;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: .26em;
  color: var(--ink-2);
  text-transform: uppercase;
  line-height: 1.9;                         /* M6：全大写/宽字距的行高下限 */
}
.hero__meta {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--muted);
}
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .24em; color: var(--muted);
  white-space: nowrap;                      /* M3 */
}
.hero__scroll i {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drop 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drop {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   3 · 简介
   ============================================================ */
.about {
  position: relative; z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px var(--gut) 96px;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);   /* M2 */
  gap: 64px;
  align-items: start;
}
.about__stores { min-width: 0; }
.about__label {
  font-size: 11px; letter-spacing: .24em; color: var(--muted);
  margin-bottom: 16px;
}
.lede {
  font-family: var(--f-serif);
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.85;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  max-width: 22em;
  overflow-wrap: anywhere;                  /* M4 */
}
.facts {
  list-style: none;
  margin-top: 82px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.facts li {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.facts li:last-child { border-right: 0; }
.facts b {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.facts span {
  display: block; margin-top: 8px;
  font-size: 13px; letter-spacing: .06em; color: var(--muted);
}

/* ============================================================
   4 · 作品：横向底片轨（滚动驱动，纯原生，零依赖）
   ============================================================ */
.rail { position: relative; z-index: 5; height: 340vh; }
.rail__pin {
  position: sticky; top: 0;                 /* M5：全站只有这一处 top:0 的 sticky */
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.rail__head {
  max-width: var(--maxw); width: 100%;
  margin: 0 auto; padding: 0 var(--gut) 34px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
}
.rail__head h2 { font-family: var(--f-serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; }
.rail__hint { font-size: 12px; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }
.only-narrow { display: none; }

.rail__viewport { position: relative; }
.rail__track {
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--gut);
  will-change: transform;
}
.frame {
  flex: 0 0 auto;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.92) contrast(1.02);
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
.frame:hover img { filter: brightness(1.04) contrast(1.04); transform: scale(1.02); }
.frame__no {
  position: absolute; left: 12px; top: 10px;
  font-size: 10px; letter-spacing: .2em;
  color: rgba(239, 235, 228, .72);
  font-variant-numeric: tabular-nums;
}
.frame__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  font-size: 12px; letter-spacing: .06em;
  color: var(--ink);
  background: linear-gradient(to top, rgba(6,5,4,.86), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.frame:hover .frame__cap { opacity: 1; transform: none; }
.frame--l { width: min(56vw, 660px); aspect-ratio: 3 / 2; }
.frame--p { width: min(30vw, 340px); aspect-ratio: 2 / 3; }
.frame--s { width: min(36vw, 420px); aspect-ratio: 1 / 1; }

.rail__bar {
  position: relative;
  height: 1px; margin: 40px var(--gut) 0;
  background: var(--border);
}
.rail__bar i {
  position: absolute; left: 0; top: -1px;
  width: 0%; height: 2px; background: var(--accent);
}

/* ============================================================
   5 · 作品：全部（接触印样）
   ============================================================ */
.works {
  position: relative; z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gut) 128px;
}
.works__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.works__head h2 { font-family: var(--f-serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; }
.works__count { font-size: 12px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }

.filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 26px 0 30px;
}
.filters__gap { flex: 1 1 20px; }
.chip {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; letter-spacing: .1em;
  color: var(--ink-2);
  white-space: nowrap;                      /* M3 */
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--border-strong); }
.chip.is-on { color: #FFF4F0; background: var(--accent); border-color: var(--accent); }
.sort {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .1em; color: var(--muted);
  white-space: nowrap;                      /* M3 */
}
.sort select {
  -webkit-appearance: none;
  appearance: none;
  font: inherit; color: var(--ink);
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 36px 9px 16px;
  cursor: pointer;
  /* 自绘箭头：用背景定位保证垂直居中（原生箭头各浏览器都偏） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23C3BCB1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.sort select option { background: var(--bg-2); color: var(--ink); }

/* 接触印样：齐边行排版（行宽撑满，每张保留原始横竖比例，间隙 4px）。
   行结构与每张的宽度由 JS 依据真实 w/h 计算，CSS 只管行的骨架。 */
.grid { width: 100%; }
.grid__row {
  display: flex;
  gap: 4px;
}
.grid__row + .grid__row { margin-top: 4px; }
.shot {
  position: relative;
  flex: 0 0 auto;                 /* 宽度由 JS 内联指定 */
  min-width: 0;
  overflow: hidden;
  background: var(--bg-2) center/cover no-repeat;
  cursor: zoom-in;
  animation: shotIn 1.1s var(--ease) both;
}
@keyframes shotIn {
  0%   { opacity: 0; transform: translateY(18px); filter: brightness(.3) contrast(1.15); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: none; }
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.9) contrast(1.03) saturate(.96);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.shot:hover img { filter: none; transform: scale(1.035); }
/* 精选角标：暗房红五角星图标（无底框），投影保证亮部底色上也看得见 */
.shot__tag {
  position: absolute; top: 8px; left: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: #E4593F;
  filter: drop-shadow(0 1px 3px rgba(6, 5, 4, .75));
  pointer-events: none;
}
.shot__tag svg { display: block; width: 17px; height: 17px; }
/* 视频卡片：封面常显，播放键居中，时长角标右下 */
.shot--video .shot__play {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  color: #FFF4F0;
  background: rgba(12, 11, 10, .48);
  border-radius: 50%;
  backdrop-filter: blur(2px);
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.shot--video:hover .shot__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(194, 69, 46, .6);
}
.shot__play svg { display: block; width: 22px; height: 22px; margin-left: 3px; }
.shot__dur {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 11px; letter-spacing: .06em;
  color: #FFF4F0;
  background: rgba(6, 5, 4, .72);
  padding: 2px 7px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;                      /* M3 */
  pointer-events: none;
}

.shot__pin {
  position: absolute; top: 10px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.grid__empty {
  padding: 80px 0; text-align: center;
  color: var(--muted); font-size: 14px; letter-spacing: .1em;
}
.more {
  display: block; margin: 46px auto 0;
  padding: 14px 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px; letter-spacing: .18em;
  white-space: nowrap;                      /* M3 */
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.more:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more[hidden] { display: none; }

/* ============================================================
   6 · 擅长（浅色带：相纸。与暗房暗调交替，是结构不是漂移）
   ============================================================ */
.craft {
  position: relative; z-index: 5;
  background: var(--paper-bg);
  color: var(--paper-ink);
  padding: 122px 0 118px;
}
.craft__head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gut) 62px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.craft__head h2 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600; letter-spacing: .02em; line-height: 1.24;
  overflow-wrap: anywhere;                  /* M4 */
}
.craft__note { font-size: 14px; letter-spacing: .06em; color: var(--paper-muted); }

/* 每个方向一行：左边文字，右边该方向的作品横条 + 右侧箭头翻看更多 */
.craft__list {
  list-style: none;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gut);
  border-top: 1px solid var(--paper-border);
}
.craft__item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px 48px;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--paper-border);
  align-items: start;
}
.craft__text {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 18px;
  align-items: start;
}
.craft__text .craft__body { grid-column: 2 / -1; }
.craft__text .craft__tags { grid-column: 2 / -1; }

/* 作品横条 */
.craft__media { position: relative; min-width: 0; }
.craft__strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 2px;
}
.craft__strip::-webkit-scrollbar { display: none; }
.cs-tile {
  flex: 0 0 auto;
  height: 208px;
  padding: 0; border: 0; background: var(--paper-bg);
  cursor: zoom-in; overflow: hidden; display: block;
}
.cs-tile img {
  height: 100%; width: auto; display: block;
  filter: brightness(.97) contrast(1.02);
  transition: filter .4s var(--ease), transform .5s var(--ease);
}
.cs-tile:hover img { filter: none; transform: scale(1.03); }
.cs-tile--video { position: relative; }
.cs-tile--video::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; transform: translate(-40%, -50%);
  border-left: 11px solid rgba(255, 244, 240, .92);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

/* 左右箭头：无圆圈、50% 不透明度（与首屏一致） */
.craft__nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: rgba(12, 11, 10, .5);
  border: 0; background: none;
  cursor: pointer;
  transition: color .35s var(--ease), opacity .35s var(--ease);
}
.craft__nav:hover { color: rgba(12, 11, 10, .95); }
.craft__nav svg { display: block; width: 24px; height: 24px; }
.craft__nav--prev { left: -30px; }
.craft__nav--next { right: -30px; }
.craft__nav[hidden] { display: none; }
.craft__hint { font-size: 11px; letter-spacing: .14em; color: var(--paper-muted); margin-top: 10px; }
.craft__empty {
  min-height: 208px;
  border: 1px dashed rgba(12, 11, 10, .18);
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
  font-size: 12px; letter-spacing: .12em; line-height: 1.9;
  color: var(--paper-muted);
}
.craft__en {
  font-size: 11px; letter-spacing: .24em; color: var(--paper-muted);
  padding-top: 9px; line-height: 1.6;
}
.craft__name {
  font-family: var(--f-serif);
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 600; letter-spacing: .02em;
  overflow-wrap: anywhere;                  /* M4 */
}
.craft__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.craft__tags span {
  font-size: 11px; letter-spacing: .1em; color: var(--paper-ink);
  border: 1px solid var(--paper-border);
  border-radius: 999px; padding: 4px 11px;
  white-space: nowrap;                      /* M3 */
}
.craft__body {
  font-size: 15px; line-height: 2.05;
  color: #38322C;
  max-width: 34em;
}

/* ============================================================
   7 · 合作
   ============================================================ */
.contact {
  position: relative; z-index: 5;
  max-width: var(--maxw); margin: 0 auto;
  padding: 126px var(--gut) 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);    /* M2 */
  gap: 64px;
  align-items: start;
}
.contact h2 {
  font-family: var(--f-serif);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 600; letter-spacing: .01em; line-height: 1.18;
  margin-bottom: 44px;
  overflow-wrap: anywhere;                  /* M4 */
}
.contact__dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px 20px; }
.contact__dl dt { font-size: 12px; letter-spacing: .14em; color: var(--muted); padding-top: 4px; }
.contact__dl dd {
  font-size: clamp(16px, 1.8vw, 20px); letter-spacing: .02em;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
}
.contact__dl dd a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  overflow-wrap: anywhere;                  /* M4：邮箱在窄屏要能断 */
  transition: color .4s var(--ease);
}
.contact__dl dd a:hover { color: var(--accent); }

/* 一键复制：手机上 tel: 能拨号，但加微信要的是那串数字 */
.copy {
  font-size: 11px; letter-spacing: .14em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;                      /* M3 */
  transition: color .35s var(--ease), border-color .35s var(--ease),
              background .35s var(--ease);
}
.copy:hover { color: var(--ink); border-color: var(--border-strong); }
.copy.is-done { color: #FFF4F0; background: var(--accent); border-color: var(--accent); }
.copy.is-fail { color: var(--ink); border-color: var(--accent); }

.contact__dl dd.stores {
  display: grid; gap: 10px;
  justify-items: start;     /* 不加这行，网格会把链接拉满整栏，橙色下划线就跟着跑长 */
  font-size: clamp(15px, 1.6vw, 18px);
}

.contact__tip {
  margin-top: 40px; max-width: 36em;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: rgba(239, 235, 228, .045);
  font-size: 16px; line-height: 2.05;
  color: var(--ink-2); letter-spacing: .03em;
  overflow-wrap: anywhere;
}

.qr {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 14px;
  align-content: start;
}
.qr li {
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.qr li:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.qr__tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 100%; height: 100%; padding: 12px;
}
a.qr__tile { cursor: pointer; }
.qr__tile img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--paper-bg);
}
.qr__tile > span {
  font-size: 12px; letter-spacing: .06em;
  color: var(--ink-2);
  text-align: center; line-height: 1.6;
  transition: color .35s var(--ease);
}
a.qr__tile:hover > span { color: var(--accent); }
/* 能点开的格子给一个小小的箭头，用边框画，不占字体 */
a.qr__tile > span::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: .6;
}

/* ============================================================
   8 · 页脚
   ============================================================ */
.foot {
  position: relative; z-index: 5;
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px var(--gut) 52px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .1em; color: var(--muted);
}
.foot a { border-bottom: 1px solid var(--border-strong); }
.foot__links { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   9 · 灯箱
   ============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(7, 6, 5, .95);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__fig {
  max-width: min(94vw, 1400px);
  max-height: 88svh;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
}
.lb__fig img {
  max-width: 100%;
  max-height: 74svh;
  width: auto; height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  transform: scale(.965);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.lb__fig video {
  max-width: min(94vw, 1280px);
  max-height: 74svh;
  border: 1px solid var(--border);
  background: #000;
  transform: scale(.965);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.lb.is-open video { transform: none; opacity: 1; }
.lb.is-open .lb__fig img { transform: none; opacity: 1; }

/* 视频源缺失时的降级提示（GitHub Pages 不托管视频文件） */
.lb__fallback {
  width: min(94vw, 720px);
  padding: 56px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}
.lb__fallback[hidden] { display: none; }
.lb__fallbackText {
  margin: 0;
  font-size: 15px; letter-spacing: .04em;
  color: var(--ink-2, #9a948c);
}
.lb__fallbackLink {
  font-size: 13px; letter-spacing: .12em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.lb__fallbackLink:hover { opacity: .75; }

.lb__cap { width: 100%; text-align: center; }
.lb__capText {
  font-family: var(--f-serif); font-size: 16px; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.lb__meta {
  margin-top: 10px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px;
  font-size: 11px; letter-spacing: .18em; color: var(--muted);
}
.lb__link { margin-top: 12px; font-size: 13px; }
.lb__link a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.lb__close, .lb__nav {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 24px; color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.lb__close:hover, .lb__nav:hover { color: var(--ink); border-color: var(--border-strong); }
.lb__close { top: 22px; right: 22px; font-size: 26px; }
.lb__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb__nav[hidden] { display: none; }

/* ============================================================
   10 · 响应式与移动端底线
   ============================================================ */
@media (max-width: 1080px) {
  :root { --gut: 34px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .about__stores { max-width: 560px; }
  .craft__item { gap: 18px 26px; }
  .cs-tile { height: 168px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 760px) {
  :root { --gut: 22px; --nav-h: 58px; }
  body { font-size: 15px; }

  .nav__links { gap: 18px; }
  .nav__links a { font-size: 12px; letter-spacing: .1em; }

  .hero { padding: calc(var(--nav-h) + 26px) var(--gut) 84px; }
  .hero__sub { letter-spacing: .16em; font-size: 12px; }
  .hero__scroll { bottom: 22px; }
  .hero__count { bottom: 24px; }
  .hero__arrow { width: 44px; height: 44px; }
  .hero__arrow svg { width: 22px; height: 22px; }
  .hero__arrow--prev { left: 12px; }
  .hero__arrow--next { right: 12px; }

  .about { padding: 78px var(--gut) 62px; }
  .about__stores { max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 52px; }
  .facts li { padding: 20px 10px; }
  .facts li:nth-child(2n) { border-right: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--border); }

  .rail { height: auto; }
  .rail__pin {
    position: static; height: auto;                 /* 手机上轨道改为原生横向滑动 */
    padding: 74px 0 0;
  }
  .rail__head { flex-direction: column; gap: 8px; padding-bottom: 20px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .rail__track {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    padding-bottom: 14px;
  }
  .rail__track::-webkit-scrollbar { height: 3px; }
  .rail__track::-webkit-scrollbar-thumb { background: var(--accent-soft); }
  .frame { scroll-snap-align: start; }
  .frame--l { width: 78vw; } .frame--p { width: 58vw; } .frame--s { width: 62vw; }
  .rail__bar { display: none; }

  .works { padding: 30px var(--gut) 78px; }
  .works__head { flex-direction: column; gap: 6px; }
  .grid__row { gap: 3px; }
  .grid__row + .grid__row { margin-top: 3px; }

  .craft { padding: 76px 0 70px; }
  .craft__head { padding-bottom: 30px; flex-direction: column; gap: 10px; }
  .craft__item { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 32px 0; }
  .craft__text { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .craft__text .craft__body,
  .craft__text .craft__tags { grid-column: auto; }
  .craft__body { font-size: 14.5px; line-height: 1.95; }
  .craft__en { padding-top: 0; }
  .cs-tile { height: 148px; }
  .craft__nav { width: 40px; height: 40px; background: rgba(239, 235, 228, .72); }
  .craft__nav--prev { left: 0; }
  .craft__nav--next { right: 0; }

  .contact { padding: 78px var(--gut) 68px; }
  .contact__dl { grid-template-columns: minmax(0, 1fr); gap: 4px 0; }
  .contact__tip { margin-top: 28px; padding: 16px 18px; font-size: 15px; }
  .contact__dl dt { margin-top: 16px; }
  .contact__dl dd { align-items: flex-start; }
  .qr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qr__tile { padding: 10px; gap: 8px; }

  .lb__close { top: 12px; right: 12px; }
  .lb__nav { width: 40px; height: 40px; }
  .lb__nav--prev { left: 8px; } .lb__nav--next { right: 8px; }
}

/* ============================================================
   12 · 进场显影：元素进入视口时像相纸一样"显影"出来
   JS 用 IntersectionObserver 加 is-in，只此一次，不回头。
   全部收在 .js-anim 作用域下（intro() 在 !RM 时才加）：
   系统关动效或 JS 挂掉时，内容天生可见，只是不动。
   ============================================================ */
/* 导航：从上面滑进来 */
.js-anim .nav {
  transform: translateY(-100%);
  transition: transform .8s var(--ease) .1s,
              background .5s var(--ease), border-color .5s var(--ease);
}
.js-anim .nav.is-in { transform: none; }

/* 首屏文字接力：logo 扫完 → 副标 → 地理 → 计数/箭头/下滑提示 */
.js-anim .hero__sub,
.js-anim .hero__meta,
.js-anim .hero__count,
.js-anim .hero__arrow,
.js-anim .hero__scroll { animation: riseIn 1s var(--slow) both; }
.js-anim .hero__sub    { animation-delay: 1.15s; }
.js-anim .hero__meta   { animation-delay: 1.35s; }
.js-anim .hero__count,
.js-anim .hero__arrow,
.js-anim .hero__scroll { animation-delay: 1.55s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* 区块进场：浮起 + 显影 */
.js-anim .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--slow), transform .9s var(--slow);
  transition-delay: var(--d, 0ms);
}
.js-anim .rv.is-in { opacity: 1; transform: none; }

/* 列表接力：同一组里的后几项晚一点出现 */
.js-anim .facts li:nth-child(2)      { --d: 90ms; }
.js-anim .facts li:nth-child(3)      { --d: 180ms; }
.js-anim .facts li:nth-child(4)      { --d: 270ms; }
.js-anim .craft__item:nth-child(2)   { --d: 110ms; }
.js-anim .craft__item:nth-child(3)   { --d: 220ms; }
.js-anim .craft__item:nth-child(4)   { --d: 330ms; }

/* ============================================================
   13 · 降低动效：定格"持续运动的装饰"，保留"一次性淡入"
   策略：Ken Burns、logo 扫光、循环箭头这类持续运动在系统关动效时
   全部定格；进场显影降级为纯淡入、零位移（不引起前庭不适）。
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* —— 持续运动：全部定格 —— */
  .hero__logo img {
    -webkit-mask-position: 0% 0; mask-position: 0% 0;
    -webkit-animation: none; animation: none;
  }
  .hero__slide img { animation: none; transform: none; }
  .hero__scroll i { animation: none; opacity: 1; transform: scaleY(1); }
  .shot { animation: none; opacity: 1; transform: none; }
  .lb__fig img { transform: none; opacity: 1; }

  /* —— 一次性进场：只留淡入 —— */
  .js-anim .nav { transform: none; transition: none; }
  .js-anim .hero__sub,
  .js-anim .hero__meta,
  .js-anim .hero__count,
  .js-anim .hero__arrow,
  .js-anim .hero__scroll,
  .js-anim .rv { transform: none !important; }

  /* —— 悬停缩放与位移一并收掉，只留明暗 —— */
  .frame:hover img, .shot:hover img { transform: none; }
}
