.artwork-zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(18, 20, 18, .96);
  color: #eee9dd;
}
.artwork-zoom.is-open { display: block; }
.artwork-zoom-toolbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 22px;
  background: linear-gradient(rgba(18,20,18,.9), transparent);
  font: 12px var(--sans);
  letter-spacing: .06em;
}
.artwork-zoom-toolbar span { margin-right: auto; color: rgba(238,233,221,.7); }
.artwork-zoom-toolbar button {
  min-width: 38px;
  height: 34px;
  border: 1px solid rgba(238,233,221,.3);
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  color: #eee9dd;
  cursor: pointer;
  font: 14px var(--sans);
}
.artwork-zoom-toolbar button:hover { background: rgba(255,255,255,.18); }
.artwork-zoom-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.artwork-zoom-viewport.is-dragging { cursor: grabbing; }
#artwork-zoom-image {
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
}
@media (min-width: 961px) {
  .artwork-main {
    min-height: calc(100vh - 112px);
  }
  .artwork-stage {
    min-height: calc(100vh - 112px);
    padding: clamp(20px, 2.2vh, 32px) clamp(20px, 3vw, 48px);
  }
  .artwork-stage .mounting {
    max-height: min(88vh, calc(100vh - 150px));
    height: auto;
    max-width: 80%;
  }
  .artwork-stage .mounting-side-wrap {
    max-height: none;
  }
  .artwork-stage .mounting-painting {
    min-height: 0;
  }
  .artwork-stage .mounting-painting img {
    max-height: min(72vh, calc(100vh - 320px));
  }
  .artwork-stage .mounting-vertical .mounting-painting img {
    max-height: min(68vh, calc(100vh - 360px));
  }
  .artwork-stage .mounting-horizontal {
    max-width: 80%;
    width: 80%;
  }
  .artwork-stage .mounting-horizontal .mounting-painting img {
    max-height: min(68vh, calc(100vh - 260px));
    max-width: 100%;
    width: 100%;
    object-fit: contain;
  }
}
.artwork-info { min-height: 0; overflow: hidden; }
.artwork-info-inner {
  height: 100%;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(155,73,51,.45) transparent;
}
.artwork-info-inner::-webkit-scrollbar { width: 6px; }
.artwork-info-inner::-webkit-scrollbar-thumb { background: rgba(155,73,51,.45); border-radius: 8px; }
.artwork-poem {
  position: relative;
  margin: 34px 0 42px;
  padding: 26px 46px 26px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(229,224,210,.5), rgba(244,241,233,.18));
  border-top: 1px solid rgba(155,73,51,.3);
  border-bottom: 1px solid rgba(155,73,51,.3);
}
.artwork-poem .poem-mark {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--red);
  font: 11px var(--sans);
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}
.artwork-poem blockquote {
  margin: 0;
  color: var(--ink);
  font-family: "STKaiti", "KaiTi", "FZKai-Z03", var(--serif);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  max-height: 280px;
  max-width: 100%;
}
.artwork-poem blockquote .poem-line {
  display: block;
  white-space: nowrap;
}

/* 诗歌溢出时循环滚动 — 竖排向右滚动(首句从右侧出框,下句补位) */
@keyframes poem-scroll-x {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@keyframes poem-scroll-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
/* 竖排(vertical-rl): 多列从右到左, 用 translateX 水平滚动 */
.artwork-poem blockquote.poem-scroll-x {
  animation: poem-scroll-x 20s linear infinite;
  will-change: transform;
}
/* 横排(horizontal-tb, 移动端): 多行从上到下, 用 translateY 垂直滚动 */
.artwork-poem blockquote.poem-scroll-y {
  animation: poem-scroll-y 20s linear infinite;
  will-change: transform;
}
.artwork-poem blockquote.poem-scroll:hover {
  animation-play-state: paused;
}
.artwork-poem.poem-calligraphy blockquote {
  font-family: "STKaiti", "KaiTi", "FZKai-Z03", var(--serif);
  font-weight: 600;
  letter-spacing: .11em;
}
.artwork-poem.poem-xingshu blockquote {
  font-family: "STKaiti", "KaiTi", "FZKai-Z03", var(--serif);
  font-weight: 500;
}
.artwork-poem cite {
  position: absolute;
  right: 15px;
  bottom: 14px;
  color: var(--muted);
  font: 10px var(--sans);
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}
.artwork-description p:last-child,
.artwork-inspiration p:last-child,
.artwork-artist p:not(.eyebrow) {
  font-size: 15px;
  line-height: 2.15;
}
.culture-link-box-desc { font-size: 14px; line-height: 2; }
@media (max-width: 960px) {
  .artwork-info-inner { max-height: none; height: auto; overflow-y: visible; }
}
@media (max-width: 760px) {
  .artwork-zoom-toolbar { padding: 12px; gap: 5px; }
  .artwork-zoom-toolbar span { font-size: 10px; }
  .artwork-zoom-toolbar button { min-width: 34px; height: 34px; }
  .artwork-poem { min-height: 180px; margin: 26px 0 34px; padding-right: 38px; }
  .artwork-poem blockquote { font-size: 24px; max-height: 220px; }
}
