/* ==========================================================================
   小羊的小小窝 — 盛夏青春 × 拿不拿实体唱片美学样式表
   ========================================================================== */

:root,
[data-theme="day"] {
  --bg: #fbfaf4;
  --bg-sky-top: #c2e5fb;
  --bg-sky-mid: #e8f5fd;
  --surface: rgba(255, 254, 250, 0.78);
  --surface-strong: rgba(255, 254, 251, 0.96);
  --border: rgba(17, 65, 154, 0.13);
  --border-strong: rgba(17, 65, 154, 0.26);
  --text: #18273c;
  --text-muted: #5d728a;
  --accent: #11419a;
  --sky: #3d9ae2;
  --accent-soft: rgba(61, 154, 226, 0.11);
  --coral: #ee827e;
  --coral-soft: rgba(238, 130, 126, 0.14);
  --grass: #4aa87d;
  --sun: #f0c85a;
  --firefly: #e5ea8d;
  --code-bg: rgba(235, 245, 252, 0.82);
  --shadow: 0 20px 48px -24px rgba(17, 65, 154, 0.2);
  --window-rim: #415d87;
  --shelf-aura: rgba(61, 154, 226, 0.12);
}

[data-theme="night"] {
  --bg: #09183b;
  --bg-sky-top: #050d24;
  --bg-sky-mid: #0c1f49;
  --surface: rgba(13, 28, 63, 0.78);
  --surface-strong: rgba(14, 30, 68, 0.96);
  --border: rgba(128, 192, 240, 0.18);
  --border-strong: rgba(128, 192, 240, 0.36);
  --text: #f5f3ea;
  --text-muted: #93abc9;
  --accent: #7ec2f0;
  --sky: #4a92d0;
  --accent-soft: rgba(126, 194, 240, 0.13);
  --coral: #f09c98;
  --coral-soft: rgba(240, 156, 152, 0.18);
  --grass: #6ecaa0;
  --sun: #f0d47e;
  --firefly: #e5ea8d;
  --code-bg: rgba(7, 16, 40, 0.9);
  --shadow: 0 24px 56px -22px rgba(2, 6, 18, 0.68);
  --window-rim: #7ea8d4;
  --shelf-aura: rgba(126, 194, 240, 0.12);
}

:root {
  --font-serif: "Shippori Mincho", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-display: "Cormorant Garamond", "Shippori Mincho", "Noto Serif SC", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  --reading-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

::selection {
  background: rgba(61, 154, 226, 0.24);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.86;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  transition: background-color 650ms var(--ease), color 480ms var(--ease);
}

/* 盛夏明净天光渐变底 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 580px;
  background: linear-gradient(180deg, var(--bg-sky-top) 0%, var(--bg-sky-mid) 44%, transparent 100%);
  pointer-events: none;
  z-index: -3;
  transition: background 650ms var(--ease);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* 纸张微颗粒画册层 */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* 顶部极细夏日电线天际线 */
.sky-wires-bg {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  height: 220px;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  z-index: -2;
}

/* 顶部阅读进度细线 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--accent), var(--coral));
  z-index: 145;
  opacity: 0;
  transition: opacity 250ms ease, width 75ms linear;
}

.reading-progress.visible {
  opacity: 1;
}

/* 白昼日光水饴柔焦光斑（仅白昼可见） */
.summer-bokeh-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 750ms var(--ease);
}

[data-theme="night"] .summer-bokeh-layer {
  opacity: 0;
}

.bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.85), rgba(145, 212, 250, 0.18) 62%, transparent 74%);
  animation: bokehFloat 16s ease-in-out infinite;
}

.bokeh-1 { width: 140px; height: 140px; left: 5%; top: 14%; animation-delay: 0s; }
.bokeh-2 { width: 92px; height: 92px; right: 11%; top: 10%; animation-delay: -5s; }
.bokeh-3 { width: 180px; height: 180px; right: 22%; top: 58%; opacity: 0.55; animation-delay: -9s; }
.bokeh-4 { width: 68px; height: 68px; left: 26%; top: 68%; animation-delay: -3s; }

@keyframes bokehFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}

/* 终电夜空花火微光与萤火 */
.fireflies-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 850ms var(--ease);
}

[data-theme="night"] .fireflies-layer {
  opacity: 1;
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--firefly);
  box-shadow: 0 0 14px 2.5px rgba(229, 234, 141, 0.62);
  animation: fireflyDrift 11s ease-in-out infinite;
}

.firefly-1 { left: 10%; top: 24%; animation-delay: 0s; }
.firefly-2 { left: 86%; top: 18%; animation-delay: -3.2s; width: 4px; height: 4px; }
.firefly-3 { left: 76%; top: 72%; animation-delay: -6.1s; }
.firefly-4 { left: 16%; top: 76%; animation-delay: -8.5s; width: 3.5px; height: 3.5px; }
.firefly-5 { left: 52%; top: 14%; animation-delay: -4.8s; width: 3px; height: 3px; }

@keyframes fireflyDrift {
  0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0.16; }
  50% { transform: translate(16px, -24px) scale(1.22); opacity: 0.82; }
}

/* ==========================================================================
   杂志刊头信息带 & 粘性导航栏
   ========================================================================== */

.masthead-bar {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}

.masthead-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.36rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background-color 500ms var(--ease), border-color 450ms var(--ease);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.78rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  white-space: nowrap;
}

.brand-seal {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1.4px solid var(--coral);
  color: var(--coral);
  background: var(--coral-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 500;
  transition: transform 350ms var(--ease);
}

.site-brand:hover .brand-seal {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav-link {
  position: relative;
  padding: 0.22rem 0;
  transition: color 300ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.icon-pill-btn,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.35rem 0.76rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: all 320ms var(--ease);
}

.icon-pill-btn:hover,
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.78;
}

[data-theme="day"] .theme-icon-moon,
[data-theme="night"] .theme-icon-sun {
  display: none;
}

/* ==========================================================================
   主容器、刊物级章节编号与动效
   ========================================================================== */

.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.2rem 1.5rem 5.5rem;
}

.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.65rem;
  padding-bottom: 0.78rem;
  border-bottom: 1px solid var(--border);
}

.section-num-bg {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.15rem;
  line-height: 0.85;
  color: var(--sky);
  opacity: 0.34;
  margin-right: 0.15rem;
  user-select: none;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.section-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 250ms ease;
}

a.section-sub:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.hero-stagger {
  animation: curtainReveal 720ms var(--ease) both;
}

.hero-stagger-2 {
  animation: curtainReveal 780ms var(--ease) 110ms both;
}

.hero-stagger-3 {
  animation: curtainReveal 820ms var(--ease) 200ms both;
}

/* ==========================================================================
   首页 Hero — 盛夏青春「三连电车车窗」全景画展
   ========================================================================== */

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.18fr);
  align-items: center;
  gap: 2.8rem;
  padding: 1.6rem 0 2.6rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.25rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 3px rgba(74, 168, 125, 0.22);
}

/* 致敬《花と水飴、最終電車》细蓝底线大标题 */
.hero-title {
  margin: 0 0 0.55rem;
  font-size: clamp(2.35rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.22;
}

.nbuna-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 0.26rem;
  border-bottom: 1.6px solid var(--accent);
}

.nbuna-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 44%;
  height: 1.2px;
  background: var(--coral);
}

.hero-en-caption {
  margin: 0.55rem 0 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--sky);
  letter-spacing: 0.04em;
}

.hero-subtitle {
  margin: 0 0 1.65rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.95;
}

/* 玻璃登车牌数据条 */
.hero-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.ledger-cell {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.ledger-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--accent);
}

.ledger-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 1.28rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  color: #fbfaf4;
  border: 0;
  box-shadow: 0 12px 26px -14px var(--accent);
  transition: all 340ms var(--ease);
}

[data-theme="night"] .btn-primary {
  color: #081534;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px var(--sky);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.54rem 1.08rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: all 320ms var(--ease);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* 三连电车车窗交互展柜（直击《花と水飴、最終電車》灵魂） */
.triple-window-wall {
  position: relative;
  padding: 1.35rem 1.35rem 1.05rem;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.triple-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.triple-window-top-right {
  color: var(--coral);
}

.triple-windows-row {
  display: flex;
  gap: 0.8rem;
  height: 330px;
}

.train-pane {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 24px;
  padding: 5px;
  border: 2px solid var(--window-rim);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  overflow: hidden;
  transition: flex 580ms var(--ease), transform 450ms var(--ease), border-color 350ms ease;
  cursor: pointer;
}

.train-pane.is-featured {
  flex: 1.48;
}

.triple-windows-row:hover .train-pane {
  flex: 0.88;
}

.triple-windows-row .train-pane:hover {
  flex: 1.88;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.train-pane-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--window-rim) 45%, transparent);
  background: var(--bg-sky-mid);
}

.train-pane-glass img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.train-pane:hover .train-pane-glass img {
  transform: scale(1.05);
}

/* 标志性电车车窗双层扶手杠 */
.pane-rails {
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 24%;
  height: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 2px 6px rgba(10, 22, 48, 0.25);
  pointer-events: none;
  opacity: 0.56;
}

.pane-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.78rem 0.72rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 24, 59, 0.78) 100%);
  color: #f8f7f0;
  text-align: left;
  opacity: 0.88;
  transition: opacity 320ms ease;
}

.train-pane:hover .pane-overlay {
  opacity: 1;
}

.pane-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--firefly);
  letter-spacing: 0.1em;
}

.pane-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.triple-window-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}

.triple-motto-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.motto-seal {
  width: 22px;
  height: 22px;
  border: 1.2px solid var(--coral);
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.triple-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   日系信纸诗句条（便箋 · Ruled Stationery Slip）
   ========================================================================== */

.stationery-slip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin: 0.8rem 0 4rem;
  padding: 1.25rem 1.55rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 28px,
    rgba(61, 154, 226, 0.1) 28px,
    rgba(61, 154, 226, 0.1) 29px
  );
  box-shadow: var(--shadow);
}

.stationery-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.postage-stamp {
  flex-shrink: 0;
  width: 52px;
  height: 60px;
  padding: 4px;
  border: 1.5px dashed var(--coral);
  border-radius: 4px;
  background: var(--coral-soft);
  color: var(--coral);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-3deg);
}

.postage-stamp strong {
  font-size: 0.72rem;
  font-weight: 500;
}

.whisper-text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: opacity 240ms ease;
}

.whisper-source {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.whisper-next-btn {
  flex-shrink: 0;
  padding: 0.36rem 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 280ms var(--ease);
}

.whisper-next-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   灵感唱片架：3×2 实体 CD 展柜 + 动态专辑光晕 + 旋转光盘
   ========================================================================== */

.album-shelf-section {
  position: relative;
  margin-bottom: 4.5rem;
  padding: 1.8rem 1.65rem 2.1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px circle at 50% 0%, var(--shelf-aura), transparent 72%),
    var(--surface);
  transition: background 500ms ease;
}

.album-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem 2.1rem;
  padding-top: 0.4rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0 1.45rem 0.95rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.cd-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.cd-disc {
  position: absolute;
  top: 4.5%;
  right: 1%;
  width: 91%;
  height: 91%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 15%, rgba(255, 255, 255, 0.48) 15.5%, rgba(255, 255, 255, 0.48) 17.5%, transparent 18%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    conic-gradient(
      from 30deg,
      rgba(154, 210, 248, 0.92),
      rgba(252, 250, 244, 0.96),
      rgba(238, 166, 162, 0.72),
      rgba(148, 226, 210, 0.8),
      rgba(255, 255, 255, 0.96),
      rgba(154, 210, 248, 0.92)
    );
  border: 1px solid rgba(17, 65, 154, 0.22);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.56), 0 12px 22px -12px rgba(10, 26, 56, 0.45);
  transform: translateX(6%) rotate(0deg);
  transition: transform 560ms var(--ease);
  z-index: 1;
}

.cd-disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19%;
  height: 19%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(93, 114, 138, 0.42);
}

@keyframes discSpin {
  from { transform: translateX(27%) rotate(0deg); }
  to { transform: translateX(27%) rotate(360deg); }
}

.album-card:hover .cd-disc,
.album-card:focus-visible .cd-disc,
.disc-spread:hover .cd-disc,
.modal-jacket-stage.is-active .cd-disc {
  transform: translateX(27%) rotate(45deg);
}

.album-card.is-now-playing .cd-disc {
  animation: discSpin 14s linear infinite;
}

.cd-sleeve {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  box-shadow: 0 18px 34px -16px rgba(14, 28, 52, 0.36);
  transition: transform 440ms var(--ease), box-shadow 440ms var(--ease);
}

.album-card:hover .cd-sleeve,
.album-card:focus-visible .cd-sleeve {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -16px rgba(17, 65, 154, 0.42);
}

.cd-sleeve img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 左侧透明亚克力唱片盒齿纹脊柱 */
.cd-jewel-tray {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.44) 0px,
    rgba(255, 255, 255, 0.44) 2px,
    rgba(20, 42, 78, 0.14) 2px,
    rgba(20, 42, 78, 0.14) 4px
  );
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 5;
}

/* 亚克力斜角高光扫过（支持鼠标跟随动态高光坐标） */
.cd-sheen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--gx, 28%) var(--gy, 24%), rgba(255, 255, 255, 0.36) 0%, transparent 54%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 56%);
  pointer-events: none;
  z-index: 4;
}

/* 日版实体腰封（帯） */
.cd-obi {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 22px;
  padding: 0.46rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 250, 244, 0.88);
  backdrop-filter: blur(5px);
  color: #18273c;
  border-right: 1px solid rgba(17, 65, 154, 0.16);
  writing-mode: vertical-rl;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  line-height: 1;
  z-index: 3;
}

[data-theme="night"] .cd-obi {
  background: rgba(11, 24, 56, 0.86);
  color: #f0f2f8;
  border-right-color: rgba(126, 194, 240, 0.22);
}

.cd-obi-cat {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  opacity: 0.72;
  letter-spacing: 0.05em;
}

.album-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.album-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.album-card-title {
  margin: 0.12rem 0 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.42;
  transition: color 300ms var(--ease);
}

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

.album-card-zh {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.album-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.42rem;
}

.album-swatches {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.album-mood-mini {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--coral);
}

/* ==========================================================================
   精选主推大卡 + 站台时刻表列表
   ========================================================================== */

.featured-post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(0, 1.08fr);
  gap: 2.2rem;
  align-items: center;
  padding: 1.45rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 350ms var(--ease), transform 350ms var(--ease);
}

.featured-post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.featured-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}

.featured-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease);
}

.featured-post-card:hover .featured-cover img {
  transform: scale(1.04);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--coral);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.featured-title {
  margin: 0 0 0.65rem;
  font-size: 1.56rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.38;
}

.featured-excerpt {
  margin: 0 0 1.1rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.88;
}

.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.featured-cta {
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.filter-pill {
  padding: 0.28rem 0.88rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.79rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 280ms var(--ease);
}

.filter-pill:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-pill.active {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--surface);
}

.timetable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.timetable-item {
  border-bottom: 1px solid var(--border);
}

.timetable-link {
  position: relative;
  display: grid;
  grid-template-columns: 60px 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem 0.85rem 1.2rem 1.1rem;
  transition: background-color 320ms var(--ease);
}

.timetable-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 320ms var(--ease);
}

.timetable-link:hover {
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
}

.timetable-link:hover::before {
  transform: scaleY(1);
}

.timetable-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.timetable-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease);
}

.timetable-link:hover .timetable-thumb img {
  transform: scale(1.08);
}

.timetable-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-family: var(--font-mono);
}

.timetable-no {
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.timetable-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.timetable-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 300ms var(--ease);
}

.timetable-link:hover .timetable-title {
  color: var(--accent);
}

.timetable-excerpt {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.timetable-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.timetable-category {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  padding: 0.16rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.timetable-readtime {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   夏末影集 35mm 接触印相与画廊灯箱
   ========================================================================== */

.gallery-preview-section {
  margin-top: 4.2rem;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.55rem;
}

.film-plate {
  text-align: left;
  padding: 0.68rem 0.68rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 420ms var(--ease), border-color 320ms var(--ease);
}

.film-plate.wide {
  grid-column: span 2;
}

.film-plate:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.film-plate-media {
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-sky-mid);
}

.film-plate.wide .film-plate-media {
  aspect-ratio: 16 / 9;
}

.film-plate-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease);
}

.film-plate:hover .film-plate-media img {
  transform: scale(1.04);
}

.film-plate-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.film-plate-title {
  margin: 0.28rem 0 0.16rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
}

.film-plate-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   打孔火车车票碎片卡片
   ========================================================================== */

.fragments-preview-section {
  margin-top: 4.2rem;
}

.fragments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ticket-card {
  position: relative;
  padding: 1.15rem 1.35rem 1.25rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 380ms var(--ease), border-color 320ms var(--ease);
}

.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  top: 46px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}

.ticket-card::before {
  left: -7px;
  border-left-color: transparent;
}

.ticket-card::after {
  right: -7px;
  border-right-color: transparent;
}

.ticket-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.72rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ticket-route {
  color: var(--accent);
}

.ticket-sky {
  color: var(--coral);
}

.ticket-text {
  margin: 0 0 0.8rem;
  font-size: 0.91rem;
  line-height: 1.85;
}

.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   唱片架专题页 (#/discography)
   ========================================================================== */

.timeline-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2.2rem;
  padding: 0.78rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.timeline-jump {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 240ms ease;
}

.timeline-jump:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.discography-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.disc-spread {
  position: relative;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2.6rem;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.disc-spread-no {
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}

.disc-spread-visual {
  padding-right: 1.55rem;
}

.disc-edition-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.disc-palette-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.disc-spread-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.disc-spread-subtitle {
  margin: 0.22rem 0 0.9rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.disc-spread-note {
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
  line-height: 1.88;
  color: var(--text-muted);
  padding-left: 0.95rem;
  border-left: 2px solid var(--coral);
}

.tracklist {
  border-top: 1px solid var(--border);
}

.tracklist-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 240ms ease, color 240ms ease;
}

.tracklist-row:hover,
.tracklist-row.active {
  background: var(--accent-soft);
}

.tracklist-row.active .track-jp {
  color: var(--accent);
  font-weight: 500;
}

.track-no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.track-names {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.65rem;
}

.track-jp {
  font-size: 0.91rem;
  color: var(--text);
}

.track-zh {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.track-dur {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   文章详情页（含首字下沉文学排版 + 右侧粘性 TOC + 表格/代码块）
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading-width)) 215px;
  justify-content: center;
  gap: 3rem;
  align-items: start;
}

.article-layout.no-toc {
  grid-template-columns: minmax(0, var(--reading-width));
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  transition: color 280ms var(--ease);
}

.article-back:hover {
  color: var(--accent);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.article-no {
  color: var(--accent);
}

.article-weather {
  color: var(--coral);
}

.article-title {
  margin: 0;
  font-size: clamp(1.62rem, 3.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.05em;
}

.article-banner {
  margin: 0 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.article-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toc-sidebar {
  position: sticky;
  top: 5.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-link {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color 220ms ease, transform 220ms ease;
}

.toc-link.level-3 {
  padding-left: 0.75rem;
  font-size: 0.76rem;
}

.toc-link:hover,
.toc-link.active {
  color: var(--accent);
  transform: translateX(2px);
}

.markdown-body {
  font-size: 1rem;
  line-height: 1.98;
  letter-spacing: 0.04em;
  color: var(--text);
}

.markdown-body > h1:first-child {
  display: none;
}

/* 文学刊物首字微放大强调 */
.markdown-body > p:first-of-type::first-letter {
  font-size: 1.65em;
  font-weight: 500;
  color: var(--accent);
  padding-right: 0.08em;
}

.markdown-body h2 {
  margin: 2.4rem 0 0.95rem;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  scroll-margin-top: 5.5rem;
}

.markdown-body h3 {
  margin: 1.8rem 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 500;
  scroll-margin-top: 5.5rem;
}

.markdown-body p {
  margin: 0 0 1.25rem;
}

.markdown-body strong {
  font-weight: 600;
}

.markdown-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
}

.markdown-body hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.3rem auto;
  width: 45%;
}

.markdown-body blockquote {
  margin: 1.7rem 0;
  padding: 0.95rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.45rem;
}

.markdown-body li {
  margin-bottom: 0.45rem;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

.table-wrap {
  margin: 1.6rem 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.72rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-wrap th {
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.code-block {
  margin: 1.6rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--code-bg);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.95rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-copy-btn {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--accent);
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
}

.code-copy-btn:hover {
  background: var(--accent-soft);
}

.code-block pre {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  line-height: 1.65;
}

.code-block pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.84rem;
}

.article-signature {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border-strong);
  text-align: right;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.station-nav {
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.station-nav-card {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 320ms var(--ease), transform 320ms var(--ease);
}

.station-nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.station-nav-card.next {
  text-align: right;
}

.station-nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.station-nav-title {
  display: block;
  font-size: 0.92rem;
}

/* ==========================================================================
   归档统计 & 关于页
   ========================================================================== */

.page-header-block {
  margin-bottom: 2.2rem;
}

.page-title {
  margin: 0 0 0.45rem;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.page-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stats-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.95rem;
  line-height: 1.15;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.archive-year-group {
  margin-bottom: 2.2rem;
}

.archive-year {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  letter-spacing: 0.1em;
}

.archive-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.76rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 250ms ease, padding-left 300ms var(--ease);
}

.archive-row:hover {
  color: var(--accent);
  padding-left: 0.85rem;
}

.archive-row-left {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.archive-row-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.about-card,
.now-card {
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-lead {
  font-size: 1.18rem;
  margin-top: 0;
  color: var(--accent);
}

.about-profile-row {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin-bottom: 1.35rem;
}

.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  box-shadow: 0 8px 20px -10px var(--accent);
  flex-shrink: 0;
}

.markdown-body h4 {
  margin: 1.4rem 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--accent);
}

.markdown-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.25rem auto;
  border: 1px solid var(--border);
}

.now-heading {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.now-item {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
}

.now-item:last-child {
  border-bottom: 0;
}

.now-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--coral);
  letter-spacing: 0.12em;
}

.now-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.45rem;
}

.now-value {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.colophon-section {
  margin-top: 2.2rem;
}

.colophon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.color-swatch-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: transform 260ms var(--ease), border-color 260ms ease;
}

.color-swatch-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.color-chip {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.color-name {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
}

.color-hex {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   弹窗系统（歌词本 / 灯箱 / 搜索）
   ========================================================================== */

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 18, 42, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.overlay-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  box-shadow: 0 32px 72px -20px rgba(4, 10, 26, 0.62);
  padding: 2.1rem;
  transform: translateY(10px) scale(0.985);
  transition: transform 340ms var(--ease);
}

.overlay-modal.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 1.15rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms ease;
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.album-modal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.modal-jacket-stage {
  padding-right: 1.5rem;
}

.lightbox-card {
  max-width: 920px;
  padding: 1.3rem 1.3rem 1.45rem;
}

.lightbox-media {
  border-radius: 10px;
  overflow: hidden;
  max-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sky-mid);
}

.lightbox-media img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  display: block;
}

.lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.lightbox-nav {
  display: inline-flex;
  gap: 0.45rem;
}

.search-card {
  max-width: 620px;
  padding: 1.2rem 1.35rem 1.35rem;
  align-self: flex-start;
  margin-top: 7vh;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.search-results {
  margin-top: 0.85rem;
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  transition: background-color 200ms ease;
}

.search-result-item:hover {
  background: var(--accent-soft);
}

.search-result-kind {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--coral);
  flex-shrink: 0;
}

/* ==========================================================================
   页脚、回到顶部、悬浮听歌角标与 Toast
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2.4rem 1.5rem 2.8rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.train-line-ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  opacity: 0.82;
}

.station-tag-mini {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.station-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.2px solid var(--accent);
}

.station-node.active {
  background: var(--accent);
}

.station-node.sky {
  border-color: var(--sky);
  background: var(--sky);
}

.station-node.coral {
  border-color: var(--coral);
  background: var(--coral);
}

.station-rail {
  width: 34px;
  height: 1px;
  background: var(--border-strong);
}

.footer-copy {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
}

.footer-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 82;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text-muted);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 300ms var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.bgm-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 85;
  width: 286px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 0.68rem 0.88rem;
  transition: width 320ms var(--ease);
}

.bgm-widget.collapsed {
  width: auto;
}

.bgm-widget.collapsed .bgm-body {
  display: none;
}

.bgm-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bgm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grass);
  flex-shrink: 0;
}

.bgm-widget.is-playing .bgm-status-dot {
  background: var(--coral);
  animation: pulseSoft 1.8s ease-in-out infinite;
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.bgm-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: auto;
}

.bgm-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.bgm-btn {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, color 200ms ease;
}

.bgm-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.bgm-body {
  margin-top: 0.52rem;
}

.bgm-body-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bgm-cover-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bgm-scroll-ring {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.bgm-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}

.bgm-ring-fill {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transition: stroke-dashoffset 140ms linear;
}

.bgm-cover {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.bgm-widget.is-playing .bgm-cover img {
  animation: miniCoverSpin 18s linear infinite;
}

@keyframes miniCoverSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bgm-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bgm-info {
  min-width: 0;
  flex: 1;
}

.bgm-title {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgm-lyric {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bgm-progress-rail {
  margin-top: 0.52rem;
  height: 1.5px;
  background: var(--border);
  overflow: hidden;
}

.bgm-progress-fill {
  display: block;
  width: 24%;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--accent), var(--coral));
  transition: width 320ms linear;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 16px);
  z-index: 200;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 280ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   响应式适配
   ========================================================================== */

@media (max-width: 1020px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0.9rem 0 2rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, var(--reading-width));
  }

  .toc-sidebar {
    display: none;
  }
}

@media (max-width: 860px) {
  .album-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-post-card,
  .disc-spread,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-strip,
  .stats-ledger,
  .colophon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timetable-link {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.7rem 1rem;
    padding: 1.1rem 0.5rem 1.1rem 0.9rem;
  }

  .timetable-meta,
  .timetable-right {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 680px) {
  .masthead-inner {
    font-size: 0.6rem;
    padding: 0.34rem 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.72rem 1rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
  }

  .app-main {
    padding: 1.5rem 1rem 5rem;
  }

  .triple-windows-row {
    height: 235px;
    gap: 0.45rem;
  }

  .stationery-slip {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-shelf-section {
    padding: 1.35rem 1rem 1.5rem;
  }

  .album-shelf-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .film-plate.wide {
    grid-column: span 1;
  }

  .album-modal-grid,
  .station-nav {
    grid-template-columns: 1fr;
  }

  .station-nav-card.next {
    text-align: left;
  }

  .bgm-widget {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 245px;
  }
}

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

/* ==========================================================================
   View Transitions API 圆形暮色扩散 & 平滑路由转场
   ========================================================================== */

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 520ms;
  animation-timing-function: var(--ease);
}

html.theme-wiping::view-transition-old(root),
html.theme-wiping::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.theme-wiping::view-transition-old(root) {
  z-index: 1;
}

html.theme-wiping::view-transition-new(root) {
  z-index: 9999;
  animation: themeCircleReveal 620ms var(--ease) both;
}

@keyframes themeCircleReveal {
  from {
    clip-path: circle(0px at var(--vt-x, 50%) var(--vt-y, 40px));
  }
  to {
    clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 40px));
  }
}

/* ==========================================================================
   初次进站幕布序曲 & 桌面端细腻跟手光环
   ========================================================================== */

.opening-curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: transform 680ms var(--ease), opacity 480ms ease;
}

.opening-curtain.is-lifted {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.opening-curtain.is-hidden {
  display: none;
}

.curtain-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.curtain-seal {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  background: var(--coral-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.curtain-title {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.curtain-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: transparent;
  pointer-events: none;
  z-index: 250;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(-99px, -99px, 0);
  transition: width 260ms var(--ease), height 260ms var(--ease), background-color 260ms ease, border-color 260ms ease, opacity 240ms ease;
}

.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-hover {
  width: 54px;
  height: 54px;
  background: color-mix(in srgb, var(--sky) 14%, transparent);
  border-color: var(--accent);
  backdrop-filter: blur(2px);
}

.cursor-ring-label {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.cursor-ring.is-hover .cursor-ring-label {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   零依赖 C++ / JS 语法高亮（盛夏画纸配色）
   ========================================================================== */

.tok-com { color: #8295aa; font-style: italic; }
.tok-prep { color: #58a484; }
.tok-kw { color: #2356a8; font-weight: 500; }
.tok-type { color: #2f7db8; }
.tok-str { color: #c8635e; }
.tok-num { color: #c47a3e; }

[data-theme="night"] .tok-com { color: #6e85a3; }
[data-theme="night"] .tok-prep { color: #7ce3d0; }
[data-theme="night"] .tok-kw { color: #87c4f4; }
[data-theme="night"] .tok-type { color: #a5d8ff; }
[data-theme="night"] .tok-str { color: #f2a29d; }
[data-theme="night"] .tok-num { color: #f2cb85; }

/* ==========================================================================
   友情链接（邻站转乘明信片） & 首页邻站速览条
   ========================================================================== */

.home-links-section {
  margin-top: 4rem;
}

.home-links-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.mini-friend-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 300ms var(--ease), border-color 280ms ease;
}

.mini-friend-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.links-group {
  margin-bottom: 2.8rem;
}

.links-group-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.friend-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 360ms var(--ease), border-color 320ms var(--ease);
}

.friend-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.friend-avatar-box {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-friend-pill .friend-avatar-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.friend-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.friend-monogram {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}

.friend-body {
  min-width: 0;
  flex: 1;
}

.friend-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.friend-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}

.friend-card:hover .friend-name {
  color: var(--accent);
}

.friend-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.12rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--coral);
  white-space: nowrap;
}

.friend-desc {
  margin: 0 0 0.48rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.friend-domain {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  opacity: 0.82;
}

.exchange-card {
  margin-top: 2.5rem;
  padding: 1.65rem 1.85rem;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.exchange-title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 500;
}

.exchange-code {
  margin: 0.65rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.exchange-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 860px) {
  .home-links-strip,
  .links-grid,
  .exchange-card {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   十四幕盛夏光影美术馆 × 东京刊物级排版与暗房灯箱 2.0
   ========================================================================== */

.ambient-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    900px circle at 52% 24%,
    var(--ambient-wash, rgba(61, 154, 226, 0.14)),
    transparent 68%
  );
  transition: opacity 720ms var(--ease), background 720ms var(--ease);
}

.ambient-wash.is-active {
  opacity: 1;
}

.curtain-vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

/* 首页 Hero 纵排刊头边栏 & 双模式车窗视差 */
.hero-section.has-tategaki {
  grid-template-columns: 34px minmax(0, 0.92fr) minmax(380px, 1.18fr);
  gap: 2.1rem;
}

.hero-tategaki-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  padding: 0.6rem 0;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
}

.tategaki-text {
  writing-mode: vertical-rl;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  color: var(--accent);
  opacity: 0.78;
}

.tategaki-issue {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  opacity: 0.56;
}

.window-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
}

.window-mode-btn {
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: all 280ms var(--ease);
}

.window-mode-btn:hover {
  color: var(--accent);
}

.window-mode-btn.active {
  background: var(--accent);
  color: #fbfaf4;
}

[data-theme="night"] .window-mode-btn.active {
  color: #09183b;
}

.triple-windows-row.is-swapping {
  opacity: 0.25;
  transform: translateY(3px);
}

.triple-windows-row {
  transition: opacity 220ms ease, transform 280ms var(--ease);
}

.train-pane-glass img {
  transform: scale(1.04) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 620ms var(--ease);
}

.train-pane:hover .train-pane-glass img {
  transform: scale(1.08) translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.pane-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.04) 32%,
    transparent 52%
  );
  pointer-events: none;
}

/* ==========================================================================
   首页「十四幕 · 35mm 夏末画廊胶片长卷」
   ========================================================================== */

.filmstrip-section {
  margin-bottom: 4.5rem;
}

.filmstrip-shell {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(20, 38, 72, 0.04), rgba(20, 38, 72, 0.09)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 1.45rem 0;
  overflow: hidden;
}

[data-theme="night"] .filmstrip-shell {
  background:
    linear-gradient(180deg, rgba(4, 10, 26, 0.72), rgba(7, 17, 42, 0.88)),
    var(--surface);
}

/* 35mm 上下真实齿孔带 */
.filmstrip-shell::before,
.filmstrip-shell::after {
  content: "";
  display: block;
  height: 11px;
  margin: 0 0.8rem;
  opacity: 0.52;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0 12px,
    color-mix(in srgb, var(--accent) 26%, transparent) 12px 24px
  );
  border-radius: 3px;
}

.filmstrip-shell::before {
  margin-bottom: 1.05rem;
}

.filmstrip-shell::after {
  margin-top: 1.05rem;
}

.filmstrip-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.3rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.filmstrip-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.filmstrip-track::-webkit-scrollbar {
  height: 5px;
}

.filmstrip-track::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.film-frame {
  flex: 0 0 326px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.65rem;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 14px 30px -20px rgba(13, 35, 78, 0.25);
  transition: transform 380ms var(--ease), border-color 300ms ease, box-shadow 380ms var(--ease);
}

.film-frame.is-portrait {
  flex: 0 0 232px;
}

.film-frame.is-square {
  flex: 0 0 264px;
}

.film-frame:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 38px -18px rgba(17, 65, 154, 0.34);
}

.film-frame-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-sky-mid);
}

.film-frame.is-portrait .film-frame-media {
  aspect-ratio: 4 / 5;
}

.film-frame.is-square .film-frame-media {
  aspect-ratio: 1 / 1;
}

.film-frame-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 680ms var(--ease);
}

.film-frame:hover .film-frame-media img {
  transform: scale(1.05);
}

.film-frame-tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: rgba(8, 18, 44, 0.72);
  backdrop-filter: blur(6px);
  color: #f8f6ec;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.film-frame-body {
  margin-top: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.film-frame-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

.film-frame-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-frame-artist {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filmstrip-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: transform 240ms var(--ease), background-color 240ms ease;
}

.filmstrip-nav-btn:hover {
  transform: translateY(-50%) scale(1.08);
  border-color: var(--accent);
}

.filmstrip-nav-btn.prev {
  left: 0.65rem;
}

.filmstrip-nav-btn.next {
  right: 0.65rem;
}

.filmstrip-controls-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   「夏末影集 · 十四幕光影美术馆」专题页 (#/gallery)
   ========================================================================== */

.exhibition-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.exhibition-act-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.act-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 280ms var(--ease);
}

.act-pill:hover {
  color: var(--accent);
  border-color: var(--border-strong);
}

.act-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbfaf4;
}

[data-theme="night"] .act-pill.active {
  color: #09183b;
}

.act-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.act-pill.active .act-pill-dot {
  background: currentColor;
}

.exhibition-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.view-switch-btn {
  padding: 0.26rem 0.78rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--text-muted);
  transition: all 240ms var(--ease);
}

.view-switch-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.exhibition-act-epigraph {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--coral);
  background: var(--surface);
}

.epigraph-quote {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.epigraph-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* 非对称 12 列美术馆展墙 */
.exhibition-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.5rem;
}

.ex-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  padding: 0.78rem 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 420ms var(--ease), border-color 320ms ease, box-shadow 420ms var(--ease);
}

.ex-card.is-hero-span {
  grid-column: span 8;
}

.ex-card.is-portrait,
.ex-card.is-square {
  grid-column: span 4;
}

.ex-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.ex-frame {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-sky-mid);
  border: 1px solid var(--border);
}

.ex-card.is-portrait .ex-frame {
  aspect-ratio: 3 / 4;
}

.ex-card.is-square .ex-frame {
  aspect-ratio: 1 / 1;
}

.ex-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 700ms var(--ease);
}

.ex-card:hover .ex-frame img {
  transform: scale(1.04);
}

.ex-plate-badge {
  position: absolute;
  top: 0.68rem;
  left: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 18, 44, 0.72);
  backdrop-filter: blur(8px);
  color: #f8f6ec;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.ex-plaque {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  flex: 1;
}

.ex-plaque-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ex-plaque-title {
  margin: 0.08rem 0 0;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.38;
}

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

.ex-plaque-artist {
  font-size: 0.82rem;
  color: var(--accent);
}

.ex-plaque-caption {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.ex-plaque-foot {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ex-plaque-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.ex-source-pill,
.ex-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: all 240ms var(--ease);
}

a.ex-source-pill:hover,
.ex-track-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.ex-track-btn {
  color: var(--coral);
}

/* 胶片过卷长廊视图 (#/gallery reel 模式) */
.exhibition-reel-wrap {
  padding: 1.65rem 0;
}

.exhibition-reel .film-frame {
  flex: 0 0 420px;
}

.exhibition-reel .film-frame.is-portrait {
  flex: 0 0 290px;
}

.exhibition-reel .film-frame.is-square {
  flex: 0 0 340px;
}

/* ==========================================================================
   暗房策展灯箱 2.0 (左右分栏档案室弹窗)
   ========================================================================== */

.lightbox-dossier {
  max-width: 1120px;
  padding: 1.45rem;
}

.lb-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) 340px;
  gap: 1.5rem;
  align-items: stretch;
}

.lb-stage-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.lb-stage {
  position: relative;
  min-height: 360px;
  max-height: 64vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 48%, var(--lb-aura, rgba(61, 154, 226, 0.16)), transparent 72%),
    var(--bg-sky-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

[data-theme="night"] .lb-stage {
  background:
    radial-gradient(circle at 50% 48%, var(--lb-aura, rgba(126, 194, 240, 0.16)), transparent 72%),
    #061028;
}

.lb-stage img {
  max-width: 100%;
  max-height: 59vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 22px 48px -20px rgba(8, 20, 48, 0.55);
  display: block;
}

.lb-counter-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: rgba(8, 18, 44, 0.74);
  backdrop-filter: blur(8px);
  color: #f8f6ec;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.lb-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 18, 44, 0.62);
  backdrop-filter: blur(8px);
  color: #f8f6ec;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms var(--ease), background-color 220ms ease;
}

.lb-stage-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--accent);
}

.lb-stage-arrow.prev {
  left: 0.85rem;
}

.lb-stage-arrow.next {
  right: 0.85rem;
}

.lb-thumb-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem;
  scrollbar-width: thin;
}

.lb-thumb-btn {
  flex: 0 0 56px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid transparent;
  opacity: 0.55;
  transition: opacity 220ms ease, border-color 220ms ease, transform 220ms var(--ease);
}

.lb-thumb-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.lb-thumb-btn.active {
  opacity: 1;
  border-color: var(--accent);
}

.lb-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lb-act-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--coral);
}

.lb-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.35;
}

.lb-artist {
  font-size: 0.88rem;
  color: var(--accent);
}

.lb-source-box {
  padding: 0.65rem 0.78rem;
  border-radius: 9px;
  border: 1px dashed var(--border-strong);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.65;
  color: var(--text-muted);
  word-break: break-word;
}

.lb-caption {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.82;
  color: var(--text);
}

.lb-palette-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.lb-palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  transition: border-color 220ms ease, transform 220ms var(--ease);
}

.lb-palette-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.lb-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
}

.lb-actions .btn-primary,
.lb-actions .btn-ghost {
  justify-content: center;
  width: 100%;
  font-size: 0.8rem;
}

/* ==========================================================================
   页脚交互盛夏电车线路图 & 光环细节
   ========================================================================== */

.rail-footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.rail-stop {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.16rem 0.36rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  transition: color 240ms ease;
}

.rail-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.4px solid var(--accent);
  background: var(--bg);
  transition: transform 240ms var(--ease), background-color 240ms ease, box-shadow 240ms ease;
}

.rail-node.coral {
  border-color: var(--coral);
}

.rail-stop:hover,
.rail-stop.active {
  color: var(--accent);
}

.rail-stop.active .rail-node {
  background: var(--accent);
  transform: scale(1.22);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.rail-track {
  width: 18px;
  height: 1px;
  background: var(--border-strong);
}

.cursor-ring.has-label {
  width: 58px;
  height: 58px;
}

@media (max-width: 1040px) {
  .hero-section.has-tategaki {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }

  .hero-tategaki-rail {
    display: none;
  }

  .ex-card,
  .ex-card.is-hero-span {
    grid-column: span 6;
  }

  .ex-card.is-portrait,
  .ex-card.is-square {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .lb-dossier-grid {
    grid-template-columns: 1fr;
  }

  .lb-stage {
    max-height: 52vh;
  }

  .lb-stage img {
    max-height: 48vh;
  }
}

@media (max-width: 680px) {
  .exhibition-wall {
    grid-template-columns: 1fr;
  }

  .ex-card,
  .ex-card.is-hero-span,
  .ex-card.is-portrait,
  .ex-card.is-square {
    grid-column: span 1;
  }

  .film-frame {
    flex: 0 0 264px;
  }

  .film-frame.is-portrait {
    flex: 0 0 198px;
  }

  .rail-track {
    display: none;
  }

  .rail-footer-nav {
    border-radius: 14px;
    gap: 0.45rem 0.7rem;
  }
}
