/* ============================================================
   拾光长卷 · 画卷式排版
   颜色变量由 scroll.js 按意境主题写入 body
   ============================================================ */
:root {
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  /* 默认墨色（水墨意境兜底；拾遗等功能页未加载引擎时也有一致观感） */
  --ink: #2f2b23;
  --soft: #6f675a;
  --line: rgba(60,52,40,0.22);
  --panel: rgba(247,243,233,0.62);
  --accent: #8a5a2b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink, #2f2b23);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background: #e7e1d2;
  overflow-x: hidden;
}
::selection { background: var(--accent, #8a5a2b); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 防下载：禁拖拽/禁选中（不影响点击与灯箱） ---------- */
img, video, canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.lightbox img { -webkit-user-drag: none; }

/* 背景画布 */
#life-scroll {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
}
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.page > section, .page > .wrap { flex: 0 0 auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 30px; }

/* ---------- 淡入 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.65,.25,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 顶栏 ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
}
.topnav__in {
  max-width: 1080px; margin: 0 auto; padding: 22px 30px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .22em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(255,255,255,.35);
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .5em;
  color: var(--soft);
  margin-top: 3px;
}
.menu { display: flex; gap: 30px; }
.menu a {
  font-size: 13px; letter-spacing: .3em;
  color: var(--soft);
  position: relative; padding-bottom: 4px;
  transition: color .3s;
}
.menu a::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s, left .3s;
}
.menu a:hover, .menu a.on { color: var(--ink); }
.menu a:hover::after, .menu a.on::after { width: 100%; left: 0; }

/* ---------- 右上角时钟 ---------- */
.clock {
  position: fixed; top: 26px; right: 34px;
  z-index: 60;
  text-align: right;
  font-family: var(--serif);
  color: var(--ink);
  text-shadow: 0 1px 12px rgba(255,255,255,.4);
  line-height: 1.5;
  pointer-events: none;
}
.clock__time { font-size: 23px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.clock__date { font-size: 11px; letter-spacing: .22em; color: var(--soft); font-family: var(--sans); }
.clock__festival {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px; letter-spacing: .35em;
  font-family: var(--sans);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 12px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* 肃穆追思之日：去点睛色，仅用低存在感的柔和灰绿 */
.clock__festival.is-solemn {
  color: var(--soft);
  letter-spacing: .28em;
  opacity: .82;
}

/* ---------- 口令登录入口（锁图标，低调） ---------- */
.auth-entry { position: fixed; top: 28px; right: 180px; z-index: 61; }
.auth-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--soft);
  border-radius: 999px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.auth-btn:hover { color: var(--ink); border-color: var(--accent); }
.auth-btn.auth-on {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(138,90,43,.3);
}
.auth-box {
  position: absolute; top: 40px; right: 0;
  display: flex; gap: 5px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 6px 20px rgba(40,35,25,.18);
}
.auth-input {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  width: 96px;
  color: var(--ink);
  outline: none;
  font-family: var(--sans);
}
.auth-input:focus { border-color: var(--accent); }
/* 密码框伪装成文本框（防浏览器弹"保存密码"），用 CSS 打点显示 */
.auth-input.auth-pass { -webkit-text-security: disc; }
.auth-submit {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--serif);
  letter-spacing: .15em;
}
.auth-submit:hover { opacity: .85; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth-input.shake, .auth-box.shake { animation: shake .4s; }
@media (max-width: 640px) {
  .auth-entry { right: 160px; }
  .auth-input { width: 72px; }
}

/* ---------- 新光入卷：新内容轻提示 ---------- */
.new-light {
  position: fixed; left: 50%; bottom: 72px;
  transform: translate(-50%, 12px);
  z-index: 60;
  padding: 8px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--soft);
  font-family: var(--serif);
  font-size: 12px; letter-spacing: .28em; text-indent: .28em;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(40,35,25,.14);
  transition: opacity 1.2s ease, transform 1.2s ease, color .3s;
}
.new-light.show {
  opacity: .92; pointer-events: auto;
  transform: translate(-50%, 0);
}
.new-light.show:hover { color: var(--accent); }
@media (max-width: 640px) {
  .new-light { bottom: 86px; font-size: 11px; padding: 7px 16px; letter-spacing: .2em; text-indent: .2em; }
}

/* ---------- 意境切换（左下角淡入口） ---------- */
.mood {
  position: fixed; left: 26px; bottom: 26px;
  z-index: 60;
  font-family: var(--sans);
}
.mood__btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--soft);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12px; letter-spacing: .28em;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.mood__btn:hover { color: var(--ink); border-color: var(--accent); }
.mood__btn i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.mood__list {
  position: absolute; left: 0; bottom: 52px;
  display: none;
  flex-direction: column; gap: 2px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 8px;
  min-width: 130px;
}
.mood.open .mood__list { display: flex; }
.mood__list button {
  border: none; background: transparent;
  text-align: left;
  font-size: 13px; letter-spacing: .25em;
  color: var(--soft);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.mood__list button:hover { background: rgba(128,110,80,.12); color: var(--ink); }
.mood__list button.on { color: var(--accent); }

/* 禁下载媒体：拦截 iOS 长按呼出预览/保存菜单，并禁止选中框 */
.nodl { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* ---------- 环境音开关（右下角淡色小钮，点亮时微光） ---------- */
.ambient-btn {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: .55;
  transition: opacity .4s, color .4s, border-color .4s, box-shadow .4s;
}
.ambient-btn:hover { opacity: 1; }
.ambient-btn.on {
  color: var(--accent); border-color: var(--accent);
  opacity: .9;
  box-shadow: 0 0 12px rgba(0,0,0,.06), 0 0 6px var(--accent) inset;
}
@media (max-width: 640px) {
  .ambient-btn { right: 14px; bottom: 14px; width: 34px; height: 34px; }
}

/* ---------- 首页 · 序 ---------- */
.prologue {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 30px 60px;
  overflow: hidden;
}
.prologue > .prologue__char,
.prologue > .prologue__line,
.prologue > .prologue__sub { position: relative; z-index: 2; pointer-events: none; }
.prologue__cue { z-index: 2; pointer-events: none; }
/* 上半屏漂浮照片（如鱼游河） */
.skyriver {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1 !important;
}
.skyriver .tile {
  position: absolute;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.5);
  opacity: .72;
  pointer-events: auto;
  box-shadow: 0 8px 26px rgba(40,35,25,.22);
  transition: opacity .45s, transform .45s;
  animation: swim 9s ease-in-out infinite;
}
.skyriver .tile:hover { opacity: .97; transform: scale(1.06) translateY(-4px); }
.skyriver .tile img, .skyriver .tile .ph, .skyriver .tile .vface { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .75s ease; }
.skyriver .tile img.rot-out { opacity: 0; }
@keyframes swim { 0%,100% { transform: translateY(0) translateX(0) rotate(0deg); } 50% { transform: translateY(-11px) translateX(4px) rotate(.6deg); } }
/* 仿鱼游：另一条游姿，横纵微漂 + 轻微摆尾，与 swim 错峰使用 */
@keyframes swimB { 0%,100% { transform: translateY(0) translateX(0) rotate(0deg); } 38% { transform: translateY(7px) translateX(-6px) rotate(-1deg); } 72% { transform: translateY(-9px) translateX(5px) rotate(1deg); } }
.skyriver .tile.swim-b { animation-name: swimB; }
.prologue__char {
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 260px);
  line-height: 1;
  color: var(--ink);
  opacity: .14;
  user-select: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .1; transform: scale(1); } 50% { opacity: .2; transform: scale(1.03); } }
.prologue__line {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 27px);
  letter-spacing: .35em;
  text-indent: .35em;
  color: var(--ink);
}
.prologue__sub {
  margin: 20px 0 0;
  font-size: 12px; letter-spacing: .3em; text-indent: .3em;
  color: var(--soft);
}
.prologue__cue {
  position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .5em; text-indent: .5em;
  color: var(--soft);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translate(-50%,0); opacity: .5; } 50% { transform: translate(-50%,8px); opacity: 1; } }

/* ---------- 长河拾遗（横向轻卷 · 暖色调书签卡） ---------- */
.river {
  padding: 30px 0 70px;
  /* 整体叠一层极淡暖色，与下方瀑布流冷调区分 */
  background: linear-gradient(180deg, rgba(196,164,120,0.14), rgba(228,204,160,0.08));
  border-top: 1px solid rgba(160,130,80,0.14);
  border-bottom: 1px solid rgba(160,130,80,0.14);
}
.river__title {
  font-family: var(--serif);
  text-align: center;
  font-size: 17px; letter-spacing: .5em; text-indent: .5em;
  /* 长河标题更偏暖棕 */
  color: #7b5a38;
  margin: 0 0 30px;
  font-weight: normal;
}
.river__track {
  display: flex; gap: 16px;
  width: max-content;
  /* 两条轨道节奏差拉大：上轨慢 70s，下轨快 45s，视觉上"上流水慢、下流水急" */
  animation: drift 70s linear infinite;
}
.river:hover .river__track { animation-play-state: paused; }
.river__track.dup2 { animation-duration: 45s; animation-direction: reverse; margin-top: 18px; }
@keyframes drift { to { transform: translateX(-50%); } }
.river__item {
  position: relative;
  width: 168px; flex: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.30);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 10px 28px rgba(40,35,25,.16);
  transition: transform .4s, background .4s;
  animation: swim 11s ease-in-out infinite;
}
/* 高低错落：像浮在河面的物件，不再齐刷刷一条线 */
.river__item:nth-child(even) { margin-top: 16px; }
.river__item:nth-child(4n+1) { animation-delay: -1s; }
.river__item:nth-child(4n+2) { animation-delay: -4s; }
.river__item:nth-child(4n+3) { animation-delay: -7s; }
.river__item:nth-child(4n) { animation-delay: -10s; }
.river:hover .river__item { animation-play-state: paused; }
.river__item:hover { background: rgba(255,255,255,0.54); transform: translateY(-6px); }
.river__item .ph { height: 110px; }
.river__item img { width: 100%; height: 110px; object-fit: cover; display: block; opacity: .97; transition: opacity .4s; }
.river__item .vface { width: 100%; height: 110px; object-fit: cover; display: block; opacity: .97; transition: opacity .4s; }
.river__item:hover img { opacity: 1; }
/* 标题融进照片：底部渐晕 + 白字，代替突兀的灰白标题带 */
.river__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 13px 9px;
  font-size: 12px; letter-spacing: .12em;
  color: #fdfaf3;
  background: linear-gradient(180deg, rgba(22,20,16,0), rgba(22,20,16,.52));
  text-shadow: 0 1px 3px rgba(10,8,4,.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 画卷段落 ---------- */
.scroll-sec { padding: 60px 0 90px; }
.scroll-head { text-align: center; margin-bottom: 48px; }
.scroll-head h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 26px; letter-spacing: .4em; text-indent: .4em;
  margin: 0;
}
.scroll-head p {
  margin: 12px 0 0;
  font-size: 11px; letter-spacing: .4em; text-indent: .4em;
  color: var(--soft);
}

/* ---------- 瀑布流（岁月留痕 · 冷调低饱和相册感） ---------- */
.scroll-sec {
  padding: 60px 0 50px;
  /* 和长河拾遗的暖色形成对比：偏冷的米白底 */
  background: linear-gradient(180deg, rgba(248,245,240,0.5), rgba(252,250,246,0.7));
}
.falls { columns: 4; column-gap: 20px; }
.fcard {
  display: block;
  break-inside: avoid;
  margin: 0 0 26px;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.30);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 8px 24px rgba(40,35,25,.14);
  transition: transform .45s cubic-bezier(.2,.6,.2,1), box-shadow .45s, background .45s;
  animation: swim 8s ease-in-out infinite;
}
/* 瀑布流图片用 CSS 变量挂随机滤镜（JS scatterCards 给每张设置），
   与长河拾遗的"原色暖调"明确区隔：整体走"相册旧片"路线 */
.fcard img, .fcard .vface {
  filter: var(--ffilter, none);
  transition: filter .6s, opacity .4s;
}
.fcard:nth-child(3n+1) { animation-delay: -1.5s; }
.fcard:nth-child(3n+2) { animation-delay: -4s; }
.fcard:nth-child(3n) { animation-delay: -6.5s; }
.fcard:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 44px rgba(40,35,25,.24); background: rgba(255,255,255,0.54); animation-play-state: paused; }
.fcard img, .fcard .vface { width: 100%; height: 150px; object-fit: cover; display: block; opacity: .97; transition: opacity .4s; }
.fcard:hover img { opacity: 1; }
.fcard__body { padding: 14px 17px 16px; background: rgba(255,255,255,0.36); }
.fcard__body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px; font-weight: normal; letter-spacing: .1em;
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
}
.fcard__body p {
  margin: 5px 0 0;
  font-size: 12px; color: var(--soft); letter-spacing: .06em;
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.chip {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; letter-spacing: .3em; text-indent: .3em;
  padding: 3px 11px;
  border-radius: 999px;
  color: #f6f2e8;
  background: rgba(30,26,20,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fcard__media { position: relative; }

/* ---------- 卡片/瓦片/河卡形状池（JS 随机分配；影像卡不参与） ---------- */
.fcard[class*="s-"] .fcard__media { overflow: hidden; }
.fcard.s-arch .fcard__media, .skyriver .tile.s-arch, .river__item.s-arch { border-radius: 999px 999px 18px 18px; }
.fcard.s-round .fcard__media, .skyriver .tile.s-round { border-radius: 50% / 46%; }
.fcard.s-leaf .fcard__media, .skyriver .tile.s-leaf { border-radius: 6px 46% 6px 46%; }
.fcard.s-blob .fcard__media, .skyriver .tile.s-blob, .river__item.s-blob { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
.fcard.s-dome .fcard__media, .skyriver .tile.s-dome, .river__item.s-dome { border-radius: 18px 18px 999px 999px; }
.fcard.s-hex .fcard__media, .skyriver .tile.s-hex { clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%); }
/* 新形状：波浪底（顶部平直，底部双凹波浪，适合河卡标题叠放） */
.fcard.s-wave .fcard__media, .skyriver .tile.s-wave, .river__item.s-wave {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 75% 95%, 50% 85%, 25% 95%, 0 85%);
}
/* 新形状：飘带/书签（右上角内凹一角，似被折过） */
.fcard.s-ribbon .fcard__media, .skyriver .tile.s-ribbon, .river__item.s-ribbon {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
/* 新形状：鹅卵石（比 blob 更圆更接近自然卵石，四向不对称椭圆） */
.fcard.s-pebble .fcard__media, .skyriver .tile.s-pebble, .river__item.s-pebble {
  border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%;
}
/* 新形状：不对称弯角（左侧大圆角，右侧几乎直角，打破对称） */
.fcard.s-curved .fcard__media, .skyriver .tile.s-curved {
  border-radius: 999px 6px 6px 999px;
}
/* 新形状：水滴（顶部尖收，底部圆厚） */
.fcard.s-teardrop .fcard__media, .skyriver .tile.s-teardrop {
  clip-path: polygon(50% 0, 100% 45%, 85% 100%, 15% 100%, 0 45%);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
}
/* 新形状：云朵（六个圆角凸包拼成蓬松感）。注意：不得在此写 position，
   否则特异性压过 .skyriver .tile 的 absolute，瓦片内 img 会撑满全屏 */
.fcard.s-cloud .fcard__media, .skyriver .tile.s-cloud, .river__item.s-cloud {
  border-radius: 48% 52% 54% 46% / 55% 45% 55% 45%;
}
/* 新形状：徽章（圆形底 + 底部小三角挂饰） */
.fcard.s-badge .fcard__media, .skyriver .tile.s-badge {
  clip-path: polygon(50% 0, 100% 0, 100% 85%, 50% 100%, 0 85%, 0 0);
  border-radius: 50% 50% 14% 14%;
}
/* 新形状：扇贝（顶部平直，底部五瓣扇形波浪） */
.fcard.s-scallop .fcard__media, .skyriver .tile.s-scallop, .river__item.s-scallop {
  clip-path: polygon(0 0, 100% 0, 100% 82%, 87.5% 100%, 75% 82%, 62.5% 100%, 50% 82%, 37.5% 100%, 25% 82%, 12.5% 100%, 0 82%);
}
/* 新形状：花瓣（左右两端细尖，中间鼓起如花瓣） */
.fcard.s-petal .fcard__media, .skyriver .tile.s-petal {
  border-radius: 999px 20% 999px 20%;
}
/* 新形状：令牌（正八边形，上下两端斜切） */
.fcard.s-tally .fcard__media, .skyriver .tile.s-tally, .river__item.s-tally {
  clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%);
}
/* 护栏：形状类只许改轮廓，不许动瓦片定位——本规则在所有形状规则之后，
   同特异性靠后胜出，防止未来新形状再混入 position 把瓦片打回文档流撑出全屏大图 */
.skyriver .tile[class*="s-"] { position: absolute; }
/* 微倾卡片与悬浮/游动不冲突：rotate 属性独立于 transform */
.fcard, .skyriver .tile, .river__item { will-change: rotate; }

/* 淡墨占位 */
.ph {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 120%, rgba(120,110,90,.18), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.35), rgba(150,140,120,.12));
}
.ph svg { width: 46px; opacity: .3; }
.fcard .ph { min-height: 200px; }

/* ---------- 作品库 · 淡筛选 ---------- */
.archive-head { padding: 150px 30px 20px; text-align: center; }
.archive-head h1 {
  font-family: var(--serif); font-weight: normal;
  font-size: clamp(34px, 5vw, 52px); letter-spacing: .5em; text-indent: .5em;
  margin: 0;
}
.archive-head p { margin: 16px 0 0; font-size: 12px; letter-spacing: .35em; text-indent: .35em; color: var(--soft); }
.filters {
  max-width: 1080px; margin: 34px auto 0; padding: 0 30px;
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
}
.filters select, .filters input {
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--soft);
  font-size: 13px; letter-spacing: .2em;
  padding: 7px 26px 7px 6px;
  outline: none;
  font-family: var(--sans);
  transition: color .3s, border-color .3s;
}
.filters select { cursor: pointer; }
.filters select:focus, .filters input:focus { color: var(--ink); border-color: var(--accent); }
.filters input::placeholder { color: var(--soft); opacity: .8; }
.filters__dates { display: flex; align-items: center; gap: 8px; }
.filters__sep { font-size: 11px; color: var(--soft); letter-spacing: .1em; }
.filters input[type="date"] { min-width: 138px; cursor: pointer; letter-spacing: .06em; }
.filters input[type="date"]::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
.archive-body { padding: 30px 0 90px; }

/* ---------- 分页（淡） ---------- */
.pager { display: flex; justify-content: center; gap: 14px; margin-top: 60px; flex-wrap: wrap; }
.pager a, .pager span {
  font-family: var(--serif);
  font-size: 15px; color: var(--soft);
  padding: 4px 6px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.pager a:hover { color: var(--ink); border-color: var(--accent); }
.pager span.on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 详情 ---------- */
.detail { padding: 28px 0 100px; }
.detail__back {
  font-size: 12px; letter-spacing: .3em; color: var(--soft);
  transition: color .3s;
}
.detail__back:hover { color: var(--accent); }
.detail h1 {
  font-family: var(--serif); font-weight: normal;
  font-size: clamp(30px, 4.4vw, 46px); letter-spacing: .18em;
  margin: 18px 0 10px;
}
.detail__meta { font-size: 12px; letter-spacing: .25em; color: var(--soft); }
.detail__desc {
  max-width: 700px;
  margin: 14px 0 0;
  font-size: 16px; line-height: 2.1; letter-spacing: .05em;
  color: var(--ink); opacity: .85;
}
/* ---------- 详情查看器 ---------- */
.viewer { margin: 16px 0 0; max-width: 980px; }
.viewer__main {
  position: relative;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10,10,12,.9);
  /* 按视口高度自适应：头部约 160px + 选择条约 100px，首屏必须露出选择条 */
  height: max(280px, min(552px, calc(100vh - 300px)));
}
/* 有描述文字的卷再矮一档，给 desc 让位 */
.detail:has(.detail__desc) .viewer__main {
  height: max(260px, min(552px, calc(100vh - 365px)));
}
/* 主媒体绝对定位填满容器：图前图后高度恒定，杜绝页面跳动 */
.viewer__main img, .viewer__main video {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block; margin: 0;
}
.viewer__main img { opacity: 1; transition: opacity .45s ease, filter .45s ease; cursor: zoom-in; }
.viewer__main img.is-blur { opacity: .55; filter: blur(16px); transform: scale(1.05); }
.viewer__main video { background: #000; }
/* 竖图/宽幅不一致时用同图虚化垫底填满两侧，取代突兀的黑边（容器高度恒定不跳动） */
.viewer__main .vbg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(18px) brightness(1.08); transform: scale(1.15);
  opacity: .7;
}
@media (max-width: 620px) {
  .viewer__main { height: max(200px, min(75vw, calc(100vh - 262px))); }
  .detail:has(.detail__desc) .viewer__main { height: max(190px, min(75vw, calc(100vh - 310px))); }
}
/* 左右滚动缩略条（贴紧主图） */
.strip {
  margin-top: 5px;
  display: flex; gap: 10px; align-items: center;
  overflow-x: auto; overflow-y: hidden;
  padding: 3px 2px 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { height: 5px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.strip__item {
  flex: 0 0 auto; width: 96px; height: 66px;
  padding: 0; border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel); overflow: hidden;
  cursor: pointer; opacity: .55;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.strip__item img, .strip__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 别卷缩略项：更淡的存在感，与同卷区分 */
.strip__item--other { border-style: dashed; }
.strip__item:hover { opacity: .9; }
.strip__item.on { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.strip__item--other { opacity: .4; }
.strip__item--other:hover { opacity: .75; }
.strip__item--video {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--soft); font-size: 11px; letter-spacing: .2em;
}
.strip__item--video .strip__play {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.65);
  pointer-events: none;
}
/* 查询与瀑布流标题 */
.viewer__bar { margin-top: 30px; display: flex; justify-content: flex-end; }
.search { display: flex; gap: 12px; align-items: center; }
.search input {
  background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: none; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--soft); font-size: 13px; letter-spacing: .2em;
  padding: 7px 10px; width: 210px; outline: none;
  font-family: var(--sans);
  transition: color .3s, border-color .3s;
}
.search input:focus { color: var(--ink); border-color: var(--accent); }
.search input::placeholder { color: var(--soft); opacity: .8; }
.search button {
  background: none; border: none; cursor: pointer;
  color: var(--soft); font-size: 12px; letter-spacing: .3em; text-indent: .3em;
  font-family: var(--sans); padding: 7px 2px;
  transition: color .3s;
}
.search button:hover { color: var(--accent); }
.search { flex-wrap: wrap; justify-content: flex-end; }
.search__sep { font-size: 11px; color: var(--soft); }
.search__date { width: 138px !important; letter-spacing: .06em !important; cursor: pointer; }
.search__date::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }
.detail__sub {
  font-family: var(--serif); font-weight: normal;
  font-size: 19px; letter-spacing: .35em; text-indent: .35em;
  color: var(--ink); opacity: .8;
  margin: 60px 0 24px;
}
.detail__empty { text-align: center; color: var(--soft); letter-spacing: .3em; font-size: 13px; padding: 70px 0; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100;
  background: rgba(18,15,10,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 3px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(245,240,228,.35);
  background: rgba(245,240,228,.07);
  color: #f5f0e4; font-size: 18px; cursor: pointer;
  padding: 0; line-height: 1;
}
.lb-btn:hover { background: rgba(245,240,228,.2); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--serif); letter-spacing: .25em; font-size: 13px; color: rgba(245,240,228,.7); }

/* ---------- 长河捞起 · 涟漪与捞取 ---------- */
.page-ripple {
  position: fixed; z-index: 96;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.8);
  box-shadow: 0 0 16px rgba(255,255,255,.35), inset 0 0 10px rgba(255,255,255,.3);
  pointer-events: none;
  animation: rippleOut .9s cubic-bezier(.2,.6,.3,1) forwards;
}
.page-ripple.slow {
  border-width: 1px;
  opacity: .5;
  animation-duration: 1.25s;
  animation-delay: .12s;
}
@keyframes rippleOut {
  0% { opacity: .95; transform: scale(.3); }
  100% { opacity: 0; transform: scale(8); }
}
.lightbox.active::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 34%);
  animation: sheen 1.2s ease-out forwards;
}
@keyframes sheen {
  0% { opacity: 0; transform: translateY(-30%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: none; }
}
.lightbox img.scoop { animation: scoopUp .9s cubic-bezier(.22,.7,.25,1) both; }
@keyframes scoopUp {
  0% { opacity: 0; transform: translateY(84px) scale(.4); filter: blur(12px) brightness(1.3); }
  60% { opacity: 1; filter: blur(2.5px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- 页脚（合规信息）：始终沉底 + 半透底衬，任何意境/昼夜都清晰可读 ---------- */
.foot {
  margin-top: auto;
  text-align: center;
  padding: 26px 20px 96px;
  font-size: 11px; letter-spacing: .4em; text-indent: .4em;
  color: var(--soft);
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--panel) 26%);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.foot__line { margin: 0; }
.foot__slogan { margin-bottom: 14px; }
.foot__stat { margin-bottom: 10px; font-size: 10px; letter-spacing: .2em; text-indent: .2em; opacity: .62; font-variant-numeric: tabular-nums; }
.foot__legal {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-indent: 0;
}
.foot__legal a {
  color: var(--soft); text-decoration: none; opacity: .85;
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.foot__legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot__copy { opacity: .72; }
.foot__tip {
  margin-top: 10px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .08em; text-indent: .08em;
  opacity: .55;
}
/* ---------- 支持作者（低调可展开） ---------- */
.foot__support { margin: 12px 0 6px; }
.foot__support-toggle {
  display: inline-block;
  font-family: var(--serif);
  font-size: 10px; letter-spacing: .3em; text-indent: .3em;
  color: var(--soft);
  opacity: .5;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: opacity .3s, color .3s;
}
.foot__support-toggle::-webkit-details-marker { display: none; }
.foot__support-toggle:hover { opacity: 1; color: var(--accent); }
.foot__support-body {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 20px;
}
.foot__support-qr { text-align: center; }
.foot__support-qr svg { display: block; margin: 0 auto; color: var(--soft); }
.foot__support-qr img {
  display: block; margin: 0 auto;
  width: 100px; height: 100px; object-fit: cover;
  border-radius: 8px;
  opacity: .85;
}
.foot__support-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 10px; letter-spacing: .2em; text-indent: .2em;
  color: var(--soft); opacity: .65;
  transition: opacity .3s, transform .3s;
}
.foot__support-card img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(40,35,25,.12);
}
.foot__support-card:hover { opacity: 1; transform: translateY(-2px); }
.foot__support-qr-label {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 9px; letter-spacing: .25em; text-indent: .25em;
  color: var(--soft); opacity: .5;
}
.foot__support-links {
  display: flex; flex-direction: column; gap: 8px;
}
.foot__support-link {
  font-family: var(--serif);
  font-size: 11px; letter-spacing: .2em; text-indent: .2em;
  color: var(--soft); opacity: .6;
  border-bottom: 1px solid transparent;
  transition: color .3s, opacity .3s, border-color .3s;
}
.foot__support-link:hover { color: var(--accent); opacity: 1; border-bottom-color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .falls { columns: 2; }
}
@media (max-width: 620px) {
  .wrap, .topnav__in { padding-left: 20px; padding-right: 20px; }
  .falls { columns: 1; }
  .detail__grid { columns: 1; }
  .clock { top: auto; bottom: 24px; right: 20px; text-align: right; }
  .clock__date { display: none; }
  .menu { gap: 18px; }
  .menu a { letter-spacing: .18em; }
  .brand { font-size: 17px; }
  .river__item { width: 132px; }
  .river__item img, .river__item .ph { height: 88px; }
  .filters { gap: 16px; }
  .filters__dates { width: 100%; }
  .filters input[type="date"] { min-width: 0; flex: 1; }
  .viewer__bar { justify-content: stretch; }
  .search { justify-content: flex-start; }
  .search > input[type="text"] { width: 100%; }
  .search__date { width: 0 !important; flex: 1; }
}
