/* 超级严肃美术馆 · 样式
   原则：界面只用黑、白、灰和一点美术馆红，所有色彩留给作品。 */

/* 字体：由 tools/fonts.py 从开源字体裁出网站用到的字（SIL OFL 授权）。
   font-display: swap 让文字先用系统字体显示，字体下载完再替换，不会白屏。 */
@font-face { font-family: "Noto Serif SC"; src: url("../fonts/noto-serif-sc.woff2?v=9d2ab24842") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif.woff2?v=f31e417d95") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("../fonts/noto-serif-italic.woff2?v=2ae1774f67") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant.woff2?v=001312d549") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2?v=ec367cb89c") format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; }

:root {
  --wall: #F4F1EA;
  --wall-2: #ECE7DC;
  --ink: #161514;
  --muted: #6B665E;
  --line: #D9D3C7;
  --red: #8C1C13;
  --gold: #B08D57;
  --gallery: #141210;
  --gallery-ink: #EDE6D8;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --serif-en: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── 通用 ───────────────────────────────────── */

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker--light { color: var(--gold); }
.en, .en-sub {
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--muted);
}
.en-sub { font-size: clamp(20px, 2.2vw, 28px); margin-top: 6px; }
.display {
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: .02em;
  margin-top: 14px;
}
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter);
}
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .12em;
  transition: background .3s, color .3s;
}
.btn span { font-family: var(--serif-en); font-style: italic; letter-spacing: .02em; opacity: .75; }
.btn--light { background: var(--gallery-ink); color: var(--gallery); border-color: var(--gallery-ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { color: var(--gallery-ink); }
.btn--ghost:hover { background: rgba(237, 230, 216, .1); }
.btn--ink { color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--wall); }
.btn--small { padding: 8px 16px; font-size: 13px; }

.page { animation: fade-in .7s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── 画框 ───────────────────────────────────── */

/* 卡纸宽度按场景定：列表约为画面长边的 5%，单件观看约 7%。
   下边比上边宽 20%，按传统装裱的做法，画在视觉上更稳。 */
.frame {
  --mat: 12px;
  display: inline-block;
  padding: 9px;
  background: linear-gradient(145deg, #2a2725, #121110);
  box-shadow: 0 22px 36px -16px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .25);
}
.frame .mat {
  display: block;
  padding: var(--mat) var(--mat) calc(var(--mat) * 1.2);
  background: #FCFBF8;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, .28);
}
.frame img { box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.frame--gold {
  --mat: clamp(14px, min(3.5vh, 2.6vw), 34px);
  padding: 22px;
  background:
    linear-gradient(135deg, #e6cb85 0%, #9c7838 22%, #f0d993 45%, #8a6629 70%, #d9b96f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(60, 40, 10, .45),
    inset 0 0 0 7px rgba(255, 240, 200, .25),
    inset 0 0 0 9px rgba(60, 40, 10, .35),
    0 40px 70px -20px rgba(0, 0, 0, .8);
}
.frame--sm { --mat: 11px; padding: 6px; }

/* ── 顶部状态条与页眉 ─────────────────────────── */

.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px var(--gutter);
  background: var(--ink);
  color: #CFC8BA;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  position: relative;
  z-index: 30;
}
.status-bar .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  background: #6FBF73;
  box-shadow: 0 0 0 3px rgba(111, 191, 115, .2);
}
.status-bar[data-state="nap"] .dot { background: #E2B04A; box-shadow: 0 0 0 3px rgba(226, 176, 74, .2); }
.status-bar[data-state="closed"] .dot { background: #8A847A; box-shadow: none; }
.status-bar .status-right { color: #8F887C; white-space: nowrap; }

.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--ink);
  background: var(--wall);
  position: relative;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo { width: 42px; height: 42px; flex: none; }
.brand-name { font-weight: 900; font-size: 19px; letter-spacing: .14em; line-height: 1.2; }
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .28em;
  color: var(--muted);
  margin-top: 3px;
}
.site-nav { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.site-nav a {
  font-size: 15px;
  letter-spacing: .12em;
  line-height: 1.2;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-align: center;
}
.site-nav a small {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--red); }
.night-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.night-toggle svg { width: 16px; height: 16px; }
.night-toggle:hover { background: var(--ink); color: var(--wall); }
.header-actions { display: flex; gap: 8px; }
.lang-toggle {
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}
.lang-toggle:hover { background: var(--ink); color: var(--wall); }
.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.music-toggle svg { width: 16px; height: 16px; }
.music-toggle:hover { background: var(--ink); color: var(--wall); }
/* 播放中：按钮变成实心，音符换成跳动的小音柱 */
.music-toggle.on { background: var(--ink); color: var(--wall); }
.music-toggle .eq { display: none; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.music-toggle.on svg { display: none; }
.music-toggle.on .eq { display: inline-flex; }
.music-toggle .eq i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.music-toggle .eq i:nth-child(2) { animation-delay: .25s; }
.music-toggle .eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.fine a { text-decoration: underline; text-underline-offset: 2px; }

/* ── 首页 · 首屏 ──────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 120px);
  padding: 72px var(--gutter) 96px;
  background:
    radial-gradient(ellipse 60% 70% at 72% 45%, rgba(255, 232, 190, .09), transparent 70%),
    var(--gallery);
  color: var(--gallery-ink);
  overflow: hidden;
}
.hero-text { max-width: 620px; justify-self: end; }
.hero h1 span { white-space: nowrap; }
.hero h1 {
  font-weight: 900;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.18;
  letter-spacing: .03em;
  margin-top: 22px;
}
.hero h1 sup { color: var(--gold); font-size: .45em; vertical-align: 1.1em; margin-left: 4px; }
.hero-en { font-family: var(--serif-en); font-style: italic; font-size: clamp(19px, 1.8vw, 24px); color: #A69E90; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero-piece { position: relative; text-align: center; padding-top: 40px; }
.spot {
  position: absolute;
  left: 50%;
  top: -160px;
  width: min(640px, 120%);
  height: calc(100% + 160px);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255, 236, 200, .26), rgba(255, 236, 200, .05) 80%, transparent);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  filter: blur(10px);
  pointer-events: none;
  animation: lights-on 2.4s ease-out both;
}
@keyframes lights-on { 0% { opacity: 0; } 30% { opacity: .5; } 36% { opacity: .15; } 100% { opacity: 1; } }
.hero-link { position: relative; display: inline-block; transition: transform .6s ease; }
.hero-link:hover { transform: translateY(-4px); }
.hero-link img { max-height: min(50vh, 480px); width: auto; }
.brass {
  position: relative;
  display: block;
  width: fit-content;
  margin: 34px auto 0;
  padding: 10px 22px 11px;
  background: linear-gradient(180deg, #DCC07F, #A47F3D);
  color: #2A1F0E;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px rgba(0, 0, 0, .5);
}
.brass small {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 2px;
}

/* ── 首页 · 特别回顾展 ─────────────────────────── */

.exhibit-head { text-align: center; max-width: 760px; margin: 0 auto; }
.exhibit-sub { font-size: 18px; margin-top: 18px; letter-spacing: .08em; }
.exhibit-dates {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 16px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  color: var(--muted);
}
.rooms {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  position: relative;
}
.rooms li a { display: block; }
.room-art { height: 280px; display: flex; align-items: flex-end; justify-content: center; }
.room-art img { max-height: 220px; width: auto; transition: transform .5s ease; }
.rooms li a:hover .room-art img { transform: scale(1.03); }
.room-no {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--red);
}
.rooms h3 { font-size: 24px; font-weight: 900; letter-spacing: .08em; margin-top: 6px; }
.rooms .en { font-size: 16px; }
.room-note { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── 首页 · 数据、评论、参观 ─────────────────────── */

.stats-band { background: var(--wall-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 72px; padding-bottom: 72px; }
.stat { padding: 0 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif-en); font-weight: 600; font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.stat-num small { font-family: var(--serif); font-size: 16px; font-weight: 400; margin-left: 6px; }
.stat-label { margin-top: 14px; font-size: 15px; letter-spacing: .1em; }
.stat-note { font-size: 13px; color: var(--muted); }

.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 40px; }
.press blockquote { margin: 0; }
.press blockquote p { font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.55; text-wrap: balance; }
.press blockquote p::before { content: "“"; display: block; font-family: var(--serif-en); font-size: 72px; line-height: .6; color: var(--red); margin-bottom: 14px; }
.press cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.press cite b { color: var(--ink); font-weight: 600; margin-right: 6px; }

.visit-teaser { padding-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.info-grid > div { padding: 32px 28px 36px; border-left: 1px solid var(--line); }
.info-grid > div:first-child { border-left: 0; padding-left: 0; }
.info-grid h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.info-grid p { font-size: 20px; font-weight: 600; margin-top: 10px; line-height: 1.5; }
.info-grid p small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; }

/* ── 页面标题 ───────────────────────────────── */

.page-head { padding-bottom: 0; }
.page-head .intro { max-width: 60em; margin-top: 20px; color: var(--muted); font-size: 16px; }
.page-head--full { padding-bottom: clamp(64px, 9vw, 112px); }

/* ── 馆藏 ───────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: .06em;
  transition: border-color .2s, background .2s;
}
.chip small { font-family: var(--serif-en); font-style: italic; color: var(--muted); margin-left: 6px; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.chip.active small { color: #B9B2A5; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 80px 56px;
  padding-top: 64px;
}
.work { display: block; }
.work-art { height: 320px; display: flex; align-items: center; justify-content: center; }
.work-art img { max-height: 230px; width: auto; transition: transform .5s ease; }
.work:hover .work-art img { transform: scale(1.025); }
.tag { margin-top: 26px; padding-left: 14px; border-left: 2px solid var(--ink); }
.tag-title { font-size: 17px; font-weight: 600; line-height: 1.5; }
.tag-meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.tag-meta--row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* 小红花：没收到时是淡色轮廓，收到后花瓣变红、花心变黄 */
.flower { flex: none; }
.flower .petal { fill: var(--wall); stroke: currentColor; stroke-width: 1.5; }
.flower .pistil { fill: var(--wall); stroke: currentColor; stroke-width: 1.5; }
.tag-flower { display: inline-flex; align-items: center; gap: 4px; flex: none; font-variant-numeric: tabular-nums; color: #B9B1A3; }
.tag-flower .flower { width: 16px; height: 16px; }
.tag-flower.has { color: var(--red); }
.tag-flower.has .petal { fill: #E0352B; stroke: #B8231B; }
.tag-flower.has .pistil { fill: #F6C531; stroke: #D9A21B; }
/* 展墙下方的小字说明：与作品拉开距离，上方加一道短线 */
.wall-note { margin: 88px auto 0; max-width: 64em; text-align: center; font-size: 13px; color: var(--muted); font-style: italic; }
.wall-note::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 18px; background: var(--muted); opacity: .5; }
/* 沙龙墙下方这条在通栏里，左右留白靠内边距，不再限宽 */
.wall-note--after { max-width: none; margin: 36px auto clamp(64px, 9vw, 112px); padding: 0 var(--gutter); }

/* 浏览方式切换 */
.views { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 32px; border-bottom: 1px solid var(--ink); }
.views a {
  padding: 10px 0 12px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--muted);
}
.views a small { font-family: var(--serif-en); font-style: italic; font-size: 14px; letter-spacing: .02em; margin-left: 6px; }
.views a:hover { color: var(--ink); }
.views a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }
.views + .intro { margin-top: 24px; }
.back-link { margin-left: 12px; border-bottom: 1px solid var(--red); color: var(--ink); }

/* 色谱 */
.spectrum { display: flex; height: 18px; margin-top: 36px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.spectrum i { flex: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 15px; letter-spacing: .08em; color: var(--muted); }
.swatch i {
  width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .2s;
}
.swatch-all { background: conic-gradient(#D8402F, #EE9440, #F2CB3A, #4FA066, #2F6DB8, #6E4BA8, #EE9DB8, #D8402F); }
.swatch small { font-family: var(--serif-en); font-size: 15px; margin-left: 4px; }
.swatch:hover { color: var(--ink); }
.swatch:hover i { transform: scale(1.08); }
.swatch.active { color: var(--ink); font-weight: 600; }
.swatch.active i { box-shadow: 0 0 0 2px var(--wall), 0 0 0 4px var(--ink); }
/* 每行等高、按原比例排列，不裁切画面（--a 为宽高比） */
.colour-wall { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.colour-wall::after { content: ""; flex-grow: 10000; }
.tile { display: flex; flex-direction: column; gap: 5px; flex: calc(var(--a) * 100) 1 calc(var(--a) * 150px); }
.tile-img { position: relative; display: block; aspect-ratio: var(--a); overflow: hidden; background: var(--main); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-bar { display: flex; height: 6px; }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  color: #fff; font-size: 13px; line-height: 1.4;
  opacity: 0; transition: opacity .25s;
}
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; }

/* 图像志索引 */
.top-motifs { margin-top: 44px; }
.top-motifs ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.top-motifs li a { display: block; padding: 16px 16px 18px 0; }
.top-motifs li + li a { padding-left: 16px; border-left: 1px solid var(--line); }
.top-motifs b { display: block; font-size: 17px; font-weight: 600; }
.top-motifs span { font-family: var(--serif-en); font-size: 44px; font-weight: 600; line-height: 1.1; }
.top-motifs span small { font-family: var(--serif); font-size: 14px; font-weight: 400; margin-left: 4px; color: var(--muted); }
.top-motifs a:hover b { color: var(--red); }
.book-index { columns: 3 260px; column-gap: 56px; margin-top: 56px; }
.book-index section { break-inside: avoid; margin-bottom: 26px; }
.book-index h3 { font-family: var(--serif-en); font-size: 34px; font-weight: 600; line-height: 1; color: var(--red); margin-bottom: 6px; }
.book-index ul { list-style: none; margin: 0; padding: 0; }
.book-index li { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: 15px; }
.book-index .term { white-space: nowrap; }
.book-index .term:hover { color: var(--red); }
.book-index .leader { flex: 1; min-width: 12px; border-bottom: 1px dotted #B9B1A3; transform: translateY(-4px); }
.book-index .refs { font-family: var(--serif-en); font-size: 15px; color: var(--muted); text-align: right; }
.book-index .refs a:hover { color: var(--ink); text-decoration: underline; }

/* 沙龙墙 */
.salon-tools { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.salon-tools button { min-width: 38px; height: 34px; padding: 0 12px; border: 1px solid var(--ink); background: transparent; font-family: var(--sans); font-size: 13px; }
.salon-tools button:hover { background: var(--ink); color: var(--wall); }
.salon-tools span { margin-left: 8px; }
.salon {
  height: min(80vh, 920px);
  overflow: auto;
  cursor: grab;
  user-select: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 214, 170, .14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 26px),
    #5A1A16;
  box-shadow: inset 0 14px 30px -14px rgba(0, 0, 0, .6), inset 0 -14px 30px -14px rgba(0, 0, 0, .6);
}
.salon.dragging { cursor: grabbing; }
.salon-wall {
  --cell: 80px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-auto-rows: var(--cell);
  grid-auto-flow: dense;
  gap: calc(var(--cell) * .24);
  width: max-content;
  padding: 48px;
  margin: 0 auto;
}
.salon-item { display: block; transition: transform .3s ease; }
.salon-item:hover { transform: translateY(-3px); }
.salon-item img { -webkit-user-drag: none; }
.salon-frame {
  display: block;
  height: 100%;
  padding: calc(var(--cell) * .07);
  background: linear-gradient(145deg, #2a2725, #121110);
  box-shadow: 0 12px 22px -8px rgba(0, 0, 0, .7);
}
.salon-frame--gold {
  padding: calc(var(--cell) * .1);
  background: linear-gradient(135deg, #e6cb85 0%, #9c7838 22%, #f0d993 45%, #8a6629 70%, #d9b96f 100%);
  box-shadow: inset 0 0 0 2px rgba(60, 40, 10, .45), 0 12px 22px -8px rgba(0, 0, 0, .75);
}
.salon-mat { display: block; height: 100%; padding: calc(var(--cell) * .08); background: #FCFBF8; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .3); }
.salon-mat img { width: 100%; height: 100%; object-fit: contain; }

/* ── 作品详情 ───────────────────────────────── */

.viewing {
  position: relative;
  padding: 36px var(--gutter) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 46% 62% at 50% 34%, rgba(255, 252, 240, .95), transparent 75%),
    var(--wall-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.viewing-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; max-width: 1240px; margin: 0 auto; text-align: left; }
.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  font-size: 14px;
  letter-spacing: .06em;
  background: var(--wall);
  transition: background .2s, color .2s;
}
.back-btn:hover { background: var(--ink); color: var(--wall); }
.crumbs { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.viewing .frame { --mat: clamp(16px, min(4.4vh, 3vw), 46px); margin-top: 36px; cursor: zoom-in; }
.viewing .frame img { max-height: min(62vh, 640px); width: auto; }
.rope { display: block; width: min(900px, 100%); margin: 28px auto 0; height: auto; }
.do-not-touch {
  display: inline-block;
  margin: 10px 0 26px;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.art-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.label { position: sticky; top: 24px; }
.label h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; line-height: 1.25; margin-top: 12px; }
.label .en { font-size: 22px; margin-top: 4px; }
.label .byline { margin-top: 18px; font-size: 16px; }
.label .byline span { color: var(--muted); }
.fields { margin: 26px 0 0; border-top: 1px solid var(--ink); }
.fields > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fields dt { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fields dd { margin: 2px 0 0; font-size: 15px; line-height: 1.6; }
.fields dd .en { display: block; font-size: 15px; }
.fields dd a { border-bottom: 1px solid var(--red); }

.art-note { max-width: 720px; }
.art-note .kicker { margin-bottom: 18px; }
.curator-text { font-size: 18px; line-height: 2; text-align: justify; }
.curator-text::first-letter { font-size: 3.1em; font-weight: 900; float: left; line-height: 1; margin: 6px 10px 0 0; }
.sig { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: right; }
.dim-note { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.flower-box { margin-top: 26px; }
.flower-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 15px;
  letter-spacing: .06em;
  text-align: left;
  transition: background .2s, border-color .2s, color .2s;
}
.flower-btn .flower { width: 36px; height: 36px; color: var(--ink); }
.flower-btn:hover { background: #FFF6F2; }
.flower-btn:hover .petal { fill: #FBD9D3; }
.flower-btn.is-given { border-color: #B8231B; color: #B8231B; background: #FFF6F2; }
.flower-btn.is-given .petal { fill: #E0352B; stroke: #B8231B; }
.flower-btn.is-given .pistil { fill: #F6C531; stroke: #D9A21B; }
.flower-btn.pop .flower { animation: flower-pop .5s ease; }
@keyframes flower-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-14deg); } 100% { transform: scale(1) rotate(0); } }
.flower-count { margin-top: 10px; font-size: 14px; color: var(--muted); }
.flower-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-style: italic; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); margin-top: 0; }
.prevnext a { display: flex; align-items: center; gap: 20px; padding: 28px 0; transition: background .3s; }
.prevnext a + a { justify-content: flex-end; text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.prevnext img { height: 72px; width: auto; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4); }
.prevnext small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.prevnext b { font-size: 17px; font-weight: 600; }
.prevnext a:hover b { border-bottom: 1px solid var(--red); }

/* ── 艺术家 ─────────────────────────────────── */

.artist-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.artist-portrait { text-align: center; position: sticky; top: 24px; }
.artist-portrait .frame { --mat: clamp(14px, 2vw, 28px); }
.artist-portrait img { max-height: 520px; width: auto; }
.artist-portrait figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); }
.artist-quote {
  margin: 32px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  color: #23407A;
  line-height: 1.5;
}
.artist-quote--pending { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.artist-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 6px; }
.bio { margin-top: 36px; }
.bio p { font-size: 17px; line-height: 2; text-align: justify; }
.bio p + p { margin-top: 14px; }
.cv { margin-top: 56px; }
.cv h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--red); padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-top: 36px; }
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.cv li span { font-family: var(--serif-en); font-weight: 600; font-size: 17px; color: var(--muted); }

/* ── 参观 ───────────────────────────────────── */

.rules { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: rule; }
.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
}
.rules li::before { content: counter(rule, decimal-leading-zero); font-family: var(--serif-en); font-size: 36px; font-weight: 600; color: var(--red); line-height: 1; }

.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }

.credits { max-width: 60em; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }
.product { display: flex; flex-direction: column; }
.product-img {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wall-2);
  border: 1px solid var(--line);
  padding: 24px;
}
.product-img img { max-height: 100%; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .45); }
.product-img .placeholder { font-family: var(--serif-en); font-style: italic; font-size: 22px; color: var(--muted); text-align: center; }
.product h3 { font-size: 16px; font-weight: 600; margin-top: 16px; line-height: 1.5; }
.product .price { font-size: 14px; color: var(--muted); margin-top: 4px; }
.product .price b { color: var(--ink); font-weight: 600; }
.product .btn, .product .status { margin-top: 14px; align-self: flex-start; }
.product .status { font-family: var(--sans); font-size: 12px; color: var(--red); letter-spacing: .04em; }

/* ── 页脚 ───────────────────────────────────── */

.site-footer { background: var(--gallery); color: #A69E90; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.site-footer .brand-name { color: var(--gallery-ink); }
.site-footer .brand-name small { color: #8F887C; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.site-footer p { font-size: 14px; line-height: 1.9; }
/* 网站说明：不是实体美术馆。放在页脚，不抢首页的戏 */
.site-footer .site-note { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #2E2A26; }
.site-footer .slogan { margin-top: 18px; color: var(--gallery-ink); font-size: 15px; }
.fine { border-top: 1px solid #2E2A26; padding-top: 22px !important; padding-bottom: 28px !important; font-family: var(--sans); font-size: 12px !important; color: #7A7368; }

/* ── 浮层：灯箱、提示、手电筒 ──────────────────── */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(12, 11, 10, .95);
  cursor: zoom-out;
}
#lightbox.open { display: flex; animation: fade-in .4s ease both; }
#lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; width: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
#lightbox p { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: #8F887C; text-align: center; }
#lightbox p b { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: .1em; color: var(--gallery-ink); font-weight: 600; margin-bottom: 4px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 16px 22px;
  background: var(--ink);
  color: var(--wall);
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  border-left: 3px solid var(--gold);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast small { display: block; font-family: var(--sans); font-size: 12px; color: #A9A295; margin-top: 4px; letter-spacing: .04em; }

#flashlight {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 45%),
    rgba(6, 5, 4, 0) 0, rgba(6, 5, 4, 0) 90px, rgba(6, 5, 4, .6) 160px, rgba(6, 5, 4, .965) 270px);
}
body.night #flashlight { opacity: 1; }
body.night .status-bar, body.night .site-header { filter: brightness(.55); transition: filter .8s; }
body.night .site-header:hover { filter: none; }

/* ── 英文版 ─────────────────────────────────── */

/* 英文版正文用 Noto Serif（与思源宋体同一设计），撇号、引号才是英文的窄标点 */
html[lang="en"] { --serif: "Noto Serif", "Noto Serif SC", Georgia, serif; }
/* 英文版里作点缀的中文：用宋体正体，不用英文的斜体 */
.en-sub.cn, .en.cn, .hero-en.cn { font-family: "Noto Serif SC", "Songti SC", serif; font-style: normal; letter-spacing: .06em; }
html[lang="en"] .hero h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.12; letter-spacing: 0; }
html[lang="en"] .display { letter-spacing: 0; }
html[lang="en"] .tag-title i, html[lang="en"] .prevnext b i { font-style: italic; }

/* ── 响应式 ─────────────────────────────────── */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero-text { justify-self: center; }
  .cta { justify-content: center; }
  .rooms { gap: 24px; }
  .room-art { height: 220px; }
  .room-art img { max-height: 170px; }
  .art-body { grid-template-columns: 1fr; }
  .label { position: static; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artist-grid { grid-template-columns: 1fr; }
  .artist-portrait { position: static; }
  .top-motifs ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-motifs li:nth-child(4) a { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .status-bar .status-right { display: none; }
  .site-header { flex-wrap: wrap; gap: 14px 16px; }
  /* 馆名可以在自己的位置里换行，按钮留在第一行 */
  .brand { flex: 1 1 0; min-width: 0; margin-right: 0; }
  .logo { width: 34px; height: 34px; }
  .brand-name { font-size: 16px; letter-spacing: .08em; }
  html[lang="en"] .brand-name { letter-spacing: .02em; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; padding-bottom: 2px; }
  .header-actions .label-text { display: none; }
  .hero h1 br { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .press-grid, .info-grid, .footer-inner { grid-template-columns: 1fr; }
  .info-grid > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .info-grid > div:first-child { border-top: 0; }
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 56px; }
  .work-art { height: auto; min-height: 220px; }
  .prevnext a { gap: 12px; }
  .prevnext img { display: none; }
  .rules li { grid-template-columns: 56px 1fr; }
  .rules li::before { font-size: 28px; }
  .views { gap: 0 20px; }
  .views a small { display: none; }
  .colour-wall { gap: 8px; }
  .tile { flex-basis: calc(var(--a) * 96px); }
  .swatches { gap: 6px 14px; }
  .swatch i { width: 24px; height: 24px; }
  .top-motifs ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-motifs li:nth-child(odd) a { padding-left: 0; border-left: 0; }
  .top-motifs li:nth-child(4) a { padding-left: 16px; border-left: 1px solid var(--line); }
  .salon { height: 70vh; }
  .salon-wall { padding: 20px; }
  .salon-tools span { display: none; }
}
