﻿/* ══════════════════════════════════════════════════════════════
   刘荣奎 · 书画作品展示
   宣纸为底，淡墨为韵，中西合参
   ══════════════════════════════════════════════════════════════ */

:root {
  /* 宣纸 */
  --paper:        #f6f2e9;
  --paper-warm:   #fbf8f1;
  --paper-deep:   #ece5d6;

  /* 墨 */
  --ink:          #17150f;
  --ink-soft:     #3c382f;
  --ink-mid:      #6d675a;
  --ink-faint:    #9c9483;
  --ink-ghost:    rgba(23, 21, 15, .10);
  --ink-line:     rgba(23, 21, 15, .14);

  /* 朱砂 */
  --seal:         #9e3527;
  --seal-soft:    rgba(158, 53, 39, .12);

  --font-zh: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", "宋体", serif;
  --font-en: "Optima", "Palatino Linotype", "Palatino", "Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --rhythm: clamp(80px, 12vh, 160px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* 组件样式里的 display 会盖过 [hidden] 的 UA 样式，必须显式声明 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-en), var(--font-zh);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  /* 用 clip 而非 hidden：hidden 会把 body 变成滚动容器，
     内部的 position:sticky（页眉、分类栏）就此失效 */
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-zh); font-weight: 500; color: var(--ink); margin: 0; }
:focus-visible { outline: 1.5px solid var(--seal); outline-offset: 3px; }

/* ─────────────────────────── 宣纸底纹 ─────────────────────────── */

.paper-ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* 纸张纤维 */
    repeating-linear-gradient(94deg,
      rgba(23,21,15,.012) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(2deg,
      rgba(23,21,15,.010) 0 1px, transparent 1px 6px),
    radial-gradient(120% 80% at 50% 0%, var(--paper-warm) 0%, var(--paper) 46%, var(--paper-deep) 100%);
}

/* 纸面颗粒 */
.paper-ground::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .09;
  mix-blend-mode: multiply;
}

/* 淡墨晕染 */
.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  mix-blend-mode: multiply;
}
.wash-a {
  width: 46vw; height: 46vw;
  top: -12vw; right: -10vw;
  background: radial-gradient(circle at 38% 42%,
    rgba(23,21,15,.11) 0%, rgba(23,21,15,.05) 42%, transparent 68%);
  animation: drift 44s var(--ease) infinite alternate;
}
.wash-b {
  width: 58vw; height: 42vw;
  bottom: 6vh; left: -18vw;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(23,21,15,.085) 0%, rgba(23,21,15,.035) 46%, transparent 70%);
  animation: drift 62s var(--ease) infinite alternate-reverse;
}
.wash-c {
  width: 30vw; height: 30vw;
  top: 46%; right: 4vw;
  background: radial-gradient(circle at 50% 50%,
    rgba(158,53,39,.05) 0%, transparent 66%);
  animation: drift 52s var(--ease) infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2.5vw, -3vh, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .wash { animation: none; } }


/* ─────────────────────────── 页眉 ─────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding: 9px var(--gutter);
  background: rgba(250, 247, 240, .93);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--ink-line);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.site-head.is-stuck {
  background: rgba(250, 247, 240, .97);
  box-shadow: 0 8px 26px -22px rgba(23, 21, 15, .8);
}

/* 印章式标志 */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-seal {
  flex: none;
  width: 38px;
  padding: 5px 0 6px;
  text-align: center;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  font-family: var(--font-zh);
  font-size: 12.5px;
  line-height: 1.22;
  letter-spacing: 0;
}
/* 上传了印章图片：去掉描边，图片本身即是印面 */
.brand-seal.has-image {
  width: 46px;
  padding: 0;
  border: 0;
  display: block;
}
.brand-seal.has-image img {
  width: 100%;
  height: auto;
  display: block;
  /* 印泥色偏艳，轻微降饱和以贴合宣纸调子 */
  filter: saturate(.94) contrast(1.02);
}
.brand-text { display: flex; flex-direction: column; gap: 3px; padding-left: 14px; border-left: 1px solid var(--ink-line); }
.brand-text strong {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink);
  line-height: 1;
}
.brand-text em {
  font-style: normal;
  font-family: var(--font-zh);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--ink-faint);
  line-height: 1;
}

/* 中英双行导航 */
.site-nav { display: flex; gap: clamp(14px, 2.6vw, 42px); margin-inline: auto; }
.site-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 10px;
  transition: color .3s var(--ease);
}
.site-nav .zh {
  font-family: var(--font-zh);
  font-size: 14.5px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.site-nav .en {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--ink-faint);
  transition: color .3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: left .4s var(--ease), right .4s var(--ease);
}
.site-nav a:hover .zh, .site-nav a.is-active .zh { color: var(--ink); }
.site-nav a:hover .en, .site-nav a.is-active .en { color: var(--ink-mid); }
.site-nav a:hover::after { left: 20%; right: 20%; }
.site-nav a.is-active::after { left: 0; right: 0; background: var(--seal); }

.head-tools { display: flex; align-items: center; gap: 10px; }

/* 搜索：点击图标展开输入框 */
.head-search { display: flex; align-items: center; }
.head-search input {
  width: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: inherit;
  font-family: var(--font-zh);
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transition: width .45s var(--ease), opacity .3s var(--ease), border-color .3s;
}
.head-search input::-webkit-search-cancel-button { cursor: pointer; }
.head-search.is-open input {
  width: clamp(140px, 18vw, 230px);
  margin-right: 8px;
  opacity: 1;
  border-bottom-color: var(--ink-line);
}
.head-search input:focus { outline: none; border-bottom-color: var(--seal); }
.search-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--ink-mid);
  transition: color .3s var(--ease);
}
.search-btn:hover, .head-search.is-open .search-btn { color: var(--seal); }
.search-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.lang-toggle {
  display: flex; align-items: baseline; gap: 3px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  padding: 5px 10px;
  border: 1px solid var(--ink-line);
  transition: border-color .3s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink-mid); }
.lang-toggle .on { color: var(--seal); }
.lang-toggle .sep { opacity: .4; }

.nav-burger { display: none; width: 28px; height: 22px; position: relative; }
.nav-burger span {
  position: absolute; left: 2px; right: 2px; height: 1px;
  background: var(--ink); transition: transform .35s var(--ease);
}
.nav-burger span:first-child { top: 7px; }
.nav-burger span:last-child { bottom: 7px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(6deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-6deg); }

/* ─────────────────────────── 封面 ─────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 700px);
  overflow: hidden;
}

/* 画面满幅铺底，不设边框、不作裁切：底层同图放大高斯模糊填满画布，
   上层 contain 完整呈现整幅作品，边缘自然化进纸色 */
.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}

.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-layer.is-on { opacity: 1; }

.hero-back,
.hero-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-back {
  object-fit: cover;
  filter: blur(34px) saturate(.86) brightness(1.06);
  transform: scale(1.15);
  opacity: .55;
}
.hero-front {
  object-fit: contain;
  object-position: right center;
}

/* 左侧纸色帷幕，把文字托起来；四周同色渐隐，消除画面的硬边 */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(246,242,233,.92) 22%, rgba(246,242,233,.55) 40%, transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, transparent 12%),
    linear-gradient(0deg, var(--paper) 0%, transparent 14%),
    linear-gradient(270deg, var(--paper) 0%, transparent 6%);
}

.hero-figure figcaption {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 3vw, 44px);
  bottom: 18px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--ink-mid);
}
.hero-figure figcaption:empty { display: none; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 8px;
}
.hero-dots:empty { display: none; }
.hero-dots button {
  width: 7px; height: 7px; padding: 0;
  border-radius: 50%;
  background: rgba(23,21,15,.18);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.hero-dots button.is-on { background: var(--seal); transform: scale(1.3); }

.hero-text {
  position: relative;
  z-index: 4;
  padding: 0 var(--gutter);
  max-width: 620px;
  animation: rise 1.2s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .42em;
  color: var(--ink-faint);
}

.hero-title {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.08;
  color: var(--ink);
  /* 宋体家族多数没有真正的粗体字面，浏览器会合成而显得毛糙，
     叠一层同色描边把笔画补厚，落在画面上更立得住 */
  -webkit-text-stroke: .6px var(--ink);
  text-shadow: 0 0 24px var(--paper), 0 0 48px rgba(246,242,233,.9);
}

.hero-sub {
  margin: 18px 0 0;
  font-family: var(--font-zh);
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: .3em;
  color: var(--ink);
  text-shadow: 0 0 18px var(--paper);
}
.hero-intro {
  margin: 26px 0 0;
  max-width: 24em;
  font-family: var(--font-zh);
  font-size: 14.5px;
  line-height: 2.1;
  letter-spacing: .04em;
  color: var(--ink-mid);
}
html[lang="en"] .hero-intro { font-family: var(--font-en); line-height: 1.85; letter-spacing: .005em; }

.hero-cta,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 26px;
  border: 1px solid var(--ink-mid);
  font-family: var(--font-zh);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink);
  background: rgba(246,242,233,.5);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.hero-cta { margin-top: clamp(26px, 4vh, 44px); }
.hero-cta svg, .ghost-btn svg { width: 30px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.hero-cta:hover, .ghost-btn:hover { background: var(--ink); color: var(--paper-warm); border-color: var(--ink); }

/* ─────────────────────────── 通栏区块 ─────────────────────────── */

.band { position: relative; }
.band-inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(56px, 8vh, 96px) var(--gutter); }

.band-featured { background: rgba(255,255,255,.32); border-block: 1px solid var(--ink-line); }

/* 精选：画心底对齐、面积均衡陈列，尺寸由 JS 按各自比例算出 */
.featured-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
}
/* 窄屏改为横向滑动，不牺牲尺寸 */
.featured-row.is-scroll {
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.featured-row.is-scroll .feat-item { scroll-snap-align: center; }

.feat-item {
  flex: 0 0 auto;
  /* figure 自带 margin: 1em 40px，不清掉会让每个间隙凭空多出 80px，
     且这部分外边距不在 layoutFeatured 的缩放计算内，直接撑破版心 */
  margin: 0;
  text-align: center;
  cursor: zoom-in;
}
.feat-shot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.feat-shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 30px -20px rgba(23,21,15,.6);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.feat-item:hover .feat-shot img {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(23,21,15,.7);
}
.feat-cap { margin-top: 14px; font-family: var(--font-zh); font-size: 14px; letter-spacing: .08em; color: var(--ink); }
.feat-size { margin-top: 4px; font-family: var(--font-en); font-size: 12px; letter-spacing: .04em; color: var(--ink-faint); }
.band-more { text-align: center; margin-top: clamp(30px, 4vh, 46px); }

/* 关于艺术家 */
.band-artist { background: linear-gradient(180deg, transparent, rgba(236,229,214,.45)); }
.artist-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(56px, 8vh, 110px) var(--gutter);
}

/* 左右两栏顶端对齐、间距充裕；照片不越过三分之一，其余留给文字与空白 */
.artist-split {
  display: grid;
  grid-template-columns: minmax(230px, 34%) 1fr;
  align-items: start;
  gap: clamp(34px, 5.5vw, 88px);
}

.artist-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;          /* 与画心上缘找齐 */
}
.artist-copy .prose { max-width: 42em; }
/* 首字朱砂，起笔如钤印 */
.artist-copy .prose p:first-child::first-letter { color: var(--seal); }

.artist-posts {
  width: 100%;
  margin-top: clamp(26px, 4vh, 40px);
  padding-top: clamp(22px, 3vh, 32px);
  border-top: 1px solid var(--ink-line);
}
.posts-label {
  margin: 0 0 14px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--ink-faint);
}
.post-list {
  list-style: none;
  margin: 0 0 clamp(26px, 4vh, 38px);
  padding: 0;
  columns: 2;
  column-gap: clamp(24px, 3vw, 46px);
}
.post-list li {
  break-inside: avoid;
  font-family: var(--font-zh);
  font-size: 13.5px;
  line-height: 2.1;
  letter-spacing: .03em;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
/* 朱砂小方点，呼应印章 */
.post-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1em;
  width: 5px; height: 5px;
  background: var(--seal);
  opacity: .78;
}

/* ─────────────────────────── 区块通用 ─────────────────────────── */

.section {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--rhythm) var(--gutter);
}

.section-head { text-align: center; margin-bottom: clamp(40px, 6vh, 72px); }
.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px; height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--ink-mid), transparent);
}
.section-sub {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose p { margin: 0 0 1.15em; font-family: var(--font-zh); font-size: 15.5px; line-height: 2.1; letter-spacing: .04em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
html[lang="en"] .prose p { font-family: var(--font-en); letter-spacing: .005em; line-height: 1.85; }

/* ─────────────────────────── 分类筛选 ─────────────────────────── */

/* 浏览作品时钉在页眉之下；因为它是 #works 的子元素，
   滚出作品区后会随容器一起离开，无需 JS 干预 */
.filter-bar {
  position: sticky;
  top: var(--head-h, 65px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 22px);
  padding: 5px 0;                 /* 整条控制在页眉高度以内，尽量不占浏览空间 */
  margin-bottom: clamp(30px, 4.5vh, 52px);
}
/* 浅色横带：撑出版心、通栏到视口两侧。
   未吸顶时上下各外扩一段显得厚重舒展；吸顶后收平，尽量不占浏览空间。
   厚度做在伪元素上而非内边距上，这样横带变化不会牵动版面高度。 */
.filter-bar::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--band-grow));
  bottom: calc(-1 * var(--band-grow));
  left: calc(-1 * (50vw - 50%));
  right: calc(-1 * (50vw - 50%));
  --band-grow: clamp(12px, 2vh, 22px);
  z-index: -1;
  background: var(--paper-warm);
  border-block: 1px solid var(--ink-line);
  box-shadow: 0 10px 20px -18px rgba(23,21,15,.5);
  transition: top .35s var(--ease), bottom .35s var(--ease),
              background .35s var(--ease), box-shadow .35s var(--ease);
}
/* 吸顶：横带收平、浮起来；顶边与页眉的下边线相接，去掉一道免得成双线 */
.filter-bar.is-pinned::before {
  --band-grow: 0px;
  background: rgba(251, 248, 241, .94);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-top-color: transparent;
  box-shadow: 0 12px 26px -20px rgba(23,21,15,.65);
}
.filter-btn {
  position: relative;
  padding: 4px 16px 8px;
  font-family: var(--font-zh);
  font-size: 15px;
  /* 行高必须压住，否则继承正文的 1.9 会把整条撑高 */
  line-height: 1.35;
  letter-spacing: .24em;
  text-indent: .24em;
  color: var(--ink-mid);
  transition: color .35s var(--ease);
}
.filter-btn .count {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0;
  /* 用相对位移代替 vertical-align: super —— 后者会撑高行盒 */
  position: relative;
  top: -.5em;
  color: var(--ink-faint);
  margin-left: 3px;
  transition: color .35s var(--ease);
}
/* 水墨笔触下划线 */
.filter-btn::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 6px;
  transform: translateX(-50%);
  background: var(--ink);
  opacity: .82;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.4C18 2.2 34 6.4 52 4.2 70 2 86 6 100 3.6c8-1.4 14 .4 18 1.2-6 2-14 2.6-24 2.2-18-.8-34-2.4-50-1.4-12 .8-24 1.4-36 .2-4-.4-6-1-6-1z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5.4C18 2.2 34 6.4 52 4.2 70 2 86 6 100 3.6c8-1.4 14 .4 18 1.2-6 2-14 2.6-24 2.2-18-.8-34-2.4-50-1.4-12 .8-24 1.4-36 .2-4-.4-6-1-6-1z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transition: width .5s var(--ease);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active { color: var(--ink); }
.filter-btn.is-active .count { color: var(--seal); }
.filter-btn.is-active::after { width: calc(100% - 12px); }

.gallery-status {
  text-align: center;
  font-family: var(--font-zh);
  color: var(--ink-faint);
  letter-spacing: .1em;
  padding: 40px 0;
}
.noscript { text-align: center; color: var(--seal); font-family: var(--font-zh); }

/* ─────────────────────────── 瀑布流 · 保留原始比例 ─────────────── */

.masonry { position: relative; width: 100%; transition: height .5s var(--ease); }

.m-item {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
  transition: transform .55s var(--ease), opacity .45s var(--ease);
  opacity: 0;
}
.m-item.is-placed { opacity: 1; }
.m-item.is-hidden { opacity: 0; pointer-events: none; }

.card { display: block; width: 100%; cursor: zoom-in; }

.card-frame {
  position: relative;
  background: var(--paper-warm);
  padding: 10px;
  box-shadow:
    0 1px 2px rgba(23,21,15,.06),
    0 10px 30px -18px rgba(23,21,15,.5);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
  overflow: hidden;
}
.card-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(23,21,15,.09);
  pointer-events: none;
  z-index: 2;
}
.card:hover .card-frame {
  transform: translateY(-3px);
  box-shadow:
    0 2px 3px rgba(23,21,15,.07),
    0 22px 44px -22px rgba(23,21,15,.55);
}

/* 图片容器严格按作品原始宽高比，绝不裁切（高度由等高分行布局写入） */
.card-img {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, var(--paper-deep), var(--paper-warm));
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.card-img img.is-loaded { opacity: 1; }
.card:hover .card-img img.is-loaded { transform: scale(1.018); }

.card-badge {
  position: absolute;
  top: 0; right: 0;
  z-index: 3;
  padding: 4px 8px;
  background: var(--seal);
  color: var(--paper-warm);
  font-family: var(--font-zh);
  font-size: 10px;
  letter-spacing: .18em;
  text-indent: .18em;
}

.card-cap { padding: 16px 2px 6px; }
.card-title {
  font-family: var(--font-zh);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--ink);
  line-height: 1.6;
}
.card-title-en {
  font-size: 11.5px;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin-top: 2px;
}
.card-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  font-family: var(--font-zh);
}
.card-meta .dot { color: var(--ink-ghost); }

/* ─────────────────────────── 艺术家 ─────────────────────────── */

/* 肖像满幅贴在左半边，与文字栏直接相接，不设相框 */
.artist-portrait { position: relative; margin: 0; }

/* 画框：外一道细边、内一层纸色卡纸，照片落在中间 */
.portrait-mat {
  padding: clamp(8px, 1vw, 13px);
  background: var(--paper-warm);
  border: 1px solid var(--ink-line);
  box-shadow: 0 1px 2px rgba(23,21,15,.05), 0 20px 44px -30px rgba(23,21,15,.6);
}
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-deep);
}

/* 肖像轮播：多张左右滑动 */
.portrait-track {
  display: flex;
  height: 100%;
  transition: transform .7s var(--ease);
  touch-action: pan-y;
}
.portrait-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.02);
  user-select: none;
  -webkit-user-drag: none;
}

.portrait-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--paper-warm);
  background: rgba(23, 21, 15, .32);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s var(--ease), background .3s var(--ease);
}
.portrait-prev { left: 12px; }
.portrait-next { right: 12px; }
.portrait-frame:hover .portrait-nav { opacity: 1; }
.portrait-nav:hover { background: rgba(23, 21, 15, .55); }
.portrait-frame:focus-within .portrait-nav { opacity: 1; }

.portrait-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.portrait-dots button { box-shadow: 0 0 0 1px rgba(246,242,233,.55); }
.portrait-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: var(--ink-ghost);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.portrait-dots button.is-on { background: var(--seal); transform: scale(1.25); }
.portrait-dots button { background: rgba(246,242,233,.45); }

.chron-h {
  font-size: 14px;
  letter-spacing: .28em;
  text-indent: .28em;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ─────────────────────────── 荣誉年表 ─────────────────────────── */

.section-chronicle { position: relative; max-width: 1360px; }

/* 各栏目统一使用 .section-head，样式见「区块通用」 */

.chron-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

/* ── 侧栏 ── */

.chron-side { position: sticky; top: 96px; }
.chron-intro {
  margin: 0 0 26px;
  font-family: var(--font-zh);
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .04em;
  color: var(--ink-mid);
  text-align: justify;
}

.honor-cards {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.honor-cards li {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 12px 10px;
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,.4);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-align: center;
}

.side-block { margin-bottom: 30px; }
.side-block h4 {
  margin: 0 0 14px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--ink-mid);
}

.year-index { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.year-index button {
  padding: 3px 9px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  border: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.year-index button:hover { color: var(--ink); }
.year-index button.is-on { color: var(--seal); border-color: var(--seal); }
.year-index button.is-empty { opacity: .3; pointer-events: none; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 类型标签 ── */

.tag {
  display: inline-block;
  flex: none;
  padding: 3px 9px;
  font-family: var(--font-zh);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-indent: .12em;
  line-height: 1.5;
  color: var(--ink-mid);
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,.5);
  white-space: nowrap;
}
.tag[data-type="award"] { color: var(--seal); border-color: rgba(158,53,39,.4); background: rgba(158,53,39,.06); }
.tag[data-type="exhibit"] { color: #4a6b57; border-color: rgba(74,107,87,.35); background: rgba(74,107,87,.06); }
.tag[data-type="publication"] { color: #6a5a86; border-color: rgba(106,90,134,.32); background: rgba(106,90,134,.06); }
.tag[data-type="collection"] { color: #8a6d1f; border-color: rgba(138,109,31,.35); background: rgba(138,109,31,.06); }
.tag[data-type="press"] { color: #3a6ea5; border-color: rgba(58,110,165,.32); background: rgba(58,110,165,.06); }
.tag[data-type="event"] { color: var(--ink-mid); }

/* ── 筛选 ── */

.chron-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(26px, 4vh, 44px);
}
.chron-filter button {
  padding: 9px 20px;
  font-family: var(--font-zh);
  font-size: 13.5px;
  letter-spacing: .18em;
  text-indent: .18em;
  color: var(--ink-mid);
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,.5);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chron-filter button:hover { border-color: var(--ink-mid); color: var(--ink); }
.chron-filter button.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-warm);
}

/* ── 时间轴 ── */

.chron-track {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(26px, 3vw, 44px);
  position: relative;
}
.chron-track::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--ink-line) 4%, var(--ink-line) 96%, transparent);
}

.chron-group { position: relative; padding-bottom: clamp(30px, 5vh, 56px); }
.chron-group[hidden] { display: none; }

/* 菱形锚点 */
.chron-group::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(26px, 3vw, 44px) + 1px);
  top: 10px;
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: var(--paper);
  border: 1px solid var(--ink-mid);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.chron-group.is-current::before { background: var(--seal); border-color: var(--seal); }

.chron-year-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.chron-year-line .y {
  font-family: var(--font-en);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: .14em;
  color: var(--ink);
}
.chron-year-line .c { font-family: var(--font-zh); font-size: 12px; color: var(--ink-faint); letter-spacing: .1em; }

.chron-items { list-style: none; margin: 0; padding: 0; }
.chron-items > li { margin-bottom: 10px; }
.chron-items > li[hidden] { display: none; }

.entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 16px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255,255,255,.42);
  border: 1px solid var(--ink-ghost);
  border-left: 3px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.entry:hover { background: rgba(255,255,255,.72); }

/* 里程碑：朱红竖条 + 菱形符 + 加粗 */
.entry.is-key { border-left-color: var(--seal); }
.entry.is-key .entry-text { color: var(--ink); font-weight: 600; }
.entry.is-key .entry-text::before {
  content: "◆";
  color: var(--seal);
  font-size: 11px;
  margin-right: 8px;
  vertical-align: 1px;
}

.entry-text {
  font-family: var(--font-zh);
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: .03em;
  color: var(--ink-soft);
  text-align: justify;
}
.entry-text .w { color: var(--ink); }

.entry-toggle {
  flex: none;
  align-self: center;
  padding: 4px 11px;
  font-family: var(--font-zh);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-indent: .12em;
  color: var(--ink-faint);
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,.6);
  transition: color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.entry-toggle:hover { color: var(--seal); border-color: rgba(158,53,39,.4); }

/* 折叠详情：grid 行高过渡，无需测量像素 */
.entry-detail {
  grid-column: 2 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease), margin-top .35s var(--ease);
  opacity: 0;
  margin-top: 0;
}
.entry.is-open .entry-detail { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.entry-detail > div { overflow: hidden; }
.entry-detail p {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--ink-line);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .03em;
  color: var(--ink-mid);
  text-align: justify;
}

.chron-empty { text-align: center; color: var(--ink-faint); font-family: var(--font-zh); padding: 50px 0; }

.chron-collections {
  max-width: 940px;
  margin: clamp(44px, 6vh, 72px) auto 0;
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--ink-line);
}
.chron-collections .chron-h { text-align: center; }

/* ─────────────────────────── 深色概览 ─────────────────────────── */

.dark-band {
  position: relative;
  margin-top: var(--rhythm);
  background: #16150f;
  color: rgba(246,242,233,.8);
}
.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(246,242,233,.05), transparent 60%),
    radial-gradient(60% 80% at 88% 100%, rgba(158,53,39,.08), transparent 62%);
}

.dark-inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vh, 82px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 76px);
}

.dark-col h3 {
  font-family: var(--font-zh);
  font-size: 17px;
  letter-spacing: .26em;
  color: var(--paper-warm);
}
.dark-col .dark-sub {
  margin: 7px 0 22px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(246,242,233,.38);
}

.dark-list { list-style: none; margin: 0; padding: 0; }
.dark-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .03em;
  color: rgba(246,242,233,.72);
}
.dark-list .dy { font-family: var(--font-en); font-size: 12.5px; color: #c98a72; letter-spacing: .06em; }

.dark-outlets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dark-outlets li {
  padding: 7px 13px;
  border: 1px solid rgba(246,242,233,.16);
  background: rgba(246,242,233,.05);
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(246,242,233,.75);
}

.dark-note {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .03em;
  color: rgba(246,242,233,.7);
}

.dark-more {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: rgba(246,242,233,.55);
  transition: color .3s var(--ease);
}
.dark-more:hover { color: #d99a8c; }

/* ─────────────────────────── 联系条 ─────────────────────────── */

.contact-bar {
  position: relative;
  border-top: 1px solid rgba(246,242,233,.12);
}
.contact-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(26px, 4vh, 40px) var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.contact-label h3 {
  font-family: var(--font-zh);
  font-size: 16px;
  letter-spacing: .26em;
  color: var(--paper-warm);
}
.contact-label .dark-sub { margin: 6px 0 0; }

.contact-list {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 4vw, 52px);
  flex: 1;
}
.contact-list > div { display: flex; align-items: baseline; gap: 10px; }
.contact-list dt {
  font-family: var(--font-zh);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(246,242,233,.4);
  white-space: nowrap;
}
.contact-list dd {
  margin: 0;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(246,242,233,.86);
}
.contact-list dd a { transition: color .3s var(--ease); }
.contact-list dd a:hover { color: #d99a8c; }
.contact-list .c-detail {
  display: block;
  margin-top: 3px;
  font-family: var(--font-zh);
  font-size: 12px;
  color: rgba(246,242,233,.45);
}

.to-top {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(246,242,233,.2);
  border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.to-top svg { width: 16px; height: 16px; fill: none; stroke: rgba(246,242,233,.7); stroke-width: 1.2; }
.to-top:hover { background: rgba(246,242,233,.08); border-color: rgba(246,242,233,.4); }

.copyright {
  margin: 0;
  padding: 16px var(--gutter) 26px;
  text-align: center;
  font-family: var(--font-zh);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(246,242,233,.35);
  border-top: 1px solid rgba(246,242,233,.08);
}
/* 备案号：与版权行同排，前置一道竖线分隔 */
.copyright .icp {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(246,242,233,.16);
  color: rgba(246,242,233,.42);
  transition: color .3s var(--ease);
}
.copyright .icp:hover { color: rgba(246,242,233,.75); }
@media (max-width: 560px) {
  .copyright .icp { display: block; margin: 8px 0 0; padding: 0; border-left: 0; }
}

/* ─────────────────────────── 灯箱 ─────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 13, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade .35s var(--ease);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.lb-body {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr var(--lb-aside, 340px);
}
/* 用 flex 而非 grid：grid 的隐式行是 auto，图片的百分比 max-height
   会因为参照高度不确定而失效，长卷立轴就会被裁掉且滚不动 */
.lb-stage {
  display: flex;
  padding: clamp(28px, 5vh, 64px) clamp(24px, 4vw, 70px);
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.lb-stage img {
  margin: auto;            /* 居中；放大后自动归零，两侧都能滚到 */
  flex: none;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 90px -40px rgba(0,0,0,.9);
  background: var(--paper-warm);
  padding: clamp(6px, 1vw, 14px);
  cursor: zoom-in;
  animation: lbIn .5s var(--ease);
}
/* 放大：按原图像素呈现，可滚动、可拖动查看细节 */
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-zoomed.is-panning { cursor: grabbing; }
.lb-stage.is-zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  animation: none;
}

.lb-hint {
  position: absolute;
  left: calc(50% - var(--lb-aside, 340px) / 2);
  bottom: 16px;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(246,242,233,.10);
  font-family: var(--font-zh);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: rgba(246,242,233,.5);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985) } to { opacity: 1; transform: none } }

.lb-info {
  padding: clamp(48px, 8vh, 84px) clamp(24px, 2.4vw, 40px) 40px;
  border-left: 1px solid rgba(246,242,233,.12);
  overflow-y: auto;
  color: rgba(246,242,233,.82);
}
.lb-cat {
  margin: 0 0 12px;
  font-family: var(--font-zh);
  font-size: 11px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: #d99a8c;
}
.lb-title {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .18em;
  color: var(--paper-warm);
  line-height: 1.5;
}
.lb-title-en {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-style: italic;
  letter-spacing: .05em;
  color: rgba(246,242,233,.5);
}
.lb-meta {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(246,242,233,.14);
}
.lb-meta > div { display: flex; gap: 14px; padding: 7px 0; }
.lb-meta dt {
  flex: 0 0 4.6em;
  font-family: var(--font-zh);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: rgba(246,242,233,.45);
  padding-top: 2px;
}
.lb-meta dd {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: rgba(246,242,233,.88);
}
.lb-price {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .06em;
  color: #e8c07a;
}
.lb-price-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(246,242,233,.45);
}
.c-detail {
  display: block;
  margin-top: 4px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.lb-desc { margin-top: 24px; }
.lb-desc p { color: rgba(246,242,233,.68); font-size: 14px; line-height: 2; }
.lb-award {
  margin: 22px 0 0;
  padding: 10px 14px;
  border-left: 2px solid var(--seal);
  background: rgba(158,53,39,.14);
  font-family: var(--font-zh);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: .06em;
  color: rgba(246,242,233,.8);
}
.lb-count {
  margin: 30px 0 0;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(246,242,233,.35);
}

.lb-close, .lb-nav {
  position: absolute;
  z-index: 5;
  color: rgba(246,242,233,.6);
  transition: color .3s var(--ease), background .3s var(--ease);
  display: grid; place-items: center;
}
.lb-close { top: 18px; right: 20px; width: 42px; height: 42px; font-size: 17px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 34px; line-height: 1; border-radius: 50%; }
.lb-prev { left: 14px; }
.lb-next { right: calc(var(--lb-aside, 340px) + 14px); }
.lb-close:hover, .lb-nav:hover { color: var(--paper-warm); background: rgba(246,242,233,.1); }

body.lb-open { overflow: hidden; }

/* ─────────────────────────── 媒体报道 ─────────────────────────── */

.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li {
  border-bottom: 1px solid var(--ink-line);
  transition: background .4s var(--ease);
}
.press-list li:first-child { border-top: 1px solid var(--ink-line); }
.press-list li:hover { background: rgba(255,255,255,.4); }

/* 整条可点：有链接时是 <a>，无链接时是 <div>，样式一致 */
.press-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: clamp(14px, 3vw, 34px);
  align-items: start;
  padding: 26px 0;
  color: inherit;
}
.press-item.has-thumb { grid-template-columns: 82px 132px 1fr; }

.press-thumb {
  width: 132px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--ink-ghost);
}
.press-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
a.press-item:hover .press-thumb img { transform: scale(1.04); }

.press-main { min-width: 0; }
a.press-item .press-title { transition: color .3s var(--ease); }
a.press-item:hover .press-title { color: var(--seal); }
.press-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .3s var(--ease);
}
a.press-item:hover .press-link { color: var(--seal); }
.press-link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.press-year {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--seal);
}
.press-title {
  font-family: var(--font-zh);
  font-size: clamp(15px, 1.7vw, 18px);
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--ink);
}
.press-outlet {
  margin-top: 7px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

/* ─────────────────────────── 响应式 ─────────────────────────── */

@media (max-width: 1200px) { .lightbox { --lb-aside: 300px; } }

@media (max-width: 1100px) {
  .site-nav { gap: 16px; }
  .site-nav .en { display: none; }
  .brand-text { display: none; }
}

@media (max-width: 1000px) {
  .lb-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 56px 18px 12px; }
  .lb-info {
    border-left: 0;
    border-top: 1px solid rgba(246,242,233,.12);
    padding: 22px 22px 30px;
    max-height: 42vh;
  }
  .lb-next { left: auto; right: 14px; }
  .lb-nav { top: 42%; }
  .lb-hint { display: none; }

  /* 艺术家：上下叠放，肖像在上 */
  /* 窄屏：照片居中、限宽，文字整幅在下 */
  .artist-split { grid-template-columns: 1fr; gap: 30px; }
  .artist-portrait { max-width: 320px; margin-inline: auto; width: 100%; }
  .post-list { columns: 1; }

  /* 年表：侧栏移到顶部，不再吸顶 */
  .chron-layout { grid-template-columns: 1fr; gap: 34px; }
  .chron-side { position: static; }
  .honor-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

  /* 封面：文字在上、画在下，整幅完整呈现 */
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-block: clamp(28px, 5vh, 52px) 0;
    min-height: 0;
  }
  .hero-text { padding-inline: var(--gutter); max-width: none; order: 1; }
  .hero-figure {
    position: relative;
    order: 2;
    width: 100%;
    height: min(46vh, 340px);
    margin-top: clamp(24px, 4vh, 40px);
  }
  .hero-front { object-position: center; }
  .hero-veil {
    background:
      linear-gradient(180deg, var(--paper) 0%, rgba(246,242,233,.5) 10%, transparent 26%),
      linear-gradient(0deg, var(--paper) 0%, transparent 16%),
      linear-gradient(90deg, var(--paper) 0%, transparent 8%),
      linear-gradient(270deg, var(--paper) 0%, transparent 8%);
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(246,242,233,.97);
    border-bottom: 1px solid var(--ink-line);
    padding: 6px var(--gutter) 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    flex-direction: row; align-items: baseline; justify-content: space-between;
    padding: 13px 0; border-bottom: 1px solid var(--ink-ghost);
  }
  .site-nav a::after { display: none; }
  .site-nav .en { display: block; }
  .nav-burger { display: block; }
  .head-search.is-open input { width: 130px; }
  .press-item,
  .press-item.has-thumb { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .press-thumb { width: 100%; max-width: 260px; }

  /* 年表：条目改为标签在上、正文在下，详情按钮独占一行 */
  .entry { grid-template-columns: 1fr; gap: 10px; padding: 14px 15px; }
  .entry-detail { grid-column: 1 / -1; }
  .entry-toggle { justify-self: start; align-self: start; }
  .entry-text { font-size: 14px; }
  .chron-filter button { padding: 7px 14px; font-size: 13px; letter-spacing: .1em; text-indent: .1em; }
  .chron-track { padding-left: 22px; }
  .chron-group::before { left: -21px; }

  .post-list { columns: 1; }
  .contact-inner { flex-direction: column; align-items: flex-start; }

  /* 吸顶时不能占太多屏：收紧间距，五类收进一行 */
  .filter-bar { gap: 2px; padding: 4px 0; }
  .filter-btn { padding: 4px 9px 7px; font-size: 14px; letter-spacing: .16em; text-indent: .16em; }
  .filter-btn .count { font-size: 9.5px; margin-left: 2px; }
  .card-cap { padding-top: 12px; }
}

/* 打印：便于策展人留档 */
@media print {
  .site-head, .hero-cta, .filter-bar, .lightbox, .paper-ground { display: none !important; }
  body { background: #fff; }
  .m-item { position: static !important; transform: none !important; opacity: 1 !important; width: 48% !important; display: inline-block; vertical-align: top; }
  .masonry { height: auto !important; }
}

/* ═══════════════════════════════════════════════════════════════
   出版著述
   ═══════════════════════════════════════════════════════════════ */

/* 一本一行，卡片内部左右分栏：左为立体封面，右为全部文字与内页 */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vh, 96px);
}
.book-card {
  display: grid;
  grid-template-columns: minmax(200px, 30%) 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.book-card + .book-card {
  padding-top: clamp(44px, 6vh, 84px);
  border-top: 1px solid var(--ink-line);
}
.book-body { min-width: 0; }

/* ── 立体封面 ── */

.book-cover {
  position: relative;
  width: 100%;
  perspective: 1400px;
  cursor: zoom-in;
}
/* 柔和的径向光，模拟侧上方光线 */
.book-cover::before {
  content: "";
  position: absolute;
  inset: -6% -10% -12%;
  background: radial-gradient(60% 55% at 34% 22%, rgba(255,255,255,.75), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.book-shell {
  position: relative;
  z-index: 1;
  transform: rotateY(-11deg) rotateX(1.5deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: drop-shadow(14px 18px 26px rgba(23,21,15,.26));
}
.book-card:hover .book-shell {
  transform: rotateY(-6deg) rotateX(.5deg) translateY(-6px) scale(1.025);
  filter: drop-shadow(18px 26px 38px rgba(23,21,15,.34));
}

/* 比例由 JS 按封面原始尺寸写入行内；contain 保证一丝不裁 */
.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--paper-deep);
}
/* 书脊：封面左缘一道竖向暗带，撑出厚度 */
.book-shell::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 13px;
  background: linear-gradient(90deg,
    rgba(23,21,15,.34) 0%, rgba(23,21,15,.12) 42%,
    rgba(255,255,255,.30) 76%, rgba(23,21,15,.06) 100%);
  z-index: 2;
  pointer-events: none;
}
/* 书口：右缘叠出的纸页断面 */
.book-shell::after {
  content: "";
  position: absolute;
  right: -7px; top: 3px; bottom: 3px;
  width: 7px;
  background: repeating-linear-gradient(90deg, #efe9dc 0 1px, #d9d2c2 1px 2px);
  transform: skewY(-1.6deg);
  border-radius: 0 2px 2px 0;
  z-index: -1;
}
.book-cover-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--paper-warm), var(--paper-deep));
  border: 1px dashed var(--ink-line);
  font-family: var(--font-zh);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-faint);
}

/* ── 书目信息 ── */

.book-title {
  margin: 0;
  font-family: var(--font-zh);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--ink);
}
.book-meta {
  margin: 9px 0 0;
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--ink-faint);
}
.book-meta span + span::before { content: " · "; }

.book-desc {
  margin: 14px 0 0;
  font-family: var(--font-zh);
  font-size: 14px;
  line-height: 2;
  letter-spacing: .03em;
  color: var(--ink-soft);
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-desc.is-open { display: block; overflow: visible; }
.book-more {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--font-zh);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--seal);
  transition: opacity .3s var(--ease);
}
.book-more:hover { opacity: .7; }

/* ── 内页缩略 ── */

.book-pages { margin-top: clamp(16px, 2.2vh, 24px); }
.book-pages-label {
  font-family: var(--font-zh);
  font-size: 11.5px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.book-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.book-thumbs button {
  width: 92px;
  padding: 4px;
  background: var(--paper-warm);
  border: 1px solid var(--ink-ghost);
  cursor: zoom-in;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.book-thumbs button:hover {
  border-color: var(--ink-line);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -12px rgba(23,21,15,.6);
}
/* 内页缩略同样不裁切，多出的边留作纸色卡纸 */
.book-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper-deep);
  display: block;
}

/* ── 定价与购藏 ── */

.book-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: clamp(18px, 2.4vh, 26px);
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 1px solid var(--ink-line);
}
.book-price {
  font-family: var(--font-en);
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: .06em;
  color: var(--seal);
}
.book-price s {
  margin-left: 8px;
  font-size: 13px;
  color: var(--ink-faint);
}
.book-btn {
  padding: 9px 22px;
  font-family: var(--font-zh);
  font-size: 13.5px;
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--seal);
  border: 1px solid var(--seal);
  background: transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.book-btn:hover { background: var(--seal); color: var(--paper-warm); }
.book-status {
  font-family: var(--font-zh);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-faint);
}
.book-status.soldout { color: var(--ink-mid); }
.book-status.presale { color: #8a6d1f; }

/* ── 内页欣赏模态框 ── */

.pv {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(20, 18, 13, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 90px);
  animation: fade .3s var(--ease);
}
.pv-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 0;
}
.pv-stage img {
  max-width: 100%;
  min-height: 0;
  max-height: calc(100vh - clamp(150px, 20vh, 210px));
  width: auto;
  object-fit: contain;
  background: var(--paper-warm);
  padding: clamp(6px, 1vw, 12px);
  box-shadow: 0 30px 90px -40px rgba(0,0,0,.9);
  transition: opacity .3s var(--ease);
}
.pv-stage img.is-swapping { opacity: 0; }

.pv-cap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-zh);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(246,242,233,.62);
}
.pv-book { color: rgba(246,242,233,.9); }
.pv-count {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(246,242,233,.42);
}

.pv-close, .pv-nav {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  color: rgba(246,242,233,.6);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.pv-close { top: 18px; right: 20px; width: 42px; height: 42px; font-size: 17px; }
.pv-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 34px;
  line-height: 1;
  border-radius: 50%;
}
.pv-prev { left: 14px; }
.pv-next { right: 14px; }
.pv-close:hover, .pv-nav:hover { color: var(--paper-warm); background: rgba(246,242,233,.1); }

body.pv-open { overflow: hidden; }

/* ── 响应式 ── */

@media (max-width: 1000px) {
  .book-card { grid-template-columns: minmax(180px, 36%) 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  /* 窄屏改为上下叠放：封面在上、限宽居中，文字在下 */
  .book-grid { gap: 40px; }
  .book-card { grid-template-columns: 1fr; gap: 24px; }
  .book-cover { max-width: 260px; }
  .book-shell { transform: rotateY(-7deg); }
  /* 缩略图横向滑动，不挤压尺寸 */
  .book-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  .book-thumbs::-webkit-scrollbar { display: none; }
  .book-thumbs button { flex: 0 0 auto; width: 108px; scroll-snap-align: center; }
  .pv-nav { width: 44px; height: 44px; font-size: 28px; top: auto; bottom: 18px; transform: none; }
  .pv-prev { left: 18px; }
  .pv-next { right: 18px; }
  .pv-stage img { max-height: calc(100vh - clamp(180px, 26vh, 240px)); }
}

@media (prefers-reduced-motion: reduce) {
  .book-shell, .pv-stage img { transition: none; }
}
/* 从「购藏垂询」跳到联系区块时，短暂提示一下落点 */
.contact-bar.is-hailed .contact-label h3 { color: var(--seal); transition: color .4s var(--ease); }
