@font-face {
  font-family: 'Somewhere';
  src: url('../fonts/somewhereinmymemory.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mieszkanie';
  src: url('../fonts/mieszkanie9.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #aabddd;
  --paper: #eef1f6;
  --paper-2: #e4e9f2;
  --ink: #8ea6be;
  --pencil: #2c4568;
  --chalk: #ffffff;
  --chalk-soft: #f0f5fb;
  --pink: #f2c8bd;
  --cream: #f7e9c9;
  --gold: #e7d3a3;
  --star-rain-z: 2;
  --content-z: 3;
  --hero-z: 1;
  --head-z: 30;
  --fx-z: 50;
  --cursor-z: 110;
  --grain-z: 40;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--pencil);
  font-family: 'Mieszkanie', 'Comic Sans MS', cursive;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; -webkit-user-drag: none; }

a { color: inherit; }

/* ---------------------------------------------------------------- layers */
/* 平台在页面右下角注入的「Created by MiniMax Code」黑色角标 —— 藏掉 */
#minimax-floating-ball { display: none !important; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--star-rain-z);
  pointer-events: none;
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--fx-z);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--grain-z);
  pointer-events: none;
  background-image: url('../img/grain.png');
  background-size: 256px 256px;
  opacity: .42;
  mix-blend-mode: soft-light;
  /* keep the paper grain on its own layer — otherwise the blend result is
     cached while the hero animation repaints and leaves ghost trails */
  will-change: opacity;
}

/* custom glowing star cursor ------------------------------------------- */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  z-index: var(--cursor-z);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
  will-change: transform;
}

#cursor img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .85));
}

body.has-custom-cursor,
body.has-custom-cursor * { cursor: none !important; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: var(--head-z);
  width: 100%;
  margin: 0 auto;
}

.band {
  display: block;
  width: 100%;
  height: auto;
}

.mainnav { position: absolute; top: 0; left: 0; right: 0; height: calc(140 * 100% / 1920); pointer-events: none; }

.nav-item {
  position: absolute;
  left: calc(var(--x) * 100% / 1920);
  top: calc(var(--y) * 100% / 140);
  width: calc(var(--w) * 100% / 1920);
  display: block;
  pointer-events: auto;
  text-decoration: none;
}

.nav-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .28s ease, filter .28s ease;
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
}

.nav-item:hover img,
.nav-item:focus-visible img {
  transform: translateY(-2px);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .95));
}

.nav-item:focus-visible { outline: 2px dashed rgba(255, 255, 255, .8); outline-offset: 4px; border-radius: 4px; }

.nav-item[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -16%;
  width: 34%;
  min-width: 11px;
  max-width: 20px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: url('../img/star-a.png') no-repeat center / contain;
  opacity: .9;
  animation: twinkle 3.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: translateX(-50%) scale(.82) rotate(-8deg); }
  50% { opacity: .95; transform: translateX(-50%) scale(1.04) rotate(8deg); }
}

/* ---------------------------------------------------------------- poster */
/* the hero sits on the very bottom layer so the star rain can fall
   across it — the artwork keeps its transparent background */
.poster {
  position: relative;
  z-index: var(--hero-z);
  width: 100%;
  margin: 0;
}

.stage {
  position: relative;
  aspect-ratio: 1920 / 1081;
}

/* animated hero artwork (looping video, full width) ------------------ */
.stage-hero {
  aspect-ratio: 1920 / 1353;
  width: 100%;
  margin: 0;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:root { --head-h: calc(140 * 100vw / 1920); }

.el {
  position: absolute;
  left: calc(var(--x) * 100% / 1920);
  top: calc(var(--y) * 100% / 1081);
  width: calc(var(--w) * 100% / 1920);
  margin: 0;
}

.el > img { display: block; width: 100%; height: auto; }

/* hand-writing title over the dotted one */
.el.title > img { display: block; width: 100%; height: auto; }

.title-dots {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  z-index: 1;
}

.title-dots text { font-family: 'Mieszkanie', cursive; }

.hw {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .9s ease;
}

.hw.play { opacity: 1; }
.hw.away { opacity: 0; }

.hw text {
  font-family: 'Mieszkanie', cursive;
  fill: var(--chalk);
  fill-opacity: 0;
  stroke: var(--chalk);
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hw.play text {
  animation: strokeDraw .85s ease-out var(--d, 0s) both,
             fillIn .55s ease-out calc(var(--d, 0s) + .5s) both;
}

@keyframes strokeDraw {
  from { stroke-dashoffset: var(--len, 400); }
  to { stroke-dashoffset: 0; }
}

@keyframes fillIn {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}

/* ---------------------------------------------------------------- marquee */
.marquee {
  position: relative;
  z-index: var(--content-z);
  overflow: hidden;
  background: var(--paper);
  padding: 11px 0 14px;
  box-shadow: 0 -14px 26px -22px rgba(44, 69, 104, .5), 0 16px 30px -24px rgba(44, 69, 104, .5);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee-track span {
  display: inline-block;
  padding-right: .5em;
  font-family: 'Somewhere', cursive;
  font-size: clamp(16px, 2.1vw, 27px);
  line-height: 1.25;
  color: var(--pencil);
  white-space: nowrap;
  letter-spacing: .06em;
}

.marquee-track span i {
  font-style: normal;
  display: inline-block;
  vertical-align: -.12em;
  margin: 0 .22em;
  color: #f2dfa2;
}

.marquee-track span i svg { display: block; width: .78em; height: .78em; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- intro */
.intro {
  position: relative;
  z-index: var(--content-z);
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  padding: 96px 0 40px;
  text-align: center;
}

.section-head {
  margin: 0 0 10px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  color: var(--chalk);
}

.section-head em {
  font-style: normal;
  color: var(--chalk);
  opacity: .72;
}

.section-note {
  margin: 0 auto 34px;
  max-width: 560px;
  font-size: 21px;
  color: var(--pencil);
  opacity: .9;
}

.intro-card {
  display: block;
  width: min(880px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 26px 34px -26px rgba(44, 69, 104, .7));
  transition: transform .38s ease, filter .38s ease;
}

.intro-card:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 26px 34px -24px rgba(44, 69, 104, .65))
          drop-shadow(0 0 34px rgba(255, 255, 255, .78));
}

.intro-copy {
  margin: 34px auto 0;
  max-width: 640px;
  font-size: 23px;
  line-height: 1.6;
}

.intro-copy strong { color: var(--chalk); font-weight: 400; }

/* ---------------------------------------------------------------- works */
.selected {
  position: relative;
  z-index: var(--content-z);
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 84px 0 20px;
}

.selected-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px dashed rgba(255, 255, 255, .45);
  padding-bottom: 18px;
  margin-bottom: 38px;
}

.selected-head p {
  margin: 0;
  font-size: 19px;
  color: var(--chalk);
  opacity: .85;
}

.selected-head a { color: var(--chalk); text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .6); }
.selected-head a:hover { border-bottom-color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work {
  margin: 0;
  position: relative;
}

.work-frame {
  position: relative;
  display: block;
  border-radius: 14px;
  transition: transform .3s ease;
}

.work-frame:hover { transform: translateY(-6px) scale(1.05); }

.work-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 28px -18px rgba(44, 69, 104, .55);
  transition: box-shadow .3s ease;
}

.work-frame:hover img {
  box-shadow: 0 20px 34px -18px rgba(44, 69, 104, .5), 0 0 34px -8px rgba(255, 255, 255, .85);
}

.work-frame::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: url('../img/star-a.png') no-repeat center / contain;
  opacity: 0;
  transform: rotate(-14deg) scale(.8);
  transition: opacity .3s ease, transform .3s ease;
}

.work-frame:hover::after { opacity: .95; transform: rotate(10deg) scale(1); }

.work-title {
  margin: 14px 0 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--chalk);
}

.work-meta {
  margin: 2px 0 0;
  font-size: 18px;
  color: var(--pencil);
  opacity: .84;
}

/* ---------------------------------------------------------------- exhibitions */
.exhib {
  position: relative;
  z-index: var(--content-z);
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 96px 0 30px;
}

.exhib-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 20px;
  margin-bottom: 44px;
}

.exhib-title {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1;
  color: var(--chalk);
}

.exhib-title span {
  font-size: .62em;
  opacity: .78;
  margin-left: .18em;
}

.exhib-note {
  margin: 0;
  max-width: 300px;
  font-size: 18px;
  color: var(--chalk);
  opacity: .85;
}

.exhib-note a { color: var(--chalk); text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .6); }
.exhib-note a:hover { border-bottom-color: #fff; }

.exhib-list { margin: 0; padding: 0; list-style: none; }

.exhib-item {
  position: relative;
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 0 40px;
  padding-bottom: 40px;
}

.exhib-year {
  position: relative;
  font-size: 46px;
  line-height: 1;
  color: var(--chalk);
  padding-top: 22px;
}

.exhib-year::after {
  content: '';
  position: absolute;
  right: -26px;
  top: 0;
  bottom: -40px;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, .5);
}

.exhib-dot {
  position: absolute;
  right: -31px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--chalk);
}

.exhib-dot.upcoming { background: var(--pink); box-shadow: 0 0 0 4px rgba(242, 200, 189, .25); transition: box-shadow .38s ease, background .38s ease; }

.exhib-item:hover .exhib-dot {
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), 0 0 16px rgba(255, 255, 255, .9);
}

.exhib-item:hover .exhib-year { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .75); }

.exhib-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 26px 30px 24px;
  box-shadow: 0 18px 30px -24px rgba(44, 69, 104, .6);
  transition: transform .38s ease, box-shadow .38s ease, filter .38s ease;
}

.exhib-card:hover {
  transform: scale(1.022);
  box-shadow: 0 22px 34px -24px rgba(44, 69, 104, .62);
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, .8));
}

.exhib-card:hover .chip {
  border-color: rgba(44, 69, 104, .45);
  color: var(--pencil);
}

.exhib-card:hover .chip.upcoming {
  border-color: #d99b8a;
  color: #a85f4c;
}

.exhib-card:hover .chip.group {
  border-color: #c9ab5f;
  color: #7a6428;
}

.exhib-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip {
  font-size: 15px;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(142, 166, 190, .55);
  color: var(--pencil);
}

.chip.upcoming { border-color: var(--pink); color: #b9715f; background: rgba(242, 200, 189, .22); }
.chip.solo { border-color: rgba(142, 166, 190, .8); }
.chip.group { border-color: rgba(231, 211, 163, .95); color: #8a7333; background: rgba(231, 211, 163, .2); }

.exhib-place { font-size: 17px; color: var(--ink); }

.exhib-card h3 {
  margin: 0 0 8px;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--pencil);
}

.exhib-card p { margin: 0; font-size: 19px; color: var(--pencil); opacity: .86; }

.exhib-meta {
  margin-top: 14px !important;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .04em;
}

.exhib-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.exhib-stars img {
  position: absolute;
  opacity: .5;
  animation: twinkle 5s ease-in-out infinite;
}

/* ---------------------------------------------------------------- footer */
.site-foot {
  position: relative;
  z-index: var(--content-z);
  margin-top: 70px;
  background: var(--paper);
  padding: 46px 24px 54px;
  text-align: center;
  box-shadow: 0 -18px 34px -30px rgba(44, 69, 104, .55);
}

.foot-mark {
  margin: 0 auto 2px;
  font-size: 36px;
  line-height: 1.1;
  color: var(--pencil);
  letter-spacing: .06em;
}
.foot-tag {
  margin: 0 auto;
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: .05em;
}

.foot-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}

.foot-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  border-bottom: 1px dashed rgba(142, 166, 190, .6);
  transition: color .2s ease, border-color .2s ease;
}

.foot-nav a:hover { color: var(--pencil); border-bottom-color: var(--pencil); }

.foot-stars { display: flex; justify-content: center; gap: 22px; margin: 14px 0 0; }
.foot-stars img { width: 14px; opacity: .8; animation: twinkle 4.2s ease-in-out infinite; }
.foot-stars img:nth-child(2) { animation-delay: 1.1s; width: 10px; }
.foot-stars img:nth-child(3) { animation-delay: 2.2s; width: 18px; }

.foot-note {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
}

.foot-spiral {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  color: var(--ink);
  opacity: .8;
}

/* ---------------------------------------------------------------- inner pages */
.wrap {
  position: relative;
  z-index: var(--content-z);
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 26px 0 90px;
}

.page-head { text-align: center; margin: 0 0 54px; }

.page-title {
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--chalk);
}

.page-kicker { margin: 6px 0 0; font-size: clamp(18px, 2.1vw, 25px); color: var(--chalk-soft); opacity: .92; }

.page-rule {
  width: 190px;
  height: 16px;
  margin: 16px auto 0;
  background: url('../img/star-b.png') no-repeat center / contain;
  opacity: .8;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 400;
  color: var(--chalk);
}

.section-label::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: url('../img/star-b.png') no-repeat center / contain;
}

.hr-chalk { border: 0; border-top: 1px dashed rgba(255, 255, 255, .5); margin: 46px 0; }

/* exhibition cards — paper cards on the blue ground, like the reference */
.ex-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.ex-card {
  position: relative;
  background: var(--paper);
  color: var(--pencil);
  border-radius: 18px;
  padding: 22px 32px 26px;
  box-shadow: 0 18px 32px -26px rgba(44, 69, 104, .6);
  transition: transform .3s ease, box-shadow .3s ease;
}

.ex-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 40px -24px rgba(44, 69, 104, .55);
}

.ex-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ex-badge {
  display: inline-block;
  padding: 3px 18px 4px;
  border: 1.5px solid var(--badge-line, #e9a88c);
  border-radius: 999px;
  background: var(--badge-fill, rgba(233, 168, 140, .22));
  font-family: 'Mieszkanie', cursive;
  font-size: 21px;
  line-height: 1.5;
  color: var(--pencil);
}

.ex-badge.y2026 { --badge-line: #e9a88c; --badge-fill: rgba(233, 168, 140, .22); }
.ex-badge.y2025 { --badge-line: #e0c169; --badge-fill: rgba(242, 223, 162, .34); }
.ex-badge.y2024 { --badge-line: #8fb3c9; --badge-fill: rgba(160, 194, 202, .34); }
.ex-badge.y2023 { --badge-line: #a9b2ac; --badge-fill: rgba(219, 223, 216, .5); }

.ex-meta {
  font-size: 21px;
  color: var(--ink);
  opacity: .86;
}

.ex-card-title {
  margin: 12px 0 0;
  font-family: 'Mieszkanie', cursive;
  font-weight: 400;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.24;
  color: var(--pencil);
}

.ex-list { list-style: none; margin: 0; padding: 0; }

.ex-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 8px 30px;
  padding: 26px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .42);
}

.ex-item:last-child { border-bottom: 0; }
.ex-year { font-size: 38px; line-height: 1; color: var(--chalk); opacity: .92; }
.ex-title { margin: 0; font-size: 28px; font-weight: 400; line-height: 1.25; color: var(--chalk); }
.ex-where { margin: 2px 0 0; font-size: 20px; color: var(--pencil); opacity: .88; }
.ex-note { grid-column: 2; margin: 4px 0 0; font-size: 19px; color: var(--pencil); opacity: .78; }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(32, 52, 84, .93);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .28s ease;
}

.lightbox.on { display: grid; opacity: 1; }

.lb-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: min(86vw, 1100px);
  max-height: 88vh;
  padding: 26px;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 130px);
  width: auto;
  height: auto;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .7), 0 0 40px -12px rgba(255, 255, 255, .35);
  animation: lbIn .34s cubic-bezier(.22, .61, .36, 1);
}

/* a picture that already carries its own transparency (png) is shown as it is —
   no paper plate, no rounded plate, no shadow around the empty corners */
.lb-img.lb-plain {
  border-radius: 0;
  box-shadow: none;
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 手机端滑动翻页：手指按住大图左右拖（图跟着手走一点） */
.lb-img.lb-drag {
  transform: translateX(var(--lb-drag-x, 0px)) !important;
}

/* 只对触摸设备接管横向手势，网页版的鼠标行为一点不变 */
@media (pointer: coarse) {
  .lightbox { touch-action: pan-y; }
  .poster-viewer { touch-action: pan-y; }
}

.lb-cap {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  color: var(--chalk);
}

/* same type as the small grid caption (works page) */
.lb-title {
  font-family: inherit;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--chalk);
}

.lb-meta {
  font-family: inherit;
  font-size: 18px;
  color: var(--chalk);
  opacity: .85;
}

.lb-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  margin: 0;
  text-align: center;
  font-family: 'Somewhere', cursive;
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--chalk-soft);
  opacity: .8;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pencil);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 2;
}

.lb-btn svg { width: 22px; height: 22px; }

.lb-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .7), 0 0 26px -6px rgba(255, 255, 255, .9);
}

.lb-btn:active { transform: scale(.96); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; margin-top: -28px; }
.lb-next { right: 26px; top: 50%; margin-top: -28px; }

@media (max-width: 700px) {
  .lb-figure { padding: 14px; }
  .lb-img { max-height: calc(84vh - 110px); }
  .lb-btn { width: 44px; height: 44px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

/* ---------------------------------------------------------------- carousel */
.carousel-sec { margin: 58px 0 0; }

.car-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 26px;
}

.car-title { font-size: clamp(34px, 4.4vw, 54px); }

.car { position: relative; }

.car-window {
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px;
}

.car-track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .62s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.car-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
}

.car-frame {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s ease;
}

.car-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 28px -18px rgba(44, 69, 104, .55);
  transition: box-shadow .3s ease;
}

.car-frame:hover { transform: translateY(-6px); }

.car-frame:hover img {
  box-shadow: 0 20px 34px -18px rgba(44, 69, 104, .5), 0 0 34px -8px rgba(255, 255, 255, .85);
}

.car-frame::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: url('../img/star-a.png') no-repeat center / contain;
  opacity: 0;
  transform: rotate(-14deg) scale(.8);
  transition: opacity .3s ease, transform .3s ease;
}

.car-frame:hover::after { opacity: .95; transform: rotate(10deg) scale(1); }

.car-cap {
  margin: 14px 0 0;
  font-size: 22px;
  color: var(--chalk);
  opacity: .95;
}

.car-year {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-family: 'Somewhere', cursive;
  font-size: 15px;
  letter-spacing: .04em;
  vertical-align: 3px;
}

.car-btn {
  position: absolute;
  top: 32%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pencil);
  box-shadow: 0 10px 22px -12px rgba(44, 69, 104, .7);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 3;
}

.car-btn svg { width: 22px; height: 22px; }

.car-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 26px -12px rgba(44, 69, 104, .6), 0 0 26px -6px rgba(255, 255, 255, .9);
}

.car-btn:active { transform: scale(.96); }
.car-prev { left: -34px; }
.car-next { right: -34px; }

.car-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.car-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .3s ease, background .3s ease, box-shadow .3s ease;
}

.car-dot.on {
  width: 30px;
  background: var(--chalk);
  box-shadow: 0 0 12px rgba(255, 255, 255, .75);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 54px;
  align-items: start;
}

.about-art { margin: 0; }
.about-art .frame { display: block; border-radius: 16px; }
.about-art img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 16px 30px -18px rgba(44, 69, 104, .55); }
.about-art figcaption { margin-top: 12px; font-size: 18px; color: var(--pencil); opacity: .8; }

.about-text p { margin: 0 0 18px; font-size: 22px; line-height: 1.55; color: var(--pencil); }
.about-text p strong { color: var(--chalk); font-weight: 400; }

.skill-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 26px;
}

.skill-list li { position: relative; padding-left: 24px; font-size: 21px; color: var(--pencil); }

.skill-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .42em;
  width: 13px;
  height: 13px;
  background: url('../img/star-b.png') no-repeat center / contain;
}

.studio-list { list-style: none; margin: 18px 0 0; padding: 0; }

.studio-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .38);
  font-size: 19px;
  color: var(--pencil);
}

.studio-list li span:first-child { color: var(--chalk); opacity: .92; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 30px; }

.contact-list a {
  color: var(--chalk);
  text-decoration: none;
  font-size: 24px;
  border-bottom: 1px dashed rgba(255, 255, 255, .6);
  padding-bottom: 2px;
  transition: border-color .25s ease, color .25s ease;
}

.contact-list a:hover { color: #fff; border-bottom-color: #fff; }


/* ---------------------------------------------------------------- about profile */
.about-wrap { padding-bottom: 40px; }

.profile-top {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 5.4fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 54px;
}

/* id card ---------------------------------------------------------------- */
.idcard {
  position: relative;
  background: #b7d2ea;
  color: #fff;
  border-radius: 10px;
  padding: 30px 34px 34px 96px;
  transform: rotate(-3deg);
  box-shadow: 0 26px 40px -28px rgba(44, 69, 104, .65);
}

.idcard-clip {
  position: absolute;
  top: -30px;
  left: 20px;
  width: 56px;
  height: 116px;
  transform-origin: 50% 8%;
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
  filter: drop-shadow(0 6px 8px rgba(28, 52, 86, .28));
}

.idcard-clip svg { width: 100%; height: 100%; overflow: visible; }

/* the whole card lifts a touch, the clip follows it */
.idcard {
  cursor: zoom-in;
  transition: transform .34s cubic-bezier(.22, .61, .36, 1), box-shadow .34s ease;
}

.idcard:hover,
.idcard:focus-visible {
  transform: rotate(-3deg) scale(1.022) translateY(-3px);
  box-shadow: 0 34px 48px -28px rgba(44, 69, 104, .72), 0 0 34px -10px rgba(255, 255, 255, .75);
}

.idcard:hover .idcard-clip,
.idcard:focus-visible .idcard-clip {
  transform: scale(1.1) rotate(-4deg);
}

.idcard:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 6px; }

.idcard-star {
  position: absolute;
  right: 34px;
  top: 30px;
  width: 58px;
  height: 58px;
  opacity: .95;
}

.idcard-star svg { width: 100%; height: 100%; fill: #fff; }

.idcard-name {
  margin: 0 0 16px;
  font-family: 'Mieszkanie', cursive;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: .04em;
}

.idcard-meta { list-style: none; margin: 0; padding: 0; }

.idcard-meta li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .5);
  font-family: 'Somewhere', cursive;
  font-size: 21px;
  line-height: 1.45;
}

.idcard-meta li span {
  flex: 0 0 168px;
  font-family: 'Mieszkanie', cursive;
  font-size: 19px;
  letter-spacing: .05em;
  opacity: .92;
}

.idcard-meta li b { font-weight: 400; }

.idcard-links { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }

.idcard-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .55);
  padding-bottom: 1px;
  transition: color .25s ease, border-color .25s ease;
}

.idcard-links a::after { content: ' ↗'; font-size: .78em; opacity: .65; }
.idcard-links a:hover { color: #f7e9c9; border-bottom-color: #f7e9c9; }

/* individual files ------------------------------------------------------- */
.files-label {
  margin: 0 0 34px;
  text-align: right;
  font-family: 'Mieszkanie', cursive;
  font-size: 30px;
  line-height: 1.1;
  color: var(--chalk);
  letter-spacing: .04em;
}

/* postage stamp: cream paper with a butter-yellow perforated border */
.files-photo {
  position: relative;
  background: #fbf7ee;
  padding: 30px 34px 34px;
  transform: rotate(2deg);
  box-shadow: 0 26px 40px -28px rgba(44, 69, 104, .6);
  border-radius: 4px;
}

.files-stamp {
  --notch: 9px;
  --pitch: 27px;
  position: absolute;
  inset: -20px;
  background: #f3ebd9;   /* 奶白 */
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 10px 18px rgba(44, 69, 104, .3));

  /* punch the perforations along all four edges */
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(var(--pitch) / 2) 0, transparent 98%, #000 100%) 0 0 / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--notch) at calc(var(--pitch) / 2) 100%, transparent 98%, #000 100%) 0 100% / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--notch) at 0 calc(var(--pitch) / 2), transparent 98%, #000 100%) 0 0 / 100% var(--pitch) repeat-y,
    radial-gradient(circle var(--notch) at 100% calc(var(--pitch) / 2), transparent 98%, #000 100%) 100% 0 / 100% var(--pitch) repeat-y,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at calc(var(--pitch) / 2) 0, transparent 98%, #000 100%) 0 0 / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--notch) at calc(var(--pitch) / 2) 100%, transparent 98%, #000 100%) 0 100% / var(--pitch) 100% repeat-x,
    radial-gradient(circle var(--notch) at 0 calc(var(--pitch) / 2), transparent 98%, #000 100%) 0 0 / 100% var(--pitch) repeat-y,
    radial-gradient(circle var(--notch) at 100% calc(var(--pitch) / 2), transparent 98%, #000 100%) 100% 0 / 100% var(--pitch) repeat-y,
    linear-gradient(#000 0 0);
  mask-composite: intersect;
}

/* the perforation line inside the toothed edge */
.files-photo::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(186, 166, 120, .7);
  border-radius: 2px;
  pointer-events: none;
}

.files-photo img {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  object-fit: cover;
  border-radius: 3px;
}

/* artist bio -------------------------------------------------------------- */
.bio {
  max-width: 980px;
  margin-bottom: 58px;
}

.bio-title {
  margin: 0 0 22px;
  font-family: 'Mieszkanie', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', cursive;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--chalk);
}

.bio-cn {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
}

.bio-body {
  display: grid;
  gap: 20px;
  font-family: 'Somewhere', 'Comic Sans MS', cursive;
  font-size: 21px;
  line-height: 1.95;
  letter-spacing: .01em;
  color: var(--pencil);
}

.bio-body p { margin: 0; }

/* the Somewhere font has no apostrophe - borrow one from the display face */
.apos { font-family: 'Mieszkanie', cursive; }

/* bottom bar -------------------------------------------------------------- */
.profile-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  background: #cfe4f4;
  border-radius: 14px;
  padding: 18px 30px 16px;
  box-shadow: 0 24px 38px -30px rgba(44, 69, 104, .7);
}

.bar-sticker { width: 176px; height: auto; align-self: end; }

.bar-hello {
  margin: 0;
  text-align: center;
  font-family: 'Mieszkanie', cursive;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  color: var(--pencil);
  letter-spacing: .05em;
}

.bar-hello small {
  display: block;
  margin-top: 6px;
  font-family: 'Somewhere', cursive;
  font-size: 20px;
  letter-spacing: .04em;
  opacity: .8;
}

.bar-logo { width: 150px; height: auto; justify-self: end; }

.about-contact {
  margin: 34px 0 0;
  text-align: center;
}

.about-contact a {
  color: var(--chalk);
  text-decoration: none;
  font-size: 22px;
  border-bottom: 1px dashed rgba(255, 255, 255, .6);
  padding-bottom: 2px;
}

.about-contact a::after { content: ' ↗'; font-size: .8em; opacity: .55; }
.about-contact a:hover { border-bottom-color: #fff; color: #fff; }
.about-contact span { color: var(--pencil); font-size: 20px; margin: 0 14px; opacity: .8; }

/* footer signature -------------------------------------------------------- */
.foot-sign {
  width: 128px;
  margin: 14px auto 0;
  display: block;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .profile-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 1040px) {
  .car-slide { flex: 0 0 calc((100% - 18px) / 2); }
  /* keep the arrows inside the page so nothing overflows the viewport */
  .car-prev { left: 2px; }
  .car-next { right: 2px; }
  /* pull the perforated frame in a little on narrower screens */
  .files-stamp { inset: -13px; }
  .files-photo { transform: rotate(1deg); }
}

@media (max-width: 700px) {
  .car-slide { flex: 0 0 100%; }
  .car-window { margin: 0; padding: 4px; }
  .car-btn { width: 44px; height: 44px; }
  .car-prev { left: -6px; }
  .car-next { right: -6px; }
  .car-cap { font-size: 19px; }
}

@media (max-width: 820px) {
  body { font-size: 20px; }

  .ex-card { padding: 18px 22px 22px; border-radius: 15px; }
  .ex-card-title { font-size: clamp(21px, 5.6vw, 28px); }
  .ex-meta { font-size: 17px; }
  .ex-badge { font-size: 18px; padding: 2px 14px 3px; }

  /* keep the perforated frame inside the viewport on small screens */
  .files-stamp { inset: -12px; }
  .files-photo { transform: rotate(1deg); }

  /* 手机端：纸带拉长（band-mobile.png = 素白纸 + 云朵撕边，1920×390），
     导航落在白纸上，撕边仍在最下面 */
  .site-head {
    width: 100%;
    background: url('../img/band-mobile.png') left top / 100% auto no-repeat;
    padding-bottom: 20.3125%;            /* 390 / 1920 */
  }
  .band { display: none; }

  .poster { width: 100%; }

  .stage {
    aspect-ratio: auto;
    padding: 4vw 0 26px;
  }

  .stage-hero {
    aspect-ratio: 1920 / 1353;
    width: 100%;
    padding: 0;
  }

  .el, .nav-item { position: static; left: auto; top: auto; width: auto; }

  .el.tagline { width: 66%; margin: 6px auto 0; }
  .el.hero { width: 96%; margin: 10px auto 0; }
  .el.subtitle { width: 66%; margin: 2px auto 0; }

  .el.title { position: relative; width: 88%; margin: 6px auto 0; }
  .hw { position: absolute; left: 0; top: 0; width: 100%; }

  .el.star-a, .el.star-b, .el.star-c, .el.star-d { position: absolute; width: 13px; }
  .el.star-a { left: 12%; top: auto; bottom: 20%; }
  .el.star-b { left: 80%; top: auto; bottom: 24%; }
  .el.star-c { left: 18%; top: auto; bottom: 13%; }
  .el.star-d { left: 74%; top: auto; bottom: 11%; }


  .mainnav {
    position: absolute;
    top: calc((15.885vw - 32px) / 2);   /* 白纸区正中，纸带随屏幕宽度缩放 */
    left: 0;
    right: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 0 10px;
  }

  .nav-item img { width: auto; height: 32px; }
  .nav-item[aria-current="page"]::after { bottom: -16px; width: 12px; }

  .intro { padding: 60px 0 20px; }
  .selected, .exhib { padding: 60px 0 10px; }

  .work-grid { grid-template-columns: 1fr; gap: 40px; }

  .exhib-item { grid-template-columns: 1fr; gap: 6px; padding-bottom: 32px; }
  .exhib-year { padding-top: 0; font-size: 34px; }
  .exhib-year::after { right: auto; left: 0; top: 46px; bottom: 0; border-left: 0; border-top: 1px dashed rgba(255, 255, 255, .5); width: 100%; height: 0; }
  .exhib-dot { right: auto; left: 0; top: 40px; }
  .exhib-card { padding: 22px; }

  .ex-item { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .ex-note { grid-column: 1; }
  .skill-list { grid-template-columns: 1fr; }
  .wrap { padding-bottom: 60px; }

  .idcard { transform: rotate(-1.5deg); padding: 26px 22px 28px 84px; }
  .idcard-clip { left: 16px; width: 46px; height: 100px; }
  .idcard-meta li { flex-direction: column; gap: 2px; }
  .idcard-meta li span { flex: none; font-size: 17px; opacity: .8; }
  .idcard-star { width: 42px; height: 42px; top: 22px; right: 22px; }
  .files-label { text-align: left; font-size: 24px; }
  .profile-bar { grid-template-columns: 1fr; text-align: center; gap: 10px; padding: 20px 18px; }
  .bar-sticker { width: 132px; margin: 0 auto; justify-self: center; }
  .bar-logo { width: 108px; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-item[aria-current="page"]::after,
  .foot-stars img,
  .exhib-stars img { animation: none; }
  .marquee-track { animation: none; }
  .work-frame, .nav-item img { transition: none; }
}

/* ==================================================================
   Interaction round — link motion, poster boxes, exhibition dates
   ================================================================== */

/* ---------------------------------------------- "see all" arrows */
.link-fx {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

.link-fx::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transform: scaleX(.3);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}

.link-fx .arrow {
  display: inline-block;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}

.link-fx:hover { color: #fff; }
.link-fx:hover::after { transform: scaleX(1); opacity: .9; }
.link-fx:hover .arrow { transform: translateX(7px); }

/* the little star that pops where the link is clicked */
.lfx-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 68%);
  animation: lfx-burst .62s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes lfx-burst {
  0%   { transform: scale(.2); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: scale(6.2); opacity: 0; }
}

/* ---------------------------------------------- homepage work hint */
.work-view { position: relative; }

/* ---------------------------------------------- homepage dates */
.exhib-date {
  position: absolute;
  left: 0;
  bottom: 40px;
  font-size: 21px;
  color: var(--chalk);
  opacity: .88;
  letter-spacing: .02em;
}

/* 手机端版面改成上下堆叠后，日期会落在浅色卡片上 —— 白字看不清，改成深蓝。
   这条必须放在上面那条基础规则之后（同优先级时后者胜出）。 */
@media (max-width: 820px) {
  .exhib-date { color: var(--pencil); opacity: .92; }
}

/* ---------------------------------------------- exhibition cards */
.ex-card {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ex-card-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ex-date {
  color: var(--pencil);
  opacity: .78;
}

.ex-date::before,
.ex-venue::before {
  content: '\00b7';
  margin: 0 .55em;
  opacity: .7;
}

/* the white poster box on the right of a card */
/* no white frame any more — the posters float straight on the paper card */
.poster-box {
  position: relative;
  flex: 0 0 auto;
  width: 178px;
  height: 216px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
}

.poster-box:hover {
  transform: translateY(-6px) scale(1.035);
}

.poster-fan {
  position: absolute;
  inset: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-thumb {
  position: relative;
  width: 54%;
  height: 88%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 14px 24px -14px rgba(44, 69, 104, .55);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.poster-thumb + .poster-thumb { margin-left: -42%; }
.poster-thumb:only-child { width: 64%; height: 100%; }

.poster-thumb:nth-child(1) { transform: rotate(-8deg);  z-index: 4; }
.poster-thumb:nth-child(2) { transform: rotate(-2deg);  z-index: 3; }
.poster-thumb:nth-child(3) { transform: rotate(4deg);   z-index: 2; }
.poster-thumb:nth-child(4) { transform: rotate(10deg);  z-index: 1; }

.poster-box:hover .poster-thumb:nth-child(1) { transform: rotate(-13deg) translateX(-10px); }
.poster-box:hover .poster-thumb:nth-child(2) { transform: rotate(-3deg)  translateX(-4px); }
.poster-box:hover .poster-thumb:nth-child(3) { transform: rotate(6deg)   translateX(4px); }
.poster-box:hover .poster-thumb:nth-child(4) { transform: rotate(13deg)  translateX(12px); }

.poster-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  color: var(--pencil);
  font-family: 'Somewhere', cursive;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.poster-box:hover .poster-hint { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------- poster viewer */
.poster-viewer {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 56, 86, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .34s ease, visibility .34s;
}

.poster-viewer.on { opacity: 1; visibility: visible; }

.pv-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 94vh;
}

.pv-img {
  max-height: 76vh;
  max-width: 84vw;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 32px 60px -24px rgba(0, 0, 0, .6);
  transform: scale(.94);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}

.poster-viewer.on .pv-img { transform: scale(1); }

/* 手机端滑动翻页：手指按住海报左右拖（海报跟着手走一点） */
.pv-img.pv-drag {
  transform: translateX(var(--pv-drag-x, 0px)) scale(1) !important;
  transition: none !important;
}

.pv-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--chalk);
  text-align: center;
}

.pv-title { font-size: 26px; }
.pv-meta { font-size: 18px; opacity: .78; }

.pv-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--chalk);
  font-family: 'Somewhere', cursive;
  font-size: 16px;
  opacity: .85;
}

.pv-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background .26s ease, transform .26s ease;
}

.pv-btn:hover { background: rgba(255, 255, 255, .26); transform: scale(1.07); }
.pv-close { top: 26px; right: 26px; }
.pv-prev { left: 26px; top: 50%; margin-top: -26px; }
.pv-next { right: 26px; top: 50%; margin-top: -26px; }

/* ---------------------------------------------- small screens */
@media (max-width: 760px) {
  .ex-card { flex-direction: column; align-items: stretch; gap: 18px; }
  .poster-box { width: 100%; height: 190px; }
  .poster-fan { inset: 14px auto 14px 14px; width: 190px; }
  .exhib-date { font-size: 17px; }
  .pv-img { max-height: 70vh; }
  .pv-btn { width: 44px; height: 44px; }
  .pv-close { top: 14px; right: 14px; }
  .pv-prev { left: 10px; }
  .pv-next { right: 10px; }
}
