/* /present/<deck>/ — 自動播放簡報（spec docs/superpowers/specs/2026-09-26-present-decks-design.md）。
 * 給投影機／電視看：深藍底、品牌漸層（teal #13B0B6 → blue #2563B5）、超大字。
 * 舞台高度固定 1080 設計座標（字級都以舞台為準），present.js 用 transform 等比縮放置中。
 * 舞台寬度預設 1920；視窗比 16:9 寬（手機橫放）時 present.js 把它加寬到最多 2400，背景填滿、
 * 內容排在正中間 1920 寬那一欄——所以版面不准寫死「左邊 96px」這種以 1920 為前提的座標，
 * 要嘛整塊置中（.feat 的 max-width＋margin auto），要嘛用 calc(50% ± …)。
 * 不載外部字型／CDN：系統中文字型（蘋方／思源／正黑）。
 */

:root {
  --teal: #13B0B6;
  --teal-hi: #2FD3CF;
  --blue: #2563B5;
  --blue-hi: #4C8DF0;
  --navy-0: #050C1B;
  --navy-1: #0A1A36;
  --navy-2: #0E2750;
  --ink: #F4F8FC;
  --ink-2: rgba(222, 234, 247, 0.78);
  --ink-3: rgba(222, 234, 247, 0.55);
  --grad: linear-gradient(100deg, #15CDCA 0%, #2563B5 70%, #3D4FD4 100%);
  --grad-text: linear-gradient(100deg, #FFFFFF 0%, #C9F6F4 32%, #5FD6D2 62%, #86A8FF 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #02060D;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; }

/* ---------------------------------------------------------------- 舞台 */

.pz-viewport {
  position: fixed;
  /* 鋪滿整個螢幕（viewport-fit=cover，連瀏海後面都是背景，不留黑邊）。
     瀏海／圓角安全區改由 present.js 的 stageFit 處理：中間 1920 那欄一定落在安全區內（2026-09-26）。 */
  inset: 0;
  overflow: hidden;
  background: #02060D;
}

.pz-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--navy-1);
}

.is-started:not(.hud-awake) .pz-viewport { cursor: none; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.slide > :not(.bg) {
  transform: translateX(calc(var(--dir, 1) * 70px));
  transition: transform 0.48s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.slide.is-active { opacity: 1; }
.slide.is-active > :not(.bg) { transform: none; }
.slide.is-leaving { opacity: 0; }
.slide.is-leaving > :not(.bg) { transform: translateX(calc(var(--dir, 1) * -70px)); }

/* 背景：深藍＋兩團品牌色光暈＋極淡的格線（科技感，但不搶戲）。 */
.bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 700px at 8% 12%, rgba(21, 205, 202, 0.20), transparent 70%),
    radial-gradient(1100px 800px at 100% 100%, rgba(61, 79, 212, 0.30), transparent 70%),
    linear-gradient(155deg, #071429 0%, #0B1F43 55%, #081630 100%);
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(1200px 800px at 50% 40%, #000 20%, transparent 75%);
}
.bg-cover {
  background:
    radial-gradient(1300px 900px at 10% 0%, rgba(21, 205, 202, 0.42), transparent 62%),
    radial-gradient(1200px 1000px at 100% 100%, rgba(61, 79, 212, 0.55), transparent 62%),
    linear-gradient(150deg, #06132A 0%, #0B2350 55%, #0A1733 100%);
}

.pz-logo {
  display: block;
  height: 40px;
  width: auto;
  /* 只有全彩 Logo（public/assets/acpay-logo.png）；深色底上用濾鏡轉成純白版。 */
  filter: brightness(0) invert(1);
}
.pz-logo-lg { height: 84px; }
.pz-logo-md { height: 64px; }

.slide-brand {
  position: absolute;
  left: calc(50% - 864px); /* 中間 1920 欄的左緣＋96px */
  bottom: calc(54px + var(--safe-b, 0px));
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.slide-brand .pz-logo { height: 32px; opacity: 0.75; }
.slide-count {
  margin-left: 8px;
  padding-left: 22px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.slide-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(56px + var(--safe-b, 0px));
  margin: 0;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- 封面 */

.cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}
.cover .pz-logo-lg { margin-bottom: 64px; }
.cover-tag {
  margin: 0;
  padding: 12px 34px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--teal-hi);
  border: 2px solid rgba(47, 211, 207, 0.5);
  border-radius: 999px;
  background: rgba(47, 211, 207, 0.08);
}
.cover-tag:empty { display: none; }
.cover-title {
  margin: 34px 0 20px;
  font-size: 230px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 50px rgba(21, 205, 202, 0.25));
}
.cover-sub {
  margin: 0;
  font-size: 62px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.cover-start {
  margin-top: 84px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 32px 90px 32px 76px;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 24px 70px rgba(21, 205, 202, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  animation: pz-pulse 2.4s ease-out infinite;
  transition: opacity 0.35s ease, transform 0.2s ease;
}
.cover-start:hover { transform: scale(1.03); }
.cover-start:focus-visible { outline: 6px solid rgba(255, 255, 255, 0.7); outline-offset: 8px; }
.cover-start-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 44px;
  padding-left: 8px;
}
.is-started .cover-start { opacity: 0; visibility: hidden; animation: none; }

@keyframes pz-pulse {
  0% { box-shadow: 0 24px 70px rgba(21, 205, 202, 0.35), 0 0 0 0 rgba(47, 211, 207, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
  70% { box-shadow: 0 24px 70px rgba(21, 205, 202, 0.35), 0 0 0 36px rgba(47, 211, 207, 0), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
  100% { box-shadow: 0 24px 70px rgba(21, 205, 202, 0.35), 0 0 0 0 rgba(47, 211, 207, 0), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
}

/* ---------------------------------------------------------------- 分隔頁 */

.divider {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 30px;
}
.divider-part {
  margin: 0 0 46px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--teal-hi);
}
.divider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.04) 70%);
  border: 3px solid rgba(47, 211, 207, 0.6);
  box-shadow: 0 0 0 22px rgba(47, 211, 207, 0.07), 0 0 0 44px rgba(47, 211, 207, 0.035), 0 40px 90px rgba(0, 0, 0, 0.35);
  font-size: 136px;
  line-height: 1;
}
.divider-name {
  margin: 76px 0 26px;
  font-size: 156px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: #fff;
}
.divider-blurb {
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 功能頁 */

.feat {
  position: absolute;
  inset: 0;
  /* 舞台加寬時整塊留在正中間 1920 那欄（左字右影片的間距不跟著拉開）。 */
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 70px 60px 96px;
  gap: 64px;
}
.feat-text { flex: 0 0 560px; min-width: 0; }
.feat-phone { padding-left: 150px; gap: 110px; }
.feat-phone .feat-text { flex-basis: 860px; }

.feat-cat {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 28px 10px 22px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal-hi);
  border: 2px solid rgba(47, 211, 207, 0.4);
  border-radius: 999px;
  background: rgba(47, 211, 207, 0.1);
}
.feat-pitch {
  margin: 46px 0 0;
  font-weight: 800;
}
.feat-lead {
  display: block;
  font-size: 54px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal-hi);
  margin-bottom: 10px;
}
.feat-main {
  display: block;
  font-size: 100px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #fff;
}
.feat-phone .feat-lead { font-size: 64px; }
.feat-phone .feat-main { font-size: 132px; }

.feat-title {
  margin: 44px 0 0;
  padding-left: 24px;
  border-left: 8px solid var(--teal);
  border-image: linear-gradient(#2FD3CF, #3D6FE0) 1;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
}
.feat-phone .feat-title { font-size: 50px; }
.feat-fit {
  margin: 40px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 38px;
  font-weight: 600;
  color: #fff;
}
.feat-phone .feat-fit { font-size: 46px; }
.feat-fit-label {
  padding: 6px 20px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 12px;
  background: var(--grad);
}

.feat-device {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-device::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(21, 205, 202, 0.30), rgba(37, 99, 181, 0.18) 55%, transparent);
  filter: blur(30px);
  pointer-events: none;
}

/* 外框螢幕：底下一張封面圖，輪到這頁時共用的 <video> 疊在上面（載不到就把 video 拿走、露出封面圖）。 */
.dev-slot {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}
.dev-poster,
.dev-slot .dev-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 透明：換 src 後第一格畫面出來之前，看到的是底下的封面圖而不是一塊黑。 */
.dev-video { background: transparent; }
.dev-slot > .dev-missing { position: absolute; inset: 0; }
.dev-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  font-size: 44px;
  font-weight: 600;
  color: var(--ink-2);
  background: linear-gradient(160deg, #0F2549, #0A1630);
}
.dev-missing span { font-size: 120px; }

/* 筆電外框（後台 1280×800 與分段合成影片）。 */
.laptop { position: relative; width: 1060px; }
.laptop-lid {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 30px 30px 10px 10px;
  background: linear-gradient(180deg, #2C3342 0%, #171B24 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 3px 0 rgba(255, 255, 255, 0.10),
    0 50px 100px -24px rgba(0, 0, 0, 0.75);
}
.laptop-lid::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #07090C;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.07);
}
.laptop-screen {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.laptop-base {
  position: relative;
  height: 32px;
  margin: 0 -56px;
  border-radius: 4px 4px 28px 28px / 4px 4px 22px 22px;
  background: linear-gradient(180deg, #EEF1F5 0%, #C7CDD6 40%, #8E97A5 100%);
  box-shadow: 0 34px 50px -14px rgba(0, 0, 0, 0.7), inset 0 -3px 4px rgba(0, 0, 0, 0.18);
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 230px;
  height: 11px;
  margin-left: -115px;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #9EA6B2, #C4CAD3);
}

/* 手機外框（學員手機畫面、阿福）。 */
.phone {
  position: relative;
  padding: 16px;
  border-radius: 76px;
  background: linear-gradient(145deg, #3B4353 0%, #161A22 38%, #0B0E13 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 0 4px #1C212A,
    0 0 0 6px rgba(255, 255, 255, 0.10),
    0 60px 110px -24px rgba(0, 0, 0, 0.8);
}
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 6px;
  border-radius: 3px;
  background: #262C37;
}
.phone::before { left: -11px; top: 210px; height: 96px; box-shadow: 0 130px 0 #262C37; }
.phone::after { right: -11px; top: 280px; height: 150px; }
.phone-screen {
  height: 900px;
  aspect-ratio: 780 / 1688;
  border-radius: 60px;
  overflow: hidden;
  background: #000;
}

/* ---------------------------------------------------------------- 結尾頁 */

.closing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 170px;
  padding-bottom: 20px;
}
.closing-text .pz-logo-md { margin-bottom: 70px; }
/* 2026-10-17 老爸：一律強調「終身免系統軟體費」——結尾頁大標上方一行漸層字 */
.closing-free {
  margin: 0 0 30px;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.closing-title {
  margin: 0;
  font-size: 150px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.closing-sub {
  margin: 34px 0 0;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.closing-sub strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.closing-thanks {
  margin: 56px 0 0;
  font-size: 42px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
}
.closing-replay {
  margin-top: 56px;
  padding: 16px 40px;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.closing-replay:hover { background: rgba(255, 255, 255, 0.14); }
.closing-qr {
  padding: 40px 40px 30px;
  border-radius: 44px;
  background: #fff;
  box-shadow: 0 0 0 14px rgba(47, 211, 207, 0.14), 0 50px 110px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.closing-qr img { display: block; width: 440px; height: 440px; }
.closing-qr p {
  margin: 20px 0 0;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0B2147;
}

.load-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 視窗層控制（不跟舞台縮放） */

/* 沒輪到的共用媒體元素停在這：不能 display:none（有些瀏覽器就不預載／不解碼），縮成 1px 看不到。 */
.pz-media-park {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* 量瀏海／圓角安全區用（present.js 讀它的 padding）。 */
.pz-safe-probe {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  visibility: hidden;
  pointer-events: none;
}

/* 最後手段：瀏覽器還是不准有聲、退成靜音播時的提示（不擋畫面，點它或點畫面就開聲音）。 */
.pz-sound {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  z-index: 22;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(47, 211, 207, 0.55);
  border-radius: 999px;
  background: rgba(8, 16, 32, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.pz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.is-started .pz-progress { opacity: 1; }
.pz-progress-fill {
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #15CDCA, #3D8BFF);
  box-shadow: 0 0 12px rgba(47, 211, 207, 0.6);
}

.pz-paused {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  border-radius: 18px;
  background: rgba(4, 10, 22, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.pz-paused span { font-size: 26px; }
.is-paused .pz-paused { display: flex; }

.pz-hud {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hud-awake .pz-hud { opacity: 1; pointer-events: auto; }
.pz-hud button {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  font-size: 17px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.pz-hud button:hover { background: rgba(255, 255, 255, 0.12); }
.pz-hud .pz-toc-btn { padding: 0 14px; font-weight: 600; }
.pz-hud .pz-step { font-size: 30px; line-height: 1; padding-bottom: 4px; }
.pz-counter {
  padding: 0 8px;
  font-size: 15px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pz-toc {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 6, 14, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pz-toc-panel {
  width: min(460px, 92vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0B1730;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.4);
}
.pz-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pz-toc-head h2 { margin: 0; font-size: 22px; letter-spacing: 0.1em; }
.pz-toc-head button {
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.pz-toc-list {
  flex: 1;
  margin: 0;
  padding: 10px 12px 30px;
  overflow-y: auto;
  list-style: none;
}
.toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  font-size: 17px;
  text-align: left;
  color: var(--ink-2);
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.toc-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.toc-divider {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-hi);
}
.toc-item.is-current {
  color: #fff;
  border-left-color: var(--teal-hi);
  background: rgba(21, 205, 202, 0.16);
}
.toc-ico { width: 28px; text-align: center; flex: none; }
.toc-num {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

.pz-rotate {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16%;
  margin: 0;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.pz-rotate::before { content: '⟳ '; }
@media (orientation: portrait) and (max-width: 760px) {
  .pz-rotate { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide > :not(.bg) { transition: none; }
  .cover-start { animation: none; }
}

/* 手機橫放（高度很小）：控制列縮小一號，少遮一點畫面（2026-09-26）。 */
@media (orientation: landscape) and (max-height: 500px) {
  .pz-hud { gap: 2px; padding: 3px; border-radius: 12px; right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
  .pz-hud button { min-width: 36px; height: 36px; padding: 0 6px; font-size: 15px; }
  .pz-hud .pz-step { font-size: 24px; }
  .pz-counter { font-size: 13px; }
}
