/* =========================================================================
   戎糖小记 · pages.css — 首页 / 小记 / 详情 / 相册 / 关于 / 留言
   ========================================================================= */

/* ============================================================ 首屏大图 */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 34px) 0 clamp(44px, 11vw, 96px);
  overflow: hidden;
  background: #2b1d22;
  isolation: isolate;
}
.hero_media { position: absolute; inset: 0; z-index: -3; }
.hero_media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroPush 22s var(--ease-soft) forwards;
}
@keyframes heroPush { to { transform: scale(1.14); } }
.hero_scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(30, 18, 22, .58) 0%, rgba(30, 18, 22, .22) 30%, rgba(30, 18, 22, .58) 78%, rgba(30, 18, 22, .82) 100%),
    linear-gradient(100deg, rgba(60, 30, 40, .4), transparent 60%);
}
.hero_body { color: #fff; width: 100%; }
.hero .eyebrow { color: var(--pink-soft); }
.hero .eyebrow::after { background: linear-gradient(90deg, #fff, var(--pink)); }
.hero_title {
  font-size: clamp(30px, 9.2vw, 68px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .28);
  margin-bottom: 18px;
}
.hero_title span { display: block; }
.hero_copy {
  font-size: clamp(14px, 3.9vw, 17px);
  line-height: 1.95;
  color: rgba(255, 255, 255, .9);
  max-width: 34em;
  margin-bottom: 26px;
}
.hero_actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero_meta {
  position: absolute; right: var(--gutter); bottom: clamp(44px, 11vw, 96px);
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: .34em;
  color: rgba(255, 255, 255, .5);
  display: none;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  color: rgba(255, 255, 255, .7);
  animation: cue 2.2s var(--ease-soft) infinite;
}
.scroll-cue svg { width: 22px; height: 11px; }
.scroll-cue path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .5; } 50% { transform: translate(-50%, 6px); opacity: 1; } }

/* 子页页头 */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + 62px) 0 clamp(38px, 9vw, 72px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #2b1d22;
}
.page-head_img { position: absolute; inset: 0; z-index: -2; }
.page-head_img img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.page-head::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28, 18, 22, .5), rgba(28, 18, 22, .62));
}
/* 顶部再压一层：子页首图多是浅色照片，白色导航需要落脚点 */
.page-head::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 150px; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 16, 20, .5), rgba(24, 16, 20, 0));
  pointer-events: none;
}
.page-head .eyebrow { color: var(--pink-soft); text-shadow: 0 1px 12px rgba(18, 10, 13, .45); }
.page-head .eyebrow::after { background: linear-gradient(90deg, #fff, var(--pink)); }
.page-head_title {
  font-size: clamp(28px, 8vw, 54px);
  font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
  margin-bottom: 12px;
}
.page-head_lede {
  font-size: clamp(14px, 3.8vw, 16px);
  color: rgba(255, 255, 255, .86);
  max-width: 40em; line-height: 1.9;
}

/* ============================================================ 相册首图：整屏 + 光圈快门
   8 片叶片共用同一个 conic 扇形，靠 --i 旋转排布；展开时沿各自方向旋出，
   中心留下快门孔，照片同时轻微推近。叶片用 40vmax 的小块 + scale(3.6) 放大：
   纯色扇形放大不会糊，比直接铺一张 140vmax 的渐变省一大截显存。
   ============================================================ */
.page-head--full {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 clamp(46px, 11vh, 128px);
}
.page-head--full::after {
  background: linear-gradient(180deg,
    rgba(18, 11, 15, .58) 0%,
    rgba(18, 11, 15, .14) 34%,
    rgba(18, 11, 15, .30) 62%,
    rgba(18, 11, 15, .80) 100%);
}
.page-head--full .page-head_img img { opacity: 1; }

.page-head_body { position: relative; z-index: 3; }
.page-head--full .page-head_title {
  font-size: clamp(32px, 6.2vw, 74px);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin-bottom: clamp(12px, 1.6vw, 18px);
}
.page-head--full .page-head_lede {
  font-size: clamp(13.5px, 1.35vw, 17px);
  color: rgba(255, 255, 255, .84);
  max-width: 34em;
}

/* 小记首图：整屏，但气质和相册不同 —— 左边一条页边红线、下边压字 */
body[data-page="notes"] .page-head--full { background: #221a1d; }
/* 图还没画出来之前，页边红线、竖排小字、文案都先藏着，别让人看见一堆空装饰 */
@media (prefers-reduced-motion: no-preference) {
  html.js body[data-page="notes"]:not(.is-ready) .page-head_body,
  html.js body[data-page="notes"]:not(.is-ready) .page-head_roll { opacity: 0; }
}
body[data-page="notes"] .page-head--full::after {
  /* 左下角一团暗：字压在哪张图上、视口多高，都有落脚点 */
  background:
    radial-gradient(115% 82% at 4% 102%, rgba(20, 13, 16, .74) 0%, rgba(20, 13, 16, .30) 46%, rgba(20, 13, 16, 0) 72%),
    linear-gradient(180deg,
    rgba(24, 15, 18, .30) 0%,
    rgba(24, 15, 18, .03) 24%,
    rgba(24, 15, 18, .10) 52%,
    rgba(24, 15, 18, .60) 86%,
    rgba(24, 15, 18, .78) 100%);
}
/* 小记首图的顶部柔光也放轻一点，别把暖色调压成灰 */
body[data-page="notes"] .page-head--full::before {
  background: linear-gradient(180deg, rgba(26, 17, 20, .22), rgba(26, 17, 20, 0));
}
/* 左侧页边线：和小记页里的稿纸一个语汇 */
body[data-page="notes"] .page-head_body {
  padding-left: clamp(18px, 2.2vw, 34px);
}
body[data-page="notes"] .page-head_body::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(255, 168, 184, 0) 0%,
    rgba(255, 168, 184, .75) 18%,
    rgba(255, 168, 184, .75) 82%,
    rgba(255, 168, 184, 0) 100%);
}

/* 窄屏：竖排编号会挤在照片角落，收起来 */
@media (max-width: 899px) {
  .page-head_roll { display: none; }
}

/* ------------------------------------------------------------ 手机首图：整屏铺满
   （回到最初的样子）16:9 的图在竖屏 cover 只能看见中间一条，
   想让人和猫都露脸只能缩成一张小横图 —— 那就不是首图了。
   这里保留整屏的气势，取景往左偏一点，把女孩放在画面中偏左。 */
@media (max-width: 899px) {
  body[data-page="notes"] .page-head_img img { object-position: 44% 44%; }
  /* 首图上方是一片很亮的纸色，白 logo 会糊在里面 —— 顶部压一层软暗 */
  body[data-page="notes"] .page-head--full::before {
    height: 140px;
    background: linear-gradient(180deg,
      rgba(22, 14, 18, .46) 0%,
      rgba(22, 14, 18, .20) 48%,
      rgba(22, 14, 18, 0) 100%);
  }
}

/* 底片张数：卷首语下面的小注脚 */
.page-head_shots {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  color: rgba(255, 255, 255, .58);
}
.page-head_shots_num {
  font-family: var(--font-round);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.page-head_shots_label { font-size: 11px; letter-spacing: .22em; }

/* 右侧竖排：胶卷编号，像底片边上的字 */
.page-head_roll {
  position: absolute;
  right: clamp(16px, 2.6vw, 36px);
  bottom: clamp(46px, 11vh, 128px);
  z-index: 3;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .38);
}

/* ---- 快门 ----
   一个 0 尺寸的圆 + 向外无限扩散的 box-shadow：
   圆撑大 = 中心孔变大，shadow 始终盖住孔外，等于光圈打开。
   单元素、单图层，避开多图层在全屏尺寸下的光栅化毛病。
   ------------------------------------------------------------- */
.iris {
  position: absolute;
  /* 孔心 = 照片里太阳的位置，由 album.js 换算成像素后写进来 */
  left: var(--iris-x, 50%);
  top: var(--iris-y, 46%);
  z-index: 2;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 130vmax #1a1115;
  pointer-events: none;
}
/* 孔口那一团暖光：快门还没开时，它就是那颗太阳 */
.iris::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 226, 178, .95) 0%,
    rgba(255, 186, 140, .62) 34%,
    rgba(255, 158, 130, .22) 62%,
    rgba(255, 158, 130, 0) 76%);
  filter: blur(2px);
  pointer-events: none;
}
/* 孔边缘一圈很细的镜头镀膜光 */
.iris::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 0 26px rgba(255, 208, 220, .22);
  opacity: .9;
}
/* 暖光散开 = 太阳被快门孔「让」出来 */
@keyframes sunBloom {
  from { transform: scale(.6); opacity: 1; }
  60%  { opacity: .8; }
  to   { transform: scale(2.6); opacity: 0; }
}
@keyframes irisOpen {
  from { width: 0; height: 0; }
  to   { width: 152vmax; height: 152vmax; }
}

/* 快门还没开之前，文字先别浮在黑幕上 */
html.js body[data-page="album"]:not(.is-ready) .page-head_body,
html.js body[data-page="album"]:not(.is-ready) .page-head_roll { opacity: 0; }

/* 兜底：4.2 秒还没 ready（脚本没跑起来 / 网络太慢）就把快门和文字都放出来，
   宁可少一段动画，也不能让人一直盯着一块黑 */
@media (prefers-reduced-motion: no-preference) {
  html.js body[data-page="album"]:not(.is-ready) .iris {
    animation: irisGiveUp .6s 4.2s forwards;
  }
  html.js body[data-page="album"]:not(.is-ready) .page-head_body,
  html.js body[data-page="album"]:not(.is-ready) .page-head_roll {
    animation: headTextUp .7s 4.2s forwards;
  }
}
@keyframes irisGiveUp {
  to { opacity: 0; visibility: hidden; }
}

/* 小记的兜底：4.2 秒还没 ready，直接把整张图放出来 */
@media (prefers-reduced-motion: no-preference) {
  html.js body[data-page="notes"]:not(.is-ready) .page-head_img img {
    animation: noteGiveUp .01s 4.2s forwards;
  }
  /* 注意：容器本身也是 opacity:0，兜底必须把它一起放出来，
     不然子元素动画跑完也还是看不见 */
  html.js body[data-page="notes"]:not(.is-ready) .page-head_body,
  html.js body[data-page="notes"]:not(.is-ready) .page-head_roll {
    animation: noteShow .6s 4.2s forwards;
  }
  html.js body[data-page="notes"]:not(.is-ready) .page-head .eyebrow,
  html.js body[data-page="notes"]:not(.is-ready) .page-head_title,
  html.js body[data-page="notes"]:not(.is-ready) .page-head_lede {
    animation: headTextUp .6s 4.2s both;
  }
}
@keyframes noteShow { to { opacity: 1; } }
@keyframes noteGiveUp {
  to { -webkit-mask-image: none; mask-image: none; }
}

/* 没有 JS、或用户关掉动效：不要这层黑幕 */
html:not(.js) .iris { display: none; }
@media (prefers-reduced-motion: reduce) {
  .iris { display: none; }
}

/* ============================================================ 分栏（最新发布 / 关于小记）
   .split 是两页共用的两栏骨架：左文右图或左图右文，靠 DOM 顺序决定
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(26px, 4.5vw, 72px);
  align-items: center;
}
.split--tall { gap: clamp(30px, 4.6vw, 88px); }
.split-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-body { max-width: 56ch; }

/* ============================================================ 最新发布 */
.featured { padding: clamp(52px, 7vw, 104px) 0; }
.featured-split { grid-template-columns: 1.06fr .94fr; align-items: center; }

/* 参考图是大图无圆角，只留一层浅影 */
.featured-media { border-radius: 0; box-shadow: var(--shadow-sm); }
.featured-media a { display: block; height: 100%; }
.featured-media img {
  width: 100%;
  height: clamp(340px, 60vh, 640px);
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.featured-media:hover img { transform: scale(1.04); }

.featured-body { align-self: center; padding-block: clamp(10px, 3vw, 40px); }
.featured-body .eyebrow { margin-bottom: clamp(16px, 2.2vw, 24px); }
.featured-title { margin-top: 0; font-size: clamp(30px, 3.4vw, 52px); }
.featured-title a:hover { color: var(--rose-ink); }
.featured-meta {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.featured-body .lede { margin-top: clamp(14px, 1.8vw, 20px); line-height: 2.1; }
.featured-actions {
  position: relative;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: clamp(22px, 2.8vw, 32px);
}
/* 按钮上方的短装饰线，比整条分割线更轻 */
.featured-actions::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), rgba(255, 107, 107, 0));
}

/* ============================================================ 数字 */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 26px 0 0;
  padding: 20px 6px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stats li { text-align: center; padding: 0 4px; }
.stats b {
  display: block;
  font-family: var(--font-round);
  font-size: clamp(21px, 5.4vw, 30px);
  font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* b 里的数字不能继承下面标签的 11.5px，否则「天」比数字还大 */
.stats b .stat-num { display: inline; font-size: 1em; font-weight: inherit; }
.stats .stat-suffix { font-size: .55em; font-style: normal; margin-left: .12em; }
.stats .stat-label { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: .06em; }

/* ============================================================ 最近文章
   一行一篇：缩略图常显、标题与标签同排、日期靠右、圆形箭头
   悬停时整行铺白上浮，缩略图轻推近，箭头转成「进入」
   ============================================================ */
.recent-section { padding-top: clamp(36px, 5vw, 60px); }

.rec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.rec-row { border-bottom: 1px solid var(--line-2); }

.rec-link {
  display: grid;
  grid-template-columns: clamp(86px, 8.6vw, 108px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 26px);
  padding: clamp(14px, 1.5vw, 20px) clamp(8px, 1.2vw, 18px);
  border-radius: 18px;
  text-decoration: none;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.rec-link:hover,
.rec-link:focus-visible {
  background: #fff;
  box-shadow: 0 14px 34px rgba(190, 120, 135, .13);
  transform: translateY(-2px);
}
.rec-link:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

.rec-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pink-mist);
}
.rec-thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.rec-link:hover .rec-thumb img,
.rec-link:focus-visible .rec-thumb img { transform: scale(1.08); }

.rec-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(10px, 1.4vw, 16px);
  min-width: 0;
}
.rec-title {
  font-family: var(--font-round);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.rec-link:hover .rec-title,
.rec-link:focus-visible .rec-title { color: var(--rose-ink); }

.rec-tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .66);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-3);
  white-space: nowrap;
}

.rec-date {
  font-size: clamp(12px, 1.05vw, 13px);
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rec-go {
  width: clamp(34px, 3vw, 42px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: background .4s var(--ease), border-color .4s var(--ease),
              color .4s var(--ease), transform .4s var(--ease);
}
.rec-go svg { width: 20px; height: 10px; }
.rec-go path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rec-link:hover .rec-go,
.rec-link:focus-visible .rec-go {
  background: linear-gradient(135deg, var(--rose), var(--coral));
  border-color: transparent;
  color: #fff;
  transform: rotate(-45deg);
}

.rec-list .empty { padding: 34px 10px; }

@media (max-width: 640px) {
  .rec-link {
    grid-template-columns: 76px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 14px 2px;
    border-radius: 14px;
  }
  .rec-thumb { border-radius: 10px; }
  .rec-main { flex-direction: column; align-items: flex-start; gap: 5px; }
  .rec-title { font-size: 16.5px; }
  .rec-tag { height: 21px; padding: 0 8px; font-size: 10.5px; letter-spacing: .06em; }
  .rec-date { display: none; }
  .rec-go { width: 32px; }
}

/* ============================================================ 相册精选：胶片盘
   深咖色盘身 + 上下齿孔，照片装在米色卡纸里；
   可横向拖动 / 滑屏 / 方向键浏览，点开看大图，底部一条走片进度
   ============================================================ */
.film {
  --film-pad: clamp(18px, 3.2vw, 34px);
  --film-gap: clamp(12px, 1.6vw, 20px);
  position: relative;
  isolation: isolate;
  padding: clamp(46px, 5vw, 62px) 0 clamp(6px, 1vw, 10px);
  border-radius: clamp(20px, 2.4vw, 30px);
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(255, 206, 216, .10), transparent 62%),
    linear-gradient(168deg, #3b2b28 0%, #2c2020 55%, #221917 100%);
  box-shadow: 0 34px 70px -34px rgba(58, 34, 38, .62), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
  user-select: none;
}
/* 齿孔 */
.film::before,
.film::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 14px;
  background-image: radial-gradient(circle, rgba(255, 246, 238, .40) 0 2.2px, transparent 2.6px);
  background-size: 26px 14px;
  background-position: center;
  opacity: .9;
  pointer-events: none;
}
.film::before { top: 10px; }
.film::after { bottom: 10px; }

.film_head {
  position: absolute; top: clamp(18px, 2vw, 22px);
  left: var(--film-pad); right: var(--film-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.film_tag {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 246, 238, .32);
}
.film_drag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .18em;
  color: rgba(255, 246, 238, .56);
  transition: color .35s var(--ease);
}
.film_drag svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.film:hover .film_drag { color: rgba(255, 246, 238, .82); }

.film_track {
  display: flex;
  gap: var(--film-gap);
  padding: 6px var(--film-pad) 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* 吸附要按内边距对齐，否则第一张会被滚到盘边、左边缘被切掉 */
  scroll-padding-inline: var(--film-pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.film_track::-webkit-scrollbar { display: none; }
.film_track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.film_track:focus-visible { outline: 2px solid rgba(255, 176, 190, .6); outline-offset: -4px; }
.film_track > .empty { flex: 0 0 100%; color: rgba(255, 246, 238, .6); }

.film-card {
  /* 100% 是轨道的内容盒宽度：三张刚好排满，第四张不会露半截 */
  flex: 0 0 calc((100% - var(--film-gap) * 2) / 3);
  margin: 0;
  scroll-snap-align: start;
}
.film-card .film-link { display: block; text-decoration: none; }
.film-frame {
  display: block;
  position: relative;
  padding: clamp(6px, .7vw, 9px);
  border-radius: 11px;
  background: linear-gradient(160deg, #fbf3ec, #efe0d5);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .7);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.film-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  /* 图片还没解码完时透出的底色：暖米色，不要在深色盘上留黑洞 */
  background: #f3e4dc;
  transition: transform .85s var(--ease), filter .5s var(--ease);
}
.film-card:hover .film-frame,
.film-card:focus-within .film-frame {
  transform: translateY(-6px);
  box-shadow: 0 30px 48px -22px rgba(0, 0, 0, .76);
}
.film-card:hover .film-frame img,
.film-card:focus-within .film-frame img { transform: scale(1.05); }

/* 悬停时卡纸上浮起一层柔光，像对着灯看底片 */
.film-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 11px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .28), transparent 58%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.film-card:hover .film-frame::after { opacity: 1; }

.film-cap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  padding: 12px 2px 0;
}
.film-cap b {
  min-width: 0;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: #f7ece4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.film-cap span {
  flex: 0 0 auto;
  font-size: 10.5px; letter-spacing: .18em;
  color: rgba(247, 236, 228, .44);
  font-variant-numeric: tabular-nums;
}

.film_foot {
  display: flex; align-items: center;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(16px, 1.8vw, 22px) clamp(20px, 3.4vw, 36px) clamp(24px, 2.6vw, 32px);
}
.film_bar {
  position: relative; flex: 1;
  height: 2px; border-radius: 2px;
  background: rgba(255, 246, 238, .14);
  overflow: hidden;
}
.film_bar span {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 20%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 168, 184, .95), rgba(255, 232, 214, .95));
  transition: width .2s linear;
}
.film_count {
  font-size: 10.5px; letter-spacing: .18em;
  color: rgba(255, 246, 238, .42);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.film_count b { font-weight: 600; color: #fff0e6; }
.film_count i { margin: 0 .32em; font-style: normal; opacity: .5; }

@media (max-width: 720px) {
  .film { padding-top: 42px; }
  .film_tag { display: none; }
  .film_head { justify-content: flex-end; }
  .film { --film-pad: 16px; --film-gap: 12px; }
  .film-card { flex: 0 0 74vw; max-width: 330px; }
  .film_foot { padding: 14px 18px 26px; }
  .film-cap b { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .film-card:hover .film-frame,
  .film-card:hover .film-frame img,
  .rec-link:hover { transform: none; }
}

/* ============================================================ 关于小记（文字左 / 插画右）
   插画装进浅粉内嵌框，四周留白，背后一团柔光，避免白底图生硬贴上去
   ============================================================ */
.intro-split { grid-template-columns: 1.12fr .88fr; gap: clamp(30px, 5vw, 88px); }
.intro-body { max-width: 56ch; }
.intro-media {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px) clamp(6px, 1vw, 12px);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: radial-gradient(120% 100% at 30% 15%, #fff0f3 0%, #fff6f7 45%, #fffafb 100%);
  overflow: visible;
}
.intro-media::before {
  content: '';
  position: absolute;
  inset: 12% 10% -2% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 107, .18), rgba(255, 107, 107, 0) 72%);
}
.intro-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  /* 插画是白底线稿：multiply 让白色透出底下的粉色 */
  mix-blend-mode: multiply;
  /* 原图在胸口处截断，底部渐隐溶进粉底 */
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
.intro-cta { margin-top: clamp(24px, 3vw, 34px); }
@media (max-width: 900px) {
  .intro-media { max-width: 360px; margin-inline: auto; }
}

/* ============================================================ 保持联系（收尾卡片）
   粉白渐变卡片 + 背后柔光；三个词做成带圆点的小胶囊；右侧两张二维码白底座
   ============================================================ */
#connect { position: relative; isolation: isolate; }
#connect::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 10%; right: 10%;
  top: 31%; bottom: 3%;
  background: radial-gradient(58% 62% at 76% 26%, rgba(255, 188, 197, .55), rgba(255, 188, 197, 0) 72%);
  filter: blur(12px);
  pointer-events: none;
}
.closing {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(26px, 3.6vw, 56px);
  border-radius: clamp(22px, 2.6vw, 34px);
  background: linear-gradient(148deg, #ffffff 0%, #fffcfc 55%, #fff6f8 100%);
  border: 1px solid rgba(255, 188, 197, .38);
  box-shadow:
    0 2px 4px rgba(255, 107, 107, .04),
    0 18px 44px rgba(255, 107, 107, .10);
  overflow: hidden;
  isolation: isolate;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
.closing > * { position: relative; z-index: 1; }

.closing_body { max-width: 46ch; }
.closing_title { margin-top: 4px; font-size: clamp(26px, 2.7vw, 40px); }
/* 后半句用荧光笔划一下 */
.closing_title em {
  position: relative;
  z-index: 0;
  font-style: normal;
  color: var(--rose-ink);
  padding-inline: 2px;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.closing_title em::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -2px; right: -2px; bottom: 1px;
  height: .44em;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 188, 197, .28), rgba(255, 188, 197, .62) 18%, rgba(255, 188, 197, .62) 82%, rgba(255, 188, 197, .28));
}
.closing_lede { margin-top: clamp(12px, 1.6vw, 18px); }

.closing_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}
.closing_tags li {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--rose-ink);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 188, 197, .5);
  box-shadow: 0 2px 8px rgba(255, 107, 107, .06);
}
.closing_tags li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--coral);
}

.closing_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(22px, 3vw, 32px);
}
.closing_link {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.closing_link:hover { color: var(--rose-ink); border-color: var(--pink); }

/* 两张二维码：白底座 + 轻阴影，悬停微微抬起并倾斜 */
.closing_qrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.qr-mini { margin: 0; text-align: center; }
.qr-mini_frame {
  display: block;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 22px rgba(255, 107, 107, .12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.qr-mini_frame:hover {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: 0 18px 36px rgba(255, 107, 107, .2);
}
.qr-mini img {
  width: 100%;
  max-width: 136px;
  /* 必须显式 height:auto：<img width height> 属性会被当作 CSS 高度提示 */
  height: auto;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.qr-mini figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.qr-mini figcaption b { display: block; color: var(--ink-2); font-weight: 600; }

/* 二维码进场带一点缩放回弹 */
.js .closing .qr-mini.reveal:not(.is-in) { transform: translateY(20px) scale(.88); }
.js .closing .qr-mini.reveal {
  transition: opacity .8s var(--ease),
              transform .9s cubic-bezier(.16, .84, .32, 1.12);
}

@media (max-width: 900px) {
  .closing { grid-template-columns: 1fr; gap: clamp(22px, 4vw, 30px); padding: clamp(22px, 5vw, 32px); }
  .closing_body { max-width: none; }
  .closing_qrs { max-width: 300px; margin-inline: auto; }
  .qr-mini img { max-width: 120px; }
  #connect::before { left: 4%; right: 4%; top: 40%; }
}
@media (max-width: 400px) { .closing_qrs { max-width: none; } }

/* ============================================================ 首页响应式 */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split-body { max-width: none; }
}

/* 窄屏：首图大图改比例 */
@media (max-width: 768px) {
  .featured-media img { height: auto; aspect-ratio: 16 / 10; }
}

/* 窄屏必须单列：.intro-split / .featured-split 的列定义更靠后，这里显式重置 */
@media (max-width: 900px) {
  .intro-split,
  .featured-split { grid-template-columns: 1fr; }
  .intro-split { gap: clamp(24px, 5vw, 36px); }
  .intro-media { max-width: 340px; margin-inline: auto; }
  .featured-body .lede { margin-top: 14px; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  .featured-media img,
  .rec-thumb img,
  .rec-title,
  .rec-main { transition: none; }
  .qr-mini_frame { transition: none; }
}

/* ============================================================ 小记列表 */
.notes-toolbar { margin-bottom: clamp(20px, 3vw, 30px); }
.notes-toolbar .chip-row { flex-wrap: wrap; overflow: visible; }

.notes-grid { display: grid; gap: 16px; }
.note-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.note-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.note-card_media { position: relative; aspect-ratio: 16 / 10; background: var(--pink-mist); overflow: hidden; }
.note-card_media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.note-card:hover .note-card_media img { transform: scale(1.05); }
.note-card_body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.note-card_meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.note-card_title { font-size: 18px; font-weight: 700; line-height: 1.45; }
.note-card_excerpt {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card_more { margin-top: auto; font-size: 12.5px; color: var(--rose); letter-spacing: .08em; }
@media (min-width: 700px) {
  .notes-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1000px) {
  .notes-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .note-card_body { padding: 20px 22px 22px; }
  .note-card_title { font-size: 19px; }
}

/* ============================================================ 小记详情 */
.article { padding: calc(var(--header-h) + 30px) 0 0; background: transparent; }
.article_head { max-width: 46rem; margin: 0 auto; padding: 0 0 22px; text-align: center; }
.article_kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; color: var(--rose); letter-spacing: .16em; margin-bottom: 14px; }
.article_title {
  font-size: clamp(24px, 6.6vw, 42px);
  font-weight: 800; line-height: 1.38; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.article_meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  font-size: 12px; color: var(--ink-3); letter-spacing: .06em;
}
.article_cover {
  max-width: 62rem; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9; background: var(--pink-mist);
}
.article_cover img { width: 100%; height: 100%; object-fit: cover; }
.article_body { max-width: 42rem; margin: 0 auto; padding: clamp(28px, 7vw, 52px) 0 0; }

.prose { font-size: 16px; line-height: 2.05; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
  color: var(--ink); font-weight: 800; line-height: 1.45;
  margin-top: 2em; letter-spacing: -.005em;
}
.prose h2 { font-size: 1.35em; }
.prose h3 { font-size: 1.18em; }
.prose h4 { font-size: 1.05em; }
.prose h2::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rose); vertical-align: middle;
  margin-right: 10px; transform: translateY(-2px);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink-2); }
.prose a { color: var(--rose); border-bottom: 1px solid var(--pink-soft); }
.prose a:hover { color: var(--coral); border-color: var(--coral); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul li { list-style: none; position: relative; padding-left: .4em; }
.prose ul li::before {
  content: ''; position: absolute; left: -0.85em; top: .95em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--pink);
}
.prose ol { list-style: decimal; }
.prose ol li { padding-left: .2em; }
.prose ol li::marker { color: var(--rose); font-weight: 700; }
.prose blockquote {
  padding: 16px 20px;
  border-left: 3px solid var(--pink);
  background: var(--pink-mist-2);
  border-radius: 0 12px 12px 0;
  color: var(--ink-2);
  font-size: .96em;
}
.prose blockquote p + p { margin-top: .7em; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em auto; box-shadow: var(--shadow-sm); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose code {
  padding: .15em .45em; border-radius: 6px;
  background: var(--pink-mist); color: #b4475e;
  font-size: .88em; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.prose pre {
  padding: 16px; border-radius: var(--radius-sm);
  background: #33272a; color: #f6e9ec; overflow-x: auto;
  font-size: 13px; line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; }

.article_foot {
  max-width: 42rem; margin: 0 auto;
  padding: 34px 0 clamp(40px, 9vw, 80px);
}
.article_end {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-4); font-size: 12px; letter-spacing: .3em;
}
.article_end::before, .article_end::after { content: ''; height: 1px; flex: 1; background: var(--line); }

.post-nav { display: grid; gap: 10px; margin-top: 28px; }
.post-nav a {
  display: block; padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-nav small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .12em; margin-bottom: 4px; }
.post-nav b { font-size: 14.5px; font-weight: 600; }
.post-nav .is-next { text-align: right; }
@media (min-width: 700px) {
  .post-nav { grid-template-columns: 1fr 1fr; gap: 16px; }
  .prose { font-size: 16.5px; }
}

/* ============================================================ 相册 */
.album-bar { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 22px; scrollbar-width: none; }
.album-bar::-webkit-scrollbar { display: none; }
.album-count { font-size: 12px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 18px; }

.masonry {
  column-count: 2;
  column-gap: 10px;
}
.masonry figure {
  break-inside: avoid;
  position: relative;
  margin: 0 0 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--pink-mist);
  cursor: zoom-in;
}
.masonry img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 12px 10px;
  font-size: 11.5px; color: #fff; line-height: 1.5;
  background: linear-gradient(transparent, rgba(30, 18, 22, .66));
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }
@media (min-width: 640px) { .masonry { column-count: 3; column-gap: 14px; } .masonry figure { margin-bottom: 14px; } }
@media (min-width: 1000px) { .masonry { column-count: 4; } }

/* ============================================================ 关于 */
.about-split { display: grid; gap: clamp(26px, 6vw, 56px); align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover;
}
.about-media figcaption {
  margin-top: 10px; font-size: 11.5px; color: var(--ink-3);
  text-align: center; letter-spacing: .08em;
}
.timeline { display: grid; gap: 0; margin-top: 30px; }
.timeline li {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before {
  content: ''; position: absolute; left: -4.5px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rose);
}
.timeline time { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--rose); margin-bottom: 4px; }
.timeline b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.timeline p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
@media (min-width: 820px) {
  .about-split { grid-template-columns: 1fr 1fr; }
  .about-split.is-reverse .about-media { order: 2; }
}

/* ============================================================ 留言
   页面样式全部搬到 css/contact.css（首图 / 找到我们 / 便签墙）
   ============================================================ */

/* 首屏排版微调 */
@media (min-width: 900px) {
  .hero { min-height: 100svh; align-items: center; padding-top: calc(var(--header-h) + 40px); }
  .hero_meta { display: block; }
  .featured-split { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .featured_media { aspect-ratio: 3 / 2; }
  .section-head-row { align-items: center; }
  .article_head { padding-top: 22px; }
}
/* 窄屏：首图就是整屏，别再露出 12% 的底色（看起来像没加载完） */
@media (max-width: 899px) {
  .hero { min-height: 100svh; }
}

/* ============================================================
   首图开场动画（每个页面不一样，各配各的性子）
   统一约定：
   · 都在 body.is-ready（加载封面撤下 / DOM 就绪）后播放
   · 只在 JS 可用且用户没开「减少动态效果」时生效，其余情况直接显示
   · 关于页的「小卡片放大铺满」在 about.css，留言页在 contact.css
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* JS 就绪前先把画面藏住，防止动画开始前闪出最终帧。
     但万一是脚本没加载成功（网络/风控把 js 拦了），is-ready 永远不会来，
     图就会一直藏着 —— 所以 5 秒后无条件显形。 */
  html.js body:not(.is-ready) .hero_media,
  html.js body:not(.is-ready) .page-head_img {
    opacity: 0;
    animation: heroFailsafe 1ms 5s forwards;
  }
}
@keyframes heroFailsafe { to { opacity: 1; } }

/* —— 首页：开场交给首页的「字形开窗」（见 base.css），
   这里不再单独做从中间裂开的幕布动画，免得两个展开叠在一起 —— */

/* —— 小记：像蜡笔在纸上划过去
   用一张带手绘毛边的遮罩往下滑（assets/crayon-mask.svg），
   边缘一路都是碎的、歪的，还带几笔碎划痕；划完文字才浮上来。 */
@media (prefers-reduced-motion: no-preference) {
  /* 蜡笔遮罩：一张 1200×3000 的 SVG，上半是实心、下缘是一条毛毛糙糙的手绘边，
     整张遮罩在图上往下滑，边就「划」过去。 */
  html.js body[data-page="notes"] .page-head_img img {
    -webkit-mask-image: url("../assets/crayon-mask.svg");
    mask-image: url("../assets/crayon-mask.svg");
    -webkit-mask-size: 100% 260%;
    mask-size: 100% 260%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 0 100%;
    mask-position: 0 100%;
  }
  html.js body[data-page="notes"].is-ready .page-head_img img {
    animation: noteCrayon 1.75s cubic-bezier(.33, .04, .28, 1) .1s both;
  }
  html.js body[data-page="notes"].is-ready .page-head .eyebrow,
  html.js body[data-page="notes"].is-ready .page-head_title,
  html.js body[data-page="notes"].is-ready .page-head_lede,
  html.js body[data-page="notes"].is-ready .page-head_roll {
    animation: headTextUp .85s var(--ease-soft) both;
  }
  /* 文字排在蜡笔划完之后：图先出来，字再浮上来 */
  html.js body[data-page="notes"].is-ready .page-head .eyebrow { animation-delay: 1.78s; }
  html.js body[data-page="notes"].is-ready .page-head_title { animation-delay: 1.9s; }
  html.js body[data-page="notes"].is-ready .page-head_lede { animation-delay: 2.02s; }
  html.js body[data-page="notes"].is-ready .page-head_roll { animation-delay: 2.12s; }
  /* 页边那道粉色竖线也跟着文字一起长出来，别抢在图片前面 */
  html.js body[data-page="notes"]:not(.is-ready) .page-head_body::before { opacity: 0; }
  html.js body[data-page="notes"].is-ready .page-head_body::before {
    animation: noteRule .9s var(--ease-soft) 1.7s both;
  }
}
/* 遮罩从下往上挪：那条毛边就从上往下一路划过去 */
@keyframes noteCrayon {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to   { -webkit-mask-position: 0 0%;   mask-position: 0 0%; }
}
/* 页边竖线：从上往下长出来 */
@keyframes noteRule {
  from { opacity: 0; transform: scaleY(.15); transform-origin: 50% 0; }
  to   { opacity: 1; transform: scaleY(1); transform-origin: 50% 0; }
}

/* —— 相册：光圈叶片从中心旋开 → 照片推近定焦 → 文字浮上 —— */
@media (prefers-reduced-motion: no-preference) {
  html.js body[data-page="album"].is-ready .iris {
    animation: irisOpen 1.85s cubic-bezier(.38, .02, .3, 1) 80ms both;
  }
  html.js body[data-page="album"].is-ready .iris::before {
    animation: sunBloom 1.5s var(--ease-soft) 120ms both;
  }
  /* 照片同时推近定焦 */
  html.js body[data-page="album"].is-ready .page-head_img img {
    animation: irisFocus 2.6s cubic-bezier(.22, .61, .36, 1) both;
  }
  html.js body[data-page="album"].is-ready .page-head .eyebrow,
  html.js body[data-page="album"].is-ready .page-head_title,
  html.js body[data-page="album"].is-ready .page-head_lede,
  html.js body[data-page="album"].is-ready .page-head_shots,
  html.js body[data-page="album"].is-ready .page-head_roll {
    animation: headTextUp .9s var(--ease-soft) both;
  }
  html.js body[data-page="album"].is-ready .page-head .eyebrow { animation-delay: 1.15s; }
  html.js body[data-page="album"].is-ready .page-head_title { animation-delay: 1.24s; }
  html.js body[data-page="album"].is-ready .page-head_lede { animation-delay: 1.36s; }
  html.js body[data-page="album"].is-ready .page-head_shots { animation-delay: 1.5s; }
  html.js body[data-page="album"].is-ready .page-head_roll { animation-delay: 1.62s; }
}
@keyframes irisFocus {
  from { transform: scale(1.055); }
  to   { transform: scale(1); }
}
@keyframes headTextUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
