/* ==========================================================================
   晴雨拾光 · 太阳雨光影剧照馆（大结局典藏版 · 琉璃晴昼画报设计系统）
   ========================================================================== */

:root,
html[data-theme="daylight"] {
  --bg-page: #FAF7F0;
  --glass-surface: rgba(255, 253, 248, 0.78);
  --glass-strong: rgba(255, 253, 250, 0.90);
  --glass-border: rgba(24, 34, 41, 0.085);
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(20, 29, 36, 0.085);
  --card-shadow: 0 14px 36px -16px rgba(32, 46, 58, 0.14), 0 2px 8px rgba(32, 46, 58, 0.05);
  --ink-primary: #172128;
  --ink-secondary: #485864;
  --ink-muted: #768692;
  --accent-sun: #C67308;
  --accent-sun-deep: #9A5404;
  --accent-sun-soft: rgba(245, 185, 82, 0.16);
  --accent-sun-border: rgba(198, 115, 8, 0.28);
  --accent-rain: #0369A1;
  --accent-rain-soft: rgba(14, 165, 233, 0.12);
  --accent-rose: #E11D48;
  --accent-rose-soft: rgba(225, 29, 72, 0.12);
  --dock-bg: rgba(255, 253, 249, 0.90);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="rainblue"] {
  --bg-page: #EEF5FB;
  --glass-surface: rgba(243, 249, 255, 0.80);
  --glass-strong: rgba(246, 251, 255, 0.92);
  --glass-border: rgba(14, 65, 108, 0.095);
  --card-bg: rgba(252, 254, 255, 0.88);
  --card-border: rgba(14, 65, 108, 0.095);
  --card-shadow: 0 14px 36px -14px rgba(18, 66, 104, 0.16), 0 2px 8px rgba(18, 66, 104, 0.05);
  --accent-sun: #0284C7;
  --accent-sun-deep: #0369A1;
  --accent-sun-soft: rgba(56, 189, 248, 0.16);
  --accent-sun-border: rgba(2, 132, 199, 0.30);
  --accent-rain: #0369A1;
  --accent-rain-soft: rgba(14, 165, 233, 0.14);
  --dock-bg: rgba(244, 250, 255, 0.92);
}

html[data-theme="golden"] {
  --bg-page: #FDF4E7;
  --glass-surface: rgba(255, 248, 237, 0.80);
  --glass-strong: rgba(255, 250, 242, 0.92);
  --glass-border: rgba(120, 62, 16, 0.10);
  --card-bg: rgba(255, 252, 246, 0.88);
  --card-border: rgba(120, 62, 16, 0.10);
  --card-shadow: 0 14px 36px -14px rgba(110, 58, 12, 0.16), 0 2px 8px rgba(110, 58, 12, 0.05);
  --accent-sun: #B45309;
  --accent-sun-deep: #92400E;
  --accent-sun-soft: rgba(249, 115, 22, 0.15);
  --accent-sun-border: rgba(180, 83, 9, 0.30);
  --accent-rain: #9A3412;
  --accent-rain-soft: rgba(245, 158, 11, 0.15);
  --dock-bg: rgba(255, 249, 240, 0.92);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

[hidden] {
  display: none !important;
}

#sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------------- 顶部琉璃导航栏 ---------------- */
.topbar {
  position: relative;
  z-index: 20;
  max-width: 1380px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.back-home-btn {
  height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--glass-strong);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(24, 34, 41, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.back-home-btn:hover {
  transform: translateY(-1px);
  color: var(--accent-sun-deep);
  border-color: var(--accent-sun-border);
  background: #FFFFFF;
}

.sunrain-orb {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 48%, #38BDF8 100%);
  box-shadow: 0 4px 16px rgba(198, 115, 8, 0.24), inset 0 2px 4px rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.orb-drop {
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(135deg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.brand-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(15.5px, 2.1vw, 19.5px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  white-space: nowrap;
}

.brand-edition-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-sun-deep);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.88), rgba(253, 230, 138, 0.48));
  border: 1px solid var(--accent-sun-border);
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: nowrap;
    padding: max(9px, env(safe-area-inset-top)) 10px 6px;
    gap: 6px;
  }
  .brand-wrap {
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
  }
  .back-home-btn {
    width: 28px;
    height: 28px;
    padding: 0;
  }
  .back-home-label {
    display: none;
  }
  .sunrain-orb {
    width: 24px;
    height: 24px;
  }
  .orb-drop {
    width: 8px;
    height: 8px;
  }
  .brand-title {
    font-size: 13.5px;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-edition-badge {
    display: none;
  }
  .mood-switch {
    padding: 2.5px;
  }
  .mood-btn {
    font-size: 11px;
    padding: 4.5px 7px;
    gap: 3.5px;
  }
  .mood-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 430px) {
  .brand-title-extra {
    display: none;
  }
}

/* 天色切换胶囊 */
.mood-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 12px rgba(24, 34, 41, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mood-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 247, 230, 0.96), rgba(226, 242, 255, 0.96));
  border: 1px solid var(--accent-sun-border);
  box-shadow: 0 2px 8px rgba(198, 115, 8, 0.14);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.mood-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.mood-btn.is-active {
  color: var(--ink-primary);
  font-weight: 600;
}

.mood-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mood-dot--day  { background: linear-gradient(135deg, #FBBF24, #38BDF8); }
.mood-dot--rain { background: linear-gradient(135deg, #0EA5E9, #60A5FA); }
.mood-dot--gold { background: linear-gradient(135deg, #F97316, #FBBF24); }

.desktop-only-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.desktop-only-inline {
  display: none;
}

@media (min-width: 960px) {
  .desktop-only-controls {
    display: flex;
  }
  .desktop-only-inline {
    display: inline-flex;
  }
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg-btn.is-active {
  background: var(--ink-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.pill-btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: var(--glass-strong);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.pill-btn:hover {
  border-color: var(--accent-sun-border);
  background: #FFFFFF;
}

.pill-btn.is-active, .pill-btn--active {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.24);
}

.pill-btn--soft {
  background: var(--accent-sun-soft);
  border-color: var(--accent-sun-border);
  color: var(--ink-primary);
}

/* ---------------- 电影画报感 · 大结局收官序幕 + 3D 巡展光带 ---------------- */
.hero-exhibition {
  position: relative;
  z-index: 5;
  padding-top: 2px;
}

.exhibition-prologue {
  max-width: 1348px;
  margin: 0 auto 6px;
  padding: 10px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.84) 0%, rgba(255, 249, 236, 0.72) 52%, rgba(235, 246, 255, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px -16px rgba(24, 34, 41, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

html[data-theme="rainblue"] .exhibition-prologue {
  background: linear-gradient(135deg, rgba(245, 251, 255, 0.86) 0%, rgba(233, 245, 255, 0.76) 100%);
}

html[data-theme="golden"] .exhibition-prologue {
  background: linear-gradient(135deg, rgba(255, 248, 236, 0.88) 0%, rgba(254, 238, 214, 0.78) 100%);
}

@media (max-width: 1380px) {
  .exhibition-prologue {
    margin-inline: 16px;
  }
}

.prologue-copy {
  min-width: 0;
  flex: 1 1 280px;
}

.prologue-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-sun-deep);
  margin-bottom: 3px;
}

.kicker-pulse {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
  flex-shrink: 0;
}

.prologue-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.prologue-lead strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.prologue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.prologue-btn {
  appearance: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.prologue-btn:hover {
  transform: translateY(-1px);
}

.prologue-btn--gold {
  border: 1px solid rgba(180, 83, 9, 0.24);
  background: linear-gradient(135deg, #E59417 0%, #C67308 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(198, 115, 8, 0.45);
}

.prologue-btn--gold:hover {
  box-shadow: 0 8px 20px -6px rgba(198, 115, 8, 0.56);
}

.prologue-btn--glass {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-primary);
  box-shadow: 0 4px 12px -6px rgba(24, 34, 41, 0.14);
}

.prologue-btn--glass:hover {
  border-color: var(--accent-sun-border);
  background: #FFFFFF;
}

@media (max-width: 760px) {
  .exhibition-prologue {
    margin: 0 12px 4px;
    padding: 9px 12px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .prologue-copy {
    flex: none;
  }
  .prologue-kicker {
    font-size: 10px;
  }
  .prologue-lead {
    font-size: 12px;
    line-height: 1.48;
  }
  .prologue-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .prologue-btn {
    justify-content: center;
    padding: 6.5px 10px;
    font-size: 12px;
  }
}

/* 3D 透视双轨光带 */
.marquee-showcase {
  width: 100%;
  overflow: hidden;
  padding: 5px 0 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.marquee-row {
  overflow: hidden;
  width: 100%;
  transform-style: preserve-3d;
}

.marquee-row[data-dir="left"] {
  transform: rotateX(7deg) rotateZ(-0.35deg);
}

.marquee-row[data-dir="right"] {
  transform: rotateX(-7deg) rotateZ(0.35deg);
}

.marquee-track {
  display: flex;
  align-items: stretch;
  gap: 9px;
  width: max-content;
  will-change: transform;
}

.marquee-row[data-dir="left"] .marquee-track {
  animation: sunrainMarqueeLeft 56s linear infinite;
}

.marquee-row[data-dir="right"] .marquee-track {
  animation: sunrainMarqueeRight 62s linear infinite;
}

.marquee-showcase.is-paused .marquee-track,
.marquee-showcase.is-offscreen .marquee-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .marquee-showcase:hover .marquee-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row[data-dir="left"],
  .marquee-row[data-dir="right"] {
    transform: none;
  }
  .marquee-row .marquee-track {
    animation: none;
  }
}

@keyframes sunrainMarqueeLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes sunrainMarqueeRight {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.mq-tile {
  position: relative;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px -10px rgba(24, 34, 41, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  background: transparent;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

@media (min-width: 768px) {
  .mq-tile {
    height: 94px;
    border-radius: 12px;
  }
}

.mq-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.42) 50%, rgba(165, 216, 255, 0.22) 60%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.mq-tile:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 28px -10px rgba(198, 115, 8, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.92) inset;
}

.mq-tile:hover::after {
  transform: translateX(120%);
}

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

/* ---------------- 吸顶琉璃策展筛选栏 ---------------- */
.spine-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass-strong);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 8px 26px -14px rgba(24, 34, 41, 0.14);
}

.spine-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-scroll-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.collection-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.collection-group {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--card-border);
  gap: 2px;
  width: max-content;
}

.rail-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.orient-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--card-border);
  gap: 2px;
}

.collection-btn,
.orient-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.collection-btn:hover:not(.is-active),
.orient-btn:hover:not(.is-active) {
  color: var(--ink-primary);
  background: rgba(24, 34, 41, 0.045);
}

.col-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.col-dot--hero {
  background: linear-gradient(135deg, #38BDF8, #F59E0B);
  box-shadow: 0 0 0 2.5px rgba(56, 189, 248, 0.22);
}

.col-dot--finale {
  background: linear-gradient(135deg, #EAB308, #D97706);
  opacity: 0.78;
}

.orient-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.72;
}

/* 展区激活：克制高级的墨青深海 / 暮金 / 暖玫瑰配色 */
.collection-btn.is-active {
  background: var(--ink-primary);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(23, 33, 40, 0.34);
}

.collection-btn--hero.is-active .col-dot--hero {
  background: linear-gradient(135deg, #FDE68A, #7DD3FC);
  box-shadow: 0 0 0 2.5px rgba(253, 230, 138, 0.28);
}

.collection-btn--finale.is-active {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px -4px rgba(180, 83, 9, 0.42);
}

.collection-btn--finale.is-active .col-dot--finale {
  opacity: 1;
  background: #FEF08A;
  box-shadow: 0 0 0 2.5px rgba(254, 240, 138, 0.34);
}

.collection-btn--saved {
  color: #9F1239;
}

.collection-btn--saved.is-active {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px -4px rgba(190, 18, 60, 0.38);
}

.orient-btn.is-active {
  background: rgba(23, 33, 40, 0.90);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 3px 10px -3px rgba(23, 33, 40, 0.26);
}

.collection-btn.is-active .orient-count,
.orient-btn.is-active .orient-count {
  opacity: 0.90;
}

.rail-chip-btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6.5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rail-chip-btn:hover {
  background: #FFFFFF;
  color: var(--ink-primary);
  border-color: var(--accent-sun-border);
}

.rail-chip-btn.is-active,
.rail-chip-btn--accent {
  background: var(--accent-sun-soft);
  border-color: var(--accent-sun-border);
  color: var(--accent-sun-deep);
  font-weight: 600;
}

.rail-chip-btn.is-active:hover {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-sun-deep);
  border-color: var(--accent-sun-border);
}

@media (max-width: 959px) {
  .desktop-only-inline {
    display: none !important;
  }
  .spine-inner {
    padding: 7px 10px;
    gap: 6px;
    justify-content: center;
  }
  .collection-scroll-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
  .rail-secondary {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .collection-btn,
  .orient-btn {
    font-size: 11.5px;
    padding: 5.5px 10px;
    gap: 4px;
  }
  .rail-chip-btn {
    font-size: 11.5px;
    padding: 5.5px 9px;
  }
}

/* ---------------- 主舞台：纯图流 / 纯瀑布 ---------------- */
.gallery-main {
  position: relative;
  z-index: 5;
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 8px 20px;
}

.gallery-main:has(.gallery-stage.is-feed) {
  padding-inline: 0;
}

@media (min-width: 900px) and (min-height: 600px) {
  .gallery-main,
  .gallery-main:has(.gallery-stage.is-feed) {
    padding: 20px 24px 28px;
  }
}

.gallery-stage[hidden] {
  display: none !important;
}

/* Mode 1: 纯图长廊（无多余文字卡片，原生比例贴边高清直看） */
.gallery-stage.is-feed {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 899px), (max-height: 599px) {
  .gallery-stage.is-feed {
    max-width: 100%;
    gap: 10px;
  }
  .gallery-stage.is-feed .still-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

@media (min-width: 900px) and (min-height: 600px) {
  .gallery-stage.is-feed {
    gap: 24px;
  }
}

.still-card {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 42px -22px rgba(24, 34, 41, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.24s ease;
}

.still-card:hover,
.still-card.is-in-focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 22px 46px -20px rgba(198, 115, 8, 0.26), 0 0 0 1px rgba(251, 191, 36, 0.42) inset;
}

.still-media-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.still-media-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: rgba(240, 236, 228, 0.45);
  background-size: cover;
  background-position: center;
}

/* 太阳雨彩虹高光扫光（仅鼠标滑过时随光标轻拂过画面，稳重不遮主体） */
.still-media-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      360px circle at var(--glint-x, 50%) var(--glint-y, 40%),
      rgba(255, 249, 225, 0.28) 0%,
      rgba(253, 214, 138, 0.16) 24%,
      rgba(165, 216, 255, 0.14) 46%,
      rgba(232, 180, 255, 0.10) 64%,
      transparent 78%
    );
  mix-blend-mode: screen;
  transition: opacity 0.28s ease;
}

.still-card:hover .still-media-box::after {
  opacity: 1;
}

@media (min-width: 900px) and (min-height: 600px) {
  .gallery-stage.is-feed .still-card.is-portrait-card {
    width: min(100%, calc(min(76vh, 720px) * var(--still-aspect, 0.65)));
    margin-inline: auto;
  }
}

.pill-btn:disabled,
.dock-btn:disabled,
.rail-chip-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.still-media-box img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* 导演取景框角标 */
.viewfinder-corners {
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.still-card.is-in-focus .viewfinder-corners,
.still-card:hover .viewfinder-corners {
  opacity: 1;
}

.vf-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(255, 255, 255, 0.9);
}

.still-card.is-in-focus .vf-corner,
.still-card:hover .vf-corner {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.48));
}
.vf-tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 3px; }
.vf-tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 3px; }
.vf-bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 3px; }
.vf-br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 3px; }

/* 大结局新增剧照极克制左上角标（避开取景角线，仅聚焦/悬停显影，不挡人物面部） */
.still-finale-pill {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 4;
  pointer-events: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FEF3C7;
  background: rgba(24, 34, 41, 0.58);
  border: 1px solid rgba(253, 224, 71, 0.36);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.gallery-stage.is-masonry .viewfinder-corners {
  display: none;
}

.gallery-stage.is-masonry .still-finale-pill {
  top: 7px;
  left: 7px;
  font-size: 9.5px;
  padding: 1.5px 6.5px;
}

.still-card:hover .still-finale-pill,
.still-card.is-in-focus .still-finale-pill {
  opacity: 1;
  transform: translateY(0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 极简四角光学悬浮角标（编号 + 收藏心 + 3D 立体卡入口） */
.still-corner-hud {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.still-card:hover .still-corner-hud,
.still-card.is-in-focus .still-corner-hud,
.still-card:focus-within .still-corner-hud,
.still-card.is-favorited .still-corner-hud {
  opacity: 1;
  transform: translateY(0);
}

.still-corner-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(18, 25, 32, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
}

.still-corner-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.still-corner-fav {
  appearance: none;
  width: 28px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(18, 25, 32, 0.58);
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.still-corner-fav:hover {
  transform: scale(1.08);
  background: rgba(18, 25, 32, 0.78);
}

.still-corner-fav.is-saved {
  background: rgba(225, 29, 72, 0.88);
  border-color: rgba(254, 205, 211, 0.72);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.36);
}

.still-corner-3d {
  pointer-events: none;
  appearance: none;
  border: 1px solid rgba(252, 211, 77, 0.48);
  background: rgba(18, 25, 32, 0.62);
  color: #FFFDF7;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3.5px 9.5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.still-card:hover .still-corner-actions,
.still-card.is-in-focus .still-corner-actions,
.still-card:focus-within .still-corner-actions,
.still-card.is-favorited .still-corner-actions,
.still-card:hover .still-corner-3d,
.still-card.is-in-focus .still-corner-3d,
.still-card:focus-within .still-corner-3d,
.still-card.is-favorited .still-corner-3d {
  pointer-events: auto;
}

.still-card:hover .still-corner-num,
.still-card.is-in-focus .still-corner-num,
.still-card:focus-within .still-corner-num,
.still-card:hover .still-corner-fav,
.still-card.is-in-focus .still-corner-fav,
.still-card:hover .still-corner-3d,
.still-card.is-in-focus .still-corner-3d,
.still-card:focus-within .still-corner-3d {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.still-corner-3d:hover {
  background: rgba(198, 115, 8, 0.88);
  border-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

/* 空状态卡片（如我的收藏为空） */
.still-empty-card {
  max-width: 520px;
  margin: 28px auto;
  padding: 32px 24px;
  border-radius: 22px;
  background: var(--glass-strong);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}

.still-empty-icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--accent-sun);
}

.still-empty-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
}

.still-empty-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* Mode 2: 紧凑纯图瀑布展墙（零文字，紧密贴合保留原始宽高比） */
.gallery-stage.is-masonry {
  display: grid;
  gap: 7px;
  align-items: start;
  perspective: 1200px;
}

@media (min-width: 768px) {
  .gallery-stage.is-masonry {
    gap: 12px;
  }
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

@media (min-width: 768px) {
  .masonry-col {
    gap: 12px;
  }
}

.gallery-stage.is-masonry .still-card {
  border-radius: 12px;
}

.gallery-stage.is-masonry .still-corner-hud {
  left: 6px;
  right: 6px;
  bottom: 6px;
}

.gallery-stage.is-masonry .still-corner-3d {
  padding: 2.5px 7px;
  font-size: 10px;
}

.gallery-stage.is-masonry .still-corner-fav {
  width: 24px;
  height: 22px;
  font-size: 11.5px;
}

/* 渐进加载更多触发条 */
.stage-load-bar {
  margin: 22px auto 4px;
  padding: 12px 18px;
  max-width: 460px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px -14px rgba(24, 34, 41, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-load-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

/* ---------------- 大结局温情尾声 & 站内热门导览 ---------------- */
.exhibition-footer {
  position: relative;
  z-index: 5;
  max-width: 1120px;
  margin: 28px auto 12px;
  padding: 0 16px;
}

.outro-card {
  border-radius: 24px;
  padding: 26px 24px 24px;
  background: linear-gradient(155deg, rgba(255, 253, 248, 0.88) 0%, rgba(252, 248, 240, 0.82) 55%, rgba(238, 247, 255, 0.84) 100%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="rainblue"] .outro-card {
  background: linear-gradient(155deg, rgba(244, 250, 255, 0.90) 0%, rgba(232, 244, 255, 0.84) 100%);
}

html[data-theme="golden"] .outro-card {
  background: linear-gradient(155deg, rgba(255, 248, 237, 0.90) 0%, rgba(253, 237, 213, 0.84) 100%);
}

.outro-head {
  text-align: center;
  margin-bottom: 20px;
}

.outro-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-sun-deep);
  margin-bottom: 6px;
}

.outro-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
}

.outro-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.outro-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.outro-link-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-sun);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.outro-link--avenue { border-left-color: #059669; }
.outro-link--beyond { border-left-color: #D97706; }
.outro-link--quiz   { border-left-color: #E11D48; }
.outro-link--home   { border-left-color: #0284C7; }

.outro-link-card:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 12px 26px -14px rgba(24, 34, 41, 0.20);
}

.outro-link-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.outro-link-name {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.outro-link-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.outro-copyright {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.outro-copyright-text {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.outro-copyright-text strong {
  color: var(--ink-secondary);
  font-weight: 600;
}

.outro-copyright-text a {
  color: var(--accent-sun, #D97706);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.outro-copyright-text a:hover {
  text-decoration: underline;
}

.outro-takedown-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--card-border);
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.outro-takedown-link:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
  border-color: var(--accent-sun, #D97706);
}

@media (max-width: 900px) {
  .outro-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .exhibition-footer {
    padding: 0 12px;
    margin-top: 20px;
  }
  .outro-card {
    padding: 20px 14px 16px;
    border-radius: 18px;
  }
  .outro-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .outro-link-card {
    padding: 12px 13px;
  }
}

/* ---------------- 轻盈琉璃 Toast 提示条 ---------------- */
.gallery-toast {
  position: fixed;
  left: 50%;
  bottom: calc(74px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(92vw, 440px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 25, 34, 0.90);
  border: 1px solid rgba(253, 224, 71, 0.34);
  color: #FEF9E7;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  animation: galleryToastIn 0.22s ease-out;
}

@keyframes galleryToastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- 底部悬浮控制舱（手机单手拇指热区） ---------------- */
.floating-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 8px;
  pointer-events: none;
}

.dock-capsule {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 999px;
  background: var(--dock-bg);
  border: 1px solid rgba(24, 34, 41, 0.11);
  box-shadow: 0 12px 30px rgba(24, 34, 41, 0.16), 0 2px 8px rgba(24, 34, 41, 0.06);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock-capsule::-webkit-scrollbar { display: none; }

.dock-progress {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  padding: 0 5px 0 4px;
  white-space: nowrap;
}

.dock-progress strong {
  color: var(--accent-sun-deep);
  font-size: 12.5px;
}

.dock-btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(24, 34, 41, 0.045);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 9px;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.15s ease, color 0.18s ease;
}

@media (min-width: 768px) {
  .dock-capsule {
    gap: 5px;
    padding: 5px 8px;
  }
  .dock-progress {
    font-size: 11.5px;
    padding: 0 8px 0 6px;
  }
  .dock-btn {
    font-size: 12.5px;
    padding: 8px 12px;
    min-height: 36px;
    gap: 4px;
  }
}

.dock-btn:active {
  transform: scale(0.95);
}

.dock-btn--primary {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFFFFF;
  font-weight: 600;
}

.dock-btn.is-active:not(.dock-btn--primary) {
  background: var(--ink-primary);
  color: #FFFFFF;
}

@media (min-width: 960px) {
  #btn-dock-view,
  #btn-dock-density {
    display: none !important;
  }
}

/* ---------------- 全屏高清灯箱 & 3D 水晶全息藏卡 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 21, 30, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #F8FAFC;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.lightbox.is-open {
  display: flex;
}

.lightbox.is-clean-ui .lb-topbar,
.lightbox.is-clean-ui .lb-bottom,
.lightbox.is-clean-ui .lb-arrow {
  opacity: 0;
  pointer-events: none;
}

.lb-topbar,
.lb-bottom {
  position: relative;
  z-index: 5;
  transition: opacity 0.24s ease;
}

.lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lb-meta-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.lb-index-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FDE68A;
  border: 1px solid rgba(252, 211, 77, 0.36);
  background: rgba(252, 211, 77, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.lb-edition-badge {
  font-size: 11px;
  font-weight: 600;
  color: #FEF3C7;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.44), rgba(180, 83, 9, 0.36));
  border: 1px solid rgba(253, 224, 71, 0.42);
  padding: 2.5px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.lb-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(248, 250, 252, 0.65);
}

.lb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lb-btn {
  appearance: none;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6.5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lb-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.lb-btn:disabled {
  opacity: 0.45;
  cursor: wait;
}

.lb-btn--fav.is-saved {
  background: rgba(225, 29, 72, 0.88);
  border-color: rgba(254, 205, 211, 0.68);
  color: #FFFFFF;
  font-weight: 600;
}

.lb-btn--accent.is-active,
.lb-btn.is-active:not(.lb-btn--fav) {
  background: linear-gradient(135deg, #D97706, #B45309);
  border-color: transparent;
  font-weight: 600;
}

.lb-btn-ico {
  width: 15px;
  height: 15px;
  flex: none;
}

.lb-btn--fav.is-saved .lb-btn-ico {
  fill: currentColor;
}

.lb-btn:focus-visible,
.lb-arrow:focus-visible {
  outline: 2px solid #FDE68A;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .lb-specs {
    display: none;
  }
}

@media (max-width: 767px) {
  .lb-topbar {
    display: contents;
  }

  .lb-meta-top,
  .lb-actions {
    z-index: 5;
    transition: opacity 0.24s ease;
  }

  .lb-meta-top {
    order: 0;
    min-height: 44px;
    padding-right: 54px;
    flex-wrap: nowrap;
  }

  .lb-stage {
    order: 1;
  }

  .lb-actions {
    order: 2;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .lb-bottom {
    order: 3;
  }

  .lb-btn {
    flex: 1 1 0;
    min-width: 44px;
    min-height: 52px;
    padding: 6px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    border-radius: 14px;
  }

  .lb-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
  }

  .lb-btn-ico {
    width: 20px;
    height: 20px;
  }

  .lb-btn--accent:not(.is-active) {
    border-color: rgba(252, 211, 77, 0.5);
    color: #FDE68A;
  }

  #btn-lb-zoom {
    display: none;
  }

  .lb-btn--close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    flex: none;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
  }

  .lightbox.is-clean-ui .lb-meta-top,
  .lightbox.is-clean-ui .lb-actions {
    opacity: 0;
    pointer-events: none;
  }
}

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  margin: 6px 0;
}

.lb-photo-pane {
  --lb-gap: 16px;
  --lb-design-h: 76vh;
  --lb-limit-h: var(--lb-design-h);
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  overflow: hidden;
}

.lb-photo-track,
.lb-photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lb-photo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-photo-slide--prev {
  transform: translate3d(calc(-100% - var(--lb-gap)), 0, 0);
}

.lb-photo-slide--next {
  transform: translate3d(calc(100% + var(--lb-gap)), 0, 0);
}

.lb-photo-box {
  position: relative;
  flex: none;
  width: min(100%, var(--lb-photo-w, 100%), calc(var(--lb-limit-h) * var(--lb-photo-ratio, 1)));
  border-radius: 8px;
  background-color: var(--lb-photo-color, rgba(255, 255, 255, 0.06));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.lb-photo-box::before {
  content: "";
  display: block;
  padding-top: calc(100% / var(--lb-photo-ratio, 1));
}

.lb-photo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.lb-photo-layer.is-loading,
.lb-photo-layer:not([src]) {
  opacity: 0;
}

@supports (height: 1dvh) {
  .lb-photo-pane {
    --lb-design-h: 76dvh;
  }
}

@supports (height: 1cqh) {
  .lb-photo-pane {
    container-type: size;
  }
  .lb-photo-track {
    --lb-limit-h: min(100cqh, var(--lb-design-h));
  }
}

@media (max-width: 767px) {
  .lb-photo-pane {
    --lb-design-h: 70vh;
  }
  .lb-photo-box {
    border-radius: 6px;
  }
  @supports (height: 1dvh) {
    .lb-photo-pane {
      --lb-design-h: 70dvh;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox.is-open {
    animation: lbBackdropIn 0.2s ease-out;
  }
  .lb-img-frame.is-zoom-transition {
    transition: transform 0.24s ease-out;
  }
}

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

.lightbox.is-dismissing {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.lightbox.is-dismissing .lb-topbar,
.lightbox.is-dismissing .lb-meta-top,
.lightbox.is-dismissing .lb-actions,
.lightbox.is-dismissing .lb-bottom,
.lightbox.is-dismissing .lb-arrow,
.lightbox.is-dismissing .lb-loader {
  opacity: 0;
  pointer-events: none;
}

.lightbox.is-dismissing .lb-stage,
.lightbox.is-dismissing .lb-photo-pane,
.lightbox.is-returning .lb-stage,
.lightbox.is-returning .lb-photo-pane {
  overflow: visible;
}

.lightbox.is-dismissing .lb-neighbor,
.lightbox.is-returning .lb-neighbor {
  visibility: hidden;
}

.lb-loader[hidden] {
  display: none;
}

.lb-loader {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 176px;
  padding: 7px 14px 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(253, 230, 138, 0.24);
  color: #FDE68A;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  pointer-events: none;
}

.lb-loader-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.lb-loader-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FBBF24, #FDE68A, #93C5FD);
  transition: width 0.14s ease-out;
}

.lb-loader.is-indeterminate .lb-loader-fill {
  width: 38%;
  animation: lbLoaderSweep 1.1s ease-in-out infinite;
}

@keyframes lbLoaderSweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.45);
  color: #FFFFFF;
  font-size: 26px;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.lb-arrow { touch-action: none; }
.lb-arrow.prev { left: 8px; }
.lb-arrow.next { right: 8px; }

@media (max-width: 767px) {
  .lb-arrow {
    width: 34px;
    height: 44px;
    font-size: 22px;
    background: rgba(15, 23, 42, 0.34);
  }
}

.lb-card3d-pane {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 4px;
  position: relative;
  min-height: 0;
}

.card3d-canvas-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#card-3d-canvas:active { cursor: grabbing; }

.card3d-style-bar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: min(94vw, 440px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3;
  transition: opacity 0.2s ease;
}

.lightbox.is-clean-ui .card3d-style-bar,
.lightbox.is-clean-ui .card3d-tip {
  opacity: 0;
  pointer-events: none;
}

.card-theme-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-theme-dot {
  appearance: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.card-theme-dot:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.45);
}

.card-theme-dot.is-active {
  border-color: #FDE68A;
  box-shadow: 0 0 0 2px rgba(253, 230, 138, 0.32);
}

.card-theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), 0 1px 3px rgba(0, 0, 0, 0.32);
}

.card-theme-swatch--sun {
  background: linear-gradient(135deg, #FFFDF5 0%, #FDE68A 55%, #E08B1B 100%);
}

.card-theme-swatch--rain {
  background: linear-gradient(135deg, #F0F8FF 0%, #8CC8F8 52%, #1D6FB8 100%);
}

.card-theme-swatch--lilac {
  background: linear-gradient(135deg, #FAF5FF 0%, #CBA7F9 52%, #7C3AED 100%);
}

.card-theme-swatch--night {
  background: linear-gradient(135deg, #2C3759 0%, #141B2F 60%, #FBBF24 100%);
}

.card-variant-group[hidden] {
  display: none;
}

.card-variant-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-variant-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(248, 250, 252, 0.76);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.card-variant-btn:hover {
  color: #FFFFFF;
}

.card-variant-btn.is-active {
  background: linear-gradient(135deg, rgba(253, 224, 138, 0.28), rgba(147, 197, 253, 0.24));
  color: #FFF7DF;
  box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.45);
}

.card3d-tip {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #FDE68A;
  font-size: 11.5px;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 640px) {
  .lb-card3d-pane {
    gap: 6px;
  }
  .card3d-style-bar {
    gap: 8px;
    padding: 4px 8px;
  }
  .card-theme-dot {
    width: 32px;
    height: 32px;
  }
  .card3d-tip {
    width: max-content;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
    line-height: 1.38;
    border-radius: 14px;
    padding: 4px 11px;
  }
}

.lb-bottom {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.lb-sub {
  margin: 0;
  font-size: 11.5px;
  color: rgba(248, 250, 252, 0.68);
}

/* ---------------- 桌面端手机真实预览弹窗 ---------------- */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(225, 236, 246, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  gap: 14px;
  padding: 16px;
}

.phone-modal.is-open {
  display: flex;
}

.phone-modal-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--card-shadow);
}

.phone-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.phone-modal-btns {
  display: flex;
  gap: 8px;
}

.phone-frame {
  position: relative;
  width: 410px;
  height: 888px;
  flex-shrink: 0;
  border-radius: 42px;
  padding: 34px 10px 10px;
  background: #1C232B;
  box-shadow: 0 28px 70px rgba(24, 34, 41, 0.34), 0 0 0 2px rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  transform-origin: top center;
  transform: scale(var(--phone-scale, 1));
  transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease, padding 0.28s ease, transform 0.28s ease;
}

.phone-frame.is-landscape {
  width: 888px;
  height: 410px;
  padding: 10px 10px 10px 34px;
  border-radius: 34px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 14px;
  border-radius: 999px;
  background: #0B0F14;
  z-index: 3;
  pointer-events: none;
}

.phone-frame.is-landscape .phone-notch {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 14px;
  height: 78px;
}

.phone-iframe {
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 30px;
  background: var(--bg-page);
}

.phone-frame.is-landscape .phone-iframe {
  width: 844px;
  height: 390px;
  border-radius: 22px;
}

/* Collectible Card Export Modal */
.card-save-modal[hidden] {
  display: none;
}

.card-save-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-save-dialog {
  width: min(680px, 100%);
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(19, 27, 45, 0.96), rgba(11, 16, 28, 0.98));
  border: 1px solid rgba(255, 223, 152, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #f8f5ec;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

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

.card-save-head h3,
.card-save-head strong,
.card-save-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff6df;
}

#btn-save-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8f5ec;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

#btn-save-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 223, 152, 0.45);
}

.card-save-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.save-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(248, 245, 236, 0.72);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.save-tab:hover {
  color: #fff7e2;
  background: rgba(255, 255, 255, 0.06);
}

.save-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 214, 130, 0.24), rgba(140, 210, 255, 0.16));
  border-color: rgba(255, 220, 145, 0.55);
  color: #fff8e6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.card-save-style-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.card-save-theme-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-theme-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 245, 236, 0.8);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.card-theme-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.card-theme-pill.is-active {
  background: rgba(255, 228, 166, 0.16);
  border-color: rgba(255, 220, 145, 0.62);
  color: #FFF8E6;
}

.card-theme-pill .card-theme-swatch {
  width: 14px;
  height: 14px;
}

.card-variant-group--modal {
  margin-left: auto;
}

.card-save-preview-box {
  position: relative;
  min-height: 220px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 224, 158, 0.1), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(122, 198, 255, 0.1), transparent 55%),
    rgba(6, 9, 17, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#card-save-preview {
  display: block;
  max-width: 100%;
  max-height: 46dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  -webkit-touch-callout: default;
  user-select: auto;
}

#card-save-preview[hidden] {
  display: none;
}

#card-save-loading[hidden] {
  display: none;
}

#card-save-loading {
  font-size: 13px;
  color: rgba(255, 240, 204, 0.85);
  letter-spacing: 0.02em;
  padding: 28px 12px;
  text-align: center;
}

.card-save-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(242, 238, 226, 0.72);
  text-align: center;
}

.card-save-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-save-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#card-save-download {
  background: linear-gradient(135deg, #ffe2a4 0%, #ffd07a 48%, #9be2ff 100%);
  color: #171c29;
  box-shadow: 0 10px 26px rgba(255, 208, 122, 0.28);
}

#card-save-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 208, 122, 0.36);
}

#card-save-orig {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f5ec;
}

#card-save-orig:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 520px) {
  .card-save-modal {
    padding: 10px;
  }

  .card-save-dialog {
    padding: 14px 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .card-save-tabs {
    gap: 4px;
  }

  .save-tab {
    font-size: 12px;
    padding: 8px 4px;
  }

  .card-save-style-bar {
    justify-content: center;
    gap: 6px;
  }

  .card-save-theme-group {
    justify-content: center;
    gap: 5px;
  }

  .card-theme-pill {
    padding: 5px 9px 5px 7px;
    font-size: 11.5px;
    gap: 5px;
  }

  .card-variant-group--modal {
    margin-left: 0;
  }

  .card-save-preview-box {
    min-height: 170px;
    padding: 10px;
  }

  #card-save-preview {
    max-height: 40dvh;
  }

  .card-save-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-save-actions a {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
  }
}

body.is-sky-fallback #sky-canvas {
  opacity: 0;
  pointer-events: none;
}

body.is-sky-fallback {
  background:
    radial-gradient(circle at 20% 22%, rgba(254, 240, 138, 0.42) 0%, rgba(254, 240, 138, 0) 52%),
    radial-gradient(circle at 82% 76%, rgba(125, 211, 252, 0.34) 0%, rgba(125, 211, 252, 0) 50%),
    linear-gradient(180deg, #BCE3FD 0%, #F3F8FC 56%, #FCF4E3 100%);
  transition: background 0.6s ease;
}

html[data-theme="rainblue"] body.is-sky-fallback {
  background:
    radial-gradient(circle at 18% 20%, rgba(186, 230, 253, 0.46) 0%, rgba(186, 230, 253, 0) 52%),
    radial-gradient(circle at 84% 78%, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0) 52%),
    linear-gradient(180deg, #ADD8FA 0%, #E4F2FE 56%, #DEEEFC 100%);
}

html[data-theme="golden"] body.is-sky-fallback {
  background:
    radial-gradient(circle at 22% 24%, rgba(253, 186, 116, 0.45) 0%, rgba(253, 186, 116, 0) 54%),
    radial-gradient(circle at 82% 76%, rgba(245, 158, 11, 0.24) 0%, rgba(245, 158, 11, 0) 50%),
    linear-gradient(180deg, #FAD9B8 0%, #FDEEE0 56%, #F4DFCA 100%);
}

/* ---------------- 触屏手感、防背景滚动与轻量化补强 ---------------- */
.lightbox {
  touch-action: none;
  overscroll-behavior: contain;
}

.card-save-dialog {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.gallery-toast.is-leaving {
  opacity: 0;
  transition: opacity 0.18s ease-in;
}

.gallery-toast {
  width: max-content;
}

@media (max-width: 767px) {
  .gallery-toast.is-over-lightbox {
    bottom: calc(100px + max(12px, env(safe-area-inset-bottom)));
  }
  .dock-btn,
  .prologue-btn {
    min-height: 40px;
  }
}

@media (hover: none) {
  .back-home-btn:hover,
  .prologue-btn:hover,
  .mq-tile:hover,
  .still-corner-fav:hover,
  .still-corner-3d:hover {
    transform: none;
  }
  .mq-tile:hover::after {
    transform: translateX(-120%);
  }
}

.collection-btn:active,
.orient-btn:active,
.rail-chip-btn:active,
.prologue-btn:active,
.pill-btn:active,
.back-home-btn:active,
.still-corner-fav:active,
.mq-tile:active {
  transform: scale(0.96);
}

@media (pointer: coarse) {
  .collection-scroll-wrap {
    padding-block: 4px;
    margin-block: -4px;
  }
  .collection-btn,
  .orient-btn,
  .rail-chip-btn,
  .back-home-btn,
  .still-corner-fav,
  .still-corner-3d {
    position: relative;
  }
  .collection-btn::after,
  .orient-btn::after,
  .rail-chip-btn::after,
  .mood-btn::after,
  .back-home-btn::after,
  .still-corner-fav::after,
  .still-corner-3d::after {
    content: "";
    position: absolute;
    inset: -7px 0;
  }
  .back-home-btn::after {
    inset: -8px;
  }
  .still-corner-fav::after {
    inset: -10px -3px -10px -10px;
  }
  .still-corner-3d::after {
    inset: -10px -6px -10px 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .still-corner-fav.is-popping,
  .lb-btn--fav.is-popping .lb-btn-ico {
    animation: galleryFavPop 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes galleryFavPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.32); }
  100% { transform: scale(1); }
}
