/* ==========================================================================
   溪山之间 · 活态观画舞台与弹窗组件样式
   仅作用于舞台、光点、底栏导览及校色/观画录弹窗，不覆盖宿主页面全局导航与版心
   ========================================================================== */

.stage-mat,
.art-stage.is-living,
.rd__bar,
.living-overlay {
  --living-bg: #161510;
  --living-bg-deep: #11100c;
  --living-surface: #1c1a14;
  --living-ink: #f2eadb;
  --living-ink-soft: #d7cab3;
  --living-ink-dim: #9e937f;
  --living-line: rgba(238, 229, 211, 0.13);
  --living-line-strong: rgba(238, 229, 211, 0.24);
  --living-cinnabar: #cf8873;
  --living-cinnabar-soft: rgba(207, 136, 115, 0.16);
  --living-jade: #9ab3a6;
  --living-jade-soft: rgba(154, 179, 166, 0.16);
  --living-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --living-sans: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* ── 展台装裱垫底 ── */
.stage-mat {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 50% 45%, #1d1b15 0%, #12110c 78%);
  border: 1px solid var(--living-line);
  padding: clamp(10px, 1.4vw, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  overflow: hidden;
  font-family: var(--living-serif);
}

.stage-mat::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(238, 229, 211, 0.05);
  pointer-events: none;
}

/* ── 核心画框舞台 ── */
.rd__stage {
  position: relative;
  max-width: 100%;
  background: #100f0b;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(238, 229, 211, 0.12);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.rd__stage.is-landscape {
  width: 100%;
  max-width: 960px;
  max-height: 66vh;
}

.rd__stage.is-scroll {
  width: 100%;
  max-width: 1000px;
  max-height: 58vh;
}

.rd__stage.is-portrait {
  height: min(66vh, 640px);
  width: auto;
}

.rd__stage.is-tall {
  height: min(68vh, 660px);
  width: auto;
}

.rd__stage:focus-visible {
  outline: 2px solid var(--living-cinnabar);
  outline-offset: 2px;
}

.stage-camera {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.rd__bg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.rd__living {
  --mask-x: 50%;
  --mask-y: 50%;
  --mask-rx: 13%;
  --mask-ry: 13%;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse var(--mask-rx) var(--mask-ry) at var(--mask-x) var(--mask-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.94) 42%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse var(--mask-rx) var(--mask-ry) at var(--mask-x) var(--mask-y), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.94) 42%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.rd__stage.is-awakened .rd__living,
.rd__stage.is-feather-on .rd__living {
  opacity: 1;
}

.rd__halo {
  display: none !important;
}

.rd__calm-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  display: none;
}

.rd__stage.is-awakened .rd__calm-hit {
  display: block;
}

.rd__breath {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgba(154, 179, 166, 0.55), var(--living-cinnabar));
  z-index: 6;
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.rd__stage.is-awakened .rd__breath,
.rd__stage.is-feather-on .rd__breath {
  opacity: 0.9;
}

.rd__ring {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(242, 234, 219, 0.85);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.35);
  z-index: 7;
}

.rd__ring.is-on {
  animation: rdLivingRing 0.95s ease-out forwards;
}

@keyframes rdLivingRing {
  0% { opacity: 0.95; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* ── 画框下方独立笔墨导览条 ── */
.rd__hint {
  position: static;
  width: min(100%, 790px);
  max-width: 100%;
  margin: 0 auto;
  background: rgba(17, 16, 12, 0.84);
  border: 1px solid var(--living-line);
  border-left: 2px solid var(--living-cinnabar);
  color: var(--living-ink-soft);
  font-family: var(--living-serif);
  font-size: 12.5px;
  line-height: 1.75;
  padding: 8px 14px;
  pointer-events: none;
  transition: opacity 0.35s;
}

/* ── 右上角「情境演绎」徽标与校色说明面板 ── */
.rd__stage.is-tall .rd__badge-wrap {
  left: 6px;
  right: 6px;
  top: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.rd__stage.is-tall .rd__badge,
.rd__stage.is-tall .rd__info-toggle {
  font-size: 10px;
  padding: 2px 6px;
  white-space: normal;
}

.rd__badge-wrap {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
  z-index: 8;
}

.rd__badge-wrap.is-on {
  opacity: 1;
  pointer-events: auto;
}

.rd__badge {
  font-family: var(--living-sans);
  background: rgba(17, 16, 12, 0.86);
  color: var(--living-jade);
  border: 1px solid rgba(154, 179, 166, 0.55);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  white-space: nowrap;
}

.rd__badge.is-cinnabar {
  color: var(--living-cinnabar);
  border-color: rgba(207, 136, 115, 0.7);
}

.rd__info-toggle {
  font-family: var(--living-sans);
  background: rgba(17, 16, 12, 0.86);
  color: var(--living-ink-soft);
  border: 1px solid var(--living-line-strong);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}

.rd__info-toggle:hover,
.rd__info-toggle:focus-visible {
  border-color: var(--living-cinnabar);
  color: var(--living-ink);
}

.stage-reset-btn {
  display: none;
  font-family: var(--living-sans);
  background: rgba(17, 16, 12, 0.9);
  color: var(--living-ink);
  border: 1px solid rgba(207, 136, 115, 0.75);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.stage-reset-btn:hover,
.stage-reset-btn:focus-visible {
  border-color: var(--living-cinnabar);
  background: rgba(207, 136, 115, 0.22);
  color: #fff8eb;
}

.rd__stage.is-zoomed .stage-reset-btn {
  display: inline-flex;
  align-items: center;
}

.rd__info-panel {
  position: absolute;
  right: 12px;
  top: 44px;
  background: rgba(17, 16, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--living-ink-soft);
  border: 1px solid var(--living-line-strong);
  font-family: var(--living-sans);
  font-size: 12px;
  line-height: 1.85;
  padding: 12px 14px;
  max-width: min(340px, calc(100% - 24px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9;
}

.rd__info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 72fr) minmax(280px, 28fr);
  gap: 18px;
  align-items: stretch;
}

.gallery-grid .stage-mat {
  min-height: 420px;
}

/* ── 画中交互光点（青玉抠活 / 朱砂细观） ── */
.rd__station {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  cursor: pointer;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  transition: opacity 0.45s;
}

.rd__station:focus-visible {
  outline: 2px solid var(--living-cinnabar);
  outline-offset: 2px;
}

.rd__stage.is-awakened .rd__station {
  opacity: 0;
  pointer-events: none;
}

.rd__station-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 234, 219, 0.92);
  background: rgba(207, 136, 115, 0.56);
  box-shadow: 0 0 10px rgba(207, 136, 115, 0.45);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.rd__station.is-awaken-spot .rd__station-dot,
.rd__station.is-live .rd__station-dot {
  width: 13px;
  height: 13px;
  background: rgba(154, 179, 166, 0.62);
  border-color: var(--living-ink);
  box-shadow: 0 0 13px rgba(154, 179, 166, 0.6);
}

.rd__station.is-active .rd__station-dot {
  transform: scale(1.25);
  border-color: #fff8eb;
  box-shadow: 0 0 16px rgba(242, 234, 219, 0.75);
}

.rd__station:hover .rd__station-dot,
.rd__station:focus-visible .rd__station-dot {
  transform: scale(1.3);
}

.rd__station.is-done:not(.is-active) .rd__station-dot {
  opacity: 0.76;
}

.rd__station.is-done .rd__station-dot {
  background: rgba(207, 136, 115, 0.88);
}

.rd__station.is-awaken-spot.is-done .rd__station-dot,
.rd__station.is-live.is-done .rd__station-dot {
  background: rgba(154, 179, 166, 0.92);
}

.rd__station-pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.2px solid rgba(242, 234, 219, 0.52);
  animation: rdLivingPulse 2.5s ease-out infinite;
}

.rd__station.is-awaken-spot .rd__station-pulse,
.rd__station.is-live .rd__station-pulse {
  border-color: rgba(154, 179, 166, 0.75);
}

.rd__station.is-active .rd__station-pulse {
  border-color: rgba(242, 234, 219, 0.9);
  animation-duration: 1.8s;
}

@keyframes rdLivingPulse {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}

.rd__station-label {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(17, 16, 12, 0.92);
  border: 1px solid var(--living-line);
  color: var(--living-ink);
  font-family: var(--living-sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  opacity: 0.86;
  transition: opacity 0.25s, border-color 0.25s;
  pointer-events: none;
}

.rd__station.is-right-edge .rd__station-label {
  left: auto;
  right: 0;
  transform: none;
}

.rd__station.is-left-edge .rd__station-label {
  left: 0;
  right: auto;
  transform: none;
}

.rd__station.is-top-edge .rd__station-label,
.rd__station.is-below .rd__station-label {
  bottom: auto;
  top: calc(100% + 2px);
}

.rd__station.is-awaken-spot .rd__station-label,
.rd__station.is-live .rd__station-label {
  border-color: rgba(154, 179, 166, 0.45);
}

.rd__station.is-active .rd__station-label {
  opacity: 1;
  border-color: rgba(154, 179, 166, 0.65);
  color: #fff8eb;
}

.rd__station:hover .rd__station-label,
.rd__station:focus-visible .rd__station-label {
  opacity: 1;
}

/* ── 仅看原画态 ── */
.rd__stage.is-original .rd__station,
.rd__stage.is-original .rd__halo,
.rd__stage.is-original .rd__hint,
.rd__stage.is-original .rd__badge-wrap,
.rd__stage.is-original .rd__info-panel,
.rd__stage.is-original .rd__breath,
.stage-mat.is-original .rd__hint,
.art-stage.is-living.is-original .rd__hint {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── 旁侧故事签 ── */
.story-card {
  background: rgba(28, 26, 20, 0.78);
  border: 1px solid rgba(238, 229, 211, 0.13);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  color: #f2eadb;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(238, 229, 211, 0.05);
  pointer-events: none;
}

.story-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(238, 229, 211, 0.13);
  padding-bottom: 10px;
}

.story-kicker {
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9ab3a6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-kicker.is-cinnabar {
  color: #cf8873;
}

.story-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.story-mode-pill {
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #9e937f;
  border: 1px solid rgba(238, 229, 211, 0.13);
  padding: 2px 7px;
}

.vignette-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #100f0b;
  border: 1px solid rgba(238, 229, 211, 0.24);
  overflow: hidden;
}

.vignette-img,
.vignette-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.vignette-vid {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.vignette-box.is-vid-on .vignette-vid {
  opacity: 1;
}

.vignette-mask-note {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: rgba(17, 16, 12, 0.82);
  color: #d7cab3;
  border: 1px solid rgba(238, 229, 211, 0.13);
  padding: 2px 7px;
}

.vignette-ctrl {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  background: rgba(17, 16, 12, 0.86);
  color: #f2eadb;
  border: 1px solid rgba(238, 229, 211, 0.24);
  padding: 3px 8px;
  cursor: pointer;
}

.vignette-ctrl:hover {
  border-color: #9ab3a6;
  color: #9ab3a6;
}

.vignette-expand-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 5;
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: rgba(17, 16, 12, 0.86);
  color: #f2eadb;
  border: 1px solid rgba(238, 229, 211, 0.24);
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.vignette-expand-btn:hover,
.vignette-expand-btn:focus-visible {
  border-color: #cf8873;
  color: #fff8eb;
  background: rgba(207, 136, 115, 0.22);
}

.vignette-modal-card {
  width: min(960px, 85vw);
}

.vignette-modal-media {
  position: relative;
  width: 100%;
  background: #0d0c09;
  border: 1px solid var(--living-line);
  overflow: hidden;
}

.vignette-modal-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #0d0c09;
}

.vignette-modal-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--living-ink-soft);
}

.vignette-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  z-index: 4;
  background: linear-gradient(90deg, #9ab3a6, #cf8873);
}

.story-title {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #f2eadb;
}

.story-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #d7cab3;
}

.story-craft {
  margin: 0;
  padding: 9px 11px;
  background: rgba(17, 16, 12, 0.56);
  border-left: 2px solid #cf8873;
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 11.5px;
  line-height: 1.7;
  color: #9e937f;
}

.story-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 12px 4px;
  color: #d7cab3;
}

.story-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #d7cab3;
}

.story-empty .hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 11.5px;
  color: #9e937f;
}

.dot-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-swatch.is-jade { background: #9ab3a6; }
.dot-swatch.is-cinnabar { background: #cf8873; }

.story-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(238, 229, 211, 0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.story-step-btn {
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid rgba(238, 229, 211, 0.24);
  color: #d7cab3;
  padding: 6px 11px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.story-step-btn:hover {
  border-color: #cf8873;
  color: #f2eadb;
}

.story-count {
  font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 11px;
  color: #9e937f;
  letter-spacing: 0.06em;
}

/* ── 底部导览与控制条 ── */
.rd__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--living-line);
}

.rd__progress {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 240px;
}

.rd__stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px 10px;
  color: var(--living-ink-dim);
  font-family: var(--living-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  min-width: 78px;
  transition: color 0.25s;
}

.rd__stop:hover,
.rd__stop:focus-visible {
  color: var(--living-ink);
}

.rd__stop-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 229, 211, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--living-sans);
  font-size: 10.5px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.rd__stop.is-done {
  color: var(--living-ink-soft);
}

.rd__stop.is-done .rd__stop-circle {
  border-color: var(--living-cinnabar);
  background: var(--living-cinnabar-soft);
  color: var(--living-ink);
}

.rd__stop.is-active {
  color: var(--living-ink);
}

.rd__stop.is-active .rd__stop-circle {
  border-color: var(--living-jade);
  background: var(--living-jade-soft);
  color: var(--living-ink);
}

.rd__stop-line {
  flex: 1;
  height: 1px;
  background: rgba(238, 229, 211, 0.14);
  min-width: 18px;
  margin-bottom: 18px;
}

.rd__stop-line.is-done {
  background: rgba(207, 136, 115, 0.45);
}

.rd__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.rd__btn {
  font-family: var(--living-sans);
  border: 1px solid var(--living-line-strong);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--living-ink-soft);
  min-height: 36px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.rd__btn:hover,
.rd__btn:focus-visible {
  border-color: var(--living-cinnabar);
  color: var(--living-ink);
}

.rd__btn.is-primary {
  border-color: rgba(154, 179, 166, 0.65);
  color: var(--living-ink);
  background: rgba(154, 179, 166, 0.1);
}

.rd__btn.is-primary:hover,
.rd__btn.is-primary:focus-visible {
  border-color: var(--living-jade);
  background: rgba(154, 179, 166, 0.18);
}

.rd__btn.is-active {
  border-color: var(--living-cinnabar);
  color: var(--living-cinnabar);
  background: rgba(207, 136, 115, 0.08);
}

.rd__btn.is-unlocked {
  border-color: rgba(154, 179, 166, 0.8);
  color: var(--living-jade);
  background: rgba(154, 179, 166, 0.12);
}

/* ── 校色核验与观画录弹窗 ── */
.living-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(12, 11, 8, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  color: var(--living-ink);
  font-family: var(--living-serif);
}

.living-overlay.is-open {
  display: flex;
}

.living-modal-card {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #1a1813;
  border: 1px solid var(--living-line-strong);
  padding: 24px 26px;
}

.living-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.living-modal-head h2 {
  margin: 0;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.12em;
  color: var(--living-ink);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--living-sans);
  font-size: 12px;
  margin-bottom: 18px;
}

.audit-table th,
.audit-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--living-line);
  text-align: left;
  color: var(--living-ink-soft);
}

.audit-table th {
  color: var(--living-ink-dim);
  font-weight: 500;
}

.audit-table td.audit-good {
  color: var(--living-jade);
}

.audit-img {
  width: 100%;
  display: block;
  border: 1px solid var(--living-line);
}

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

.trace-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--living-line);
  font-size: 13.5px;
}

.trace-status {
  font-family: var(--living-sans);
  font-size: 11.5px;
  color: var(--living-ink-dim);
}

.trace-status.is-done {
  color: var(--living-jade);
}

.trace-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--living-line);
  background: rgba(17, 16, 12, 0.58);
  font-family: var(--living-sans);
  font-size: 12px;
  color: var(--living-ink-soft);
}

.trace-summary-bar b {
  color: var(--living-jade);
  font-weight: 500;
}

.trace-item-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.trace-item-btn:hover {
  background: rgba(238, 229, 211, 0.04);
}

.trace-foot {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── 响应式适配 ── */
@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid .stage-mat {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .stage-mat {
    padding: 8px;
    min-height: 260px;
  }
  .rd__stage.is-portrait,
  .rd__stage.is-tall {
    height: min(56vh, 460px);
    max-width: 100%;
  }
  .rd__station {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }
  .rd__hint {
    font-size: 11.5px;
    padding: 7px 10px;
    line-height: 1.65;
  }
  .rd__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .rd__progress {
    min-width: 0;
  }
  .rd__stop {
    min-width: 62px;
    padding: 4px 6px;
    font-size: 11px;
  }
  .rd__actions {
    margin-left: 0;
  }
  .living-overlay {
    padding: 10px;
  }
  .living-modal-card {
    padding: 16px 14px;
  }
  .audit-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-camera,
  .stage-media-wrap,
  .rd__living,
  .rd__breath,
  .rd__hint,
  .rd__badge-wrap,
  .rd__station {
    transition: none;
  }
  .rd__ring.is-on,
  .rd__station-pulse {
    animation: none;
  }
  .rd__station-pulse {
    opacity: 0;
  }
}
