/* ════════════════════════════════════════════════
   光影展厅 · Photo for the Day Gallery
   暖米色画廊体系 — 源自现有 Photo for the Day 风格
   ════════════════════════════════════════════════ */
:root {
  --wall-top: #6e6355;
  --wall-main: #cfc3b1;
  --wall-soft: #ddd3c3;
  --floor: #665746;
  --paper: #f5efe5;
  --cream: #fffdf8;
  --text: #29241e;
  --muted: #75685b;
  --accent: #8b6d52;
  --gold: #b08d5f;
  --hairline: rgba(92, 75, 57, 0.16);
  --shadow-soft: 0 24px 60px rgba(46, 33, 22, 0.16);
  --serif-en: Georgia, "Times New Roman", "STSong", serif;
  --serif-cn: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --walnut:
    repeating-linear-gradient(93deg, rgba(26, 14, 6, 0.16) 0 2px, rgba(0, 0, 0, 0) 2px 6px),
    repeating-linear-gradient(87deg, rgba(255, 222, 184, 0.05) 0 1px, rgba(0, 0, 0, 0) 1px 7px),
    repeating-linear-gradient(1deg, rgba(26, 14, 6, 0.08) 0 1px, rgba(0, 0, 0, 0) 1px 11px),
    linear-gradient(135deg, #6d4730 0%, #4b2e1d 28%, #623c26 52%, #3b2415 76%, #553520 100%);
  --walnut-shadow:
    inset 0 1px 1px rgba(255, 224, 188, 0.16),
    inset 0 -2px 4px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(24, 13, 6, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--wall-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(139, 109, 82, 0.25); }

/* ─────────── 导航 ─────────── */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px); height: 72px;
  transition: background .45s ease, box-shadow .45s ease, height .45s ease;
}
.topnav.is-solid {
  height: 60px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--hairline), 0 12px 32px rgba(46, 33, 22, 0.08);
}
.topnav__brand {
  font-family: var(--serif-en); font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 10px;
}
.topnav__brand em {
  font-family: var(--serif-cn); font-style: normal; font-size: 12px;
  letter-spacing: 0.35em; color: var(--muted);
}
.topnav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.topnav__links a {
  font-size: 13.5px; letter-spacing: 0.22em; color: var(--text);
  padding: 6px 2px; position: relative; opacity: .78; transition: opacity .3s;
}
.topnav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right .35s ease;
}
.topnav__links a:hover, .topnav__links a.is-active { opacity: 1; }
.topnav__links a:hover::after, .topnav__links a.is-active::after { right: 0; }
.topnav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; }
.topnav__burger span { display: block; width: 22px; height: 1.6px; background: var(--text); margin: 5px auto; border-radius: 2px; }

/* ─────────── 序厅 ─────────── */
.hall {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hall__wall {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.10), rgba(255, 248, 232, 0) 32%),
    linear-gradient(180deg, #7a6f60 0%, #a89a86 26%, var(--wall-main) 58%, #c2b5a2 82%, #b3a48f 100%);
}
.hall__wall::before {         /* 噪点：消除渐变带纹 */
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><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)'/></svg>");
  background-size: 240px 240px;
}
.hall__wall::after {          /* 墙面颗粒 */
  content: ""; position: absolute; inset: 0; opacity: .38; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(90, 74, 58, 0.09) 1px, transparent 1.2px);
  background-size: 5px 5px;
}
.hall__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 13vh; z-index: -1;
  background:
    linear-gradient(180deg, rgba(41, 32, 24, 0.28), transparent 18%),
    repeating-linear-gradient(90deg, #6d5d4b 0 90px, #645444 90px 92px),
    linear-gradient(180deg, #6f5f4d, var(--floor));
  box-shadow: inset 0 14px 26px rgba(41, 32, 24, 0.22);
}
.hall__stage {
  position: relative; margin-top: clamp(96px, 14vh, 150px);
  width: min(58vw, 460px);
}
@media (min-width: 900px) { .hall__stage { width: min(34vw, 430px); } }

/* 画框 */
.frame { position: relative; }
.frame__light {               /* 画框射灯：细长黄铜灯管 */
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  width: 34%; min-width: 96px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg,
    #6b543a 0%, #c9a06b 38%, #ecd09a 50%, #a37e52 64%, #57432e 100%);
  box-shadow:
    0 2px 4px rgba(31, 24, 16, 0.35),
    0 8px 22px 2px rgba(255, 214, 140, 0.38),
    0 0 1px rgba(31, 24, 16, 0.45);
  z-index: 4;
}
.frame__light::before {       /* 吊装杆 + 墙面底座 */
  content: ""; position: absolute; left: 50%; top: -11px; transform: translateX(-50%);
  width: 3px; height: 11px; border-radius: 1.5px 1.5px 0 0;
  background: linear-gradient(90deg, #3a2d1d, #6b543a 50%, #3a2d1d);
  box-shadow: 0 -2px 0 1.5px rgba(58, 45, 29, 0.9);
}
.frame__light::after {        /* 灯管下方的柔光带（无硬边） */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -4px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 0,
    #fff6dc 0%, #ffe4aa 55%, rgba(255, 228, 170, 0) 100%);
  filter: blur(3px);
  opacity: 1;
}
.frame__glow {                /* 墙面洗光 + 画面柔光，双层大半径渐隐 */
  position: absolute; left: 50%; top: -64px; transform: translateX(-50%);
  width: 210%; height: calc(118% + 64px); pointer-events: none; z-index: 3;
  background:
    radial-gradient(34% 36% at 50% 34px,
      rgba(255, 240, 206, 0.62) 0%, rgba(255, 240, 206, 0.18) 46%, rgba(255, 240, 206, 0) 68%),
    radial-gradient(90% 60% at 50% 0,
      rgba(255, 238, 200, 0.20) 0%, rgba(255, 238, 200, 0) 58%);
  mix-blend-mode: screen;
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .88; } to { opacity: 1; } }
.frame__wood {                /* 胡桃木外框 */
  display: block; padding: clamp(8px, 2vw, 13px); border-radius: 2px;
  background: var(--walnut);
  box-shadow: var(--walnut-shadow), var(--shadow-soft);
}
.frame__mat {                 /* 卡纸 + 金色内唇线 */
  position: relative; display: block; background: var(--cream);
  padding: clamp(14px, 4.5%, 26px);
  box-shadow:
    0 0 0 1px rgba(176, 141, 95, 0.65),
    inset 0 0 0 1px rgba(92, 75, 57, 0.18),
    inset 0 34px 44px -22px rgba(255, 232, 182, 0.55),
    inset 0 2px 10px rgba(46, 33, 22, 0.10);
}
.frame__mat img {
  width: 100%; object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(92, 75, 57, 0.25);
  outline: 1px solid rgba(92, 75, 57, 0.28); outline-offset: -1px;
}
.frame__shadow {              /* 墙面投影 */
  position: absolute; inset: 4% -3% -4% 3%; z-index: -1;
  background: rgba(46, 33, 22, 0.30); filter: blur(26px); border-radius: 6px;
}

/* 展签 */
.plaque {
  position: absolute; top: 16%; right: -118px; width: 96px;
  background: rgba(245, 239, 229, 0.94);
  border: 1px solid rgba(123, 103, 80, 0.25);
  box-shadow: 0 6px 16px rgba(48, 33, 22, 0.12);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 5px;
}
.plaque__no { font-family: var(--serif-en); font-size: 10px; letter-spacing: .12em; color: var(--accent); }
.plaque__title { font-family: var(--serif-cn); font-size: 15px; line-height: 1.35; }
.plaque__meta { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 1100px) { .plaque { display: none; } }

/* 序厅文案 */
.hall__copy { text-align: center; margin: clamp(28px, 5vh, 52px) 20px 15vh; max-width: 720px; }
.hall__over {
  font-family: var(--serif-en); font-size: 12px; letter-spacing: .42em;
  color: var(--accent); text-indent: .42em;
}
.hall__title {
  font-family: var(--serif-cn); font-weight: 500;
  font-size: clamp(40px, 7vw, 72px); letter-spacing: .18em; text-indent: .18em;
  margin: 14px 0 16px;
}
.hall__mood { font-size: clamp(14px, 1.6vw, 16.5px); color: var(--muted); letter-spacing: .12em; }
.hall__cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  font-size: 14.5px; letter-spacing: .28em; text-indent: .1em; color: var(--accent);
  border-bottom: 1px solid rgba(139, 109, 82, 0.45); padding-bottom: 8px;
  transition: gap .3s ease, color .3s;
}
.hall__cta:hover { gap: 22px; color: #6d5238; }
.hall__scroll {
  position: absolute; bottom: calc(13vh + 18px); left: 50%; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ─────────── 通用 Section ─────────── */
.section { padding: clamp(90px, 12vh, 140px) clamp(20px, 6vw, 72px); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(48px, 7vh, 76px); }
.section__over { font-family: var(--serif-en); font-size: 12px; letter-spacing: .42em; color: var(--accent); text-indent: .42em; }
.section__title {
  font-family: var(--serif-cn); font-weight: 500; font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: .22em; text-indent: .22em; margin: 12px 0 14px;
}
.section__sub { color: var(--muted); font-size: 14.5px; letter-spacing: .1em; line-height: 1.9; }
.section__head::after {
  content: ""; display: block; width: 44px; height: 1px; margin: 26px auto 0;
  background: var(--accent); opacity: .55;
}

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, .8, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────── 展厅 · 主题卡片 ─────────── */
.rooms { background: linear-gradient(180deg, var(--wall-main), var(--wall-soft) 30%, var(--wall-soft)); }
.rooms__grid {
  display: grid; gap: clamp(22px, 3vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  max-width: 1360px; margin: 0 auto;
}
.room {
  position: relative; background: var(--cream); cursor: pointer;
  padding: 14px 14px 18px;
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 28px rgba(46, 33, 22, 0.10);
  transition: transform .5s cubic-bezier(.22, .8, .3, 1), box-shadow .5s;
}
.room:hover { transform: translateY(-8px); box-shadow: 0 26px 54px rgba(46, 33, 22, 0.18); }
.room__frame { position: relative; overflow: hidden; outline: 1px solid rgba(92,75,57,.18); outline-offset: -1px; }
.room__frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.1s cubic-bezier(.22,.8,.3,1); }
.room:hover .room__frame img { transform: scale(1.06); }
.room__no {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--serif-en); font-size: 11px; letter-spacing: .14em;
  background: rgba(255, 253, 248, 0.9); color: var(--accent);
  padding: 4px 9px; border: 1px solid var(--hairline);
}
.room__body { padding: 16px 6px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.room__name { font-family: var(--serif-cn); font-size: 19px; letter-spacing: .12em; }
.room__en { display: block; font-family: var(--serif-en); font-size: 10.5px; letter-spacing: .3em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.room__count { font-family: var(--serif-en); font-size: 22px; color: var(--accent); }
.room__count small { font-size: 10.5px; font-family: var(--sans); color: var(--muted); letter-spacing: .1em; margin-left: 3px; }
.room__desc { padding: 8px 6px 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; letter-spacing: .04em; }

/* ─────────── 作品墙 ─────────── */
.archive { background: var(--wall-soft); }
.filterbar {
  position: sticky; top: 60px; z-index: 40;
  max-width: 1360px; margin: 0 auto clamp(36px, 5vh, 54px);
  background: rgba(255, 253, 248, 0.9); backdrop-filter: blur(14px);
  border: 1px solid var(--hairline); box-shadow: 0 12px 30px rgba(46, 33, 22, 0.08);
  padding: 14px clamp(14px, 2.4vw, 26px);
}
.filterbar__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filterbar__row--sub { margin-top: 10px; justify-content: space-between; gap: 14px; }
.filterbar__years { display: flex; flex-wrap: wrap; gap: 6px; }
.filterbar__tools { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--hairline); background: transparent; color: var(--muted);
  font-size: 12.5px; letter-spacing: .12em; padding: 7px 15px; border-radius: 999px;
  transition: all .3s ease;
}
.chip small { font-family: var(--serif-en); margin-left: 5px; opacity: .75; letter-spacing: 0; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--cream); }
.seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; }
.seg button {
  border: 0; background: transparent; padding: 7px 15px; font-size: 12px;
  letter-spacing: .1em; color: var(--muted); transition: all .3s;
}
.seg button.is-on { background: var(--accent); color: var(--cream); }
.seg button + button { border-left: 1px solid var(--hairline); }

/* 平铺瀑布流 */
.wall { max-width: 1360px; margin: 0 auto; }
.wall--flat { columns: 4 260px; column-gap: clamp(18px, 2.4vw, 30px); }
.work {
  break-inside: avoid; margin-bottom: clamp(26px, 3.4vw, 40px);
  background: var(--cream); padding: 12px 12px 0;
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 22px rgba(46, 33, 22, 0.09);
  cursor: zoom-in; position: relative;
  transition: transform .5s cubic-bezier(.22,.8,.3,1), box-shadow .5s;
}
.work:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(46, 33, 22, 0.16); }
.work__img-wrap { overflow: hidden; outline: 1px solid rgba(92,75,57,.16); outline-offset: -1px; }
.work img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.22,.8,.3,1); }
.work:hover img { transform: scale(1.045); }
.work__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 12px 4px 14px;
}
.work__title { font-family: var(--serif-cn); font-size: 14.5px; letter-spacing: .08em; }
.work__meta { font-family: var(--serif-en); font-size: 11px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }

/* 归组视图 */
.wall--grouped .group { margin-bottom: clamp(56px, 8vh, 88px); }
.group__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }
.group__name { font-family: var(--serif-cn); font-size: clamp(22px, 3vw, 30px); letter-spacing: .16em; }
.group__en { font-family: var(--serif-en); font-size: 11px; letter-spacing: .32em; color: var(--accent); text-transform: uppercase; }
.group__count { margin-left: auto; font-family: var(--serif-en); font-size: 15px; color: var(--muted); }
.group__grid { columns: 4 260px; column-gap: clamp(18px, 2.4vw, 30px); }

.empty { text-align: center; padding: 90px 0; color: var(--muted); font-family: var(--serif-cn); letter-spacing: .2em; }

/* ─────────── 统计 ─────────── */
.insights { background: linear-gradient(180deg, var(--wall-soft), var(--wall-main)); }
.counters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--hairline); border: 1px solid var(--hairline);
  max-width: 1000px; margin: 0 auto clamp(40px, 6vh, 60px);
}
.counter { background: var(--cream); text-align: center; padding: 30px 12px 26px; }
.counter__num { font-family: var(--serif-en); font-size: clamp(34px, 4.6vw, 48px); color: var(--text); line-height: 1; }
.counter__num sup { font-size: .38em; color: var(--accent); margin-left: 2px; }
.counter__label { margin-top: 10px; font-size: 12px; letter-spacing: .24em; color: var(--muted); }

.charts { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); max-width: 1360px; margin: 0 auto; }
.chart-card { background: var(--cream); border: 1px solid var(--hairline); box-shadow: 0 10px 28px rgba(46,33,22,.08); padding: clamp(22px, 3vw, 34px); }
.chart-card--wide { grid-column: 1 / -1; }
.chart-card figcaption { font-family: var(--serif-cn); font-size: 18px; letter-spacing: .14em; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.chart-card figcaption small { font-family: var(--serif-en); font-size: 10px; letter-spacing: .3em; color: var(--muted); }

.hbars { display: flex; flex-direction: column; gap: 13px; }
.hbar { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 12px; }
.hbar__name { font-size: 12.5px; letter-spacing: .1em; color: var(--text); }
.hbar__track { display: block; height: 8px; background: rgba(92, 75, 57, 0.10); border-radius: 99px; overflow: hidden; }
.hbar__fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width 1.2s cubic-bezier(.22,.8,.3,1); }
.hbar__val { font-family: var(--serif-en); font-size: 13px; color: var(--accent); text-align: right; }

.vbars { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 18px); height: 190px; padding-top: 10px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.vbar__val { font-family: var(--serif-en); font-size: 12.5px; color: var(--accent); }
.vbar__col { width: min(100%, 44px); background: linear-gradient(180deg, var(--gold), var(--accent)); border-radius: 3px 3px 0 0; height: 0; transition: height 1.1s cubic-bezier(.22,.8,.3,1); }
.vbar__year { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }

.heat { display: grid; grid-template-columns: 44px repeat(12, 1fr); gap: 5px; align-items: center; }
.heat__m { font-size: 10.5px; color: var(--muted); text-align: right; padding-right: 6px; font-family: var(--serif-en); }
.heat__cell { aspect-ratio: 1; border-radius: 2px; background: rgba(92, 75, 57, 0.10); position: relative; transition: transform .25s; }
.heat__cell:hover { transform: scale(1.25); z-index: 2; }
.heat__cell[data-v="1"] { background: #dcc9a8; }
.heat__cell[data-v="2"] { background: #c9a97a; }
.heat__cell[data-v="3"] { background: #b08d5f; }
.heat__cell[data-v="4"] { background: #8b6d52; }
.heat__y { font-family: var(--serif-en); font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; }

/* ─────────── 关于 / 页脚 ─────────── */
.about { background: var(--wall-main); }
.about__inner { max-width: 660px; margin: 0 auto; text-align: center; }
.about__title { font-family: var(--serif-cn); font-weight: 500; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: .2em; text-indent: .2em; margin: 16px 0 26px; }
.about__text { color: var(--muted); font-size: 15px; line-height: 2.3; letter-spacing: .08em; }
.about__sign { margin-top: 34px; font-family: var(--serif-en); font-size: 12px; letter-spacing: .24em; color: var(--accent); }
.footer {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 22px clamp(20px, 6vw, 72px);
  background: var(--floor); color: rgba(245, 239, 229, 0.82);
  font-size: 12px; letter-spacing: .16em;
}

/* ─────────── 灯箱 ─────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(31, 25, 19, 0.93); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { max-width: min(1060px, 88vw); text-align: center; }
.lightbox__frame {
  display: inline-block; padding: clamp(8px, 1.4vw, 12px); border-radius: 2px;
  background: var(--walnut);
  box-shadow: var(--walnut-shadow), 0 40px 110px rgba(0, 0, 0, 0.55);
}
.lightbox__mat {
  display: block; background: var(--cream); padding: clamp(10px, 1.8vw, 18px);
  box-shadow:
    0 0 0 1px rgba(176, 141, 95, 0.60),
    inset 0 0 0 1px rgba(92, 75, 57, 0.18);
}
.lightbox__frame img { max-width: 100%; max-height: 66vh; width: auto; height: auto; margin: 0 auto; transition: filter .35s ease, opacity .35s ease; }
.lightbox__frame img.is-loading { filter: blur(16px); opacity: .88; }
.lightbox__plaque { margin-top: 22px; display: flex; flex-direction: column; gap: 7px; color: var(--paper); }
.lightbox__no { font-family: var(--serif-en); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.lightbox__title { font-family: var(--serif-cn); font-size: clamp(20px, 2.6vw, 28px); letter-spacing: .16em; }
.lightbox__meta { font-size: 12px; letter-spacing: .18em; color: rgba(245, 239, 229, 0.66); }
.lightbox__mood { font-size: 13px; color: rgba(245, 239, 229, 0.55); letter-spacing: .06em; max-width: 520px; margin: 4px auto 0; line-height: 1.9; }
.lightbox__close {
  position: absolute; top: 22px; right: 30px; width: 46px; height: 46px;
  background: none; border: 1px solid rgba(245, 239, 229, 0.3); border-radius: 50%;
  color: var(--paper); font-size: 22px; transition: all .3s;
}
.lightbox__close:hover { background: rgba(245, 239, 229, 0.12); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: none; border: 1px solid rgba(245, 239, 229, 0.3);
  color: var(--paper); font-size: 19px; transition: background .3s;
}
.lightbox__nav:hover { background: rgba(245, 239, 229, 0.12); }
.lightbox__nav--prev { left: clamp(10px, 3vw, 44px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 44px); }

/* ─────────── 点赞 ─────────── */
.work__like {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 0; border-radius: 999px;
  background: rgba(37, 33, 29, 0.5); color: #fff;
  font-size: 12px; letter-spacing: .05em; cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}
.work:hover .work__like, .work__like:focus-visible { opacity: 1; transform: none; }
.work__like .like-heart { color: #fff; font-size: 14px; line-height: 1; }
.work__like .like-count { font-family: var(--serif-en); font-size: 12px; }
.work__like.is-liked { background: rgba(214, 69, 61, 0.85); }
.lightbox__like {
  margin: 18px auto 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 24px; border: 1px solid rgba(245, 239, 229, 0.3); border-radius: 999px;
  background: transparent; color: var(--paper); cursor: pointer;
  font-size: 14px; letter-spacing: .08em;
  transition: border-color .3s ease, background .3s ease;
}
.lightbox__like .like-heart { font-size: 17px; line-height: 1; }
.lightbox__like:hover { border-color: var(--gold); }
.lightbox__like.is-liked { border-color: #ff5a52; background: rgba(255, 90, 82, 0.14); }
.lightbox__like.is-liked .like-heart { color: #ff5a52; }

/* ─────────── 响应式 ─────────── */
@media (max-width: 760px) {
  .topnav__links {
    position: fixed; inset: 60px 12px auto; flex-direction: column; gap: 0;
    background: rgba(255, 253, 248, 0.97); border: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft); padding: 8px 0; border-radius: 14px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all .3s;
  }
  .topnav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .topnav__links a { padding: 13px 22px; }
  .topnav__burger { display: block; }
  .hall__stage { width: min(76vw, 380px); }
  .filterbar { position: static; top: auto; padding: 10px 12px; }
  .filterbar__row, .filterbar__years {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filterbar__row::-webkit-scrollbar, .filterbar__years::-webkit-scrollbar { display: none; }
  .filterbar__row--sub { flex-direction: row; align-items: center; justify-content: space-between; }
  .filterbar__years { min-width: 0; }
  .filterbar__tools { flex-wrap: nowrap; flex-shrink: 0; }
  .filterbar .chip, .filterbar .seg { flex-shrink: 0; white-space: nowrap; }
  .heat { grid-template-columns: 34px repeat(12, 1fr); gap: 3px; }
  .lightbox__nav--prev { left: 6px; } .lightbox__nav--next { right: 6px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .work__like { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
