/* ============================================================
   东吴摄影 · 沉浸式作品廊 (/showcase)
   固定深色「暗房」基调；变量覆盖仅作用于本页 body，不影响全站
   依赖：site.css 变量体系 + showcase.js 的渐进增强类名
   ============================================================ */

/* ── 页面级深色变量（覆盖 site.css :root，含导航/页脚） ── */
.showcase-body {
  --bg: #0c0b0e;
  --bg-elev: #16151a;
  --bg-soft: #1c1b21;
  --text: #ece8df;
  --text-2: #b0a99b;
  --text-3: #7d7769;
  --line: rgba(236, 232, 223, .16);
  --line-soft: rgba(236, 232, 223, .08);
  --accent: #c9a468;
  --accent-strong: #e0c08c;
  --accent-soft: rgba(201, 164, 104, .14);
  --nav-bg: rgba(12, 11, 14, .72);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  background: var(--bg);
  color: var(--text);
}
/* 页面始终深色，暗色切换按钮在此页无意义 */
.showcase-body .nav-dark-toggle { display: none; }
.showcase-page { padding-top: 0; }

/* ── 共用排版 ─────────────────────────────── */
.sc-kicker {
  font-size: .74rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(236, 232, 223, .62);
  margin-bottom: 22px;
}
.sc-kicker--center { text-align: center; }
.sc-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.2;
}
.sc-desc {
  margin-top: 18px;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  letter-spacing: .12em;
  color: rgba(236, 232, 223, .85);
}
.sc-hint {
  margin-top: 46px;
  font-size: .78rem;
  letter-spacing: .3em;
  color: rgba(236, 232, 223, .5);
  animation: scHintFloat 2.6s ease-in-out infinite;
}
@keyframes scHintFloat {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}
.sc-cta { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.sc-cta--center { justify-content: center; }
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-size: .82rem;
  letter-spacing: .2em;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1px solid rgba(236, 232, 223, .5);
  color: #ece8df;
  transition: transform .35s var(--ease-out), background-color .35s ease, color .35s ease, border-color .35s ease;
}
.sc-btn:hover { transform: translateY(-2px); background: #ece8df; color: #17161a; border-color: #ece8df; }
.sc-btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-btn--solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

/* ── 第 1 幕 · 3D 光影长廊 ─────────────────── */
.sc-corridor { position: relative; background: #0c0b0e; }
.sc-corridor-stage { display: none; position: relative; height: 100vh; overflow: hidden; }
.sc-corridor--live .sc-corridor-stage { display: block; }
.sc-corridor--live .sc-corridor-static { display: none; }
#scGl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sc-overlay.sc-on { pointer-events: auto; }
.sc-overlay .sc-title, .sc-overlay .sc-desc { text-shadow: 0 4px 40px rgba(0, 0, 0, .65); }
.sc-corridor-static { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.sc-corridor-static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-corridor-static::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 12, .62), rgba(10, 9, 12, .3) 42%, rgba(10, 9, 12, .68)); }
.sc-corridor-static-inner { position: relative; z-index: 1; padding: 90px 24px; }

/* ── 第 2 幕 · 运动连拍序列帧 ─────────────── */
.sc-seq { position: relative; background: #0c0b0e; }
.sc-seq-stage { display: none; position: relative; height: 100vh; overflow: hidden; }
.sc-seq--live .sc-seq-stage { display: block; }
.sc-seq--live .sc-seq-static { display: none; }
#scSeqCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc-seq-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.sc-seq-caption {
  position: absolute;
  left: clamp(24px, 6vw, 90px);
  bottom: clamp(30px, 8vh, 90px);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .65);
}
.sc-seq-counter {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: clamp(30px, 8vh, 90px);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: .18em;
  color: rgba(236, 232, 223, .85);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.sc-seq-counter i { font-style: normal; margin: 0 .5em; color: var(--accent); }
.sc-seq-static { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.sc-seq-static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-seq-static::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 12, .62), rgba(10, 9, 12, .3) 42%, rgba(10, 9, 12, .68)); }
.sc-seq-static-inner { position: relative; z-index: 1; padding: 90px 24px; }

/* ── 第 3 幕 · 装裱缩放 ────────────────────── */
.sc-mat { position: relative; background: #0c0b0e; }
.sc-mat-stage {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
}
.sc-mat-frame {
  background: #f2ede2;
  padding: clamp(16px, 3vmin, 34px); /* 白边卡纸；JS 动画从 0 到此值 */
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
  line-height: 0;
}
.sc-mat-imgwrap { overflow: hidden; }
.sc-mat-imgwrap img {
  max-width: min(78vw, 900px);
  max-height: 56vh;
  width: auto;
  height: auto;
  object-fit: cover;
}
.sc-mat-caption { text-align: center; margin-top: clamp(24px, 4vh, 44px); }
.sc-mat-caption .sc-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.sc-mat-exif {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  color: rgba(236, 232, 223, .6);
  min-height: 1.2em;
}
.sc-mat-caption .sc-btn { margin-top: 26px; }

/* ── 终幕 · CTA ─────────────────────────── */
.sc-outro {
  padding: 140px 24px 160px;
  text-align: center;
  background: linear-gradient(180deg, #0c0b0e, #121016 55%, #0c0b0e);
}

/* ── 移动端 ─────────────────────────────── */
@media (max-width: 720px) {
  .sc-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .sc-overlay { padding: 80px 20px; }
  .sc-mat-imgwrap img { max-width: 84vw; max-height: 48vh; }
  .sc-seq-caption { bottom: 96px; }
}
