@charset "UTF-8";
/* ==========================================================================
   花校校V · huaxxv.com  —  视觉系统
   --------------------------------------------------------------------------
   参考基准：hideakihamada.com 的编辑式极简（日式摄影作品集）
   四件事定义了这个风格，改样式时不要破坏它们：

     1. 纸底 #f3f3f3 + 墨色 #2c2c2c。没有渐变、没有毛玻璃、没有投影。
        唯一的层次来自「留白」和「1px 细线」。
     2. 字很小（13–14px），留白很大（顶部 196px）。层级不靠字号拉开，
        靠位置和灰度（#2c2c2c → #8f8f8f → #bfbfbf）。
     3. 照片永远全出血或用 contain 撑满舞台，文字永远退到角落。
     4. 所有状态变化都是长时间淡入（.3s~1.6s），没有弹跳、没有位移。

   响应式断点与参考站一致：835px（外加 520px 处理极窄屏）。
   html 字号 62.5% ⇒ 1rem = 10px，所以 1.3rem = 13px。
   ========================================================================== */

/* ---------------------------------------------------------------- 变量 */
:root {
  --paper: #f3f3f3;
  --ink: #2c2c2c;
  --mute: #8f8f8f;
  --faint: #bfbfbf;
  --line: rgba(44, 44, 44, .16);
  --line-soft: rgba(44, 44, 44, .08);

  /* 照片上的文字：和纸底同色，靠底部的压暗层浮起来 */
  --on-photo: #f3f3f3;
  --on-photo-dim: rgba(243, 243, 243, .62);

  --g: 30px;          /* 桌面左右内距 */
  --g-s: 15px;        /* 手机左右内距 */
  --hd: 72px;         /* 头部高度 */
  --hd-s: 52px;
  /* 作品内页底部留出的「文字带」：标题 + 副题 + 参数一行 + 两个动作 */
  --cap-band: 132px;
  --cap-band-s: 150px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-in: cubic-bezier(.55, .09, .68, .53);

  --sans: "Helvetica Neue", Helvetica, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;

  background-color: var(--paper);
}

/* ---------------------------------------------------------------- 基础 */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: .01em;
  /* 中文标点挤压：让「，。」不占满格，观感接近参考站的 palt */
  font-feature-settings: "palt" 1;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; vertical-align: bottom; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  font-feature-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: var(--cur-cam-hot);
}

/* 焦点环：绝不画在贴边或半屏元素上（会被裁成一条通高黑线）。
   见文末 .al-hit 的说明。 */
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

::selection { background: var(--ink); color: var(--paper); }

.sr-only, .skip {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  margin: 0; padding: 8px 12px;
  clip: auto;
  z-index: 99;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.2rem;
}

body { cursor: var(--cur-cam); }
a, button, summary, [role="button"], label { cursor: var(--cur-cam-hot); }

/* ---------------------------------------------------------------- 头部 */
.hd {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 22px var(--g) 0;
  z-index: 20;
  pointer-events: none;
}
.hd > * { pointer-events: auto; }

.hd-in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hd-logo {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.hd-logo i {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* 手机 Menu 按钮：桌面上不存在 */
.hd-m-btn { display: none; }

/* 导航：2 列 × 2 行的网格，列优先填充（和参考站一致） */
.hd-nav {
  margin-left: auto;
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-template-columns: repeat(2, auto);
  /* 按行流动：作品 关于 / 联系。
     按列流动会变成「作品 联系 / 关于」，联系被甩到最右边，视觉上像少了一项。 */
  grid-auto-flow: row;
  gap: 6px 58px;
  margin-top: -2px;
}
.hd-nav a, .hd-nav button {
  display: block;
  padding: 2px 0;
  font-size: 1.4rem;
  line-height: 2.2rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: left;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.hd-nav a:hover, .hd-nav button:hover { color: var(--mute); }
.hd-nav .is-here { color: var(--mute); }

/* 首页：压在照片上，全部转白 */
.is-front .hd-logo,
.is-front .hd-nav a,
.is-front .hd-nav button { color: var(--on-photo); }
.is-front .hd-logo i { color: var(--on-photo-dim); }
.is-front .hd-nav a:hover,
.is-front .hd-nav button:hover { color: var(--on-photo-dim); }
.is-front .hd-nav .is-here { color: var(--on-photo-dim); }

/* 手机：logo + Menu */
.hd-m {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hd-m-btn { font-size: 1.4rem; font-weight: 600; letter-spacing: .02em; }
.is-front .hd-m-btn { color: var(--on-photo); }
.is-open .hd-m-btn { color: var(--mute); }

/* 手机抽屉 */
.dr {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: var(--paper);
  padding: var(--hd-s) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dr[hidden] { display: none; }
.dr-nav { width: 100%; display: grid; text-align: center; }
.dr-nav a {
  display: block;
  padding: 6px 0;
  font-size: 2.4rem;
  line-height: 1.5;
  font-weight: 500;
}
.dr-nav a:hover { color: var(--mute); }
/* ---------------------------------------------------------------- 页脚 */
/* 备案号必须出现在首页底部（工信部要求）。参考站没有页脚，
   所以我们只留一行 11px 的灰字，不打断版面。 */
.ft {
  position: relative;
  z-index: 5;
  padding: 70px var(--g) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--mute);
}
.ft a { transition: color .25s var(--ease); }
.ft a:hover { color: var(--ink); }
/* 分隔符挂在链接自己身上（::before），不是独立的元素 ——
   这样手机上把「网站地图」藏掉时，前面那个 "/" 会跟着一起消失，
   不会在行尾留下一根孤零零的斜杠。 */
.ft-i::before { content: "/"; margin: 0 .85em; color: var(--faint); }

/* 一屏页（首页 / 作品内页）：页脚沉到底部正中，其余位置都被占着了 */
.is-fixed { overflow: hidden; }
.is-fixed .ft {
  position: fixed;
  left: 50%;
  bottom: 6px;
  right: auto;
  transform: translateX(-50%);
  padding: 0;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 8;
  white-space: nowrap;
  display: block;
}
.is-fixed .ft > * { pointer-events: auto; }
/* 首页文字压在照片上，要能读出来 */
.is-front .ft, .is-front .ft a { color: rgba(243, 243, 243, .7); }
.is-front .ft a:hover { color: #fff; }
.is-front .ft-i::before { color: rgba(243, 243, 243, .3); }

/* ---------------------------------------------------------------- 通用 */
/* 可滚动的页面用 flex 撑满一屏：作品集只有几套时，
   页脚不该停在屏幕中间，那看起来像没加载完。 */
.page-works, .page-about, .page-contact, .page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-works main, .page-about main, .page-contact main, .page-404 main { flex: 1 0 auto; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--g); }
.link { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.link:hover { color: var(--mute); }

/* 页面主标题：只有 15px。层级交给留白，不交给字号。 */
.pg-title {
  font-size: 1.5rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.pg-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--faint);
  margin-left: 8px;
  letter-spacing: .04em;
}

/* 小标签：大写、极淡、带字距 */
.kick {
  font-size: 1.1rem;
  line-height: 1.8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* 下划线小按钮（参考站的 Grid / List 切换） */
.tab {
  position: relative;
  font-size: 1.4rem;
  font-weight: 600;
  transition: color .25s var(--ease);
}
.tab:hover { color: var(--mute); }
.tab[aria-selected="true"] { color: var(--ink); pointer-events: none; }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: calc(100% + 2px);
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
}

/* 带下划线的动作链接 + 一个小加号（展开时转 45° 变叉） */
.act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.3rem;
  line-height: 1.95rem;
  color: inherit;
  text-align: left;
}
.act-t {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.act:hover { color: var(--mute); }
.act-i {
  position: relative;
  width: 7px; height: 7px;
  flex: 0 0 auto;
  transition: transform .35s var(--ease);
}
.act-i::before, .act-i::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}
.act-i::after { transform: translateY(-50%) rotate(90deg); }
.act[aria-expanded="true"] .act-i { transform: rotate(45deg); }
.is-front .act { color: var(--on-photo); }

/* ==========================================================================
   首页 —— 全屏照片 + 底部作品列表
   参考站的首页是 15 条视频全屏叠着，悬停标题换背景（3 秒淡入）。
   我们没有视频（服务器带宽只有 3Mbps），用同一套「叠图淡入」：
   所有封面 fixed 铺满、opacity 0，命中的那一张 opacity 1。
   切图是纯 CSS 过渡，不触发重排，所以永远不会卡。
   ========================================================================== */
.hm { position: fixed; inset: 0; overflow: hidden; }

.hm-stage { position: fixed; inset: 0; z-index: 0; background: #e6e6e6; }
/* .hm-img 现在挂在 <picture> 上（里面才是 <img>），因为它要带 srcset。
   裁切点定在偏上：竖幅封面塞进横屏时，要保住人物的脸，不然只剩一片衣服。
   object-position 只影响「被裁掉哪部分」，不会拉伸变形。 */
.hm-img {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
  will-change: opacity;
}
.hm-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.hm-img.is-on { opacity: 1; }

/* 压暗底边，保证白字在亮照片上也读得出来。
   没有这层，遇到雪景 / 白墙照片，作品名会直接消失。 */
.hm-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 三层，各管一件事：
     1) 底部往上压暗 —— 页脚和右下角那行白字要能读；
     2) 左侧再压一层 —— 作品目录是 10 行白字，压在油菜花这种亮画面上会糊；
     3) 顶部压一点 —— 页头白字同理。 */
  background:
    linear-gradient(to top, rgba(16, 16, 16, .58) 0%, rgba(16, 16, 16, .24) 34%, rgba(16, 16, 16, 0) 62%),
    linear-gradient(to right, rgba(16, 16, 16, .40) 0%, rgba(16, 16, 16, .13) 28%, rgba(16, 16, 16, 0) 50%),
    linear-gradient(to bottom, rgba(16, 16, 16, .22) 0%, rgba(16, 16, 16, 0) 18%);
}

/* 列表和 More 一起沉在底部（参考站 grid-template-rows: 1fr auto） */
.hm-cols {
  position: fixed;
  z-index: 2;
  top: 101px;
  bottom: 30px;
  left: var(--g);
  width: calc(100% - var(--g) * 2);
  max-width: 460px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: 100%;
}

.hm-list {
  align-self: end;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-right: 8px;
  /* 溢出的下沿渐隐 —— 告诉人「下面还有」 */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent 100%);
}
.hm-list::-webkit-scrollbar { width: 0; height: 0; }
.hm-list.at-end { -webkit-mask-image: none; mask-image: none; }

.hm-item { display: block; }
/* 首图现在是「随机横板」，等于把白字往不可控的底上放。
   左边那层压暗只到画面中上部，赶上油菜花、白雪、逆光这种亮画面还是会发虚，
   所以再给文字本身一层极淡的投影：暗底上完全看不出来，亮底上能把笔画托住。 */
.hm-name {
  display: block;
  padding: 2px 0;
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--on-photo);
  text-shadow: 0 1px 12px rgba(8, 8, 8, .5), 0 0 3px rgba(8, 8, 8, .38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .45s var(--ease);
}
.hm-item.is-on .hm-name { color: var(--on-photo-dim); }
.hm-name:hover { color: var(--on-photo-dim); }

/* 第二行信息（题材 · 年份）只在命中时展开：
   31 行全带副标题会糊成一片，那就不是「列表」而是「段落」了 */
.hm-meta {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 1.7rem;
  letter-spacing: .05em;
  color: var(--on-photo-dim);
  text-shadow: 0 1px 10px rgba(8, 8, 8, .45);
  opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s var(--ease);
}
.hm-item.is-on .hm-meta { max-height: 2rem; opacity: 1; }
.hm-item.is-on .hm-name { white-space: normal; }

.hm-more {
  align-self: end;
  justify-self: start;
  display: inline-block;
  margin-top: 16px;
  font-size: 1.3rem;
  line-height: 1.95rem;
  color: var(--on-photo);
  text-shadow: 0 1px 12px rgba(8, 8, 8, .5), 0 0 3px rgba(8, 8, 8, .38);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .3s var(--ease);
}
.hm-more:hover { color: var(--on-photo-dim); }

/* 右下角：现在看的是哪一套 */
.hm-now {
  position: fixed;
  right: var(--g);
  bottom: 30px;
  z-index: 2;
  text-align: right;
  font-size: 1.1rem;
  line-height: 1.9rem;
  letter-spacing: .06em;
  color: var(--on-photo-dim);
  pointer-events: none;
}
.hm-now b {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--on-photo);
}

/* ==========================================================================
   作品集索引
   参考站两种视图：Grid（121px 小图拼贴，悬停浮出标题）与 List（文字行 + 全屏图）
   ========================================================================== */
.wk-page { padding-top: 196px; padding-bottom: 10px; }

.wk-bar {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 var(--g);
  flex-wrap: wrap;
}
/* 左边一列：标题 + 悬停作品名。名字行常驻占位（min-height），
   不然鼠标移来移去，标题会跟着上下跳。 */
.wk-bar-l { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

/* 题材筛选：竖排网格、列优先流动（和参考站的 category 一致） */
.wk-cats {
  /* 横排 + 换行。以前是「固定 4 行的竖排网格」，题材从 4 变 5 之后，
     第 5 项被挤到第二列顶上，看起来像掉出来的一行。 */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 26px;
  padding-left: 26px;
  margin-left: 4px;
  border-left: 1px solid var(--ink);
  max-width: 640px;
}
.wk-cats button {
  font-size: 1.3rem;
  line-height: 1.82rem;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.wk-cats button:hover { color: var(--mute); }
.wk-cats button .n {
  margin-left: 5px;
  font-size: 1.1rem;
  color: var(--faint);
}
.wk-cats button[aria-pressed="true"] { color: var(--mute); pointer-events: none; }
.wk-cats button[aria-pressed="true"] .n { color: var(--faint); }

.wk-views { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.wk-views .sep { color: var(--faint); font-size: 1.2rem; }

.wk-empty { padding: 70px var(--g) 0; font-size: 1.3rem; color: var(--mute); }

/* ---- Grid：小图密集拼贴 ---- */
.wk-grid {
  margin: 45px var(--g) 0;
  display: grid;
  /* auto-fit（不是 auto-fill）：只有 6 套时自动放大铺满整行，
     到几十套以后自然回落到参考站那种 121px 的小图密度。
     用 auto-fill 的话，6 套只占左边三分之一，右边空着像没加载完。 */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10.5px 4px;
}
/* 图片还没解码时，<picture> 上那层 LQIP 当底色用。
   它必须 cover + 不重复 —— 默认是 repeat，24px 的小图会被铺成一整面马赛克，
   看起来像渲染坏了（真的踩过）。 */
picture {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 40%;
}

.wk {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8e8e8;
}
.wk[hidden] { display: none; }
.wk-media { display: block; }
.wk-media img, .wk-media picture { display: block; width: 100%; }
.wk-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* 悬停只做一件事：把照片慢慢放大一点点。
     以前是压暗 + 底部一条黑渐变 —— 那层东西盖在照片上，等于让作品看不清；
     照片是主角，界面不该抢戏。 */
  transition: transform 1.15s var(--ease);
}
.wk:hover .wk-media img,
.wk:focus-visible .wk-media img { transform: scale(1.045); }

/* 悬停到哪一套，标题条里就显示哪一套（main.js 写进 #wkNow）。
   标题不再压在照片上：整套版式的规矩是「文字在空白处，照片上不放东西」。 */
.wk-now {
  margin-top: 3px;
  min-height: 1.85rem;
  font-size: 1.2rem;
  line-height: 1.85rem;
  color: var(--mute);
  transition: opacity .3s var(--ease);
}
.wk-now:empty { opacity: 0; }

/* 404 的推荐格里，标题是常驻小字 */
.nf-t {
  display: block;
  margin-top: 7px;
  font-size: 1.1rem;
  line-height: 1.7rem;
  color: var(--mute);
}

/* ---- List：一行一套，悬停铺满全屏图 ---- */
.wk-list {
  position: relative;
  z-index: 2;
  margin: 45px var(--g) 0;
  border-top: 1px solid var(--line-soft);
}
.wk-bar { position: relative; z-index: 2; }
.wk-lrow {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 128px 74px 46px;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.3rem;
  line-height: 1.95rem;
  transition: color .3s var(--ease);
}
.wk-lrow[hidden] { display: none; }
.wk-lrow:hover { color: var(--mute); }
.wk-lrow .c-n { color: var(--faint); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.wk-lrow .c-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-lrow .c-c, .wk-lrow .c-y { color: var(--mute); font-size: 1.2rem; }
.wk-lrow .c-p { color: var(--faint); font-size: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; }

/* List 视图的背景图：懒加载 —— 只有第一次悬停才真的去取图。
   31 张 1600w 一次性铺满会把 3Mbps 的带宽直接打满。 */
.wk-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.wk-bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  /* 把照片本身压暗，而不是拿一层灰去盖文字：
     盖灰会让白字变灰字，压暗照片只削亮度，白字还是纯白。
     遇到浅色照片（白墙、雪、纱裙）这层是唯一保证能读的东西。 */
  filter: brightness(.68);
}
.wk-bg img.is-on { opacity: 1; }
/* 背景图出来时，正文要能读 */
.wk-list.is-over { position: relative; z-index: 2; }
.wk-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
  background: rgba(16, 16, 16, .34);
}
.is-list-bg .wk-scrim { opacity: 1; }
/* 背景图铺满时，页头也跟着翻白 —— 不然深色 logo 压在暗照片上等于消失 */
.is-list-bg .hd-logo, .is-list-bg .hd-nav a { color: var(--on-photo); }
.is-list-bg .hd-logo i { color: var(--on-photo-dim); }
.is-list-bg .hd-nav a:hover { color: var(--on-photo-dim); }
.is-list-bg .wk-bar, .is-list-bg .wk-lrow { color: var(--on-photo); }
.is-list-bg .wk-lrow { border-bottom-color: rgba(243,243,243,.22); }
.is-list-bg .wk-list { border-top-color: rgba(243,243,243,.3); }
.is-list-bg .wk-lrow .c-c, .is-list-bg .wk-lrow .c-y { color: var(--on-photo-dim); }
.is-list-bg .wk-lrow .c-n, .is-list-bg .wk-lrow .c-p { color: rgba(243,243,243,.5); }
.is-list-bg .wk-lrow:hover { color: var(--on-photo-dim); }
.is-list-bg .wk-cats { border-left-color: var(--on-photo); }
.is-list-bg .wk-cats button { color: var(--on-photo-dim); }
.is-list-bg .wk-cats button:hover { color: var(--on-photo); }
.is-list-bg .wk-cats button .n { color: rgba(243,243,243,.45); }
.is-list-bg .tab { color: var(--on-photo-dim); }
.is-list-bg .tab[aria-selected="true"] { color: var(--on-photo); }
.is-list-bg .pg-title { color: var(--on-photo); }
.is-list-bg .pg-title em { color: rgba(243,243,243,.5); }
.is-list-bg .ft, .is-list-bg .ft a { color: rgba(243,243,243,.7); }
.is-list-bg .ft-i::before { color: rgba(243,243,243,.3); }

/* ==========================================================================
   作品内页 —— 一屏一张，四角放字
   参考站的 single-work：图片 contain 撑满、左下标题 + Detail、右下 1/12、
   点左右半屏翻页。参数面板和详情都做成全屏纸色浮层（参考站的 modal）。
   ========================================================================== */
.al { position: fixed; inset: 0; overflow: hidden; }

/* 顶部 118px = 头部 22~72px + 索引/翻页那一行。
   不给这一行留位置，索引会被 logo 压住、上一套下一套会压住语言切换。 */
.al-stage {
  position: absolute;
  inset: 0;
  padding: calc(var(--hd) + 46px) var(--g) var(--cap-band);
  display: flex;
  align-items: center;
  justify-content: center;
}
.al-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1190px;
  margin: 0 auto;
}
.al-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .35s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}
.al-frame picture { display: contents; }
.al-frame.is-swapping img { opacity: .22; }

/* 左右半屏翻页热区。⚠️ 必须显式 outline:0 —— 它是半屏贴边元素，
   焦点环的上下右边会被视口裁掉，只剩左边一条通高黑线，看起来像网页裂了。
   反馈改用箭头点亮（见下面的 :focus-visible 规则）。 */
.al-hit {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 3;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.al-hit:focus, .al-hit:focus-visible { outline: 0; }
.al-hit--prev { left: 0; }
.al-hit--next { right: 0; }
.al-hit::-moz-focus-inner { border: 0; }

.al-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.al-hit--prev .al-arrow { left: 12px; }
.al-hit--next .al-arrow { right: 12px; }
.al-hit:hover .al-arrow { opacity: .45; }
.al-hit--prev:hover .al-arrow { transform: translate(-3px, -50%); }
.al-hit--next:hover .al-arrow { transform: translate(3px, -50%); }
.al-hit:focus-visible .al-arrow { opacity: .8; }

/* ---- 等图：一个小圆盘 + 一根转动的细线 ----
   为什么不用通用的粗圈 spinner：这套版式里所有线条都是 1px，粗圈会跳出来像广告。
   圆盘是纸色的 —— 照片本身很暗时（夜景、深色棚拍）细线才不会消失在画面里。 */
/* 不加 :not(.hm-img) 会把首屏那张 absolute 定位的图改成 relative，
   整屏照片会掉出视口 —— 它自己就是包含块，不需要这一行。 */
[data-ld]:not(.hm-img) { position: relative; }
/* 等图动画 = 纸色圆盘 + 一圈转动着的墨线。
   为什么不是"一根细线转"（第一版就是这么写的）：15px 的 1px 线在 1600 宽的屏上
   退到 1 米外就看不见了，访客看到的是一整块空白，判断成"这网站坏了"。
   现在盘径 40px（--ld），里面那段弧用接近纯墨色，转起来才像"在干活"。
   卡片里放不下 40px，用 --ld 缩到 26px —— 尺寸都在这一处改。 */
[data-ld] { --ld: 40px; }
.wk[data-ld] { --ld: 26px; }
[data-ld]::before,
[data-ld]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  transition: opacity .45s var(--ease);
}
/* ⚠️ 环必须在盘子"上面"。
   两个伪元素同 z-index 时，::after 恒在 ::before 之后绘制 ——
   盘子（90% 不透明）会盖住环，环只剩一成能透出来，看上去像没画。
   第一版就是这么翻车的：调大、调黑都不管用，因为根本不是尺寸问题。 */
[data-ld]::after {
  width: var(--ld);
  height: var(--ld);
  margin: calc(var(--ld) / -2) 0 0 calc(var(--ld) / -2);
  background: rgba(243, 243, 243, .9);
  box-shadow: 0 0 0 1px rgba(44, 44, 44, .04), 0 6px 24px rgba(44, 44, 44, .07);
  z-index: 3;
}
[data-ld]::before {
  width: calc(var(--ld) * .46);
  height: calc(var(--ld) * .46);
  margin: calc(var(--ld) * -.23) 0 0 calc(var(--ld) * -.23);
  border: 1px solid rgba(44, 44, 44, .14);
  border-top-color: var(--ink);
  border-right-color: rgba(44, 44, 44, .55);
  animation: ld-turn 1.1s linear infinite;
  z-index: 4;
}
/* 减速动效偏好的访客：不转，给一个静态的环（等于"这里在等图"） */
@media (prefers-reduced-motion: reduce) {
  [data-ld]::before { animation: none; }
}
[data-ld].is-loaded::before,
[data-ld].is-loaded::after { opacity: 0; }
@keyframes ld-turn { to { transform: rotate(360deg); } }

/* ---- 四角文字层 ---- */
.al-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.al-c { position: absolute; pointer-events: auto; }

.al-c--tl { top: 80px; left: var(--g); }
.al-c--tr { top: 80px; right: var(--g); display: flex; gap: 17px; }

.al-c--tl a, .al-c--tr a {
  font-size: 1.3rem;
  line-height: 1.95rem;
  transition: color .3s var(--ease);
}
.al-c--tl a:hover, .al-c--tr a:hover { color: var(--mute); }
.al-c--tr a.is-off { color: var(--faint); }

.al-c--bl {
  left: var(--g);
  bottom: 22px;
  width: 32.55%;
  min-width: 220px;
  max-width: 470px;
}
.al-c--br {
  right: var(--g);
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.al-title { font-size: 1.3rem; line-height: 1.95rem; font-weight: 600; }
/* 当前这张照片的名字（跟着翻页换），比套名淡一档 */
.al-photo {
  display: block;
  font-size: 1.2rem;
  line-height: 1.85rem;
  font-weight: 400;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.al-photo:empty { display: none; }
.al-sub {
  display: block;
  margin-top: 1px;
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--mute);
}
.al-spec {
  display: block;
  margin-top: 10px;
  /* 12px 不是为了好看：这行是访客判断「用什么机器拍的」的唯一入口，
     11px 在 1600 宽的屏上要凑近看。再加就会顶到照片上去（有回归在量）。 */
  font-size: 1.2rem;
  line-height: 1.85rem;
  color: var(--mute);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-spec .sp + .sp::before {
  content: "·";
  margin: 0 6px;
  color: var(--faint);
}
.al-spec[hidden] { display: none; }
.al-acts { display: flex; gap: 22px; margin-top: 8px; }

.al-count {
  font-size: 1.3rem;
  line-height: 1.95rem;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.al-count .al-slash { margin: 0 4px; color: var(--faint); }
.al-count #alTotal { color: var(--mute); }

/* 参数按钮旁的循环提示：半透明、缓慢呼吸，不抢话但看得见 */
.al-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.1rem;
  line-height: 1.8rem;
  color: var(--mute);
  animation: hint-breathe 4.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hint-breathe {
  0%, 100% { opacity: .26; }
  50% { opacity: .92; }
}
.al-hint[hidden] { display: none; }
.is-hint-done .al-hint { display: none; }

/* ---- 参数 / 详情浮层：全屏纸色，正中一列 506px ---- */
body.is-sheet-open .hd,
body.is-sheet-open .ft { opacity: 0; visibility: hidden; }
.hd, .ft { transition: opacity .35s var(--ease), visibility 0s linear .35s; }
body:not(.is-sheet-open) .hd,
body:not(.is-sheet-open) .ft { transition: opacity .35s var(--ease), visibility 0s; }

.al-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--paper);
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 72px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
.al-sheet.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease), visibility 0s;
}
.al-sheet[hidden] { display: none; }

/* 关闭按钮：跟页头用同一条右边距，所以它落在导航原来的位置上。
   浮层打开时页头整体收起（body.is-sheet-open），这里只会有它一个 ——
   以前按钮和「作品/关于/联系」叠在一起，点「联系」会跳走，是真的点错。 */
.al-sheet-x {
  position: absolute;
  top: 22px;
  right: var(--g);
  padding: 2px 0;
  font-size: 1.3rem;
  line-height: 1.95rem;
  transition: color .3s var(--ease);
  z-index: 3;
}
.al-sheet-x:hover { color: var(--mute); }
.al-sheet-x span { color: var(--faint); margin-left: 4px; font-size: 1.1rem; }

.al-sheet-mid {
  grid-row: 2 / 3;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.al-sheet-in { width: 100%; max-width: 506px; margin: auto; }

.al-sheet-kick {
  font-size: 1.1rem;
  line-height: 1.8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}
.al-sheet-title {
  font-size: 1.3rem;
  line-height: 1.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.al-sheet-body { font-size: 1.3rem; line-height: 2.47rem; color: var(--ink); }
.al-sheet-body p + p { margin-top: 1.6em; }

/* 参数分组 */
.ss-g {
  margin-top: 34px;
  font-size: 1.1rem;
  line-height: 1.8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.ss-g:first-child { margin-top: 0; }
.ss-l {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 8.4em minmax(0, 1fr);
  gap: 0 12px;
  font-size: 1.3rem;
  line-height: 2.28rem;
}
.ss-l dt { color: var(--mute); }
.ss-l dd { margin: 0; }
.ss-none { font-size: 1.3rem; line-height: 2.28rem; color: var(--mute); }
.ss-credit { margin-top: 30px; font-size: 1.1rem; line-height: 1.9rem; color: var(--faint); }

/* 详情里的标签与链接 */
.md-tags { display: flex; flex-wrap: wrap; column-gap: 7px; margin-top: 26px; }
.md-tags li { font-size: 1.3rem; line-height: 2.47rem; color: var(--mute); }
.md-tags li + li::before { content: "/"; margin-right: 7px; color: var(--faint); }
.md-links { margin-top: 22px; display: grid; gap: 2px; }
.md-links a {
  font-size: 1.3rem;
  line-height: 2.3rem;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.md-links a:hover { color: var(--ink); }

/* ==========================================================================
   关于 / 联系 —— 参考站的 about：13px 正文、label + value 两栏
   ========================================================================== */
.pg { padding-top: 196px; padding-bottom: 10px; }

.ab { margin-inline: var(--g); }
.ab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: 60px;
  align-items: start;
}
/* 关于页头像：方图。
   原来是个 230px 宽的自然比例图——手机自拍竖幅进来会变成一块很大的竖条，
   把「关于」挤到第二屏。裁成正方形（object-fit: cover + 偏上 26% 让脸在中间），
   它才像个头像，而不是一张插进来的照片。 */
.ab-fig { margin: 26px 0 0; max-width: 168px; }
.ab-fig picture { display: block; }
.ab-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 26%;
}
.ab-name { font-size: 1.4rem; line-height: 2.1rem; font-weight: 600; }
.ab-name em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.ab-txt { margin-top: 15px; font-size: 1.3rem; line-height: 2.35rem; max-width: 620px; }
.ab-txt p + p { margin-top: 1.5em; }

.ab-rows { margin-top: 42px; max-width: 620px; }
.ab-row {
  display: flex;
  gap: 15px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 1.3rem;
  line-height: 2.1rem;
}
.ab-row:last-child { border-bottom: 1px solid var(--line-soft); }
.ab-row dt { flex: 0 0 96px; color: var(--mute); }
.ab-row dd { margin: 0; min-width: 0; }
.ab-row dd a { text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.ab-row dd a:hover { color: var(--mute); }

.ab-sec { margin-top: 90px; }
.ab-sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ab-sec-n { font-size: 1.2rem; color: var(--mute); }

.ab-series a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.3rem;
  line-height: 2rem;
  transition: color .3s var(--ease);
}
.ab-series a:hover { color: var(--mute); }
.ab-series .m { font-size: 1.1rem; color: var(--faint); white-space: nowrap; }
.ab-snsrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.3rem;
  line-height: 2rem;
}
.ab-snsrow .m { font-size: 1.1rem; color: var(--faint); }

/* 联系 */
.ct-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 1.3rem;
  line-height: 2.1rem;
}
.ct-row:last-of-type { border-bottom: 1px solid var(--line-soft); }
.ct-k { flex: 0 0 96px; color: var(--mute); }
.ct-v { min-width: 0; }
.ct-v a { text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.ct-v a:hover { color: var(--mute); }
/* 平台图标：内联 SVG，统一 14px。不写这个，SVG 会按 viewBox 撑成一大块，
   把「微信 WeChat」挤到图标的下一行去（曾经就是这样）。 */
.ci {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -2px;
}
.ct-plats { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 4px; }
.ct-plats a, .ct-plats span.p {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.ct-plats a:hover { color: var(--mute); }
.ct-sep { color: var(--faint); }
.ct-note { margin-top: 30px; font-size: 1.2rem; line-height: 2.1rem; color: var(--mute); max-width: 560px; }
.ct-lead { margin-top: 18px; font-size: 1.3rem; line-height: 2.35rem; max-width: 620px; }

/* ==========================================================================
   404
   ========================================================================== */
.nf { padding-top: 196px; }
.nf-big { font-size: 1.5rem; font-weight: 600; }
.nf-txt { margin-top: 15px; font-size: 1.3rem; line-height: 2.35rem; color: var(--mute); max-width: 460px; }
.nf-grid {
  margin: 45px var(--g) 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(121px, 1fr));
  gap: 10.5px 4px;
}


/* ==========================================================================
   网站地图
   一条竖线串起来的目录：左边是页面，右边按题材展开作品集。
   每一条都有中文名（主）和英文名（次）—— 英文只在这一页出现。
   ========================================================================== */
.sm { padding: 196px var(--g) 130px; }
.sm-lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 1.3rem;
  line-height: 2.4rem;
  color: var(--mute);
}
.sm-lead b { font-weight: 600; color: var(--ink); }

.sm-cols {
  margin-top: 88px;
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 72px;
  align-items: start;
}

.sm-col .kick em { font-style: normal; color: var(--faint); margin-left: 8px; }

.sm-list { margin-top: 20px; border-top: 1px solid var(--line-soft); }
.sm-list li { border-bottom: 1px solid var(--line-soft); }
.sm-list a { display: block; padding: 13px 0; transition: color .3s var(--ease); }
.sm-list a:hover .sm-t { color: var(--mute); }

.sm-t { font-size: 1.4rem; line-height: 2.1rem; font-weight: 600; }
.sm-e {
  display: block;
  margin-top: 1px;
  font-size: 1.1rem;
  line-height: 1.7rem;
  letter-spacing: .04em;
  /* 以前用 --faint（#bfbfbf），在纸底上几乎看不见 —— 英文是这一页的正式内容，不是水印 */
  color: var(--mute);
}
.sm-note { display: block; margin-top: 2px; font-size: 1.1rem; line-height: 1.7rem; color: var(--mute); }

/* 右栏：题材是分支，作品集是叶子 */
.sm-branch { border-left: 1px solid var(--line-soft); padding-left: 28px; }
.sm-g { position: relative; }
.sm-g + .sm-g { margin-top: 46px; }
.sm-gh {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.4rem;
  line-height: 2.1rem;
  font-weight: 600;
}
/* 分支横线：从竖线伸出来，长度正好接到标题 */
.sm-gh::before {
  content: "";
  position: absolute;
  left: -28px;
  top: .95rem;
  width: 20px;
  height: 1px;
  background: var(--line);
}
.sm-gh .sm-e { display: inline; margin-left: 4px; }
.sm-gh .sm-c { margin-left: auto; font-size: 1.1rem; font-weight: 400; color: var(--faint); }

.sm-g .sm-list { margin-top: 12px; }
.sm-g .sm-list a {
  display: grid;
  /* 四块都写死行列：只写「列」不写「行」的话，浏览器会把有确定列的那几个
     先塞进去，中文标题被挤到 44px 的计数列里，一行只能放一个字。 */
  grid-template-columns: 30px minmax(0, 1fr) 46px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: baseline;
}
.sm-i {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 1.1rem;
  line-height: 1.9rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.sm-g .sm-t { grid-column: 2; grid-row: 1; font-size: 1.3rem; font-weight: 400; line-height: 1.95rem; }
.sm-g .sm-e { grid-column: 2; grid-row: 2; }
.sm-g .sm-c {
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
  font-size: 1.1rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sm-foot {
  margin-top: 90px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 1.1rem;
  color: var(--faint);
}
.sm-foot a { color: var(--mute); border-bottom: 1px solid var(--line); }
.sm-foot a:hover { color: var(--ink); }

/* ==========================================================================
   蒲公英门（首次进入）
   原来是「暖灰纸底 + 白线 + 偏移投影」—— 那是在米色底上才成立的一套。
   换到 #f3f3f3 之后白线彻底消失，所以改成「墨色细线」：
   浅底上的深色线，和整站的字同一个颜色。
   ========================================================================== */
.gate { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: none; }
.gate-on .gate { display: block; }
.gate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gate-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  outline: 0;
}
.gate-hit:focus-visible { outline: 0; }
.gate-cta {
  position: absolute;
  left: 50%;
  top: 78%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  line-height: 2.2rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink);
  opacity: .55;
  pointer-events: none;
  animation: cta-float 5.2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes cta-float {
  0%, 100% { opacity: .26; transform: translate(-50%, calc(-50% - 6px)); }
  50% { opacity: .82; transform: translate(-50%, calc(-50% + 6px)); }
}
.gate-ui { position: absolute; left: var(--g); bottom: 34px; pointer-events: none; }
.gate-kicker {
  font-size: 1.1rem;
  line-height: 1.8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.gate-hint { font-size: 1.2rem; line-height: 2rem; color: var(--faint); margin-top: 2px; }
.gate-skip {
  position: absolute;
  right: var(--g);
  bottom: 30px;
  font-size: 1.3rem;
  line-height: 1.95rem;
  color: var(--mute);
  transition: color .3s var(--ease);
}
.gate-skip:hover { color: var(--ink); }
.gate-skip span { margin-left: 3px; }

/* 门开着的时候，底下的东西不能滚、也不能被 Tab 到 */
.gate-on .hm, .gate-on .hd, .gate-on .ft { opacity: 0; visibility: hidden; }
.gate { animation: gate-in .6s var(--ease) both; }
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
.gate.is-out { animation: gate-out .9s var(--ease) forwards; }
@keyframes gate-out { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   断点
   ========================================================================== */
@media (max-width: 1100px) {
  .wk-cats { grid-template-rows: repeat(3, auto); }
  .al-c--bl { width: 42%; }
}

@media (max-width: 834px) {
  :root { --g: var(--g-s); --hd: var(--hd-s); }

  .hd { padding-top: 14px; }
  .hd-m-btn { display: block; }
  .hd-in .hd-nav { display: none; }

  /* 首页：列表在下方，照片仍全屏 */
  .hm-cols {
    top: auto;
    bottom: 64px;
    left: var(--g);
    right: var(--g);
    width: auto;
    max-width: none;
    max-height: 44vh;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  /* 手机上列表本身就在眼前，右下角那行「现在看的是哪一套」纯属重复，
     还会和列表下沿打架（实测重叠 309 平方像素）。直接收掉。 */
  .hm-now { display: none; }

  /* 作品索引 */
  .wk-page { padding-top: 148px; }
  .wk-bar { gap: 12px; row-gap: 14px; align-items: flex-start; }
  .wk-cats {
    order: 3;
    width: 100%;
    border-left: 0;
    padding-left: 0;
    grid-template-rows: repeat(2, auto);
    column-gap: 22px;
    margin-left: 0;
  }
  .wk-views { margin-left: 0; }
  .wk-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px 3px; }
  .wk-now { display: none; }        /* 触屏没有悬停，这行状态字没意义 */
  .wk-lrow { grid-template-columns: 34px minmax(0, 1fr) 54px; }
  .wk-lrow .c-c, .wk-lrow .c-p { display: none; }

  /* 作品内页 */
  .al-stage { padding: calc(var(--hd) + 40px) var(--g) var(--cap-band-s); }
  .al-c--tl { top: 56px; }
  .al-c--tr { top: 56px; }
  /* 手机：右下角放「页码 + 拍摄参数 / 详情」，标题块整体抬到它上面 ——
     两个都是贴底元素，让它们各占一行，比挤在一个角里互相压住好。 */
  .al-c--bl { width: calc(100% - 2 * var(--g)); max-width: none; bottom: 96px; }
  .al-c--br { top: auto; bottom: 30px; right: var(--g); flex-direction: column; align-items: flex-end; gap: 0; }
  .al-spec { display: none; }        /* 窄屏放不下这一行，参数进浮层看 */
  .al-acts { gap: 18px; margin-top: 8px; }
  .al-hint { display: none; }
  .al-count { font-size: 1.2rem; }

  /* 关于 / 联系 */
  .pg { padding-top: 148px; }
  .ab-grid { grid-template-columns: 100%; gap: 30px; }
  .ab-fig { max-width: 158px; }
  .ab-row dt, .ct-k { flex: 0 0 74px; }
  .ab-sec { margin-top: 60px; }
  .ab-txt, .ct-lead { font-size: 1.3rem; line-height: 2.2rem; }

  .nf { padding-top: 148px; }

  /* 网站地图：手机单栏，竖线留在作品集那一栏 */
  .sm { padding-top: 148px; padding-bottom: 90px; }
  .sm-cols { grid-template-columns: 1fr; gap: 52px; margin-top: 60px; }
  .sm-g .sm-list a { grid-template-columns: 26px minmax(0, 1fr) 34px; }
  .sm-g + .sm-g { margin-top: 36px; }

  .al-sheet { grid-template-rows: 52px minmax(0, 1fr) 52px; }
  .al-sheet-x { top: 14px; right: 20px; }
  .al-sheet-body, .ss-l { font-size: 1.3rem; line-height: 2.3rem; }
  .ss-l { grid-template-columns: 7em minmax(0, 1fr); }

  .gate-hint, .gate-kicker { display: none; }
  .gate-cta { font-size: 1.3rem; }
}

@media (max-width: 520px) {
  /* 手机只保留两个备案号（法律要求），版权行和网站地图收起 */
  .ft-copy, .ft .ft-map { display: none; }
  .ft-i:first-of-type::before { content: none; }
  .wk-lrow { grid-template-columns: 30px minmax(0, 1fr) 46px; gap: 10px; }
  .al-title .al-photo { font-size: 1.1rem; }
  .al-c--br { gap: 12px; }
}

/* 系统要求减弱动效：全部静止，但保留最终状态 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .gate-cta { opacity: .55; transform: translate(-50%, -50%); }
  .al-hint { opacity: .7; }
}

/* 打印：只留字 */
@media print {
  .hd, .ft, .gate, .al-hit, .wk-bg { display: none !important; }
  body { background: #fff; }
}

/* ====== 相机光标 ====== */
/* @cursor:begin */
/* 相机光标。由 tools/make-cursor.mjs 生成 —— 不要手改下面的 base64。
   重新生成：node tools/make-cursor.mjs */
:root {
  --cur-cam: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACKFBMVEVMaXH///////8WFhr////////////////////////////////////////////////////////////9/f3///8XFxr////////////////////////////////////////////////////////////////4+Pj////////8/Pz////////////4+Pj////////////////////////4+Pj///////////////////////////////////////////////////////////////9iYmUVFRkWFhp9fX98fH4UFBljY2b////////////////////////////////ExMX////////////p6emurq8WFhrv7/CioqNzc3bDw8Tn5+j////KysulpacmJimTk5UmJio1NTmhoaIfHyMcHCAYGBwxMTVRUVT6+vrS0tMjIydmZmm6uryKiox0dHZTU1bX19fe3t7k5OVSUlX39/fz8/Pv7+9BQUTQ0NH09PRMTE94eHra2tsnJyvBwcI/P0JxcXRQUFM3Nzqbm52oqKqfn6E0NDiVlZeUlJZ/f4H5+fnm5udPT1IqKi5FRUhMTFBTU1e5ubpOTlGFhYfY2Nna2tqGhogZGR3r6+uzs7TIyMlfX2JkZGavr7AdHSHCwsOwsLHh4eKdnZ8eHiK1tbaJiYvn5+fi4uOHh4mcnJ7o6OjJycrNzc13d3llZWdbW156enympqhhYWRv/D4qAAAAWnRSTlMAgoj+Y1vyM7s7cDwhFKvtlrlq86pXAQMECCksbowHTzZHmi5KVP75w/bgtxL784V1tdgf/T56uMjBF6WQWV4eo3nq7nTjbf3k5G7jpqQW7NZyMqH5OrpY8f3JOi0FAAAACXBIWXMAADsOAAA7DgHMtqGDAAABVklEQVR42mNgGAUkA24+DjDg48Yuz8uWEgsGKWw6WBXoN0flJwNBflSiAYakvIZeQkJbdm4CEPRPKkhI4NdWQJaXqW5oSeuO6hIBcSxnzElLm1ykq4hku2Z9RkFsbJ+JqZCAgJDd3E1bN86a0qqFUKDSGNVpxMFhbuM0PyVlg7NPWEDklpmZuTxwBSxxUYmsDAy20QujgGBzdHhoREheVDwnmgIr/gUZy1evX5ex3d8vSGQbpgKXJVExnszuHulRcYEMjEmYChxWZS5jdvNiXpNZFIxVgfXsFWVRoqJRZYvX+mJVYDYtaqlrVJT3oqhCR6wKjIVzUleWls5LLRG2R1OgWhtVaMjEJDhhelRqatTEeEEmJouerCppuAIetez2jhggSC8umVqcDmL1NuWwSSCCUimvJgoVZFWUcyFFlqSsel00Cqhk4xJDiW85ZXYUICU+iNI6AK6dd1A2H9/vAAAAAElFTkSuQmCC") 16 19, auto;
  --cur-cam-hot: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACH1BMVEVMaXH////////////////////////////////////////////////////////////////////9/f3////////////////////////////////////////////////////////////////////////4+Pj////8/Pz////4+Pj////////////////////Ozs/////////4+Pj////////////Pz8/////////////a2tv////////////////////////////////////b29z///////////////////////////+urq/////ExMX////////////////p6en///8WFhrv7/DDw8Rzc3bn5+j////KysuioqOlpacmJimTk5UmJirp6ekfHyM1NTkcHCDq6upRUVQYGBwxMTV0dHb6+vqhoaIjIyfS0tNBQUQwMDQ/P0JTU1bp6epmZmm6uryKioxISEvk5OX39/dSUlXz8/Pv7+/Q0NH09PR4eHpMTE/a2tvBwcInJytTU1dxcXQ3NzpOTlHHx8ibm52oqKrm5udQUFOfn6HFxcZPT1LIyMmVlZeUlJY5OTw0NDh/f4GwsLFkZGaGhoi5ubr5+fm1tbXCwsMeHiKJiYtfX2I6Oj3CwsJMTFAqKi5FRUjY2NmFhYfa2trJycodHSGzs7SHh4kZGR3r6+uvr7FlZWdhYWR3d3lbW156enzNzc2mpqibdvxOAAAAVXRSTlMAgohwY1vyM7s7PCEUq+2WarnzqgEDBAgpLDaajG5PRwcuSvlU/sP2Evu34POFdfq1Pv0f2Or6epC4+3SjpRdZyMEeXvvueaQWptbs/XL5OjK6WPGh0hD0yQAAAAlwSFlzAAA7DgAAOw4BzLahgwAAAVZJREFUeNpjYBgFJAMuXg4w4OXCLs/DFh8BBvFsGlgV6DaG5sQBQU5otB6GpJyaTlRUd0ZWFBDMXFQcFcWnJYUsL1tdV5A8ObRHGMRxXLo6OXlxqaY8ku3q9UnFERFTjAwF+PkFnNds2LR52cIWbYQCpYbQThMODksL0/74+OWunoFePhuXpGRxwxWwhIdGszIw2IdNCwWCdWFB/sF+uaGRnGgK7PjmJU1NTV2btN7bI0B4C6YC69mhs6zKylxWhob7MjDGYiqwmZtSVBAampeaUhqCVYHt9DlFk0JD5yeuWOWOVYH5jNBw/fx8swWhJW5YFRgLpSW0Jyb2JhQKOaEpUKkJLTFgYhLsagtNSAjtixRkYnKYkF4lCVfArZrR2hEDBNmZhc2Z2SDWxKY0NjFEUErn5oWigvTKcmakyBKXUa4NQwEVbMwiKPGtoMiOAiREB1FaBwAb83T0fcRHWgAAAABJRU5ErkJggg==") 16 19, pointer;
}
@media (hover: none), (pointer: coarse) {
  :root { --cur-cam: auto; --cur-cam-hot: pointer; }
}
/* @cursor:end */
