/* 下班讀讀會｜網站樣式
 *
 * 配色：60 / 30 / 10 法則，三個主色，取自「書困專案」Podcast logo
 *   60% 淺灰白 --paper #F6F4F1  背景（logo 的底色）
 *   30% 炭黑   --ink   #1A1817  文字、深色區塊（logo 的線條）｜淺灰白 × 炭黑 對比 16.1:1（AAA）
 *   10% logo 紅 --coral #FF5F46 按鈕、大字重點、裝飾          ｜logo 紅 × 炭黑 對比 5.9:1（大字 AAA、小字 AA）
 * ⚠ 規則：
 *   - 小字一律用炭黑／淺灰白。logo 紅只用在「大字」（24px 以上，或 19px 以上粗體）、色塊和裝飾
 *   - logo 紅「不能」當淺灰白底上的文字（對比只有 2.7）
 * 其他顏色都是這三色的深淺變化。
 */

:root {
  --paper: #F6F4F1;
  --ink: #1A1817;
  --coral: #FF5F46;

  --paper-2: #EBE9E6;      /* 淺灰白的深一階，用在交錯區塊 */
  --ink-soft: #4C4A49;     /* 淺灰白底上的次要文字（8.0:1） */
  --paper-soft: #C6C4C1;   /* 炭黑底上的次要文字（10:1） */
  --line: rgba(26, 24, 23, .14);   /* 裝飾用分隔線 */
  --line-strong: #73716F;  /* 輸入框邊框（4.4:1，符合非文字元件 3:1） */

  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(26, 24, 23, .45);
  --display: 'Huninn', 'Noto Sans TC', 'PingFang TC', sans-serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--coral); color: var(--ink); }

/* 鍵盤操作時看得到焦點框 */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--coral); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 500;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }

/* ─── 捲動進度條 ─── */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60; height: 4px; width: 100%;
  background: var(--coral); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ─── 頁首 ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(26, 24, 23, .5); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 70px; transition: height .3s var(--ease); }
.site-header.scrolled .wrap { height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink);
  display: grid; place-items: center; flex: none;
}
.brand-mark i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px 3px rgba(255, 95, 70, .6); }
.brand-name { font-family: var(--display); font-size: 22px; letter-spacing: .06em; }
.brand-tag { font-size: 14px; color: var(--ink-soft); }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: 16px; }
.nav a { position: relative; text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* ─── 按鈕 ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 19px/1.2 var(--sans); text-decoration: none; cursor: pointer; /* 19px 粗體＝大字，logo 紅按鈕也能達 AAA */
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(255, 95, 70, .9); }
.btn-coral:hover { box-shadow: 0 14px 30px -10px rgba(255, 95, 70, 1); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 12px 26px -12px rgba(26, 24, 23, .8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-ghost { color: var(--paper); border-color: var(--paper); }
.dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite; display: none;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── 首頁大圖區 ─── */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 56px 0 112px;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-glow {
  position: absolute; right: -10%; top: 50%; width: 900px; height: 900px; transform: translate(0, -50%);
  background: radial-gradient(circle, rgba(255, 95, 70, .28) 0%, rgba(255, 95, 70, .08) 35%, transparent 65%);
  pointer-events: none; z-index: 1;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: .08em; color: var(--paper-soft); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--coral); }
.hero h1 { font-size: clamp(46px, 5.8vw, 88px); letter-spacing: .04em; line-height: 1.15; white-space: nowrap; }
.hero h1 .char { display: inline-block; }
.hero h1 .hl { color: var(--coral); }
.hero .lead { margin-top: 28px; max-width: 30em; font-size: 18px; color: var(--paper-soft); text-wrap: pretty; }
.hero .lead p { text-wrap: pretty; }
.hero .lead p + p { margin-top: 12px; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .next {
  margin-top: 44px; display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  padding: 12px 20px; border-radius: 14px; border: 1px solid rgba(250, 246, 238, .25);
  font-size: 16px; color: var(--paper);
}
.hero .next b { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.hero .next b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .15em; color: var(--paper-soft); text-decoration: none;
}
.scroll-cue span { width: 2px; height: 36px; background: linear-gradient(var(--coral), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 燈光裡的浮塵 */
.dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dust i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); opacity: 0; }

/* ─── 導讀過的書：卡片牌堆 ─── */
.deck-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.deck {
  --cw: 330px; --ch: 430px;
  position: relative; width: var(--cw); height: var(--ch);
  list-style: none; margin: 0; padding: 0; cursor: pointer;
}
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 22px;
  padding: 30px 28px 22px;
  box-shadow: 8px 8px 0 var(--ink);
  transform-origin: 50% 90%;
  /* 沒有 JavaScript 時的預設排列：用 --d（離最上面第幾張）決定位置 */
  transform: translate(calc(var(--d) * 12px), calc(var(--d) * -12px)) rotate(calc(var(--d) * 3deg)) scale(calc(1 - var(--d) * .04));
  z-index: calc(50 - var(--d));
  will-change: transform;
}
.card.is-buried { opacity: 0; }
.card::before { /* 紙膠帶 */
  content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px;
  background: var(--coral); opacity: .92; transform: rotate(-4deg); border-radius: 3px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-no {
  font-family: var(--display); font-size: 26px; line-height: 1;
  background: var(--coral); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 12px; padding: 8px 12px 6px;
}
.card-kicker { font-size: 14px; color: var(--ink-soft); letter-spacing: .08em; }
.card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 16px 0 14px; }
.card-media { display: flex; align-items: center; gap: 18px; }
.card-cover { /* 書封多半是立體書照片（已去背），不加框，用柔和陰影 */
  flex: none; width: 104px; height: 150px; object-fit: contain; object-position: center;
  filter: drop-shadow(0 10px 12px rgba(26, 24, 23, .28));
}
.card-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-tags li { font-size: 14px; font-weight: 500; padding: 3px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; }
.card-title { font-family: var(--display); font-size: 24px; line-height: 1.35; letter-spacing: 0; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.card-title .nobr { white-space: nowrap; }
.card-title.is-long { font-size: 22px; line-height: 1.45; }
.card-title.is-xlong { font-size: 18px; line-height: 1.5; }
.card-sub {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; gap: 10px; padding-top: 14px;
  border-top: 2px dashed var(--line-strong); font-size: 14px; color: var(--ink-soft);
}
.bubble { width: 28px; height: 24px; flex: none; color: var(--ink); } /* 對話框＋向上箭頭，像聊天的「送出」鈕 */
.deck-meta { display: flex; align-items: center; gap: 18px; color: var(--paper-soft); font-size: 16px; }
.deck-count { font-family: var(--display); font-size: 26px; color: var(--paper); min-width: 76px; text-align: center; }
.deck-count b { color: var(--coral); font-weight: 400; }

/* ─── 區塊共用 ─── */
section { padding: 112px 0; position: relative; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: var(--paper); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; letter-spacing: .16em; font-weight: 500; color: var(--ink-soft); margin-bottom: 14px;
}
.section-kicker::before { content: ""; width: 32px; height: 3px; border-radius: 2px; background: var(--coral); transform-origin: left; transform: scaleX(var(--kick, 1)); }
.dark .section-kicker { color: var(--paper-soft); }
.section-title { font-size: clamp(32px, 5vw, 48px); }
.section-intro { margin-top: 18px; color: var(--ink-soft); max-width: 36em; font-size: 18px; }
.section-intro p + p { margin-top: 12px; }
.dark .section-intro { color: var(--paper-soft); }

/* ─── 怎麼進行 ─── */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps-line {
  position: absolute; left: 8%; right: 8%; top: 54px; height: 3px; background: var(--line); z-index: 0;
}
.steps-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.step {
  position: relative; z-index: 1; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ink); }
.step-no {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--coral); font-family: var(--display); font-size: 28px;
}
.step h3 { font-size: 26px; margin: 20px 0 10px; }
.step > p { color: var(--ink-soft); font-size: 17px; }
.step > p + p { margin-top: 8px; }

.fit-wrap { margin-top: 72px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.fit-title { font-size: 30px; }
.fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.fit li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line); font-size: 17px;
}
.fit li b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; font-size: 15px; margin-top: 2px; }

/* ─── HOW IT WORKS：復古電視 ─── */
.how-copy .section-title { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.how-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.tv-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tv { --tv-w: 400px; position: relative; width: var(--tv-w); padding-top: 70px; }

/* 兔耳天線 */
.tv-antenna { position: absolute; left: 50%; top: 0; width: 0; height: 80px; }
.tv-antenna::after { /* 天線底座 */
  content: ""; position: absolute; left: -26px; bottom: -8px; width: 52px; height: 22px;
  border-radius: 26px 26px 6px 6px; background: var(--ink);
}
.tv-antenna i {
  position: absolute; bottom: 4px; left: -2px; width: 4px; height: 92px; border-radius: 2px;
  background: var(--ink); transform-origin: 50% 100%;
}
.tv-antenna i:nth-child(1) { rotate: -32deg; }
.tv-antenna i:nth-child(2) { rotate: 26deg; height: 84px; }
.tv-antenna i::before { /* 天線頭 */
  content: ""; position: absolute; top: -6px; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral);
}
.tv.is-tuning .tv-antenna i:nth-child(1) { animation: antenna-a .6s ease-in-out; }
.tv.is-tuning .tv-antenna i:nth-child(2) { animation: antenna-b .6s ease-in-out; }
@keyframes antenna-a { 0%, 100% { rotate: -32deg; } 30% { rotate: -40deg; } 60% { rotate: -27deg; } }
@keyframes antenna-b { 0%, 100% { rotate: 26deg; } 30% { rotate: 34deg; } 60% { rotate: 21deg; } }

/* 機身 */
.tv-body {
  position: relative; display: grid; grid-template-columns: 1fr 76px; gap: 14px;
  padding: 18px; border-radius: 26px;
  background: linear-gradient(160deg, #34302d 0%, var(--ink) 55%);
  box-shadow: 10px 10px 0 var(--coral), inset 0 2px 0 rgba(255, 255, 255, .08), 0 30px 50px -24px rgba(26, 24, 23, .6);
}

/* 螢幕（映像管的弧度） */
.tv-screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  border-radius: 16% / 20%; background: #0c0b0b;
  box-shadow: 0 0 0 6px #0f0e0d, 0 0 0 8px #3d3834, inset 0 0 40px rgba(0, 0, 0, .9);
}
.tv-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: saturate(1.08) contrast(1.06);
}
.tv-slide.is-on { opacity: 1; }
.tv-static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.tv-screen.is-switching .tv-static { opacity: .9; }
.tv-screen.is-switching .tv-slide.is-on { animation: tv-roll .35s steps(6); }
@keyframes tv-roll {
  0% { translate: 0 0; filter: brightness(2) contrast(1.4); }
  40% { translate: 0 -8%; }
  70% { translate: 0 5%; filter: brightness(1.4); }
  100% { translate: 0 0; filter: saturate(1.08) contrast(1.06); }
}
.tv-scan { /* 掃描線＋暗角 */
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
  animation: tv-flicker 4s infinite steps(1);
}
@keyframes tv-flicker { 0%, 97%, 100% { opacity: 1; } 98% { opacity: .85; } }
.tv-glare { /* 玻璃反光 */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .04) 30%, transparent 45%);
}
.tv-osd { /* 頻道號碼 */
  position: absolute; top: 10%; right: 11%; font: 700 20px/1 ui-monospace, 'SF Mono', Menlo, monospace;
  color: #7CFF9A; text-shadow: 0 0 6px rgba(124, 255, 154, .8), 2px 2px 0 rgba(0, 0, 0, .6);
  letter-spacing: .08em; opacity: 0; transition: opacity .3s;
}
.tv-osd.is-shown { opacity: 1; }
.tv-dot { /* 關機時中間那個光點 */
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px 6px rgba(255, 255, 255, .8); opacity: 0; pointer-events: none;
}
/* 關機：畫面壓成一條線 → 縮成一個點 → 消失 */
.tv-screen.is-off .tv-slide, .tv-screen.is-off .tv-scan { animation: crt-off .5s forwards; }
.tv-screen.is-off .tv-dot { animation: crt-dot .9s forwards; }
.tv-screen.is-off .tv-osd { opacity: 0; }
@keyframes crt-off {
  0% { scale: 1 1; filter: brightness(1); }
  55% { scale: 1 .006; filter: brightness(4); }
  100% { scale: 0 .006; filter: brightness(4); opacity: 0; }
}
@keyframes crt-dot { 0%, 45% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }
/* 開機：從一條線展開 */
.tv-screen.is-booting .tv-slide.is-on { animation: crt-on .5s ease-out; }
@keyframes crt-on {
  0% { scale: 0 .006; filter: brightness(4); }
  45% { scale: 1 .006; filter: brightness(4); }
  100% { scale: 1 1; filter: brightness(1); }
}

/* 右側控制面板 */
.tv-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.tv-knob {
  width: 58px; height: 58px; border-radius: 50%; border: 3px solid #0f0e0d; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 35% 30%, #fbfaf8, #d9d6d2 70%);
  box-shadow: 0 4px 0 #0f0e0d, inset 0 -3px 6px rgba(0, 0, 0, .15);
  position: relative; transition: rotate .45s var(--ease);
}
.tv-knob-mark { position: absolute; left: 50%; top: 6px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--coral); }
.tv-knob:active { translate: 0 2px; box-shadow: 0 2px 0 #0f0e0d; }
.tv-knob-label { font-size: 12px; letter-spacing: .15em; color: var(--paper-soft); }
.tv-speaker {
  flex: 1; width: 44px; min-height: 60px; margin: 6px 0; border-radius: 8px;
  background: repeating-linear-gradient(0deg, rgba(246, 244, 241, .28) 0 2px, transparent 2px 7px);
}
.tv-power {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid #0f0e0d; cursor: pointer; padding: 0;
  background: var(--coral); box-shadow: 0 0 10px rgba(255, 95, 70, .8), 0 3px 0 #0f0e0d;
  transition: box-shadow .3s, background .3s;
}
.tv-power[aria-pressed="false"] { background: #5a2a22; box-shadow: 0 3px 0 #0f0e0d; }
.tv-power:active { translate: 0 2px; }
.tv-knob:focus-visible, .tv-power:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* 腳架 */
.tv-legs { display: flex; justify-content: space-between; padding: 0 64px; }
.tv-legs i { width: 12px; height: 26px; background: var(--ink); border-radius: 0 0 4px 4px; }
.tv-legs i:first-child { transform: skewX(14deg); }
.tv-legs i:last-child { transform: skewX(-14deg); }

.tv-caption { font-family: var(--display); font-size: 20px; margin-top: 8px; }
.tv-caption b { font-weight: 400; background: var(--ink); color: var(--paper); padding: 1px 10px; border-radius: 6px; margin-right: 2px; }
.tv-hint { font-size: 12.5px; color: #6F6D6B; letter-spacing: .02em; } /* 刻意淡一點，對比 4.6:1 仍達 AA */

/* ─── 場次 ─── */
.sessions { margin-top: 48px; display: grid; gap: 20px; }
.session {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px;
  padding: 18px 28px 18px 18px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), border-color .4s;
}
.session:hover { transform: translateY(-4px); border-color: var(--ink); }
.session-date {
  background: var(--ink); color: var(--paper); border-radius: 16px; text-align: center; padding: 18px 10px;
}
.session-date .md { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--coral); }
.session-date .wd { font-size: 15px; margin-top: 8px; }
.session-info h3 { font-size: 26px; }
.session-theme {
  display: inline-block; margin-bottom: 8px; padding: 3px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 17px;
}
.session-theme::before { content: "✦ "; color: var(--coral); }
.session-address { margin-top: 4px; font-size: 16px; color: var(--ink-soft); }
.session-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; color: var(--ink-soft); }
.session-meta a { color: var(--ink); font-weight: 500; }
.session-note { margin-top: 10px; font-size: 16px; }
.closed-tag { font-size: 15px; color: var(--ink-soft); border: 1.5px dashed var(--line-strong); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.empty { margin-top: 32px; padding: 32px; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); text-align: center; }

/* ─── 報名表 ─── */
.form-card {
  margin-top: 40px; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 24px; padding: 44px; box-shadow: var(--shadow);
}
.field { margin-bottom: 28px; }
.field label { display: block; font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.req, .opt { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 500; padding: 1px 10px; border-radius: 999px; vertical-align: 2px; }
.req { background: var(--ink); color: var(--paper); }
.opt { border: 1px solid var(--line-strong); color: var(--ink-soft); }
.hint { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 14px 16px;
  font: 17px/1.5 var(--sans); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #6b7280; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231A1817' stroke-width='2.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--coral); }
input:user-invalid, select:user-invalid { border-style: dashed; }
.at-input { position: relative; }
.at-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.at-input input { padding-left: 34px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.form-foot .btn { padding: 16px 40px; font-size: 18px; }
.privacy { font-size: 15px; color: var(--ink-soft); }

.pay-box { margin-top: 24px; border-left: 10px solid var(--coral); padding: 22px 24px; background: var(--ink); color: var(--paper); border-radius: 16px; font-size: 17px; line-height: 2; }
.pay-box b { font-weight: 700; }

/* ─── 關於我們 ─── */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text { margin-top: 28px; font-size: clamp(20px, 2.4vw, 25px); line-height: 1.75; }
.about-text p + p { margin-top: 20px; }
.contact-card { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 32px; }
.contact-card h3 { font-size: 24px; margin-bottom: 18px; color: var(--coral); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.contact-list .k { color: var(--paper-soft); font-size: 15px; }
.contact-list a { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; text-decoration-thickness: 2px; word-break: break-all; }

/* ─── Podcast ─── */
.podcast-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.podcast .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.eps { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.eps a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid rgba(250, 246, 238, .45); font-size: 15px; color: var(--paper); text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.eps a .arrow { font-size: 13px; opacity: .7; transition: transform .25s var(--ease); }
.eps a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }
.eps a:hover .arrow { transform: translate(2px, -2px); opacity: 1; }
.eps-label { width: 100%; color: var(--paper-soft); font-size: 15px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 8px; height: 220px; }
.wave i { width: 10px; border-radius: 6px; background: var(--coral); height: 20%; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ─── Podcast：黑膠唱片 ─── */
.record-player { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.record {
  --size: 260px;
  position: relative; width: calc(var(--size) * 1.45); height: var(--size);
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.record-sleeve {
  position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); z-index: 2;
  border-radius: 6px; overflow: hidden; background: #F0F0F0;
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08), 10px 10px 0 rgba(255, 95, 70, .9);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.record-sleeve img { width: 100%; height: 100%; display: block; }
.record-disc {
  position: absolute; top: 4%; left: 4%; width: calc(var(--size) * .92); aspect-ratio: 1;
  border-radius: 50%; z-index: 1;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255, 255, 255, .06) 17.5% 18%, transparent 18.5%),
    repeating-radial-gradient(circle, #141312 0 2px, #22201F 2px 3px),
    #141312;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8);
  translate: 22% 0;
  transition: translate .8s var(--ease);
}
.record-disc::after { /* 唱片表面的反光 */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .12) 25%, transparent 32% 70%, rgba(255, 255, 255, .08) 75%, transparent 82%);
}
.record-label {
  position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden; border: 3px solid var(--coral);
}
.record-label img { width: 100%; height: 100%; object-fit: cover; display: block; }
.record-label::after { /* 中間的軸心孔 */
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper);
}
.record-disc { animation: spin-disc 3.2s linear infinite; animation-play-state: paused; }
.record:hover .record-disc { translate: 30% 0; }
.record:hover .record-sleeve { transform: rotate(-2deg); }
.record.is-playing .record-disc { translate: 46% 0; animation-play-state: running; }
.record.is-playing .record-sleeve { transform: rotate(-4deg) translateX(-6px); }
.record-player .wave { height: 64px; }
.record-player .wave i { animation-play-state: paused; opacity: .5; transition: opacity .4s; }
.record-player.is-playing .wave i { animation-play-state: running; opacity: 1; }
.record-hint { font-size: 15px; color: var(--paper-soft); }
/* 滑出用 translate、旋轉用 rotate 兩個獨立屬性，唱片才會「在原地轉」而不是繞圈 */
@keyframes spin-disc { to { rotate: 360deg; } }
/* 點封面：封面轉一整圈，中間稍微放大（用 rotate／scale 屬性，不會蓋掉原本的傾斜） */
.record-sleeve.is-spinning { animation: cover-spin .9s cubic-bezier(.45, 0, .2, 1); }
@keyframes cover-spin {
  0%   { rotate: 0deg;   scale: 1; }
  50%  { scale: 1.08; }
  100% { rotate: 360deg; scale: 1; }
}

/* ─── 頁尾 ─── */
.site-footer { background: var(--ink); color: var(--paper-soft); padding: 48px 0 56px; font-size: 15px; border-top: 1px solid rgba(250, 246, 238, .12); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer .brand-name { color: var(--paper); font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; color: var(--paper); }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; }

/* ─── 訊息頁（收驗證信／驗證成功／錯誤） ─── */
.message-page { padding: 88px 0 110px; }
.message-page h1 { font-size: clamp(34px, 6vw, 52px); }
.message-page .lead { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.message-page .lead b { color: var(--ink); }
.summary { margin-top: 32px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.summary dl { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 10px 18px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 500; }
.summary ol li + li { margin-top: 6px; }
.notice { position: relative; padding: 16px 20px 16px 52px; border-radius: 14px; margin-top: 22px; font-size: 16px; border: 2px solid var(--ink); background: var(--paper); }
.notice::before { position: absolute; left: 18px; top: 14px; font-size: 18px; font-weight: 700; }
.notice.ok::before { content: "✓"; }
.notice.tip::before { content: "💡"; font-size: 16px; }
.notice.err { border-style: dashed; }
.notice.err::before { content: "⚠"; }
.errors { margin: 20px 0 0; padding: 18px 22px 18px 44px; border: 2px dashed var(--ink); border-radius: 14px; }
.errors li::marker { content: "⚠  "; }

/* ─── 捲動動畫：只有 JavaScript 和 GSAP 都成功載入時才先隱藏，避免內容消失 ─── */
.anim [data-reveal], .anim .hero-in { visibility: hidden; }

/* ─── 手機版 ─── */
@media (max-width: 960px) {
  .hero { padding: 44px 0 96px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 64px; }
  .hero h1 { font-size: clamp(46px, 11vw, 88px); }
  .podcast-grid, .about, .fit-wrap { grid-template-columns: 1fr; gap: 32px; }
  .how-top { grid-template-columns: 1fr; gap: 48px; }
  .wave { height: 120px; }
}
@media (max-width: 820px) {
  .nav, .brand-tag { display: none; }
  .site-header .header-cta { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps-line { left: 54px; right: auto; top: 30px; bottom: 30px; width: 3px; height: auto; }
  .steps-line i { transform-origin: top; transform: scaleY(0); }
  .fit { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .record { --size: min(200px, 52vw); }
  .tv { --tv-w: min(340px, calc(100vw - 48px)); }
  .tv-body { grid-template-columns: 1fr 60px; padding: 14px; gap: 10px; }
  .tv-knob { width: 48px; height: 48px; }
  .tv-legs { padding: 0 48px; }
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero .lead { font-size: 17.5px; }
  .deck { --cw: min(290px, calc(100vw - 72px)); --ch: 404px; }
  .card { padding: 26px 22px 18px; }
  .card-title { font-size: 21px; }
  .card-title.is-long { font-size: 19px; }
  .card-title.is-xlong { font-size: 16.5px; }
  .card-cover { width: 88px; height: 128px; }
  .card-media { gap: 14px; }
  .session { grid-template-columns: 1fr; gap: 18px; padding: 16px 18px 22px; }
  .session-date { display: flex; gap: 14px; align-items: baseline; justify-content: flex-start; text-align: left; padding: 14px 18px; }
  .session .btn, .session .closed-tag { justify-self: start; }
  .form-card { padding: 28px 18px; }
  .row { grid-template-columns: 1fr; }
  .summary dl { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 12px; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
}

/* 使用者在系統設定裡選擇「減少動態效果」時，停掉所有 CSS 動畫 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scroll-cue span { transform: none; }
  .wave i { transform: scaleY(.7); }
}
