/* ==========================================================================
   造物集 4.0 — 遵循 GEMINI.md 审美规范的纯粹扁平策展样式表
   设计原则：Seamless · Flat · Compact
   硬约束：无渐变、无阴影、无模糊、无发光、无噪点、字重仅 400/500、
           字号不小于 12px、英文句首大写、0.5px 细线、语义化 CSS 变量
   ========================================================================== */

:root {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "STZhongsong", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;

  --nav-h: 64px;
  --container-max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ==================== 光境一：玄墨夜展（温润炭墨中性色阶 + 陶土朱砂点睛） ==================== */
html[data-tone="night"] {
  color-scheme: dark;
  --surface-0: #141413;
  --surface-1: #1c1b19;
  --surface-2: #252421;
  --surface-media: #111110;
  --surface-backdrop: rgba(20, 20, 19, 0.88);

  --text-primary: #ece9e2;
  --text-secondary: #b8b3a8;
  --text-muted: #8a857b;

  --border: rgba(236, 233, 226, 0.14);
  --border-strong: rgba(236, 233, 226, 0.28);

  --accent: #c96442;
  --accent-soft: rgba(201, 100, 66, 0.14);
  --accent-text: #f7f4ee;

  --cta-bg: #ece9e2;
  --cta-text: #141413;
  --cta-hover-bg: #d9d4ca;
}

/* ==================== 光境二：素宣日展（宣纸米白中性色阶 + 陶土朱砂点睛） ==================== */
html[data-tone="paper"] {
  color-scheme: light;
  --surface-0: #f5f2eb;
  --surface-1: #fbf9f5;
  --surface-2: #ece8de;
  --surface-media: #ebe6dc;
  --surface-backdrop: rgba(28, 27, 25, 0.72);

  --text-primary: #1c1b19;
  --text-secondary: #545049;
  --text-muted: #78736a;

  --border: rgba(28, 27, 25, 0.14);
  --border-strong: rgba(28, 27, 25, 0.28);

  --accent: #b54a32;
  --accent-soft: rgba(181, 74, 50, 0.10);
  --accent-text: #fbf9f5;

  --cta-bg: #1c1b19;
  --cta-text: #fbf9f5;
  --cta-hover-bg: #363430;
}

/* ==================== 基础重置与功能性焦点环 ==================== */
*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-0);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, strong, b {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-weight: 400;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* 唯一允许的环状指示：功能性键盘焦点环 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 顶部极简实色阅读进度细线 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 65;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent);
  will-change: transform;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* ==================== 扁平无缝展厅顶栏 ==================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 40;
  background: var(--surface-0);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.25s ease, background-color 0.35s ease;
}

.top-nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 0.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.brand-mark:hover .brand-seal {
  background: var(--accent);
  color: var(--accent-text);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-cn {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand-en {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.tone-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tone-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface-2);
}

.tone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-manage:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface-2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 0.5px solid transparent;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--cta-hover-bg);
}

/* ==================== 第一幕：纯粹扁平立体作品轮播舞台 ==================== */
.hero-stage {
  position: relative;
  min-height: clamp(640px, 92vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--nav-h) + clamp(20px, 3vh, 40px));
  padding-bottom: clamp(20px, 2.8vh, 36px);
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
}

.hero-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: auto;
  padding: 0 var(--gutter);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.36fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

/* 左侧策展墙签 */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy-content.is-entering .stagger-in {
  animation: textRiseFlat 0.48s var(--ease-expo) both;
}

.hero-copy-content.is-entering .stagger-1 { animation-delay: 0ms; }
.hero-copy-content.is-entering .stagger-2 { animation-delay: 40ms; }
.hero-copy-content.is-entering .stagger-3 { animation-delay: 80ms; }
.hero-copy-content.is-entering .stagger-4 { animation-delay: 120ms; }
.hero-copy-content.is-entering .stagger-5 { animation-delay: 155ms; }

@keyframes textRiseFlat {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-kicker-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.hero-kicker-sep {
  width: 18px;
  height: 0.5px;
  background: var(--border-strong);
}

.hero-kicker-cat {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-title-main {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 500;
}

.hero-title-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
}

.hero-desc {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-specs {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-k {
  font-size: 12px;
  color: var(--text-muted);
}

.spec-v {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.spec-divider {
  width: 0.5px;
  height: 28px;
  background: var(--border);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 0.5px solid transparent;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.25s var(--ease-expo);
}

.btn-primary-hero:hover {
  background: var(--cta-hover-bg);
  transform: translateY(-1px);
}

.btn-ghost-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost-hero:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.hero-carousel-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.carousel-play-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface-2);
}

.play-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.carousel-play-btn.is-paused .play-indicator {
  background: var(--text-muted);
}

.carousel-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 右侧：扁平 3D 立体作品轮播台（左右对称按钮 + 零裁切预览） ==================== */
.hero-visual {
  position: relative;
  width: 100%;
  height: clamp(360px, 54vh, 510px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  user-select: none;
  touch-action: pan-y;
}

/* 左右切画按钮：纯粹扁平实底 + 0.5px 细线，精准悬于预览作品左右外侧 */
.carousel-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-primary);
  display: inline-grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-expo);
}

.carousel-side-btn.is-prev {
  left: -4px;
}

.carousel-side-btn.is-next {
  right: -4px;
}

.carousel-side-btn:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--accent);
  transform: translateY(-50%) scale(1.04);
}

.carousel-side-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: min(76%, 632px);
  aspect-ratio: 144 / 100;
  border-radius: var(--radius-card);
  padding: 6px;
  background: var(--surface-1);
  border: 0.5px solid var(--border);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition:
    transform 0.58s var(--ease-expo),
    opacity 0.45s var(--ease-smooth),
    border-color 0.3s ease;
}

/* 纯净 3D 空间位移状态机（零模糊、零阴影） */
.carousel-slide[data-offset="0"] {
  z-index: 12;
  opacity: 1;
  border-color: var(--border-strong);
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
}

.carousel-slide[data-offset="0"]:hover {
  border-color: var(--accent);
}

.carousel-slide[data-offset="1"] {
  z-index: 8;
  opacity: 0.56;
  transform: translate3d(22%, 2%, -175px) scale(0.83) rotateY(-18deg);
}

.carousel-slide[data-offset="1"]:hover {
  opacity: 0.86;
  border-color: var(--border-strong);
  transform: translate3d(20%, 1%, -140px) scale(0.86) rotateY(-13deg);
}

.carousel-slide[data-offset="-1"] {
  z-index: 8;
  opacity: 0.48;
  transform: translate3d(-22%, 2%, -175px) scale(0.83) rotateY(18deg);
}

.carousel-slide[data-offset="-1"]:hover {
  opacity: 0.82;
  border-color: var(--border-strong);
  transform: translate3d(-20%, 1%, -140px) scale(0.86) rotateY(13deg);
}

.carousel-slide[data-offset="2"] {
  z-index: 4;
  opacity: 0.18;
  transform: translate3d(36%, 4%, -330px) scale(0.67) rotateY(-26deg);
}

.carousel-slide[data-offset="-2"] {
  z-index: 4;
  opacity: 0.18;
  transform: translate3d(-36%, 4%, -330px) scale(0.67) rotateY(26deg);
  pointer-events: none;
}

.carousel-slide[data-offset="far"] {
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 8%, -460px) scale(0.55);
  pointer-events: none;
}

.slide-mat {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-media);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 悬停轻浮角标（默认完全隐藏，不遮挡作品预览图任何一角） */
.slide-overlay-bar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.28s var(--ease-expo);
}

.carousel-slide[data-offset="0"]:hover .slide-overlay-bar {
  opacity: 1;
  transform: translateY(0);
}

.slide-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 0.5px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
}

.slide-side-label {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.carousel-slide[data-offset="1"]:hover .slide-side-label,
.carousel-slide[data-offset="-1"]:hover .slide-side-label {
  opacity: 1;
}

/* ==================== 底部画廊胶片索引轨 ==================== */
.hero-rail-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: clamp(16px, 2.2vh, 28px) auto 0;
  padding: 0 var(--gutter);
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  border-top: 0.5px solid var(--border);
  padding-top: 14px;
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0.5px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
}

.rail-item:hover {
  opacity: 1;
  background: var(--surface-1);
  border-color: var(--border);
}

.rail-item.is-active {
  opacity: 1;
  background: var(--surface-1);
  border-color: var(--border-strong);
}

.rail-progress {
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.rail-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

.rail-item.is-active .rail-progress-bar {
  animation: railProgress var(--hero-duration, 2000ms) linear forwards;
}

.hero-stage.is-paused .rail-item.is-active .rail-progress-bar {
  animation-play-state: paused;
}

@keyframes railProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.rail-thumb {
  width: 48px;
  height: 33px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-media);
  border: 0.5px solid var(--border);
}

.rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rail-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  color: var(--accent);
}

.rail-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== 第二幕：不对称杂志画册馆藏墙 ==================== */
.archive-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(56px, 6.5vw, 88px) var(--gutter) 48px;
}

.archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border);
}

.archive-heading .chapter-idx {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.archive-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
}

.archive-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  width: min(320px, 100%);
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.archive-search-wrap:focus-within {
  border-color: var(--accent);
  color: var(--text-primary);
}

.archive-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
}

.archive-search-wrap input::placeholder {
  color: var(--text-muted);
}

.archive-search-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

#search-clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}

#search-clear:hover {
  color: var(--text-primary);
}

/* 分类页签与极简筛选栏 */
.archive-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px 0 clamp(28px, 3.5vw, 44px);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.cat-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.cat-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-expo);
}

.cat-tab:hover {
  color: var(--text-primary);
}

.cat-tab.is-active {
  color: var(--text-primary);
  font-weight: 500;
}

.cat-tab.is-active::after {
  transform: scaleX(1);
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.cat-tab.is-active .cat-count {
  color: var(--accent);
}

.meta-filters {
  display: flex;
  align-items: center;
  gap: 14px;
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.select-wrap select {
  height: 36px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-wrap select:hover {
  border-color: var(--border-strong);
}

.select-wrap select option {
  background: var(--surface-1);
  color: var(--text-primary);
}

.meta-sep {
  width: 0.5px;
  height: 16px;
  background: var(--border);
}

/* ==================== 12 列不对称杂志跨页画册墙 ==================== */
.exhibit-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(18px, 2.2vw, 28px);
}

.exhibit-card {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.55s var(--ease-expo),
    border-color 0.25s ease;
}

.exhibit-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.exhibit-card.is-visible:hover {
  border-color: var(--border-strong);
  transform: translate3d(0, -3px, 0);
}

/* 特展跨页大卡：每 3 件首件横向铺满 12 列 */
.exhibit-card.is-feature {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  align-items: stretch;
}

.card-media {
  position: relative;
  aspect-ratio: 144 / 100;
  overflow: hidden;
  background: var(--surface-media);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibit-card.is-feature .card-media {
  height: 100%;
  min-height: 360px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-placeholder,
.hero-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  padding: 24px;
  text-align: center;
}

.card-hover-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 0.5px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.28s var(--ease-expo);
}

.exhibit-card:hover .card-hover-cta {
  opacity: 1;
  transform: translateY(0);
}

.card-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.card-edit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.card-caption {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 0.5px solid var(--border);
}

.exhibit-card.is-feature .card-caption {
  padding: clamp(24px, 3vw, 40px);
  justify-content: space-between;
  border-top: 0;
  border-left: 0.5px solid var(--border);
}

.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.exhibit-card.is-feature .card-index {
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
}

.card-category {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border);
}

.card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.exhibit-card.is-feature .card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
  margin-top: 6px;
}

.exhibit-card:hover .card-title {
  color: var(--accent);
}

.card-desc {
  margin: 10px 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exhibit-card.is-feature .card-desc {
  margin-top: 14px;
  margin-bottom: 22px;
  font-size: 15px;
  -webkit-line-clamp: 4;
}

.card-footer-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-model-meta {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.card-link-btn {
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.card-link-btn:hover {
  color: var(--text-primary);
}

.card-link-btn.is-primary {
  color: var(--text-primary);
  font-weight: 500;
}

.card-link-btn.is-primary:hover {
  color: var(--accent);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 72px 24px;
  text-align: center;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.empty-state p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==================== 策展尾声 & 极简页脚 ==================== */
.colophon-banner {
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.colophon-seal {
  width: 42px;
  height: 50px;
  border: 0.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
  flex-shrink: 0;
}

.colophon-copy {
  flex: 1;
  min-width: 240px;
}

.colophon-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.colophon-copy p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.colophon-vol {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-outline {
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-0);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.site-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 第三幕：全视口无界体验剧场（完整响应深浅双色变量） ==================== */
.theater-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 10px;
  background: var(--surface-backdrop);
  display: flex;
  align-items: stretch;
  justify-content: center;
  animation: fadeIn 0.2s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.theater-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0.5px solid var(--border-strong);
  background: var(--surface-0);
  color: var(--text-primary);
  animation: shellRise 0.28s var(--ease-expo) both;
}

@keyframes shellRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.theater-bar {
  height: 50px;
  flex: 0 0 50px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: var(--surface-1);
  border-bottom: 0.5px solid var(--border);
}

.theater-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.theater-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px 0 6px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-0);
  color: var(--text-secondary);
  font-size: 13px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.theater-back:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface-2);
}

.theater-divider {
  width: 0.5px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

.theater-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.theater-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theater-model {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.theater-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--surface-0);
  border: 0.5px solid var(--border);
}

.mode-tab {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mode-tab:hover {
  color: var(--text-primary);
}

.mode-tab.active {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 500;
}

.theater-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface-0);
  color: var(--text-secondary);
  display: inline-grid;
  place-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
}

.icon-btn.close-x:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.theater-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: var(--surface-media);
}

.theater-live-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.theater-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface-0);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.theater-loader.is-done {
  opacity: 0;
}

.loader-seal {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 0.5px solid var(--accent);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}

.theater-loader span {
  font-size: 13px;
  color: var(--text-muted);
}

.theater-media-wrap {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: grid;
  place-items: center;
}

.theater-img,
.theater-video {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
}

.theater-audio-card {
  width: min(520px, 92%);
  padding: 28px;
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.theater-audio-card audio {
  width: 100%;
}

/* 灵感手记（双栏典藏页） */
.theater-notes-pane {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface-0);
}

.notes-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.notes-aside {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notes-cover-box {
  aspect-ratio: 144 / 100;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--surface-media);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notes-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
}

.notes-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.notes-meta-list {
  border-top: 0.5px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.notes-meta-row dt {
  color: var(--text-muted);
}

.notes-meta-row dd {
  margin: 0;
  color: var(--text-primary);
  text-align: right;
  font-family: var(--font-mono);
}

.notes-main {
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
}

.notes-scroll-head {
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notes-scroll-head strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.notes-copy-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-0);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.notes-copy-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.notes-prompt-pre {
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
}

.notes-empty-card {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ==================== 第四幕：策展工作台抽屉（/manage） ==================== */
.editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--surface-backdrop);
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease both;
}

.editor-panel {
  width: min(540px, 100vw);
  height: 100%;
  background: var(--surface-0);
  border-left: 0.5px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  animation: drawerSlide 0.3s var(--ease-expo) both;
}

@keyframes drawerSlide {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.editor-head {
  padding: 20px 24px 16px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-eyebrow {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 2px;
}

.editor-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.editor-form {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 0.5px solid var(--border);
  margin-bottom: 12px;
}

.src-tab {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  color: var(--text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.src-tab.active {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 500;
}

.drop-area {
  padding: 22px 16px;
  border-radius: var(--radius-card);
  border: 0.5px dashed var(--border-strong);
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-area.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop-area strong {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.drop-area span {
  font-size: 12px;
  color: var(--text-muted);
}

.drop-btns {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.btn-ghost-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-0);
  font-size: 12px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost-sm:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.f-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-field > span {
  font-size: 13px;
  color: var(--text-secondary);
}

.f-field > span em {
  font-style: normal;
  color: var(--accent);
}

.f-field input,
.f-field select {
  width: 100%;
  height: 36px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-1);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.f-field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-strong);
  background: var(--surface-1);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  resize: vertical;
  min-height: 96px;
  line-height: 1.65;
  transition: border-color 0.2s ease;
}

.f-field input:focus,
.f-field select:focus,
.f-field textarea:focus {
  border-color: var(--accent);
}

.f-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cover-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 0.5px dashed var(--border-strong);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cover-drop:hover {
  border-color: var(--accent);
}

.cover-drop img {
  width: 72px;
  height: 50px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface-media);
  flex-shrink: 0;
}

.cover-drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cover-drop-text strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.cover-drop-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.f-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 0.5px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
}

.editor-footer {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-danger-ghost {
  margin-right: auto;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 0.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
}

.btn-danger-ghost:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-solid {
  height: 38px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 0.5px solid transparent;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-solid:hover {
  background: var(--cta-hover-bg);
}

.btn-solid:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ==================== 轻雅提示吐司 ==================== */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 0.5px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  animation: toastIn 0.25s var(--ease-expo) both;
}

.toast.is-error {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 响应式自适应 ==================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; height: clamp(260px, 40vh, 400px); }
  .carousel-slide { width: min(84%, 620px); }
  .exhibit-card.is-feature { grid-template-columns: 1fr; }
  .exhibit-card.is-feature .card-caption { border-left: 0; border-top: 0.5px solid var(--border); }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-aside { position: static; }
}

@media (max-width: 720px) {
  .nav-link, .brand-en, .theater-model, .carousel-hint { display: none; }
  .carousel-side-btn { width: 34px; height: 34px; }
  .carousel-side-btn.is-prev { left: 4px; }
  .carousel-side-btn.is-next { right: 4px; }
  .hero-rail { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .hero-rail::-webkit-scrollbar { display: none; }
  .rail-item { flex: 0 0 176px; }
  .exhibit-card { grid-column: span 12; }
  .theater-backdrop { padding: 0; }
  .theater-shell { border-radius: 0; border: 0; }
  .theater-bar { grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 50px; padding: 8px 10px; }
  .theater-mode-switch { grid-column: 1 / -1; justify-self: center; }
  .f-grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
