/* =========================================================================
 *  site.css —— 版式骨架 · 「摄影游乐场」主题
 * -------------------------------------------------------------------------
 *  六屏横向排列：封面 / 作品 / 碎碎念 / 文章 / 关于 / 联系。
 *  每一屏是一种颜色和一种玩法：封面是拼贴、作品是照片墙、碎碎念是便签墙、
 *  文章是杂志架、关于是拍立得、联系是一张明信片。
 *  每屏内部仍可滚动，底部数字条像胶片齿孔。
 * ========================================================================= */

body.theme-noir {
  color-scheme: light;
  --bg: var(--paper);
  --fg: var(--ink);
}

/* ============================================================== 舞台 */
html, body { overflow: hidden; height: 100dvh; }

.track {
  display: flex;
  height: 100dvh;
  will-change: transform;
  transition: transform 0.58s var(--ease-expo);
  touch-action: pan-y;
}
.track.is-dragging { transition: none; }

.frame {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

/* 每屏背景：纯色 + 点阵，像印刷的网点纸 */
.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 19, 14, 0.16) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.5;
}

.frame__head { display: flex; flex-direction: column; gap: 9px; }
.frame__title {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 78px);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--cream);
}

/* ---------------------------------------------------------------- 封面 */
.frame--cover { background: var(--paper); }

.cover__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cover__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 19, 14, 0.13) 1px, transparent 1.3px);
  background-size: 16px 16px;
}
.cover__blob { position: absolute; border: var(--line); border-radius: 50%; }
.cover__blob--1 { width: 44vw; height: 44vw; left: -15vw; top: -18vw; background: var(--butter); }
.cover__blob--2 { width: 27vw; height: 27vw; right: -6vw; top: 8%; background: var(--sky); }
.cover__blob--3 { width: 18vw; height: 18vw; left: 22%; bottom: -10vw; background: var(--pink); }
.cover__blob--4 { width: 10vw; height: 10vw; right: 18%; bottom: 6%; background: var(--mint); }

.cover__body {
  position: absolute;
  inset: calc(var(--edge) + 66px) var(--edge) calc(var(--edge) + 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.92fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 16px;
  align-items: center;
}

.cover__head { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2vh, 22px); }

.cover__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.2deg);
  color: var(--ink);
  font-size: 10px;
}

.cover__title {
  position: relative;
  font-family: var(--display);
  font-size: clamp(78px, 10.5vw, 168px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--tomato);
  transform: rotate(-1.4deg);
  z-index: 1;
}
.cover__title-en {
  display: block;
  margin-top: 0.18em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.16em;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow: none;
  color: var(--ink);
  transform: rotate(0.2deg);
}

.cover__line {
  position: relative;
  z-index: 1;
  max-width: 26em;
  padding: 14px 18px;
  background: var(--cream);
  border: var(--line);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
  font-family: var(--hand);
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.cover__line.is-swapping { opacity: 0; transform: rotate(-1deg) translateY(4px); }
.cover__from { display: inline-block; margin-left: 0.4em; font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em; color: rgba(23, 19, 14, 0.6); white-space: nowrap; }

.cover__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cover__foot {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 14px;
  border-top: var(--line);
}
.cover__foot .label { color: var(--ink); }
.cover__foot .label b { font-weight: 700; }

/* 右侧照片拼贴 */
.cover__collage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  height: min(62vh, 560px);
  align-self: center;
}
.cover__polaroid {
  position: absolute;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow-lg);
}
.cover__polaroid::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  width: 92px; height: 22px;
  margin-left: -46px;
  background: rgba(255, 216, 74, 0.9);
  border: 1px solid rgba(23, 19, 14, 0.35);
  transform: rotate(-3deg);
  z-index: 2;
}
.cover__polaroid--main {
  width: 72%;
  right: 4%;
  top: 4%;
  padding: 10px 10px 0;
  transform: rotate(2.2deg);
  z-index: 2;
  transition: transform 0.35s var(--ease-expo);
}
.cover__polaroid--main:hover { transform: rotate(0.4deg) translateY(-4px); }
.cover__polaroid--main picture { display: block; }
.cover__img {
  width: 100%;
  height: min(46vh, 410px);
  object-fit: cover;
  background: var(--img-bg);
}
.cover__polaroid--main { padding-bottom: 12px; }
.cover__polaroid--small { width: 34%; padding: 7px 7px 0; z-index: 3; }
.cover__polaroid--small img { width: 100%; height: 150px; object-fit: cover; }
.cover__polaroid--a { left: 0; bottom: 2%; transform: rotate(-6deg); }
.cover__polaroid--b { right: -2%; bottom: -4%; transform: rotate(7deg); }
.cover__polaroid--small::before { width: 60px; height: 18px; margin-left: -30px; top: -9px; }

.cover__badge {
  position: absolute;
  right: -1%; top: -3%;
  width: 86px; height: 86px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--tomato);
  color: var(--cream);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transform: rotate(9deg);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 4;
}
.cover__doodle {
  position: absolute;
  left: -5%; top: 0;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1;
  color: var(--tomato);
  transform: rotate(-12deg);
  text-shadow: 3px 3px 0 var(--ink);
  z-index: 4;
}

/* 封面入场 */
.frame--cover[data-enter] .cover__eyebrow,
.frame--cover[data-enter] .cover__title,
.frame--cover[data-enter] .cover__line,
.frame--cover[data-enter] .cover__actions,
.frame--cover[data-enter] .cover__foot { animation: pop-in 0.75s var(--ease-expo) both; }
.frame--cover[data-enter] .cover__title { animation-delay: 0.06s; }
.frame--cover[data-enter] .cover__line { animation-delay: 0.14s; }
.frame--cover[data-enter] .cover__actions { animation-delay: 0.22s; }
.frame--cover[data-enter] .cover__foot { animation-delay: 0.3s; }
.frame--cover[data-enter] .cover__polaroid--main { animation: collage-in 0.9s 0.16s var(--ease-expo) both; }
.frame--cover[data-enter] .cover__polaroid--a { animation: collage-in 0.9s 0.26s var(--ease-expo) both; }
.frame--cover[data-enter] .cover__polaroid--b { animation: collage-in 0.9s 0.34s var(--ease-expo) both; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes collage-in {
  from { opacity: 0; transform: translateY(24px) rotate(0); }
}

/* ---------------------------------------------------------------- 作品 */
.frame--works { background: var(--butter); }
.frame--works::before { opacity: 0.35; }

.works__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--edge) + 54px);
  padding-bottom: 88px;
}

.works__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 28px;
  padding: 0 var(--edge) 16px;
  border-bottom: var(--line);
  margin-bottom: 22px;
}
.works__head .label { display: inline-flex; gap: 8px; align-items: baseline; color: var(--ink); }
.works__head i { font-style: normal; }

.works__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px var(--edge) 46px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.works__scroll .masonry { padding-bottom: 14px; }
.works__sentinel { height: 1px; margin-top: -1px; }

/* ---------------------------------------------------------------- 碎碎念 */
.frame--posts { background: var(--sky); }
.frame--posts::before { opacity: 0.3; }

.posts__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--edge) + 54px);
  padding-bottom: 88px;
}
.posts__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 28px;
  padding: 0 var(--edge) 16px;
  border-bottom: var(--line);
  margin-bottom: 26px;
}
.posts__head .label { color: var(--ink); }
.posts__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px var(--edge) 48px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.postcards {
  list-style: none;
  margin: 0 auto;
  padding: 0 0 8px;
  max-width: 730px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.postcards__empty { padding: 22px 0; color: var(--fg-3); }
.postcards__sentinel { height: 1px; margin-top: -1px; }

.postcard {
  position: relative;
  padding: 24px 26px 22px;
  background: var(--cream);
  border: var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-0.5deg);
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s var(--ease);
}

.postcard::before {
  content: '';
  position: absolute;
  top: -11px; left: 50%;
  width: 88px; height: 20px;
  margin-left: -44px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 19, 14, 0.28);
  transform: rotate(-2deg);
}
.postcard:last-child { margin-bottom: 0; }
.postcard.is-target { outline: 4px solid var(--tomato); outline-offset: 4px; }

.postcard__meta {
  display: inline-block;
  padding: 4px 8px;
  margin: 0 0 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.postcard__meta a { color: inherit; text-decoration: none; }
.postcard__meta a:hover { color: var(--butter); }

.postcard__text {
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--hand);
  font-size: clamp(16px, 1.15vw, 18.5px);
  line-height: 1.85;
  color: var(--ink);
}

.postcard__media {
  display: grid;
  grid-template-columns: repeat(var(--pcols, 1), minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  margin: 0 0 14px;
}
.postcard__media[data-cols="1"] { max-width: 560px; }
.postcard__ph {
  display: block;
  padding: 0;
  border: 1.5px solid var(--ink);
  background: var(--img-bg);
  line-height: 0;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}
.postcard__ph img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 1.3333);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.postcard__ph img.is-loaded { opacity: 1; }
.postcard__ph:hover img.is-loaded { opacity: 0.9; }

.postcard__video { margin: 0 0 14px; }
.pcv__el { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1.7778); background: #000; border: var(--line); }
.pcv__facade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.pcv__facade:hover { background: var(--butter); }
.pcv__play { width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.pcv iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: var(--line); background: #000; }
.pcv__link { display: inline-block; color: var(--ink); text-decoration: underline; }
.pcv__link:hover { color: var(--tomato); }

@media (max-width: 700px) {
  .postcards { gap: 26px; }
  .postcard__media[data-cols="2"], .postcard__media[data-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- 文章 */
.frame--articles { background: var(--pink); }
.frame--articles::before { opacity: 0.28; }

.articles__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--edge) + 54px);
  padding-bottom: 88px;
}
.articles__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 28px;
  padding: 0 var(--edge) 16px;
  border-bottom: var(--line);
  margin-bottom: 24px;
}
.articles__head .label { color: var(--ink); }
.articles__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px var(--edge) 46px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.artcards {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
  counter-reset: issue;
}
.artcards__empty {
  grid-column: 1 / -1;
  padding: clamp(34px, 6vh, 64px) 26px;
  border: var(--line);
  border-style: dashed;
  background: rgba(255, 249, 238, 0.45);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.5;
  max-width: none;
}
.artcards__empty::before {
  content: '00';
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.8;
  color: var(--tomato);
  -webkit-text-stroke: 2px var(--ink);
}
.artcards__sentinel { height: 1px; margin-top: -1px; }
.artcard[hidden] { display: none; }

.artcard { counter-increment: issue; max-width: 520px; }
.artcard__a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.artcard__cover {
  display: block;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 3 / 2;
  border: var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-0.7deg);
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s var(--ease);
}
.artcard:nth-child(2n) .artcard__cover { transform: rotate(0.8deg); }
.artcard__a:hover .artcard__cover { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow-lg); }
.artcard__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.artcard--nocover .artcard__cover { background: var(--mint); }
.artcard--nocover .artcard__cover::after {
  content: 'ZINE';
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 800;
  color: var(--ink);
  opacity: 0.35;
}
.artcard__body {
  position: relative;
  margin-top: -2px;
  padding: 16px 18px 18px;
  background: var(--cream);
  border: var(--line);
  box-shadow: var(--shadow);
}
.artcard__body::before {
  content: 'ISSUE ' counter(issue, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 7px;
  background: var(--tomato);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.artcard__meta { display: block; color: rgba(23, 19, 14, 0.62); margin-bottom: 6px; }
.artcard__title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 24px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.artcard__sum {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(23, 19, 14, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artcard__a:hover .artcard__title { background: var(--butter); }

/* ---------------------------------------------------------------- 关于 */
.frame--about { background: var(--mint); }
.frame--about::before { opacity: 0.3; }

.about__inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  padding: calc(var(--edge) + 70px) var(--edge) calc(var(--edge) + 40px);
}
.about__text { max-width: 48ch; display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); }
.about__statement {
  font-family: var(--display);
  font-size: clamp(36px, 4.3vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--cream);
}
.about__statement em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--tomato); }
.about__p {
  font-family: var(--hand);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.9;
  color: rgba(23, 19, 14, 0.78);
  max-width: 42ch;
}
.about__meta { margin: 0; display: grid; gap: 8px; }
.about__meta > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.about__meta > div:nth-child(2n) { background: var(--butter); }
.about__meta > div:nth-child(3n) { background: var(--sky); }
.about__meta dt { color: var(--ink); }
.about__meta dd { margin: 0; font-size: 13.5px; color: var(--ink); }

.about__figure {
  position: relative;
  display: block;
  padding: 12px 12px 44px;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(2.4deg);
  align-self: center;
  transition: transform 0.3s var(--ease-expo);
}
.about__figure:hover { transform: rotate(0.4deg) translateY(-4px); }
.about__figure::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  width: 100px; height: 22px;
  margin-left: -50px;
  background: rgba(255, 216, 74, 0.92);
  border: 1px solid rgba(23, 19, 14, 0.3);
  transform: rotate(-2deg);
}
.about__figure img {
  width: 100%;
  height: auto;
  max-height: 62dvh;
  object-fit: cover;
  background: var(--img-bg);
}
.about__figure .label {
  position: absolute;
  left: 14px; bottom: 12px;
  padding: 3px 8px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  transform: rotate(-2deg);
}

/* ---------------------------------------------------------------- 联系 */
.frame--contact { background: var(--tomato); }
.frame--contact::before { opacity: 0.22; }

.contact__inner {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-0.6deg);
  width: min(1020px, calc(100vw - 2 * var(--edge)));
  max-height: calc(100dvh - var(--edge) - 96px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 20px);
  padding: clamp(28px, 4vw, 54px);
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(23, 19, 14, 0.85);
}
.contact__inner::after {
  content: '邮';
  position: absolute;
  top: 22px; right: 22px;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: var(--butter);
  border: 2px dashed var(--ink);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  transform: rotate(7deg);
}
.contact__title {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.contact__mail {
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(34px, 5.7vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  background: linear-gradient(transparent 68%, var(--butter) 68%);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.contact__mail:hover { background: var(--tomato); color: var(--cream); }
.contact__note { font-family: var(--hand); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.85; color: rgba(23, 19, 14, 0.8); max-width: 54ch; }
.contact__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: 2px dashed rgba(23, 19, 14, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.contact__list a, .contact__list button {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
  color: var(--ink);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.contact__list a:hover, .contact__list button:hover { background: var(--butter); transform: translate(-1px, -1px); }
.contact__list .label { color: rgba(23, 19, 14, 0.55); }
.contact__copy { margin-top: 8px; color: rgba(23, 19, 14, 0.55); font-size: 9.5px; }

/* ============================================================== 读文章 */
body { transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
body.reading {
  --bg: #fbf7ee;
  --bg-2: #f4ebdc;
  --fg: #1d1b16;
  --fg-2: rgba(29, 27, 22, 0.72);
  --fg-3: rgba(29, 27, 22, 0.62);
  --hair: rgba(29, 27, 22, 0.24);
  --img-bg: rgba(23, 19, 14, 0.08);
}
.topbar, .bottombar { transition: opacity 0.35s var(--ease); }
body.reading .topbar, body.reading .bottombar { opacity: 0; pointer-events: none; }

.reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s, background-color 0.4s var(--ease);
}
.reader.is-open { opacity: 1; visibility: visible; }
.reader__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--edge) var(--edge) 10px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.45s 0.06s var(--ease), transform 0.5s 0.06s var(--ease-expo);
}
.reader.is-open .reader__bar { opacity: 1; transform: none; }
.reader__back { color: var(--fg-3); transition: color 0.25s var(--ease); }
.reader__back:hover { color: var(--tomato); }
.reader__meta { margin-left: auto; color: var(--fg-3); text-align: right; }
.reader__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.reader__inner {
  max-width: 44em;
  margin: 0 auto;
  padding: clamp(8px, 2.4vh, 28px) var(--edge) clamp(60px, 12vh, 140px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s 0.08s var(--ease), transform 0.6s 0.08s var(--ease-expo);
}
.reader.is-open .reader__inner { opacity: 1; transform: none; }
.reader__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 12px 0 0;
  text-wrap: balance;
}
.reader__summary { margin-top: 14px; font-size: clamp(14.5px, 1.2vw, 17px); line-height: 1.8; color: var(--fg-2); }
.reader__cover { margin: 24px 0 0; }
.reader__cover img { display: block; width: 100%; height: auto; border: var(--line); background: var(--img-bg); }
.reader__inner hr.hair { margin: clamp(24px, 4vh, 42px) 0; }
@media (max-width: 640px) { .reader__meta { display: none; } }

/* ========================================================== 底部胶片条 */
.bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px var(--edge);
  background: var(--cream);
  border-top: var(--line);
  pointer-events: none;
}
.bottombar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 7px;
  background-image: radial-gradient(circle, var(--ink) 2.4px, transparent 2.8px);
  background-size: 16px 8px;
  background-position: 4px 0;
  opacity: 0.55;
}
.bottombar > * { pointer-events: auto; }

.slides { display: flex; gap: 6px; }
.slides button {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.slides button:hover { background: var(--butter); transform: rotate(-3deg); }
.slides button.is-on { background: var(--tomato); color: var(--cream); }

.caption { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.caption__title { font-family: var(--display); font-weight: 800; font-size: clamp(16px, 1.3vw, 20px); letter-spacing: -0.04em; color: var(--ink); }
.caption .label { color: rgba(23, 19, 14, 0.6); }

.hint { justify-self: end; display: flex; align-items: baseline; gap: 16px; }
.hint .label { color: rgba(23, 19, 14, 0.6); }
.hint__btn { color: rgba(23, 19, 14, 0.6); font-weight: 600; transition: color 0.2s; }
.hint__btn:hover, .hint__btn[aria-expanded="true"] { color: var(--tomato); }

/* 跳过导航 */
.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--tomato);
  font-size: var(--label);
  letter-spacing: var(--track);
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

/* 快捷键说明 */
.keys {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.keys.is-open { opacity: 1; visibility: visible; }
.keys__scrim { position: absolute; inset: 0; background: rgba(23, 19, 14, 0.55); }
.keys__panel {
  position: relative;
  width: min(560px, calc(100vw - 2 * var(--edge)));
  max-height: min(78dvh, 640px);
  overflow: auto;
  padding: clamp(22px, 3vw, 34px);
  background: var(--cream);
  border: var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.5deg);
}
.keys__panel h2 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); }
.keys__list { list-style: none; margin: 18px 0 0; padding: 0; }
.keys__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-top: 1.5px dashed rgba(23, 19, 14, 0.35);
  font-size: 14px;
  color: var(--ink);
}
.keys__list li:last-child { border-bottom: 1.5px dashed rgba(23, 19, 14, 0.35); }
.keys__list kbd { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--tomato); white-space: nowrap; }

/* 复制提示 */
.v1-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--edge) + 60px);
  z-index: 120;
  transform: translate(-50%, 10px) rotate(-1deg);
  padding: 10px 16px;
  color: var(--cream);
  background: var(--ink);
  border: var(--line);
  box-shadow: 4px 4px 0 var(--tomato);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-expo);
}
.v1-toast.is-on { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }

/* 无 JS 回退 */
.noscript {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: var(--edge);
  text-align: center;
  background: var(--paper);
  color: var(--ink);
}

/* 快门闪光 */
.flash {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flash.is-on { animation: shutter-flash 0.55s ease-out; }
@keyframes shutter-flash {
  0% { opacity: 0; }
  6% { opacity: 0.92; }
  30% { opacity: 0.5; }
  100% { opacity: 0; }
}

/* ============================================================== 响应式 */
@media (max-width: 1100px) {
  .cover__body { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
  .cover__title { font-size: clamp(68px, 10vw, 118px); }
  .cover__collage { height: min(52vh, 460px); }
  .cover__img { height: min(38vh, 330px); }
  .cover__polaroid--small img { height: 110px; }
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; align-content: start; gap: 26px; overflow-y: auto; padding-top: calc(var(--edge) + 80px); }
  .about__figure {
    display: block;
    width: min(62%, 300px);
    margin: 4px 0 12px;
    padding: 8px 8px 34px;
    transform: rotate(1.6deg);
  }
  .about__figure img { max-height: 170px; }
  .about__figure .label { left: 10px; bottom: 8px; font-size: 11px; }
  .caption { display: none; }
  .bottombar { grid-template-columns: auto 1fr; }
  .contact__inner { max-width: none; }
  .cover__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: start;
    row-gap: 18px;
  }
  .cover__head { grid-column: 1; grid-row: 1; }
  .cover__collage { display: block; grid-column: 1; grid-row: 2; height: 200px; width: 100%; }
  .cover__polaroid--main { width: 70%; right: 8%; top: 0; padding: 7px; }
  .cover__img { height: 158px; }
  .cover__polaroid--small { display: none; }
  .cover__badge { width: 62px; height: 62px; font-size: 9px; right: 1%; top: -6px; }
  .cover__doodle { left: 4%; top: 2%; font-size: 44px; }
  .cover__foot { grid-column: 1; grid-row: 3; }
}

@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; align-items: flex-start; gap: 9px 0; padding: 12px 14px; }
  .topbar__brand { width: auto; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav--pill { gap: 0; justify-content: space-between; }
  .nav--pill a { flex: 1; justify-content: center; padding: 0 4px; min-height: 32px; font-size: 9px; letter-spacing: 0.02em; box-shadow: 2px 2px 0 var(--ink); }
  .nav a:nth-child(2n), .nav a:nth-child(3n) { background: var(--cream); }
  .nav a.is-on { background: var(--tomato); }
  .works__head, .articles__head, .posts__head { grid-template-columns: 1fr; align-items: start; }
  .hint { display: none; }
}

@media (max-width: 640px) {
  .cover__body { inset: calc(var(--edge) + 78px) var(--edge) calc(var(--edge) + 26px); }
  .cover__title { font-size: clamp(62px, 19vw, 90px); }
  .cover__title-en { font-size: 0.18em; }
  .cover__line { font-size: 17px; padding: 12px 14px; }
  .cover__actions { width: 100%; }
  .cover__btn { flex: 1; justify-content: center; }
  .cover__foot { gap: 6px 14px; padding-top: 10px; }
  .cover__foot .label:nth-child(2) { display: none; }
  .works__inner, .articles__inner, .posts__inner { padding-bottom: 72px; }
  .frame__title { font-size: 40px; }
  .about__statement { font-size: clamp(32px, 9vw, 42px); }
  .contact__inner { padding: 26px 20px 22px; max-height: calc(100dvh - 130px); }
  .contact__mail { font-size: clamp(30px, 8.6vw, 42px); }
  .contact__inner::after { width: 46px; height: 46px; font-size: 20px; top: 14px; right: 14px; }
  .bottombar { padding: 8px 14px; }
  .slides button { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  .topbar__brand > .label:last-child { display: none; }
  .slides { gap: 4px; }
}

/* 平板竖屏：封面拼贴放大一档，填掉中间的空白 */
@media (min-width: 641px) and (max-width: 900px) {
  .cover__collage { height: 320px; }
  .cover__img { height: 270px; }
}

/* ============================================================ 精修 · 更好看的游乐场
   参考当代个人作品集的共同点：低饱和的印刷色、强排版、少而准的装饰。
   这层覆盖把「热闹」收一收，留下奶油纸、砖红、黄油黄和宋体的骨架。 */
:root {
  --paper:  #f3ede1;
  --cream:  #fbf7ee;
  --ink:    #1d1b16;
  --tomato: #c54530;
  --butter: #e8c56a;
  --sky:    #c2d6de;
  --mint:   #cbdcc5;
  --pink:   #ebd1cb;
}
body.theme-noir { --bg: var(--paper); --fg: var(--ink); }

.frame--works   { --bg: #efe3c4; background: #efe3c4; }
.frame--posts   { --bg: #dbe7ec; background: #dbe7ec; }
.frame--articles{ --bg: #f1ddd7; background: #f1ddd7; }
.frame--about   { --bg: #dce7d6; background: #dce7d6; }
.frame--contact { --bg: #b9432f; background: #b9432f; }
.frame::before { opacity: 0.26; }
.frame--contact::before { opacity: 0.18; }

/* 标题回到宋体：像画册，而不是海报 */
.frame__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 5.6vw, 88px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-shadow: none;
}
.cover__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(86px, 11.8vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-shadow: none;
  transform: rotate(-1deg);
}
.cover__title-en { font-size: 0.15em; letter-spacing: 0.14em; }
.cover__eyebrow { transform: rotate(-0.6deg); box-shadow: 2px 2px 0 var(--ink); }
.cover__line { transform: rotate(-0.6deg); box-shadow: 3px 3px 0 var(--ink); }
.cover__line.is-swapping { transform: rotate(-0.6deg) translateY(4px); }
.cover__polaroid { box-shadow: 5px 5px 0 var(--ink); }
.cover__polaroid--main { transform: rotate(1.4deg); }
.cover__polaroid--a { transform: rotate(-3deg); }
.cover__polaroid--b { transform: rotate(4deg); }
.cover__badge { background: var(--tomato); font-weight: 400; font-family: var(--serif); font-size: 14px; }
.cover__blob { opacity: 0.55; }

/* 顶栏：一排纸签，不再每格换色 */
.nav a,
.nav a:nth-child(2n),
.nav a:nth-child(3n) { background: var(--cream); box-shadow: 2px 2px 0 var(--ink); }
.nav a.is-on { background: var(--cream); color: var(--tomato); box-shadow: 2px 2px 0 var(--tomato); }
.topbar__brand { transform: rotate(-0.5deg); box-shadow: 2px 2px 0 var(--ink); }

/* 照片墙：白卡、薄边、轻微歪斜 */
.work { box-shadow: 4px 4px 0 var(--ink); border-width: 1.5px; padding: 8px 8px 0; }
.work:nth-child(3n + 1) { --tilt: -0.6deg; }
.work:nth-child(3n + 2) { --tilt: 0.45deg; }
.work:nth-child(3n) { --tilt: -0.15deg; }
.work:hover, .work:focus-visible { box-shadow: 7px 7px 0 var(--ink); transform: rotate(0) translateY(-3px); }
.work__frame::after { background: var(--butter); border-width: 1px; box-shadow: 1px 1px 0 var(--ink); }
.work__idx { background: var(--tomato); }
.filter { background: var(--cream); box-shadow: 1.5px 1.5px 0 var(--ink); border-width: 1px; }
.filter.is-active { background: var(--ink); }

/* 杂志架：封面回归宋体标题 */
.artcard__cover { box-shadow: 4px 4px 0 var(--ink); border-width: 1.5px; transform: rotate(-0.3deg); }
.artcard:nth-child(2n) .artcard__cover { transform: rotate(0.35deg); }
.artcard__body { box-shadow: 4px 4px 0 var(--ink); border-width: 1.5px; }
.artcard__body::before { background: var(--tomato); }
.artcard__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; font-size: clamp(22px, 1.7vw, 28px); }
.artcard__a:hover .artcard__cover { transform: rotate(0) translateY(-2px); box-shadow: 7px 7px 0 var(--ink); }
.artcards__empty { background: rgba(251, 247, 238, 0.62); box-shadow: 4px 4px 0 var(--ink); }

/* 关于：宋体标题 + 干净的事实行 */
.about__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-shadow: none;
}
.about__statement em { font-family: var(--serif); font-style: italic; color: var(--tomato); }
.about__meta > div,
.about__meta > div:nth-child(2n),
.about__meta > div:nth-child(3n) { background: var(--cream); box-shadow: 2px 2px 0 var(--ink); border-width: 1.5px; }
.about__meta > div:nth-child(2n) { background: #f4e7c9; }
.about__figure { box-shadow: 7px 7px 0 var(--ink); transform: rotate(1.4deg); }

/* 明信片：更干净的邮戳与字 */
.contact__inner { box-shadow: 10px 10px 0 rgba(29, 27, 22, 0.82); border-width: 2px; transform: translate(-50%, -50%) rotate(-0.3deg); }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -0.02em; }
.contact__mail { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.8vw, 94px); letter-spacing: -0.03em; }
.contact__inner::after { background: var(--butter); font-family: var(--serif); font-weight: 400; }
.contact__list a, .contact__list button { box-shadow: 2px 2px 0 var(--ink); }

/* 胶片条：更细、更安静 */
.bottombar { border-top-width: 1.5px; }
.slides button { width: 28px; height: 28px; border-width: 1px; }
.slides button.is-on { background: var(--tomato); }
.caption__title { font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 1.3vw, 21px); letter-spacing: -0.01em; }

@media (max-width: 1100px) {
  .cover__title { font-size: clamp(76px, 11.5vw, 128px); }
}
@media (max-width: 900px) {
  .frame__title { font-size: clamp(44px, 9vw, 64px); }
}
@media (max-width: 640px) {
  .cover__title { font-size: clamp(66px, 18vw, 96px); }
  .frame__title { font-size: 42px; }
  .about__statement { font-size: clamp(32px, 9vw, 42px); }
  .contact__mail { font-size: clamp(30px, 8.8vw, 42px); }
}

/* ============================================================ 首屏 · 夜間摄影棚场景
   参考互动作品集的「一个完整场景 + 一块悬浮控制板」：背景是真实照片，
   加手绘叶片、树精灵角色、快门计数器和信息面板。 */
.cover__scene { position: absolute; inset: 0; overflow: hidden; background: #09110d; }
.cover__scene > picture { position: absolute; inset: 0; display: block; }
.cover__scene .cover__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.9) brightness(0.9) contrast(1.02);
  transform: scale(1.035);
  transition: transform 10s var(--ease);
}
.frame--cover.is-on .cover__scene .cover__img { transform: scale(1); }
.cover__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,12,9,0.5) 0%, rgba(7,12,9,0) 22%),
    linear-gradient(90deg, rgba(7,12,9,0.78) 0%, rgba(7,12,9,0.16) 40%, rgba(7,12,9,0.52) 100%),
    linear-gradient(0deg, rgba(7,12,9,0.7) 0%, rgba(7,12,9,0.04) 48%);
  pointer-events: none;
}
.scene__leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.scene__tagline { position: absolute; left: var(--edge); top: calc(var(--edge) + 64px); z-index: 3; }
.scene__tagline .label { color: rgba(255,255,255,0.62); }

.scene__character {
  position: absolute; left: 7vw; bottom: 3vh;
  width: clamp(165px, 18vw, 270px);
  z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.42));
  transition: transform 0.3s var(--ease-expo);
}
.scene__character:hover { transform: translateY(-5px) rotate(-1deg); }
.scene__character svg { display: block; width: 100%; height: auto; }

.scene__quote {
  position: absolute; left: 28vw; bottom: 4vh;
  width: min(360px, 30vw);
  padding: 16px 18px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.72);
  transform: rotate(-1.4deg);
  z-index: 3;
}
.scene__quote .cover__line {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0; border: 0; box-shadow: none; background: none;
  transform: none;
  font-family: var(--hand);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}
.scene__quote .cover__line.is-swapping { transform: translateY(4px); }
.scene__quote .cover__from { color: rgba(29,27,22,.6); font-size: 11px; }

.scene__right {
  position: absolute; right: 6vw; top: 50%;
  transform: translateY(-50%);
  width: min(390px, 32vw);
  z-index: 4;
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
}
.scene__counter {
  width: 118px; padding: 12px 12px 10px;
  background: rgba(24,28,23,0.82);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  color: #fbf7ee;
  text-align: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}
.scene__counter .label { color: rgba(255,255,255,0.55); }
.scene__count { display: block; margin: 6px 0 8px; font-family: var(--serif); font-size: 46px; line-height: 1; }
.scene__counter-btn {
  width: 100%; min-height: 30px;
  background: transparent; border: 1px solid rgba(255,255,255,0.5);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.scene__counter-btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.scene__panel {
  width: 100%;
  padding: 24px;
  background: rgba(24,28,23,0.78);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  color: #fbf7ee;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
}
.scene__panel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.scene__panel-top .label { color: rgba(255,255,255,0.5); }
.scene__panel-title { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; margin: 0 0 8px; }
.scene__panel-meta { font-size: 12px; color: rgba(255,255,255,0.62); }
.scene__panel-note { font-family: var(--hand); font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.74); margin: 18px 0 22px; }
.scene__panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.scene__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px;
  background: transparent; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.scene__btn--solid { background: #fbf7ee; border-color: #fbf7ee; color: var(--ink); }
.scene__btn:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); transform: translateY(-1px); }

/* 首屏的顶栏与底栏：像场景里的白字，不再贴纸化 */
body.is-cover .topbar__brand {
  background: transparent; border: 0; box-shadow: none; transform: none; padding: 0;
}
body.is-cover .topbar__brand .label--fg {
  color: #fff; font-size: clamp(22px, 2.2vw, 34px); font-weight: 800; letter-spacing: -0.035em;
}
body.is-cover .topbar__brand > .label:last-child {
  color: rgba(255,255,255,0.55); border-left-color: rgba(255,255,255,0.3);
}
body.is-cover .nav a,
body.is-cover .nav a:nth-child(2n),
body.is-cover .nav a:nth-child(3n) {
  background: transparent; border: 0; box-shadow: none;
  color: rgba(255,255,255,0.68); font-weight: 600;
}
body.is-cover .nav a:hover { color: #fff; transform: none; }
body.is-cover .nav a.is-on { color: #fff; box-shadow: none; }
body.is-cover .bottombar { background: transparent; border-top: 0; }
body.is-cover .bottombar::before { display: none; }
body.is-cover .slides button { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.62); }
body.is-cover .slides button:hover { background: rgba(255,255,255,0.16); }
body.is-cover .slides button.is-on { background: #fff; border-color: #fff; color: var(--ink); }
body.is-cover .caption__title { color: #fff; }
body.is-cover .caption .label,
body.is-cover .hint .label,
body.is-cover .hint__btn { color: rgba(255,255,255,0.58); }

/* 首屏入场 */
.frame--cover[data-enter] .scene__tagline,
.frame--cover[data-enter] .scene__character,
.frame--cover[data-enter] .scene__quote,
.frame--cover[data-enter] .scene__right { animation: scene-rise 0.9s var(--ease-expo) both; }
.frame--cover[data-enter] .scene__character { animation-delay: 0.12s; }
.frame--cover[data-enter] .scene__quote { animation-delay: 0.2s; }
.frame--cover[data-enter] .scene__right { animation-delay: 0.28s; }
@keyframes scene-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.frame--cover[data-enter] .scene__right { animation-name: scene-rise-right; }
@keyframes scene-rise-right {
  from { opacity: 0; transform: translate(18px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

/* 切屏时的一下快门白闪 */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 999;
  background: #fff; opacity: 0; pointer-events: none;
}
body.is-switching::after { animation: page-flash 0.32s ease-out; }
@keyframes page-flash {
  0% { opacity: 0; }
  10% { opacity: 0.86; }
  100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .scene__right { width: min(340px, 36vw); }
  .scene__quote { left: 25vw; width: min(330px, 33vw); }
}
@media (max-width: 900px) {
  .scene__character { width: 150px; left: 5vw; bottom: 20vh; }
  .scene__quote { display: none; }
  .scene__right { right: 5vw; top: auto; bottom: 92px; transform: none; width: min(330px, 78vw); align-items: stretch; }
  .scene__counter { align-self: flex-end; width: 98px; padding: 9px; }
  .scene__count { font-size: 32px; margin: 4px 0 6px; }
  .scene__panel { padding: 18px; }
  .scene__panel-title { font-size: 25px; }
  .scene__panel-note { display: none; }
  .frame--cover[data-enter] .scene__right { animation-name: scene-rise; }
}
@media (max-width: 640px) {
  .scene__tagline { top: calc(var(--edge) + 82px); }
  .scene__character { width: 126px; left: 6px; bottom: 32vh; opacity: 0.95; }
  .scene__right { left: 16px; right: 16px; bottom: 82px; width: auto; gap: 10px; }
  .scene__panel { padding: 15px 16px 14px; border-radius: 13px; }
  .scene__panel-top { margin-bottom: 12px; }
  .scene__panel-title { font-size: 23px; }
  .scene__panel-meta { font-size: 11px; }
  .scene__panel-actions { width: 100%; }
  .scene__btn { flex: 1; min-height: 34px; font-size: 10px; padding: 0 10px; }
  .scene__counter { position: absolute; right: 0; top: auto; bottom: calc(100% + 10px); width: 84px; padding: 7px; }
  .scene__counter .label { font-size: 8px; }
  .scene__count { font-size: 30px; }
}

/* 场景里的轻微呼吸：角色晃动、夜色叶片漂移（不抢镜） */
.scene__character svg { animation: mascot-bob 5s ease-in-out infinite; }
.scene__leaves { animation: leaves-drift 14s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes leaves-drift {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(-7px) scale(1.008); }
}

/* 悬挂的三张小照片，让首屏更像一个摄影现场 */
.scene__prints {
  position: absolute; left: 26vw; top: 10vh; z-index: 2;
  display: flex; gap: 16px; align-items: flex-start;
  transform: rotate(-2.4deg);
  pointer-events: none;
}
.scene__prints::before {
  content: ''; position: absolute; left: -32px; right: -32px; top: -13px;
  height: 1px; background: rgba(255, 243, 223, 0.45);
}
.scene__prints figure {
  width: 88px; padding: 5px 5px 16px;
  background: #fbf7ee; border: 1.5px solid rgba(29, 27, 22, 0.8);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}
.scene__prints figure:nth-child(2) { transform: rotate(3deg) translateY(7px); }
.scene__prints figure:nth-child(3) { transform: rotate(-2deg) translateY(2px); }
.scene__prints img { display: block; width: 100%; height: 58px; object-fit: cover; }
@media (max-width: 900px) { .scene__prints { display: none; } }

/* ============================================================ V2 · 竖向作品集
   整体交互从「六屏横滑」改成一条正常竖向滚动：先看照片，再一路往下读。
   首屏是一张可更换的照片 + 玻璃信息面板 + 胶片条；作品是粘性标题的网格；
   关于变成深色插页；联系回到奶油纸大信箱。 */
html { scroll-behavior: auto; height: auto; overflow-x: hidden; overflow-y: auto; }
body {
  /* 不能设 overflow-y:auto：body 会变成滚动容器，作品页的 sticky 左栏会失效 */
  overflow: visible;
  height: auto;
  min-height: 100svh;
}
body::after { display: none; }

.track {
  display: block;
  height: auto;
  transform: none !important;
  transition: none;
  will-change: auto;
  touch-action: auto;
}
.frame {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  scroll-margin-top: 0;
}
.frame::before { display: none; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: var(--tomato);
  pointer-events: none;
}

/* ------------------------------------------------------------ 首屏 */
.frame--cover { min-height: 100svh; background: #0a0e0b; }
.hero { position: relative; min-height: 100svh; height: 100svh; overflow: hidden; }
.hero > picture { position: absolute; inset: 0; display: block; }
.hero .cover__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: none;
  transform: none;
  transition: none;
}
.frame--cover.is-on .hero .cover__img { transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,9,7,.86) 0%, rgba(6,9,7,.38) 46%, rgba(6,9,7,.56) 100%),
    linear-gradient(0deg, rgba(6,9,7,.86) 0%, rgba(6,9,7,.04) 55%);
}
.hero__content {
  position: relative; z-index: 3;
  width: min(1400px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--edge) + 86px) var(--edge) 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .55fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2vh, 22px); }
.hero__eyebrow {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.72);
  font-size: 9.5px;
  letter-spacing: .16em;
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(78px, 10.2vw, 158px);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.045em;
  color: #fff;
  text-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero__title em { font-style: normal; color: var(--butter); }
.hero__sub {
  margin-top: 8px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero__counter {
  width: 112px;
  padding: 12px 12px 10px;
  background: rgba(18,22,18,.84);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero__counter .label { color: rgba(255,255,255,.52); }
.hero__count { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; margin: 6px 0 8px; }
.hero__counter-btn {
  width: 100%; min-height: 30px;
  border: 1px solid rgba(255,255,255,.5); background: transparent;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  transition: background .2s, color .2s, border-color .2s;
}
.hero__counter-btn:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.hero__panel {
  width: 100%;
  padding: 25px;
  background: rgba(17,21,17,.84);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
}
.hero__panel-top { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 24px; }
.hero__panel-top .label { color: rgba(255,255,255,.52); }
.hero__panel-title { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.025em; margin: 0 0 9px; }
.hero__panel-meta { font-size: 12px; color: rgba(255,255,255,.6); }
.hero__panel-quote { margin: 20px 0 24px; }
.hero__panel-quote .cover__line {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding: 0; border: 0; background: none; box-shadow: none; transform: none;
  font-family: var(--hand); font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.78);
}
.hero__panel-quote .cover__from { color: rgba(255,255,255,.5); }
.hero__panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.hero__btn--solid { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.hero__btn:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-1px); }

.hero__strip {
  position: absolute; left: var(--edge); right: var(--edge); bottom: 22px;
  z-index: 4;
  display: flex; gap: 9px;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 2px;
}
.hero__strip::-webkit-scrollbar { display: none; }
.hero__strip button {
  position: relative; flex: 0 0 88px; padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.hero__strip button:hover { transform: translateY(-2px); }
.hero__strip button.is-on { border-color: var(--butter); }
.hero__strip img { display: block; width: 100%; height: 54px; object-fit: cover; opacity: .62; transition: opacity .2s; }
.hero__strip button.is-on img, .hero__strip button:hover img { opacity: 1; }
.hero__strip .thumb-index {
  position: absolute; left: 4px; bottom: 3px;
  color: #fff; font-size: 8px; letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 100px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.55);
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(#fff, transparent); animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(.2); transform-origin: top; opacity: .2; } 45% { transform: scaleY(1); opacity: .8; } 100% { transform: scaleY(.2); opacity: .2; } }

/* 首屏的顶栏 / 底栏沿用白字 */
body.is-cover .topbar__brand,
body.is-dark .topbar__brand { background: transparent; border: 0; box-shadow: none; transform: none; padding: 0; }
body.is-cover .topbar__brand .label--fg,
body.is-dark .topbar__brand .label--fg { color: #fff; font-size: clamp(21px, 2.1vw, 32px); font-weight: 800; letter-spacing: -.035em; }
body.is-cover .topbar__brand > .label:last-child,
body.is-dark .topbar__brand > .label:last-child { color: rgba(255,255,255,.55); border-left-color: rgba(255,255,255,.3); }
body.is-cover .nav a,
body.is-cover .nav a:nth-child(2n),
body.is-cover .nav a:nth-child(3n),
body.is-dark .nav a,
body.is-dark .nav a:nth-child(2n),
body.is-dark .nav a:nth-child(3n) { background: transparent; border: 0; box-shadow: none; color: rgba(255,255,255,.66); }
body.is-cover .nav a.is-on,
body.is-dark .nav a.is-on { color: #fff; box-shadow: none; }
body.is-cover .bottombar,
body.is-dark .bottombar { background: transparent; border: 0; }
body.is-cover .slides button,
body.is-dark .slides button { border-color: rgba(255,255,255,.34); color: rgba(255,255,255,.62); }
body.is-cover .slides button.is-on,
body.is-dark .slides button.is-on { background: var(--butter); border-color: var(--butter); color: var(--ink); }

/* ------------------------------------------------------------ 作品：粘性标题 + 网格 */
.frame--works {
  padding: clamp(100px, 12vh, 150px) var(--edge) clamp(80px, 10vh, 120px);
  background: #f4eddf;
}
.works__inner {
  position: relative; inset: auto;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 90px);
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0;
}
.works__head {
  position: sticky; top: 110px;
  align-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 24px;
  padding: 0;
  border: 0;
  margin: 0;
}
.works__head .frame__head { gap: 12px; }
.works__head .frame__title { font-size: clamp(56px, 5vw, 78px); }
.works__head .filters { flex-direction: column; align-items: flex-start; gap: 5px; }
.works__head .filter { border: 0; box-shadow: none; background: transparent; padding: 4px 0; min-height: 0; font-size: 10px; }
.works__head .filter.is-active { background: none; color: var(--tomato); border-bottom: 1px solid var(--tomato); }
.works__scroll { flex: none; overflow: visible; padding: 0; }
.works__scroll .masonry { columns: 3; column-gap: clamp(16px, 1.6vw, 24px); padding: 0; }
.works__scroll .work { margin-bottom: clamp(20px, 2.4vw, 34px); }
.works__sentinel { display: none; }
.works__head .label { color: rgba(29,27,22,.5); }

/* ------------------------------------------------------------ 碎碎念：一面软木墙，钉满便利贴 */
.frame--posts {
  padding: clamp(100px, 12vh, 150px) var(--edge) clamp(90px, 11vh, 130px);
  background: #ece3d3;
}
.posts__inner { position: relative; inset: auto; width: min(1240px, 100%); margin: 0 auto; padding: 0; }
.posts__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 32px; padding: 0 0 22px; border-bottom: 1.5px solid rgba(29,27,22,.28); margin: 0 0 36px;
  flex-wrap: wrap;
}
.posts__head .label { color: rgba(29,27,22,.52); }
.posts__head .frame__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.posts__scroll { overflow: visible; padding: 0; }

/* —— 右侧：拖拽提示 + 时间轴 —— */
.posts__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* —— 时间轴：按年份切片 —— */
.postyears { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; }
.postyears__chip {
  position: relative;
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  color: rgba(29,27,22,.34);
  padding: 2px 8px 7px;
  transition: color .2s var(--ease), transform .3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.postyears__chip .n {
  font-size: 10px; font-weight: 500; margin-left: 5px; vertical-align: super;
  color: rgba(29,27,22,.28); transition: color .2s var(--ease);
}
.postyears__chip::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px;
  background: var(--tomato); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-expo);
}
.postyears__chip:hover { color: rgba(29,27,22,.66); }
.postyears__chip.is-on { color: var(--ink); transform: translateY(-1px); }
.postyears__chip.is-on .n { color: var(--tomato); }
.postyears__chip.is-on::after { transform: scaleX(1); }
.postyears__chip:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }

/* —— 软木板：暖棕渐变 + 细木框 + 挂钩颗粒；便签钉在这块板子上 —— */
.wall {
  position: relative;
  padding: clamp(20px, 2.2vw, 32px) clamp(16px, 1.8vw, 26px) clamp(22px, 2vw, 30px);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 60% 50% at 22% 18%, rgba(206,158,102,.55), transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 76%, rgba(150,104,58,.42), transparent 62%),
    linear-gradient(140deg, #c9a273 0%, #bd9167 45%, #a97b52 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.28) inset,
    0 22px 50px -30px rgba(60,40,20,.7),
    0 4px 12px -6px rgba(60,40,20,.4);
}
/* 软木颗粒：小十字/麻点 + 细木屑噪点，让它真的像一块板 */
.wall::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image:
    radial-gradient(rgba(90,60,30,.30) 1px, transparent 1.4px),
    radial-gradient(rgba(255,235,205,.32) 1px, transparent 1.4px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: 13px 13px, 17px 17px, 120px 120px;
  background-position: 0 0, 7px 9px, 0 0;
  opacity: .5; mix-blend-mode: multiply;
}
/* 深一点的木框内边，像板子有厚度 */
.wall::after {
  content: ''; position: absolute; inset: 6px; border-radius: 6px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(70,45,25,.28), inset 0 14px 34px -18px rgba(50,30,12,.5);
}

/* —— 便利贴：自动适配列数，钉在墙上，微微歪斜、互不压边 —— */
.postcards {
  position: relative; z-index: 1;
  display: block;
  list-style: none; margin: 0; padding: 0;
  max-width: none;
  /* 高度由 posts.js 的排版算出来后写在 style 上 */
}
/* 真实便利贴墙：按时间顺序逐行钉在墙上、轻微随机角度、半透明纸。
   z-index 由 posts.js 按「越新越上」给一个基础值，悬停时置顶。*/
.postcard {
  position: absolute;
  box-sizing: border-box;
  padding: 22px 20px 18px;
  background: var(--note-bg, rgba(255,243,168,.94));
  border: 0;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(50,30,12,.12),
    0 8px 16px -8px rgba(50,30,12,.36),
    0 20px 38px -24px rgba(50,30,12,.4);
  transform: rotate(var(--tilt, -0.6deg));
  transform-origin: 50% 8%;
  translate: 0 0;
  scale: 1;
  rotate: 0deg;
  opacity: 1;
  transition: transform .26s var(--ease-expo), box-shadow .26s var(--ease);
  will-change: transform;
  z-index: var(--z, 1);
}
/* 四种纸色（半透明）+ 兜底角度（JS 排版前也不会所有便签一个角度） */
.postcard:nth-child(4n + 1) { --note-bg: rgba(255,242,150,.94); background: var(--note-bg); }
.postcard:nth-child(4n + 2) { --note-bg: rgba(255,201,214,.94); background: var(--note-bg); }
.postcard:nth-child(4n + 3) { --note-bg: rgba(184,222,255,.94); background: var(--note-bg); }
.postcard:nth-child(4n)     { --note-bg: rgba(198,238,184,.94); background: var(--note-bg); }
/* 半透明纸：叠压时能隐约透出下面那张的边角和图钉，才像真的 */
.wall { --paper-blur: none; }
/* 纸的右下角折光 */
.postcard::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, rgba(60,40,20,.10) 50%);
  border-bottom-right-radius: 2px;
}
/* 交替：奇数张顶个红色图钉，偶数张贴一角半透明胶带 */
.postcard::before {
  content: ''; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #ff9a8a 0%, #e2473a 46%, #a92117 100%);
  box-shadow:
    0 3px 5px -1px rgba(40,20,10,.5),
    0 1px 1px rgba(40,20,10,.3),
    inset 0 -1px 1px rgba(80,10,0,.45);
}
.postcard.is-taped::before {
  top: -9px; left: 50%; margin-left: -36px; width: 72px; height: 20px;
  border-radius: 1px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 1px 2px rgba(50,30,12,.14), inset 0 0 0 1px rgba(255,255,255,.35);
  transform: rotate(-2.6deg);
}
/* 图钉在纸上投下的一小片影子 */
.postcard > .postcard__pin-shadow {
  position: absolute; top: 2px; left: 50%; width: 24px; height: 9px; margin-left: -12px;
  background: radial-gradient(ellipse at center, rgba(50,30,12,.26), transparent 70%);
  z-index: 2; pointer-events: none;
}
.postcard.is-taped > .postcard__pin-shadow { display: none; }
/* 点击置顶：点过的便签留在最上面，直到点另一张 */
.postcard.is-front {
  z-index: 9990;
  transform: translateY(-6px) rotate(var(--tilt, 0deg));
  box-shadow:
    0 3px 5px rgba(50,30,12,.16),
    0 24px 38px -12px rgba(50,30,12,.46),
    0 48px 76px -34px rgba(50,30,12,.5);
}

/* 可拖动：平时是「抓」的手势，按住时变「抓紧」并抬起来 */
.postcard { cursor: grab; }
.postcard.is-dragging {
  cursor: grabbing;
  transition: none;
  transform: translateY(-3px) rotate(var(--tilt, 0deg));
  box-shadow:
    0 6px 8px rgba(50,30,12,.18),
    0 30px 50px -14px rgba(50,30,12,.5),
    0 60px 90px -40px rgba(50,30,12,.55);
}
/* 悬停：从墙里抬起来置顶 —— 摆正、放大、影子拉长，压在其它便签上面 */
.postcard:hover,
.postcard:focus-within {
  transform: translateY(-7px) rotate(var(--tilt, 0deg));
  box-shadow:
    0 3px 4px rgba(50,30,12,.16),
    0 22px 34px -12px rgba(50,30,12,.44),
    0 44px 70px -34px rgba(50,30,12,.5);
  z-index: 9999;
}
.postcard.is-target { outline: 3px solid #e2473a; outline-offset: 6px; }

/* —— 贴上墙：先把便签放在「还没贴」的状态，再由 JS 逐张放上去 —— */
.postcard.is-pre {
  opacity: 0;
  transform: translateY(-16px) scale(1.02) rotate(var(--tilt, 0deg));
}
.postcard { transition: opacity .3s var(--ease), transform .26s var(--ease-expo), box-shadow .26s var(--ease), translate .52s var(--ease-expo), scale .52s var(--ease-expo), rotate .52s var(--ease-expo); }
.postcards.no-anim .postcard { transition: none !important; }
/* —— 归卷：切换年份时旧纸收成一叠飞向筛选按钮，新纸再从按钮展开 —— */
.postcard.is-filing {
  translate: var(--fx, 0px) var(--fy, 0px);
  scale: .12;
  rotate: 26deg;
  opacity: 0;
  z-index: 9997;
  pointer-events: none;
  transition:
    translate .52s cubic-bezier(.7, 0, .2, 1),
    scale .52s cubic-bezier(.7, 0, .2, 1),
    rotate .52s cubic-bezier(.7, 0, .2, 1),
    opacity .3s ease .16s;
}
.postcard.is-dealing {
  /* 新纸从右上角年份按钮附近分发下来，落到各自的时间线位置 */
  translate: var(--fx, 0px) var(--fy, 0px);
  scale: .12;
  rotate: 28deg;
  opacity: 0;
  z-index: 9997;
  pointer-events: none;
  transition: none;
}

/* 兼容旧动画（仍可用于其它触发） */
.postcard.is-sticking {
  animation: note-stick .46s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes note-stick {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(1.035) rotate(var(--tilt, 0deg));
    box-shadow: 0 26px 44px -18px rgba(50,30,12,.5), 0 6px 10px rgba(50,30,12,.18);
  }
  55% {
    opacity: 1;
    transform: translateY(2px) scale(.992) rotate(var(--tilt, 0deg));
    box-shadow: 0 10px 18px -10px rgba(50,30,12,.42), 0 2px 3px rgba(50,30,12,.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--tilt, 0deg));
    box-shadow: 0 1px 1px rgba(50,30,12,.12), 0 8px 16px -8px rgba(50,30,12,.36), 0 20px 38px -24px rgba(50,30,12,.4);
  }
}

/* 元信息：直接写在纸上，手写小字，不再是黑色标签块 */
.postcard__meta {
  display: block;
  margin: 0 0 12px;
  padding: 0 0 10px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px dashed rgba(60,40,20,.28);
  color: rgba(50,36,18,.62);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.postcard__meta a { color: inherit; text-decoration: none; }
.postcard__meta a:hover { color: #b23a26; }

/* 文字：手写体，深墨色 */
.postcard__text {
  margin: 0 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--hand);
  font-size: clamp(16px, 1.15vw, 18.5px);
  line-height: 1.78;
  color: #241d10;
}

/* 图：像钉在便签上的小照片（白边 + 底边留白 + 阴影） */
.postcard__media {
  display: grid;
  grid-template-columns: repeat(var(--pcols, 1), minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  margin: 0;
}
.postcard__media[data-cols="1"] { max-width: 100%; }
.postcard__ph {
  display: block;
  padding: 6px 6px 6px;
  border: 0;
  background: #fffdf7;
  line-height: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 2px 5px -1px rgba(50,30,12,.34), 0 8px 16px -12px rgba(50,30,12,.4);
  transition: box-shadow .3s var(--ease), transform .35s var(--spring);
}
.postcard__ph:hover {
  box-shadow: 0 5px 12px -3px rgba(50,30,12,.4), 0 16px 26px -16px rgba(50,30,12,.45);
  transform: translateY(-3px) rotate(-0.6deg);
}
.postcards__sentinel { display: none; }
.postcards__empty {
  position: static !important;
  padding: 30px 0; color: rgba(60,40,20,.6);
}

@media (max-width: 700px) {
  .posts__head { gap: 14px; }
  .wall { padding: 28px 12px 30px; border-radius: 8px; }
  .postcard { padding: 18px 16px 16px; }
  .postcard__meta { font-size: 8.5px; letter-spacing: .04em; line-height: 1.6; }
  .postcard__text { font-size: 16px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard, .postcard__ph { transition: none; }
  .postcard.is-sticking { animation: none; }
}

/* ------------------------------------------------------------ 文章：网格 */
.frame--articles {
  padding: clamp(100px, 12vh, 150px) var(--edge) clamp(80px, 10vh, 120px);
  background: #f1e4de;
}
.articles__inner { position: relative; inset: auto; width: min(1250px, 100%); margin: 0 auto; padding: 0; }
.articles__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding: 0 0 22px; border-bottom: 1.5px solid rgba(29,27,22,.28); margin: 0 0 42px;
}
.articles__head .label { color: rgba(29,27,22,.52); }
.articles__scroll { overflow: visible; padding: 0; }
.artcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.artcards__sentinel { display: none; }

/* ------------------------------------------------------------ 关于：深色插页 */
.frame--about {
  padding: clamp(100px, 12vh, 150px) var(--edge) clamp(80px, 10vh, 120px);
  background: #1d1b16;
  color: #fbf7ee;
}
.about__inner {
  position: relative; inset: auto;
  width: min(1300px, 100%);
  min-height: calc(100svh - 200px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.frame--about .label { color: rgba(251,247,238,.5); }
.frame--about .about__statement { color: #fbf7ee; font-size: clamp(40px, 4.6vw, 70px); text-shadow: none; }
.frame--about .about__statement em { color: var(--butter); }
.frame--about .link { color: #fbf7ee; }
.frame--about .link:hover { color: var(--butter); }
.about__p { color: rgba(251,247,238,.66); }
.about__meta { gap: 0; }
.about__meta > div,
.about__meta > div:nth-child(2n),
.about__meta > div:nth-child(3n) {
  background: transparent; border: 0;
  border-top: 1px solid rgba(251,247,238,.22);
  box-shadow: none;
  padding: 12px 0;
}
.about__meta > div:last-child { border-bottom: 1px solid rgba(251,247,238,.22); }
.about__meta dt { color: rgba(251,247,238,.46); }
.about__meta dd { color: #fbf7ee; }
.about__figure { box-shadow: 10px 10px 0 rgba(0,0,0,.3); transform: rotate(1.4deg); }
.about__figure .label { background: var(--butter); }
body[data-frame="about"] .topbar .label--fg,
body[data-frame="about"] .nav a { color: #fff; }

/* ------------------------------------------------------------ 联系：大信箱 */
.frame--contact {
  padding: clamp(100px, 12vh, 150px) var(--edge) 70px;
  background: var(--cream);
  color: var(--ink);
}
.contact__inner {
  position: relative; left: auto; top: auto; transform: none;
  width: min(1200px, 100%);
  min-height: calc(100svh - 220px);
  margin: 0 auto;
  padding: 0;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2vh, 24px);
  background: none; border: 0; box-shadow: none;
  overflow: visible;
}
.contact__inner::after { display: none; }
.contact__title { font-size: clamp(40px, 4.4vw, 64px); }
.contact__mail { font-size: clamp(44px, 7.2vw, 112px); background: linear-gradient(transparent 70%, var(--butter) 70%); border-bottom: 2px solid var(--ink); }
.contact__note { max-width: 54ch; }
.contact__list { border-top: 1.5px solid rgba(29,27,22,.28); }
.contact__copy { margin-top: 70px; }

/* ------------------------------------------------------------ 右侧章节轨 */
.bottombar {
  top: 50%; right: 18px; left: auto; bottom: auto;
  transform: translateY(-50%);
  width: auto;
  display: block;
  padding: 0;
  background: none; border: 0;
}
.bottombar::before { display: none; }
.slides { display: flex; flex-direction: column; gap: 7px; }
.slides button {
  width: 33px; height: 33px;
  border: 1px solid rgba(29,27,22,.32);
  border-radius: 999px;
  background: transparent;
  color: rgba(29,27,22,.6);
  font-size: 9px;
}
.slides button:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); transform: none; }
.slides button.is-on { background: var(--tomato); border-color: var(--tomato); color: var(--cream); }
.caption, .hint { display: none; }

@media (max-width: 1100px) {
  .hero__content { grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr); gap: 30px; }
  .works__inner { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
  .works__scroll .masonry { columns: 2; }
}
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; align-content: center; padding-top: calc(var(--edge) + 98px); }
  .hero__side { align-items: stretch; }
  .hero__counter { align-self: flex-end; width: 96px; padding: 8px; }
  .hero__count { font-size: 30px; margin: 4px 0 6px; }
  .hero__panel { padding: 18px; }
  .hero__panel-title { font-size: 25px; }
  .hero__panel-quote { margin: 12px 0 18px; }
  .hero__strip { display: none; }
  .hero__scroll { display: none; }
  .works__inner { grid-template-columns: 1fr; }
  .works__head { position: static; gap: 14px; }
  .works__head .filters { flex-direction: row; flex-wrap: wrap; }
  .works__scroll .masonry { columns: 2; }
  .postcards { grid-template-columns: 1fr; }
  .artcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__inner { grid-template-columns: 1fr; min-height: 0; }
  .about__figure { display: block; width: min(62%, 270px); margin-top: 18px; padding: 7px 7px 28px; transform: rotate(1.8deg); }
  .about__figure img { max-height: 150px; }
  .bottombar { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 100svh; height: 100svh; }
  .hero__title { font-size: clamp(70px, 20vw, 92px); }
  .hero__eyebrow { font-size: 8px; padding: 5px 8px; }
  .hero__content { padding-bottom: 70px; }
  .hero__side { gap: 10px; }
  .hero__panel-actions { width: 100%; }
  .hero__btn { flex: 1; }
  .works__scroll .masonry { columns: 1; }
  .artcards { grid-template-columns: 1fr; }
  .frame--works, .frame--posts, .frame--articles, .frame--about, .frame--contact { padding-top: 96px; }
  .contact__mail { font-size: clamp(30px, 9.5vw, 46px); }
}

/* 联系页的右侧小照片：像工作室桌上的一张样片 */
.contact__photo {
  position: absolute; right: 0; top: 50%;
  width: min(290px, 26vw);
  margin: 0; padding: 9px 9px 32px;
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(29, 27, 22, .78);
  transform: translateY(-50%) rotate(3deg);
}
.contact__photo::before {
  content: ''; position: absolute; top: -11px; left: 50%; width: 82px; height: 20px;
  margin-left: -41px; background: rgba(232,197,106,.8);
  border: 1px solid rgba(29,27,22,.25); transform: rotate(-2deg);
}
.contact__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .contact__photo { display: none; } }

/* ------------------------------------------------------------ 树精灵（首屏的乐趣） */
.hero__mascot {
  position: absolute;
  left: 37vw; bottom: 84px;
  z-index: 4;
  width: clamp(160px, 17vw, 240px);
  padding: 0; border: 0; background: none;
  cursor: pointer;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.36));
  transition: transform .25s var(--ease-expo);
}
.hero__mascot:hover { transform: translateY(-5px) rotate(-1deg); }
.hero__mascot svg { display: block; width: 100%; height: auto; animation: mascot-bob 5s ease-in-out infinite; }
.hero__mascot.is-shooting svg { animation: mascot-hop .6s var(--ease-expo); }
.hero__mascot-note {
  position: absolute; left: 58%; top: -12px;
  padding: 4px 8px;
  background: var(--cream); border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--hand); font-size: 12px; color: var(--ink);
  white-space: nowrap; transform: rotate(4deg);
  pointer-events: none;
}
@keyframes mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mascot-hop { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-16px) rotate(-2deg); } 70% { transform: translateY(2px) rotate(1deg); } }
@media (max-width: 1100px) {
  .hero__mascot { left: 34vw; bottom: 80px; width: clamp(150px, 20vw, 210px); }
}
@media (max-width: 900px) {
  .hero__mascot { left: 5vw; bottom: 29vh; width: 145px; }
  .hero__mascot-note { display: none; }
}
@media (max-width: 640px) {
  .hero__mascot { left: 8px; bottom: 41vh; width: 104px; }
}

/* 手机兼容：刘海安全区、矮屏顶部让位 */
@media (max-width: 640px) {
  .topbar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .hero__content {
    padding-top: calc(var(--edge) + 78px + env(safe-area-inset-top, 0px));
  }
  .frame--works,
  .frame--posts,
  .frame--articles,
  .frame--about,
  .frame--contact {
    padding-top: calc(86px + env(safe-area-inset-top, 0px));
  }
  .hero__mascot { bottom: calc(41vh + 14px + env(safe-area-inset-bottom, 0px)); }
}
/* 矮屏（iPhone SE / 320–375 宽）：面板优先，树精灵收起，内容从顶部排 */
@media (max-width: 640px) and (max-height: 700px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__content {
    align-items: start;
    align-content: start;
    height: auto;
    min-height: 100svh;
    padding-top: calc(92px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }
  .hero__mascot { display: block; width: 70px; left: 8px; top: 46%; bottom: auto; }
  .hero__mascot-note { display: none; }
  .hero__panel { padding: 14px 16px 13px; }
  .hero__panel-quote { display: none; }
}

/* 手机横屏：空间矮，首屏改成紧凑双栏，隐藏大装饰，保证面板完整 */
@media (max-height: 520px) and (min-width: 600px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 24px;
    align-items: center;
    height: auto;
    min-height: 100svh;
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    padding-bottom: 22px;
  }
  .hero__title { font-size: clamp(46px, 8vw, 72px); }
  .hero__sub { font-size: 9px; }
  .hero__mascot, .hero__strip, .hero__scroll { display: none; }
  .hero__side { gap: 8px; }
  .hero__counter { width: 88px; padding: 7px; }
  .hero__count { font-size: 28px; margin: 3px 0 5px; }
  .hero__panel { padding: 14px 16px; }
  .hero__panel-top { margin-bottom: 10px; }
  .hero__panel-title { font-size: 22px; }
  .hero__panel-quote { display: none; }
  .hero__panel-actions .hero__btn { flex: 1; min-height: 32px; font-size: 10px; }
}

/* ------------------------------------------------------------ 快门：光圈 + 白闪 + 印章 */
.shutter {
  position: absolute; inset: 0; z-index: 95;
  display: grid; place-items: center;
  overflow: hidden; pointer-events: none;
  visibility: hidden;
}
.shutter.is-on { visibility: visible; }
.shutter__wash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,253,247,.96) 0%, rgba(251,247,238,.55) 14%, rgba(251,247,238,0) 34%);
  opacity: 0;
}
.shutter.is-on .shutter__wash { animation: shutter-wash 1.45s ease-in-out both; }
.shutter__frame {
  position: absolute; inset: 14px;
  border: 2px solid rgba(251,247,238,.85);
  opacity: 0;
  transform: scale(1.02);
}
.shutter.is-on .shutter__frame { animation: shutter-frame 1.45s ease-in-out both; }
.shutter__aperture {
  position: relative;
  width: clamp(140px, 18vw, 210px);
  height: clamp(140px, 18vw, 210px);
  opacity: 0;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)) drop-shadow(0 0 42px rgba(232,197,106,.22));
}
.shutter__blades { transform-origin: 100px 100px; }
.shutter.is-on .shutter__aperture { animation: aperture-snap 1.45s cubic-bezier(0.25, 0.1, 0.2, 1) both; }
.shutter__stamp {
  position: absolute;
  left: 50%; top: 60%;
  padding: 7px 14px 6px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--hand);
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, 8px) rotate(-3deg) scale(.88);
  white-space: nowrap;
}
.shutter.is-on .shutter__stamp { animation: shutter-stamp 1.45s .36s var(--ease-expo) both; }
@keyframes shutter-wash {
  0% { opacity: 0; }
  22% { opacity: .45; }
  42% { opacity: .74; }
  68% { opacity: .22; }
  100% { opacity: 0; }
}
@keyframes aperture-snap {
  0% { opacity: 0; transform: scale(1.52) rotate(-8deg); filter: blur(6px); }
  14% { opacity: .92; transform: scale(1.24) rotate(-3deg); filter: blur(1.5px); }
  38% { opacity: 1; transform: scale(.78) rotate(3deg); filter: blur(0); }
  56% { opacity: 1; transform: scale(.16) rotate(8deg); }
  66% { opacity: 1; transform: scale(.055) rotate(10deg); }
  82% { opacity: .95; transform: scale(.62) rotate(15deg); filter: blur(1px); }
  100% { opacity: 0; transform: scale(1.28) rotate(20deg); filter: blur(5px); }
}
@keyframes shutter-frame {
  0% { opacity: 0; transform: scale(1.04); }
  20% { opacity: 1; transform: scale(1); }
  65% { opacity: .75; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes shutter-stamp {
  0% { opacity: 0; transform: translate(-50%, 10px) rotate(-3deg) scale(.86); }
  18% { opacity: 1; transform: translate(-50%, 0) rotate(-3deg) scale(1); }
  72% { opacity: 1; transform: translate(-50%, -2px) rotate(-3deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) rotate(-3deg) scale(1); }
}
/* 面板文字在换片时轻翻一下 */
.hero__panel.is-swapping .hero__panel-title { animation: panel-flip .42s var(--ease-expo); }
@keyframes panel-flip {
  0% { opacity: .2; transform: translateY(6px) skewX(-4deg); }
  100% { opacity: 1; transform: none; }
}
.hero__count.is-bump { animation: count-bump .42s var(--ease-expo); }
@keyframes count-bump { 0%, 100% { transform: none; } 40% { transform: translateY(-5px) scale(1.08); } }

/* 真正的光圈：外圈固定，六片叶片向中心收拢，中心留一个六边形孔 */
.shutter { --iris-size: min(108vmin, 1040px); }
.shutter__aperture {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: var(--iris-size);
  height: var(--iris-size);
  opacity: 0;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.45));
}
.shutter__iris { display: block; width: 100%; height: 100%; }
.shutter.is-on .shutter__aperture { animation: iris-appear 1.45s ease-in-out both; }
@keyframes iris-appear {
  0% { opacity: 0; }
  10% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; }
}

/* 拍照时的黑色相机取景框：除镜头外全部压暗，四周是取景 HUD */
.shutter__dark {
  position: absolute; inset: 0;
  background: #050705;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 calc(var(--iris-size) * .474), #050705 calc(var(--iris-size) * .477));
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 calc(var(--iris-size) * .474), #050705 calc(var(--iris-size) * .477));
}
.shutter.is-on .shutter__dark { animation: shutter-dark 1.45s ease-in-out both; }
@keyframes shutter-dark {
  0% { opacity: 0; }
  7% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; }
}
.shutter__hud {
  position: absolute; inset: 18px;
  color: rgba(251,247,238,.78);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  opacity: 0;
}
.shutter.is-on .shutter__hud { animation: shutter-hud 1.45s ease-in-out both; }
@keyframes shutter-hud {
  0%, 100% { opacity: 0; }
  10%, 82% { opacity: 1; }
}
.shutter__corner {
  position: absolute; width: 24px; height: 24px;
  border-color: rgba(251,247,238,.56);
  border-style: solid; border-width: 0;
}
.shutter__corner--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.shutter__corner--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.shutter__corner--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.shutter__corner--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.shutter__hud-tl { position: absolute; left: 38px; top: 2px; }
.shutter__hud-tr { position: absolute; right: 38px; top: 2px; }
.shutter__hud-bl { position: absolute; left: 38px; bottom: 2px; color: rgba(251,247,238,.5); }
.shutter__hud-br { position: absolute; right: 38px; bottom: 2px; color: rgba(251,247,238,.5); }
@media (max-width: 640px) {
  .shutter__hud { inset: 14px; font-size: 7.5px; letter-spacing: .1em; }
  .shutter__hud-tl, .shutter__hud-bl { left: 28px; }
  .shutter__hud-tr, .shutter__hud-br { right: 28px; }
  .shutter__hud-tr { max-width: 150px; text-align: right; }
}

/* ------------------------------------------------------------ 自动对焦：九点对焦 + 中心锁定 */
.shutter__focus { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.shutter.is-on .shutter__focus { animation: af-fade 1.45s ease-in-out both; }
@keyframes af-fade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  36% { opacity: 1; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}
.af-point {
  position: absolute; left: var(--x); top: var(--y);
  width: 5px; height: 5px;
  background: rgba(251,247,238,.82);
  box-shadow: 0 0 0 1px rgba(5,7,5,.5);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.shutter.is-on .af-point { animation: af-point .52s ease-out both; }
.af-point:nth-of-type(1) { animation-delay: .02s; }
.af-point:nth-of-type(2) { animation-delay: .05s; }
.af-point:nth-of-type(3) { animation-delay: .08s; }
.af-point:nth-of-type(4) { animation-delay: .11s; }
.af-point:nth-of-type(5) { animation-delay: .14s; }
.af-point:nth-of-type(6) { animation-delay: .17s; }
.af-point:nth-of-type(7) { animation-delay: .2s; }
.af-point:nth-of-type(8) { animation-delay: .23s; }
@keyframes af-point {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
}
.af-center {
  position: absolute; left: 50%; top: 50%;
  width: 122px; height: 122px;
  transform: translate(-50%, -50%) scale(1.65);
  opacity: 0;
}
.shutter.is-on .af-center { animation: af-center .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes af-center {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
  28% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  52% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
}
.af-center i {
  position: absolute; width: 21px; height: 21px;
  border: 0 solid rgba(251,247,238,.85);
}
.af-center i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.af-center i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.af-center i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.af-center i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.af-center b {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(251,247,238,.9);
}
.af-lock {
  position: absolute; left: 50%; top: calc(50% + 64px);
  transform: translateX(-50%);
  color: var(--butter);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .22em;
  white-space: nowrap;
  opacity: 0;
}
.shutter.is-on .af-lock { animation: af-lock 1.0s .22s ease-out both; }
@keyframes af-lock {
  0% { opacity: 0; letter-spacing: .35em; }
  22% { opacity: 1; }
  55% { opacity: 1; }
  100% { opacity: 0; }
}

/* 对焦框永远压在叶片之上，像取景器里的 AF 标记 */
.shutter__dark { z-index: 0; }
.shutter__wash { z-index: 1; }
.shutter__aperture { z-index: 2; }
.shutter__frame { z-index: 3; }
.shutter__hud { z-index: 3; }
.shutter__focus { z-index: 4; }
.shutter__stamp { z-index: 5; }

/* 对焦呼吸：快门开始时先轻微失焦，AF 锁定后恢复清晰 */
.hero .cover__img { transition: filter .38s ease; }
.hero.is-focusing .cover__img { filter: blur(1.8px) saturate(.92); }

/* 先对焦，锁定后才出现光圈 */
.shutter.is-on .shutter__dark { animation: shutter-dark 2.1s ease-in-out both; }
.shutter.is-on .shutter__hud { animation: shutter-hud 2.1s ease-in-out both; }
.shutter.is-on .shutter__frame { animation: shutter-frame 2.1s ease-in-out both; }
.shutter.is-on .shutter__focus { animation: af-fade .78s ease-in-out both; }
.shutter.is-on .af-lock { animation: af-lock .55s .2s ease-out both; }
.shutter.is-on .shutter__aperture { animation: iris-appear 1.45s .56s ease-in-out both; }
.shutter.is-on .shutter__wash { animation: shutter-wash 1.45s .56s ease-in-out both; }
.shutter.is-on .shutter__stamp { animation: shutter-stamp 1.2s .96s var(--ease-expo) both; }

/* 更强的对焦阶段：呼吸模糊 + 扩散环 + 实时状态 */
.hero .cover__img { transition: none; }
.hero.is-focusing .cover__img {
  animation: focus-pull .82s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes focus-pull {
  0% { filter: blur(6px) saturate(.74); transform: scale(1.045); }
  45% { filter: blur(4px) saturate(.84); }
  80% { filter: blur(0) saturate(1); transform: none; }
  100% { filter: none; transform: none; }
}
.af-pulse {
  position: absolute; left: 50%; top: 50%;
  width: 46vmin; height: 46vmin;
  border: 1px solid rgba(232,197,106,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.62);
  opacity: 0;
}
.shutter.is-on .af-pulse { animation: af-pulse .9s ease-out both; }
.shutter.is-on .af-pulse--2 { animation-delay: .18s; }
@keyframes af-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  22% { opacity: .8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); }
}
.af-mode {
  position: absolute; left: 50%; top: calc(50% + 108px);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 8px 3px;
  background: rgba(5,7,5,.52);
  border: 1px solid rgba(251,247,238,.28);
  color: var(--butter);
  font-family: var(--sans);
  font-size: 8px; font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
}
.shutter.is-on .af-mode { animation: af-mode-in .85s ease-out both; }
@keyframes af-mode-in {
  0% { opacity: 0; transform: translate(-50%, 5px); }
  18% { opacity: 1; transform: translate(-50%, 0); }
  72% { opacity: 1; }
  100% { opacity: 0; }
}
.af-mode i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 0 7px var(--butter);
}
.af-progress {
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--butter), rgba(232,197,106,.2));
  transform-origin: left;
  transform: scaleX(0);
}
.shutter.is-on .af-progress { animation: af-progress .62s .08s ease-out both; }
@keyframes af-progress { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.af-mode.is-locked { color: #d9e6bd; border-color: rgba(217,230,189,.5); }
.af-mode.is-locked i { background: #d9e6bd; box-shadow: 0 0 9px #d9e6bd; }

/* 重新排时序：0–0.8s 只对焦，0.78s 之后才出现黑框和光圈 */
.shutter.is-on .shutter__focus { animation: af-fade .8s ease-in-out both; }
.shutter.is-on .shutter__dark { animation: shutter-dark 1.75s .78s ease-in-out both; }
.shutter.is-on .shutter__hud { animation: shutter-hud 1.75s .78s ease-in-out both; }
.shutter.is-on .shutter__frame { animation: shutter-frame 1.75s .78s ease-in-out both; }
.shutter.is-on .shutter__aperture { animation: iris-appear 1.45s .8s ease-in-out both; }
.shutter.is-on .shutter__wash { animation: shutter-wash 1.45s .8s ease-in-out both; }
.shutter.is-on .shutter__stamp { animation: shutter-stamp 1.2s 1.2s var(--ease-expo) both; }

/* 阶段化：对焦期间强制隐藏黑色取景框；对焦成功白框变黑框 */
.shutter.is-on:not(.is-dark) .shutter__dark,
.shutter.is-on:not(.is-dark) .shutter__hud,
.shutter.is-on:not(.is-dark) .shutter__frame { opacity: 0 !important; animation: none !important; }
.shutter.is-on:not(.is-iris) .shutter__aperture,
.shutter.is-on:not(.is-iris) .shutter__wash,
.shutter.is-on:not(.is-iris) .shutter__stamp { opacity: 0 !important; animation: none !important; }
.shutter.is-dark .shutter__dark { animation: shutter-dark 1.75s ease-in-out both; }
.shutter.is-dark .shutter__hud { animation: shutter-hud 1.75s ease-in-out both; }
.shutter.is-dark .shutter__frame { animation: shutter-frame 1.75s ease-in-out both; }
.shutter.is-iris .shutter__aperture { animation: iris-appear 1.45s ease-in-out both; }
.shutter.is-iris .shutter__wash { animation: shutter-wash 1.45s ease-in-out both; }
.shutter.is-iris .shutter__stamp { animation: shutter-stamp 1.2s .42s var(--ease-expo) both; }

.af-center i { transition: border-color .18s ease, box-shadow .18s ease; }
.shutter__focus.is-locked .af-center i {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px rgba(251,247,238,.72);
}
.shutter__focus.is-locked .af-center b { background: var(--ink); box-shadow: 0 0 0 1px rgba(251,247,238,.7); }
.shutter__focus.is-locked .af-point { background: var(--ink); box-shadow: 0 0 0 1px rgba(251,247,238,.7); }

/* 更密集的 5×5 AF 点：更粗，锁定后白点变绿点 */
.af-point {
  width: 7px; height: 7px;
  transition: background .16s ease, box-shadow .16s ease;
}
.shutter.is-on .af-point { animation-delay: calc(var(--i, 0) * 16ms); }
.shutter__focus.is-locked .af-point {
  background: #a6d18b;
  box-shadow: 0 0 0 1px rgba(166,209,139,.45), 0 0 10px rgba(166,209,139,.65);
}
.shutter__focus.is-locked .af-center i {
  border-color: #a6d18b;
  box-shadow: 0 0 0 1px rgba(166,209,139,.55), 0 0 12px rgba(166,209,139,.5);
}
.shutter__focus.is-locked .af-center b { background: #a6d18b; box-shadow: 0 0 10px #a6d18b; }
.af-mode.is-locked { color: #a6d18b; border-color: rgba(166,209,139,.55); }
.af-mode.is-locked i { background: #a6d18b; box-shadow: 0 0 10px #a6d18b; }

/* 对焦状态保持到黑框出现前，再快速淡出 */
@keyframes af-fade-lock {
  0% { opacity: 0; }
  6% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
.shutter.is-on .shutter__focus { animation: af-fade-lock .82s ease-in-out both; }

/* 对焦成功要先被看见：清晰画面停留后再进黑框和光圈 */
.hero.is-focusing .cover__img { animation: focus-pull .72s cubic-bezier(.2,.8,.2,1) both; }
@keyframes focus-pull {
  0% { filter: blur(6px) saturate(.74); transform: scale(1.045); }
  55% { filter: blur(2.4px) saturate(.88); }
  78% { filter: blur(0) saturate(1); transform: none; }
  100% { filter: none; transform: none; }
}
.shutter.is-on .shutter__focus { animation: af-fade-lock 1.1s ease-in-out both; }
@keyframes af-fade-lock {
  0% { opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
.shutter.is-on .af-center { animation: af-center-hold 1.05s cubic-bezier(.2,.8,.2,1) both; }
@keyframes af-center-hold {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  42% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
}
.shutter.is-on .af-mode { animation: af-mode-hold 1.1s ease-out both; }
@keyframes af-mode-hold {
  0% { opacity: 0; transform: translate(-50%, 5px); }
  14% { opacity: 1; transform: translate(-50%, 0); }
  86% { opacity: 1; }
  100% { opacity: 0; }
}

/* 首页只保留封面与作品；其它章节由导航切换成单独页面 */
.frame.is-view-hidden { display: none !important; }

/* ------------------------------------------------------------ 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity .28s var(--ease), transform .38s var(--spring), visibility .28s,
              box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--butter); transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.to-top:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.to-top:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }
.to-top svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.to-top .label { font-size: 8px; letter-spacing: .14em; }
/* 读文章 / 看图 / 在封面时不需要它 */
body.reading .to-top,
body.is-cover .to-top { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 700px) {
  .to-top { width: 46px; height: 46px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .to-top .label { font-size: 7px; }
  .to-top svg { width: 15px; height: 15px; }
}
