/* 主题画展页（#967·server/routes/themeGallery.js 直出）。底子是 seo-longtail.css 的奶白 + 墨线描边；gx-* = 单期展厅，gl-* = 往期总览。 */
.gl { padding: 18px 20px 40px; }
.gl h1 { font-size: clamp(24px, 4.4vw, 36px); line-height: 1.25; margin: 6px 0 4px; }
.gl h2 { font-size: 20px; margin: 28px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.gl h2 small { color: var(--sub); font-weight: 700; font-size: 14px; }
.gl-crumb { font-size: 13px; color: var(--sub); }
.gl-crumb a { text-decoration: none; }
.gl-sub { color: var(--sub); margin: 0 0 14px; }

html { scroll-behavior: smooth; }
.gl-cta { margin: 30px 0 10px; width: 100%; padding: 10px 16px; text-align: center; }
.gl-note { font-size: 12px; color: var(--sub); margin-top: 16px; }

.gl-index { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gl-index a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--panel); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); padding: 10px; height: 100%; }
.gl-index img, .gl-cover-empty { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f6efe2; display: block; }
.gl-index b { font-size: 16px; }
.gl-index span { font-size: 13px; color: var(--sub); }


/* ── 单期展厅 ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.gx-body { overflow-x: clip; --mat: #ffffff; --gold: #c99a2e; --gold-ink: #8a6512; --shade: rgba(43, 37, 64, .14); }
.gx { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

/* 往期切换条 */
.gx-issues { display: flex; align-items: stretch; gap: 6px; max-width: 1120px; margin: 0 auto; padding: 10px 20px 0; }
.gx-issues ol { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; flex: 1; min-width: 0; }
.gx-issues li { scroll-snap-align: center; flex: none; }
.gx-issues li a { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mat); text-decoration: none; line-height: 1.25; min-width: 72px; }
.gx-issues li a b { font-size: 12px; color: var(--sub); }
.gx-issues li a span { font-size: 14px; font-weight: 800; white-space: nowrap; }
.gx-issues li[aria-current] a { background: var(--ink); border-color: var(--ink); }
.gx-issues li[aria-current] a b, .gx-issues li[aria-current] a span { color: #fff; }
.gx-step { flex: none; width: 36px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mat); font-size: 22px; font-weight: 900; text-decoration: none; margin-bottom: 6px; }
span.gx-step { visibility: hidden; }

/* 首屏：左边展名，右边王座 */
.gx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: center; padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.gx-hero--solo { grid-template-columns: minmax(0, 1fr); }
.gx-no { margin: 14px 0 6px; font-size: 14px; font-weight: 800; color: var(--gold-ink); }
.gx h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.gx-date { margin: 10px 0 0; color: var(--sub); }
.gx-hook { margin: 14px 0 0; font-size: 18px; max-width: 32em; }
.gx-stats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 28px; }
.gx-stats li { display: flex; flex-direction: column; font-size: 13px; color: var(--sub); }
.gx-stats b { font-size: 26px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.gx-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.gx-jump a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--mat); }
.gx-jump a:active { transform: translateY(1px); }
.gx-jump small { color: var(--sub); font-weight: 700; }
.gx-jump i, .gx-below i { font-style: normal; color: var(--sub); }

.gx-throne-label { margin: 0 0 10px; font-size: 14px; font-weight: 900; color: var(--gold-ink); }
.gx-throne { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.gx-throne--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.gx-throne--3 { grid-template-columns: 1.3fr 1fr; }
.gx-throne--3 .gx-king--theme { grid-row: span 2; }
.gx-king { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gx-kframe { display: block; padding: 14px; background: var(--mat); border: 3px solid var(--gold); border-radius: 14px; box-shadow: 0 10px 24px var(--shade), inset 0 0 0 1px #f1e2bd; }
.gx-kframe img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #f6efe2; }
.gx-king figcaption { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 0 4px; }
.gx-king figcaption em { grid-column: 1 / -1; font-style: normal; font-size: 13px; font-weight: 900; color: var(--gold-ink); }
.gx-king figcaption b { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-king figcaption a { font-size: 14px; font-weight: 800; color: var(--sub); text-decoration: none; align-self: baseline; }

/* 展厅：每件作品 = 白卡纸画框 + 下面一块铭牌；评语、原画、原图都在灯箱里 */
.gx-hall { padding: 44px 0 8px; scroll-margin-top: 64px; }
.gx-hall--photo { position: relative; isolation: isolate; }
.gx-hall--photo::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: #f7f1e6; z-index: -1; border-top: 1px solid var(--line); }
.gx-hallhead { margin-bottom: 22px; }
.gx-hallhead h2 { margin: 0; font-size: 28px; }
.gx-hallhead p { margin: 4px 0 0; color: var(--sub); }
.gx-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.gx-piece { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.gx-frame { position: relative; display: block; padding: 10px; background: var(--mat); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 6px 14px var(--shade); transition: transform .15s ease, box-shadow .15s ease; }
.gx-frame:hover { transform: translateY(-3px); box-shadow: 0 12px 22px var(--shade); }
.gx-frame:active { transform: translateY(0); }
.gx-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #f6efe2; }
.gx-frame .gx-mini { position: absolute; right: 16px; bottom: 16px; width: 30%; border: 2px solid var(--mat); border-radius: 6px; box-shadow: 0 2px 6px var(--shade); }
.gx-piece--themed .gx-frame { border-color: var(--gold); }
.gx-plaque { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 0 2px; font-size: 13px; }
.gx-plaque b { grid-column: 1 / -1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-plaque a { color: var(--sub); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-plaque span { color: var(--sub); white-space: nowrap; }
.gx-dot { font-style: normal; color: var(--gold-ink); font-weight: 800; margin-right: 6px; }
.gx-below { display: flex; justify-content: center; gap: 6px; margin: 36px 0 0; padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; text-decoration: none; font-weight: 800; color: var(--ink); background: var(--mat); }

/* 本期入展作者 */
.gx-creators { padding: 44px 0 0; }
.gx-creators h2 { font-size: 22px; margin: 0 0 14px; }
.gx-creators h2 small { color: var(--sub); font-size: 14px; }
.gx-creators ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gx-creators li a { font-weight: 800; text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--mat); display: inline-block; }
.gx-creators li small { margin-left: 6px; color: var(--gold-ink); font-size: 12px; font-weight: 800; }
.gx-cta { display: block; margin: 40px 0 12px; text-align: center; }
.gx-pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin: 10px 0; }
.gx-pn a { text-decoration: none; font-weight: 800; }

/* 灯箱（奶白弹层） */
.gx-lb { padding: 0; border: 0; background: transparent; max-width: min(980px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); overflow: visible; }
.gx-lb::backdrop { background: rgba(43, 37, 64, .72); }
.gx-lb__box { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; max-height: calc(100vh - 32px); }
.gx-lb__stage { position: relative; background: #f6efe2; display: grid; place-items: center; min-height: 0; }
.gx-lb__stage > img { display: block; width: 100%; height: auto; max-height: calc(100vh - 36px); aspect-ratio: 1; object-fit: contain; }
.gx-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--mat); font-size: 22px; font-weight: 900; cursor: pointer; }
.gx-lb__nav:disabled { opacity: .3; cursor: default; }
.gx-lb__nav--prev { left: 10px; } .gx-lb__nav--next { right: 10px; }
.gx-lb__switch { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; padding: 3px; border-radius: 999px; background: var(--mat); border: 1.5px solid var(--ink); }
.gx-lb__switch button { border: 0; background: none; font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.gx-lb__switch button.on { background: var(--ink); color: #fff; }
.gx-lb button:focus-visible, .gx-lb a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gx-lb button:focus:not(:focus-visible) { outline: none; }
.gx-lb__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--mat); font-size: 22px; line-height: 1; cursor: pointer; }
.gx-lb__info { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.gx-lb__count { margin: 0; font-size: 13px; color: var(--sub); }
.gx-lb__info h3 { margin: 0; font-size: 24px; line-height: 1.25; padding-right: 36px; }
.gx-lb__meta, .gx-lb__what { margin: 0; color: var(--sub); font-size: 14px; }
.gx-lb__info blockquote { margin: 4px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--gold); font-size: 15px; }
.gx-lb__who { display: grid; grid-template-columns: 1fr auto; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--mat); text-decoration: none; }
.gx-lb__who b { font-size: 16px; } .gx-lb__who span { grid-column: 1; font-size: 13px; color: var(--sub); }
.gx-lb__who em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 800; font-size: 13px; color: var(--gold-ink); }
.gx-lb__acts { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.gx-lb__btn { flex: 1; text-align: center; text-decoration: none; font-weight: 900; padding: 10px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--mat); }
.gx-lb__btn--main { background: var(--snap); color: #fff; box-shadow: 0 3px 0 var(--ink); }

@media (max-width: 960px) {
  .gx-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .gx { padding: 0 16px 36px; }
  .gx-issues { padding: 8px 16px 0; }
  .gx-hero { padding: 16px 0 28px; }
  .gx h1 { font-size: 40px; }
  .gx-stats { gap: 22px; }
  .gx-stats b { font-size: 22px; }
  .gx-throne, .gx-throne--3 { grid-template-columns: minmax(0, 1fr); }
  .gx-throne--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gx-throne--2 .gx-king--theme { grid-column: 1 / -1; }
  .gx-kframe { padding: 10px; }
  .gx-hall { padding-top: 32px; }
  .gx-hallhead h2 { font-size: 24px; }
  .gx-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .gx-frame { padding: 6px; border-radius: 8px; }
  .gx-frame .gx-mini { right: 10px; bottom: 10px; }
  .gx-lb { max-width: 100vw; max-height: 100dvh; margin: 0; height: 100dvh; }
  .gx-lb__box { grid-template-columns: minmax(0, 1fr); border-radius: 0; border: 0; height: 100dvh; max-height: 100dvh; grid-template-rows: auto minmax(0, 1fr); }
  .gx-lb__stage > img { max-height: 58dvh; }
  .gx-lb__info { padding: 16px 16px 20px; }
  .gx-lb__info h3 { font-size: 20px; }
}
@media (max-width: 600px) {
  .gl { padding: 12px 16px 32px; }
  .gl-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
