/* =========================================================
   Robert Huang 個人網站 — 共用樣式（v0.2，2026-10-20）
   隱喻：傳訊紀錄／除錯日誌。
   顏色分工（每個顏色都有固定意義，不拿來裝飾）：
   - 橘色（Claude 橘）＝「你可以按」：連結、按鈕、目前所在頁
   - 青色（Tron 青）＝「這是紀錄資料」：時間戳、編號、L1–L5 層級
   想改成 Tron 橘，只要把 --accent 換成 #df740c（淺色主題用 #b35a00）。
   預設深色主題；淺色主題由右上角按鈕切換，存在瀏覽器裡。
   ========================================================= */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1113;
  --surface: #171a1d;    /* hover、釘住的導覽列底色 */
  --ink: #ececea;
  --muted: #a2a6aa;      /* 次要資訊：主動退後 */
  --rule: #2a2e33;
  --accent: #d97757;     /* Claude 橘 */
  --accent-strong: #eb9474;
  --on-accent: #0f1113;
  --data: #6fd3e3;       /* Tron 青，只給紀錄資料 */
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f3f1;
  --ink: #1b1c1e;
  --muted: #5f6368;
  --rule: #e3e5e8;
  --accent: #b4532e;     /* 白底上加深，文字對比才夠 */
  --accent-strong: #8f3f20;
  --on-accent: #ffffff;
  --data: #0b7285;
}

:root {
  --font-body: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-log: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "Noto Sans Mono", monospace;
  --gutter: 16px;
  --measure: 36em;       /* 中文長文行寬 */
  --wide: 68rem;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 外部連結會開新分頁，用 ↗ 先告訴讀者 */
a[target="_blank"]::after { content: " ↗"; font-size: 0.85em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 20; }
.skip:focus { left: var(--gutter); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* 紀錄欄位：時間戳、編號、層級 */
.log {
  font-family: var(--font-log);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--data);
}

/* ---------- 頁首：捲動時釘在上方，隨時可以換頁或切換主題 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2px 20px;
  padding-top: 10px; padding-bottom: 10px;
}
/* 桌機：名字在左，選單＋語言＋主題按鈕靠右排成一行 */
.site-name { order: 1; }
.site-header .site-nav { order: 2; margin-left: auto; }
.site-header .theme-toggle { order: 3; }
.site-name { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }   /* 名字不從中間斷開（2026-10-29） */
.site-name:hover { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; display: inline-block; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }

/* 語言切換：🌐 是國際通用的「換語言」符號；目前的語言用橘色標示、不可點，另一個語言是連結 */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.lang-switch a { color: var(--muted); padding: 6px 2px; text-decoration: none; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
.lang-cur { color: var(--accent); font-weight: 600; }
.lang-switch .l-short { display: none; }
.zh-tag { color: var(--muted); }
.entries .abstract { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.theme-toggle {
  font: inherit; font-size: 0.85rem; color: var(--muted);
  background: transparent; border: 1px solid var(--rule); border-radius: 4px;
  padding: 3px 10px; cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }

/* 手機：固定在上方的頁首只佔兩行，把畫面留給內容
   第一行：名字＋主題按鈕；第二行：選單＋語言切換 */
@media (max-width: 559px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 6px; gap: 2px 12px; }
  .site-name { flex: 1; }
  .site-header .theme-toggle { order: 2; }
  /* 2026-10-29（Robert 的三星 S26 Ultra）：畫面比 375px 窄、系統字又比較大時，「關於」被擠到下一行、「中文」被拆成直排。
     改成：每個項目都不能從中間斷開；真的放不下時，整個語言切換換到下一行靠右，而不是把字拆開 */
  .site-header .site-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
  .site-nav ul { gap: 0 14px; flex-wrap: nowrap; }
  .site-nav li, .site-nav a { white-space: nowrap; }
  .lang-switch { gap: 4px; flex-shrink: 0; white-space: nowrap; margin-left: auto; }
  .lang-switch a { padding: 10px 8px; margin: -10px -8px; }   /* 「EN」只有兩個字母，點擊範圍加大；負外距抵銷，版面寬度不變（健檢 C11） */
  /* 完整的 English 只在視覺上藏起來，報讀軟體照樣唸得到 */
  .lang-switch .l-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-switch .l-short { display: inline; }
}
/* 很窄的手機（約 360px 以下）：選單字距再縮一點、拿掉 🌐，讓三個選單和語言切換盡量擠在同一行 */
@media (max-width: 380px) {
  .site-nav ul { gap: 0 10px; }
  .lang-switch > span[aria-hidden="true"]:first-child { display: none; }
}

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 96px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--muted); display: inline-block; padding: 6px 2px; }   /* 手機手指好點（健檢 C11） */
.site-footer a:hover { color: var(--ink); }
.site-footer .privacy { margin-top: 10px; font-size: 0.8rem; }   /* 不再降低透明度：淺色主題下小字對比會低於 4.5:1（健檢 C3） */

/* ---------- 首頁：兩個入口，權重相等 ---------- */
.home-intro { padding: 56px 0 28px; }
.home-intro p { margin: 0; color: var(--muted); }
.home-intro strong { color: var(--ink); }

.gates { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gate { display: block; padding: 32px 0; text-decoration: none; color: var(--ink); }
.gate + .gate { border-top: 1px solid var(--rule); }
.gate h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.2; margin: 6px 0 12px; }
.gate p { margin: 0 0 18px; max-width: 26em; color: var(--muted); }
.gate .go { color: var(--accent); font-weight: 600; }
.gate:hover, .gate:focus-visible { background: var(--surface); }
.gate:hover .go { text-decoration: underline; }
@media (min-width: 760px) {
  .gates { grid-template-columns: 1fr 1fr; }
  .gate { padding: 40px 32px; }   /* 左右兩個入口內距一樣，圖片才會一樣大 */
  .gate + .gate { border-top: 0; border-left: 1px solid var(--rule); }
}

/* 入口的圖片（2026-10-22）：一直看得到，讓兩條路一眼就有視覺差異；手機也看得到。
   工作＝Robert 本人正面照（招募者看到的是真人），寫作＝子琦與雙宇合照。
   兩張圖用同樣的框（大小、比例一樣），維持兩個入口份量相等。 */
.gate { position: relative; }
.gate-media {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px;
  margin-bottom: 18px; background: var(--surface);
}
.gate-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.88); transition: filter .35s ease, transform .5s ease;
}
.gate-work .gate-media img { object-position: center 18%; }   /* 正面照：臉＋西裝上半身入鏡 */
.gate-lsa .gate-media img { object-position: center 35%; }    /* 合照：兩人的臉與中間那道光都入鏡 */
.gate:hover .gate-media img, .gate:focus-within .gate-media img { filter: brightness(1.02); transform: scale(1.03); }

/* 開場對焦（2026-10-22，Robert 想試的版本）：網頁打開時只播一次，
   照片從 104% 慢慢收回原尺寸後就停住，像相機對焦，不做反覆呼吸（會一直搶走文字的注意力）。
   用 backwards：播完就交還給原本的樣式，hover 放大照常運作。
   第二張晚 0.15 秒開始，兩張不會完全同步，比較自然。 */
@keyframes gate-focus {
  from { transform: scale(1.04); filter: brightness(.7); }
  to   { transform: scale(1);    filter: brightness(.88); }
}
.gate-media img { animation: gate-focus 1.5s cubic-bezier(.2, .7, .2, 1) backwards; }
.gate-lsa .gate-media img { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  .gate-media img { transition: none; animation: none; }
  .gate:hover .gate-media img { transform: none; }
}

/* 整張卡片都可以點：標題連結的 ::after 撐滿整張卡；寫作入口的兩個小連結疊在上面，可以單獨點 */
.gate h2 a.gate-link { color: inherit; text-decoration: none; }
.gate-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gate-link:focus-visible { outline: none; }
.gate:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.gate:hover h2 a.gate-link { color: var(--accent); }
.gate-extra { position: relative; z-index: 2; margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }
.gate-extra a { color: var(--accent); display: inline-block; padding: 10px 2px; margin: -10px 0; }   /* 疊在整張可點的卡片上，點擊範圍要夠大才不會誤點進卡片（健檢 C11） */
.gate-extra a:hover { color: var(--accent-strong); }

.motto { margin: 28px 0 0; color: var(--muted); font-size: 0.95rem; }

/* 手機首頁（2026-10-25，健檢 M4）：第一屏要先看到兩個入口，不是寫作系統的消息。
   所以手機上把 LATEST 排到入口下面、入口圖片改矮、頂端留白縮小；桌機第一屏本來就看得到兩個入口，維持原樣。
   只改畫面順序、不改 HTML 順序：鍵盤操作的順序在手機上會和畫面不同，但手機幾乎不用鍵盤，代價最小。 */
@media (max-width: 759px) {
  .home { display: flex; flex-direction: column; }
  .home .home-intro { padding: 24px 0 20px; }
  .home .gates { order: 1; }
  .home .news { order: 2; margin: 24px 0 0; }
  .home .motto { order: 3; }
  .home .resonate { order: 4; }   /* 手機版首頁會重排順序，有共鳴要跟著排在最後 */
  .gate-media { aspect-ratio: 16 / 8; }
}

/* ---------- 首頁傳訊列：配角，細細一條在兩個入口上方 ----------
   不做跑馬燈（移動的字難讀、難點，也會搶走兩個入口的焦點）；
   NEW 只在 7 天內出現，依真實日期判斷，不是裝飾 */
.news { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 20px; padding-top: 0; }
.news-label { margin: 0; }
.news ul { list-style: none; margin: 0; padding: 0; flex: 1 1 280px; min-width: 0; }  /* 窄螢幕自動換到下一行，不擠成細長一條 */
.news-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 4px 0; text-decoration: none; color: var(--ink); }
.news-item:hover .news-text, .news-item:focus-visible .news-text { color: var(--accent); text-decoration: underline; }
.news-text { font-size: 0.95rem; }
/* 類型小標：中性色，只幫讀者分辨是文章、小遊戲還是工具，不搶標題 */
.news-type { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 6px; white-space: nowrap; }
.news-new {
  margin-left: 8px; padding: 0 6px; border: 1px solid var(--data); border-radius: 3px;
  font-size: 0.7rem; color: var(--data); letter-spacing: 0.06em;
}

/* ---------- 一般頁面 ---------- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.25; margin: 4px 0 12px; }
.page-head.with-photo { display: grid; gap: 24px; }
.page-head.with-photo img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 4px; }
/* 手機：照片縮成標題旁的小圖，聯絡按鈕才會在第一屏完整出現（健檢 S9） */
@media (max-width: 759px) {
  .page-head.with-photo { grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; align-items: start; }   /* minmax(0,…)：長英文字不會把欄位撐寬 */
  .page-head.with-photo img { width: 76px; grid-column: 2; grid-row: 1; }
  .page-head.with-photo > div { grid-column: 1; grid-row: 1; }
}
@media (min-width: 760px) {
  .page-head.with-photo { grid-template-columns: 1fr 200px; align-items: start; }
  .page-head.with-photo img { width: 200px; grid-column: 2; grid-row: 1; }
}
.lead { font-size: 1.15rem; max-width: var(--measure); margin: 0; }
.sub { color: var(--muted); max-width: var(--measure); }

section { padding-top: 48px; }
section > h2 { font-size: 1.25rem; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 4px;
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--surface); color: var(--accent-strong); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

/* 規格表：工作成果數字，取自履歷 */
.spec { margin: 0; display: grid; grid-template-columns: 1fr; }
.spec > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
/* 成果數字（2026-10-29）：用 Tron 青＝「紀錄資料」，不用橘色（橘色只給能點的東西）；深淺主題各自有一個對比足夠的青色 */
.spec dt { font-family: var(--font-log); font-size: 2rem; font-weight: 700; color: var(--data); line-height: 1.25; }
.spec dd { margin: 2px 0 0; color: var(--muted); }
@media (min-width: 760px) { .spec { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }

/* 經歷紀錄：像系統變更紀錄，日期在前 */
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog > li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.changelog h3 { margin: 0; font-size: 1.05rem; }
.changelog .role { color: var(--muted); margin: 0; }
.changelog ul { margin: 6px 0 0; padding-left: 1.2em; max-width: var(--measure); }
.changelog ul li { margin: 4px 0; }
@media (min-width: 760px) {
  .changelog > li { grid-template-columns: 12rem 1fr; column-gap: 24px; }
  .changelog > li > .log { padding-top: 3px; }
}

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); }

/* ---------- 文章列表：傳訊紀錄 ---------- */
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { border-bottom: 1px solid var(--rule); }
.entries a { display: block; padding: 18px 0; text-decoration: none; color: var(--ink); }
.entries a:hover, .entries a:focus-visible { background: var(--surface); }
.entries .title { display: block; font-size: 1.1rem; font-weight: 600; margin-top: 4px; }
.entries a:hover .title { color: var(--accent); text-decoration: underline; }
@media (hover: hover) { .entries a { padding-left: 8px; padding-right: 8px; margin: 0 -8px; } }

/* LSA 五層 */
.layers { margin: 0; padding: 0; list-style: none; }
.layers li { display: grid; grid-template-columns: 3.2rem 1fr; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.layers .log { font-size: 0.95rem; font-weight: 700; }

/* 角色與圖片 */
.cast figure { margin: 0; max-width: 44rem; }
figcaption, .caption { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-top: 8px; }
.boundary { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--rule); color: var(--muted); max-width: var(--measure); }

/* ---------- 文章頁：本文是唯一主角 ---------- */
.article { max-width: var(--measure); margin: 0 auto; }
.article-head { padding: 48px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.article-head h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.4; margin: 10px 0 0; }
/* 麵包屑（2026-10-25）：取代「← 返回」。用等寬字和 // 分隔，延續「傳訊紀錄」的路徑感。
   顏色規則：可以點的段落是橘色；目前位置粗體、一般字色、不能點；// 分隔線退到次要灰色。 */
.crumbs { margin: 0 0 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs ol > li + li::before { content: "//"; margin: 0 8px; color: var(--muted); }   /* 只加在路徑之間，不加在 ▾ 選單裡 */
.crumbs a { color: var(--accent); text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--accent-strong); text-decoration: underline; }
.crumb-here { color: var(--ink); font-weight: 700; }
/* LSA 的同層頁面選單：▾ 用點的打開（手機也能用），桌機滑鼠移上去也會打開（js/site.js） */
.crumb-menu { position: relative; display: inline-flex; align-items: center; }
.crumb-toggle {
  font: inherit; color: var(--accent); background: none; border: 0; cursor: pointer;
  min-width: 28px; min-height: 28px; padding: 0 4px; margin-left: 2px; border-radius: 3px;
}
.crumb-toggle:hover, .crumb-toggle:focus-visible, .crumb-toggle[aria-expanded="true"] { background: var(--surface); color: var(--accent-strong); }
.crumb-list {
  position: absolute; top: 100%; left: 0; z-index: 25; min-width: 15rem; margin: 4px 0 0; padding: 6px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--data); border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0;
}
.crumb-list[hidden] { display: none; }
.crumb-list a { display: block; padding: 9px 16px; color: var(--ink); }
.crumb-list a:hover, .crumb-list a:focus-visible { color: var(--accent); background: var(--bg); text-decoration: none; }
:root[data-theme="light"] .crumb-list { box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }

.prose { font-size: 18px; line-height: 1.95; }
.prose p { margin: 0 0 1.1em; }
/* 小標：上方留大空白、加分段記號，讓讀者一眼看出「換段落了」 */
.prose h2 {
  font-size: 1.2rem; line-height: 1.5;
  margin: 3.2em 0 1em; padding-top: 1.4em;
  border-top: 1px solid var(--rule);
}
.prose h2::before { content: "✦ "; color: var(--accent); }
.prose h3 { font-size: 1.05rem; margin: 2.4em 0 0.8em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: 0.4em 0; }
.prose .note { color: var(--muted); font-size: 0.95rem; }
/* 小劇場對話頁（2026-11-01）：說話者一行粗體，台詞靠左邊框分辨是誰；子琦／雙宇顏色和小遊戲一樣 */
.prose .scene-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 2em; }
.prose .speaker { font-weight: 700; margin: 1.8em 0 0.4em; }
.prose .line { margin: 0; padding: 0.15em 0 0.15em 14px; border-left: 3px solid var(--rule); }
.prose .line-ginni { border-left-color: var(--accent); }
.prose .line-julian { border-left-color: var(--data); }
.prose .stage { color: var(--muted); font-size: 0.95rem; }
.prose .line + figure, .prose .line + .note { margin-top: 1.8em; }
.prose .callout { list-style: none; padding: 0; }
.prose .callout li { padding: 10px 0 10px 14px; border-left: 3px solid var(--accent); margin: 0 0 10px; }
.prose .layer { margin: 0 0 1.6em; }
.prose .layer dt { font-weight: 700; }
.prose .layer dt .log { font-size: 0.85rem; margin-right: 8px; }
.prose .layer dd { margin: 4px 0 0; }
.prose figure { margin: 2em 0; }
.prose figure.portrait img { max-width: min(360px, 100%); }   /* 不能比手機的內容區寬，否則整頁會左右滑（健檢 M5） */

.video { max-width: 360px; }
.video video { width: 100%; background: #000; border-radius: 4px; }

/* ---------- 幻燈片：原本就是 9 張輪播圖卡 ----------
   手機用手指滑（瀏覽器原生捲動），桌機用按鈕或鍵盤左右鍵。
   頁碼「3 / 9」跟著真正顯示的那張更新，不是裝飾。 */
.slides { margin: 2em 0; }
.slides-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; border-radius: 4px;  /* 不加 gap：JS 用「捲動距離 ÷ 寬度」算目前第幾張 */
  scrollbar-width: none;
}
.slides-track::-webkit-scrollbar { display: none; }
.slides-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slides-track img { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 4px; }
.slides-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.slides-bar button {
  font: inherit; font-size: 1.1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer;
}
.slides-bar button:hover { background: var(--surface); }
.slides-bar button:disabled { border-color: var(--rule); color: var(--muted); cursor: default; }
.slides-bar .log { font-size: 0.9rem; min-width: 4.5em; text-align: center; }

.sign { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.sign p { margin: 0 0 4px; }

.subscribe { margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--rule); }
.subscribe h2 { font-size: 1.1rem; margin: 0 0 6px; }
.subscribe p { margin: 0; color: var(--muted); }

/* ---------- 即將上映：電影海報牆 ----------
   海報整張可點，點了跳到下方的劇情簡介（真的有反應，不是裝飾）。
   有滑鼠：hover 時角色劇照浮現；手機沒有 hover：劇照一直淡淡顯示。 */
.lineup {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 760px) { .lineup { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.poster {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 2 / 3; padding: 14px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.poster > :not(.poster-art) { position: relative; z-index: 1; }
.poster .log { position: absolute; top: 14px; left: 14px; }
.poster-title { font-size: clamp(1.05rem, 3.6vw, 1.45rem); font-weight: 700; line-height: 1.35; }
.poster-genre { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.poster-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  opacity: 0.18; transition: opacity .35s ease, transform .5s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.poster:hover, .poster:focus-visible { border-color: var(--accent); }
.poster:hover .poster-title { color: var(--accent); }
@media (hover: hover) {
  .poster-art { opacity: 0; transform: scale(1.03); }
  .poster:hover .poster-art, .poster:focus-visible .poster-art { opacity: 0.38; transform: none; }
  :root[data-theme="light"] .poster:hover .poster-art,
  :root[data-theme="light"] .poster:focus-visible .poster-art { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) { .poster-art { transition: none; transform: none; } }

/* 劇情簡介 */
.plot { display: grid; gap: 20px; padding-top: 56px; }
.plot figure { margin: 0; }
.plot img { width: 100%; max-width: 220px; border-radius: 4px; }
.plot h2 { font-size: 1.4rem; margin: 4px 0 12px; border: 0; padding: 0; }
.plot p { max-width: var(--measure); }
@media (min-width: 760px) { .plot { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; } }

/* ---------- 小遊戲共用 ---------- */
.game { max-width: 44rem; margin-top: 24px; }
.game-card { padding: 20px 0; }
.game-quote {
  margin: 12px 0 20px; padding: 18px 0 18px 18px; border-left: 3px solid var(--data);
  font-size: 1.25rem; line-height: 1.8;
}
.game-ask { font-size: 1.15rem; margin: 0 0 4px; }
.game-ask:focus { outline: none; }
.btn.choice { font-weight: 500; text-align: left; background: transparent; cursor: pointer; font: inherit; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; background: transparent; }
button.btn.primary { background: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.game-result { margin-top: 16px; }
.game-ok { color: var(--data); font-weight: 600; margin: 0; }
.game-miss { color: var(--accent); font-weight: 600; margin: 0; }
.choice-list { display: grid; gap: 10px; margin-top: 12px; }
.choice-list .btn { width: 100%; }

/* 對話：子琦在左、雙宇在右（和合照裡的位置一樣），你的選擇置中 */
.dialogue { display: grid; gap: 14px; }
.turn { max-width: 88%; padding: 12px 16px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); }
.turn p { margin: 0 0 6px; }
.turn p:last-child { margin-bottom: 0; }
.turn-who { font-size: 0.85rem; color: var(--muted); }
.turn-ginni { justify-self: start; border-left: 3px solid var(--accent); }
.turn-julian { justify-self: end; border-right: 3px solid var(--data); }
.turn-you { justify-self: center; background: transparent; border-style: dashed; text-align: center; }
.turn-act { color: var(--muted); font-size: 0.92rem; }
.turn-scene { color: var(--muted); font-size: 0.92rem; margin: 0; }
.turn-reveal { margin: 8px 0 0; }
.choice-box { border-top: 1px solid var(--rule); }

/* 傳訊碎片 */
.fragment { display: grid; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.fragment p { margin: 0; }
.fragment-lock { font-family: var(--font-log); color: var(--muted); letter-spacing: 0.1em; }

/* 文章簽名旁的 🥚：不起眼，但一樣是真的按鈕 */
.egg {
  margin-top: 10px; font-size: 1rem; line-height: 1; padding: 6px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; cursor: pointer; opacity: 0.45;
}
.egg:hover, .egg:focus-visible { opacity: 1; border-color: var(--rule); }
.egg.got { opacity: 1; }
.egg.got::after { content: " ✓"; font-size: 0.8rem; color: var(--data); }

/* 五層練習 */
.game-prompt { display: block; margin: 8px 0 12px; font-size: 1.05rem; }
.game-text {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 4px; padding: 12px; resize: vertical;
}
.game-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.game-text::placeholder { color: var(--muted); opacity: 0.8; }
.notes { margin: 16px 0; }
.handoff { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--rule); }
.notes dt { font-family: var(--font-log); color: var(--data); font-size: 0.85rem; margin-top: 14px; }
.notes dd { margin: 4px 0 0; white-space: pre-wrap; }

/* ---------- 文章頁的浮動按鈕：讀到一半也能一鍵回到文章列表 ----------
   捲過文章標題才出現（標題區本來就有「← 寫作系統」），不擋閱讀；放右下角避開置中的提示訊息 */
.float-nav {
  position: fixed; right: 16px; bottom: 20px; z-index: 15;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule);
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: opacity .25s ease, transform .25s ease, border-color .2s, visibility .25s;
}
.float-nav span { color: var(--accent); }
.float-nav:hover, .float-nav:focus-visible { border-color: var(--accent); color: var(--accent); }
.float-nav.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }   /* visibility：藏起來時按 Tab 不會停在看不見的按鈕上（健檢 C4） */
:root[data-theme="light"] .float-nav { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
@media (min-width: 760px) { .float-nav { right: 28px; bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .float-nav { transition: none; } }

/* ---------- 帶走五層提問 ---------- */
.steps { margin: 0; padding-left: 1.4em; max-width: var(--measure); }
.steps li { padding: 6px 0; font-size: 1.05rem; }
.steps li::marker { color: var(--data); font-family: var(--font-log); font-weight: 700; }
.btn-big { font-size: 1.1rem; padding: 14px 26px; }
.card-format, .prompt-box pre {
  font-family: var(--font-log); font-size: 0.88rem; line-height: 1.75; white-space: pre-wrap;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px;
  padding: 16px 18px; margin: 12px 0 0; max-width: 44rem; overflow-x: auto;
}
.prompt-box { margin-top: 16px; max-width: 44rem; }
.prompt-box summary { cursor: pointer; color: var(--accent); padding: 6px 0; }
.prompt-box summary:hover { text-decoration: underline; }
.prompt-box pre { max-height: 60vh; overflow-y: auto; }
/* 示範對話：教練在左、使用者在右 */
.dialogue.sample { max-width: 44rem; }
.turn-coach { justify-self: start; border-left: 3px solid var(--data); }
.turn-you-r { justify-self: end; border-right: 3px solid var(--accent); }

/* ---------- 賽博創界 設定集＋藝廊（/lsa/cybertron/） ----------
   這一頁的主角本來就是視覺，所以比其他頁多一點動態：照片 hover 微亮、放大檢視。
   但仍然不自動播放、不無限循環動畫。 */
.trial-note { margin-top: 16px; padding: 10px 14px; border: 1px dashed var(--data); border-radius: 4px; color: var(--data); font-size: 0.9rem; max-width: var(--measure); }
.trial-note code { font-family: var(--font-log); font-size: 0.85em; }

/* 角色檔案：子琦在左、雙宇在右（和合照的位置一樣） */
.files { display: grid; gap: 20px; }
@media (min-width: 760px) { .files { grid-template-columns: 1fr 1fr; } }
.file { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.file img { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 3px; }
.file h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.file p { margin: 0 0 10px; }
.file-ginni { border-left: 3px solid var(--accent); }
.file-julian { border-left: 3px solid var(--data); }
.file blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.file cite { display: block; margin-top: 4px; font-style: normal; font-family: var(--font-log); font-size: 0.75rem; color: var(--data); }
@media (min-width: 1000px) { .file { grid-template-columns: 160px 1fr; } .file img { width: 160px; } }
@media (max-width: 420px) { .file { grid-template-columns: 88px 1fr; gap: 12px; padding: 14px; } .file img { width: 88px; } }  /* 手機：照片縮小，文字欄寬一點 */

/* 場景：寬圖＋原稿裡的場景描述 */
.scenes { display: grid; gap: 28px; }
.scene { margin: 0; }
.scene img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }
.scene figcaption { margin-top: 10px; color: var(--muted); max-width: var(--measure); line-height: 1.7; }
.scene figcaption .log { display: block; margin-bottom: 4px; }

/* 劇照牆：錯落排列（直圖、橫圖混排也不會留空） */
.gallery { columns: 2 160px; column-gap: 12px; }
@media (min-width: 760px) { .gallery { columns: 3 220px; column-gap: 16px; } }
.gal-item { margin: 0 0 12px; break-inside: avoid; }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gal-open img { width: 100%; height: auto; filter: brightness(.9); transition: filter .3s ease, transform .4s ease; }
.gal-open:hover img, .gal-open:focus-visible img { filter: brightness(1.05); transform: scale(1.03); }
.gal-item figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

/* 短片：按了才播放，不自動播放 */
.clips-title { font-size: 1.05rem; margin: 32px 0 4px; }
.clips { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .clips { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.clip { margin: 0; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 4px; }
.clip figcaption { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }

/* 相簿（2026-10-27）：每本一張封面卡，點開後在放大檢視裡翻整本 */
/* minmax(0, 1fr)：每欄永遠一樣寬。只寫 1fr 的話，長網址這種不能斷行的字會把某一欄撐寬，另一欄被擠成細條（2026-10-29 手機實測） */
.albums { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .albums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.album { margin: 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.album h3 { font-size: 1rem; margin: 10px 0 2px; line-height: 1.45; }
.album .log { margin: 0; }
.album-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.album-cover {
  display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--rule);
}
/* 從上方開始裁：直式封面（設定書、識別證）的標題通常在上面 */
.album-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: brightness(.9); transition: filter .3s ease, transform .4s ease; }
/* 疊兩層淡淡的邊，讓封面看起來像「一疊」照片，提示裡面不只一張 */
.album-open .album-cover { box-shadow: 6px 6px 0 -1px var(--surface), 6px 6px 0 0 var(--rule), 12px 12px 0 -1px var(--surface), 12px 12px 0 0 var(--rule); margin: 0 12px 12px 0; }
.album-open:hover .album-cover img, .album-open:focus-visible .album-cover img { filter: brightness(1.05); transform: scale(1.03); }
.album-open:hover + h3 { color: var(--accent); }
.album-soon { display: flex; align-items: center; justify-content: center; border-style: dashed; margin: 0 12px 12px 0; }
.album-soon span { font-family: var(--font-log); font-size: 0.8rem; letter-spacing: .1em; color: var(--muted); }
.album-note { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }   /* 長網址可以換行 */
.album-target .album-cover { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .album-cover img { transition: none; } .album-open:hover .album-cover img { transform: none; } }

/* 放大檢視 */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(5, 6, 8, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 3px; }
.lightbox figcaption { margin-top: 10px; color: #c9ced2; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #555; background: rgba(20, 22, 25, .8); color: #eee; font-size: 1.2rem; cursor: pointer; }
.lightbox button:hover { border-color: #d97757; color: #d97757; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .gal-open img { transition: none; } .gal-open:hover img { transform: none; } }

/* 背景音樂的傳訊卡片（2026-10-23）
   沿用方案 A：不加霓虹光暈、不用毛玻璃。科幻感只靠三件事：Tron 青的訊號條（全站「紀錄資料」色）、
   等寬字的傳訊抬頭、深色面板。可以按的「播放」照全站規則用 Claude 橘。
   放在右下角、不擋劇照；放大檢視（z-index 40）打開時會蓋在它上面。 */
.transmission {
  position: fixed; right: 16px; bottom: 20px; z-index: 20; width: min(360px, calc(100% - 32px));
  padding: 16px 18px 16px 20px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--data);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease;
}
.transmission.show { opacity: 1; transform: translateY(0); }
.transmission[hidden] { display: none; }
.tx-head { margin: 0 0 6px; font-size: 0.8rem; letter-spacing: .02em; }
.tx-body { margin: 0 0 14px; line-height: 1.6; }
.tx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-no { color: var(--muted); }
:root[data-theme="light"] .transmission { box-shadow: 0 10px 26px rgba(0, 0, 0, .14); }

/* 選過之後留在角落的小按鈕：隨時能開、能關 */
.tx-mini {
  position: fixed; right: 16px; bottom: 20px; z-index: 15;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.tx-mini[hidden] { display: none; }
.tx-mini:hover, .tx-mini:focus-visible { border-color: var(--accent); color: var(--accent); }
.tx-icon { color: var(--data); }
.tx-title { display: none; font-size: 0.75rem; }
.tx-mini.is-playing { border-color: var(--data); }
.tx-mini.is-playing .tx-title { display: inline; }   /* 正在播的時候才顯示曲名：顯示的是真實狀態 */
@media (max-width: 420px) { .tx-mini.is-playing .tx-title { display: none; } }
:root[data-theme="light"] .tx-mini { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
@media (min-width: 760px) { .transmission, .tx-mini { right: 28px; bottom: 28px; } }
/* 手機（健檢 S10）：固定在畫面上的卡片幾乎全寬，會一直蓋住劇照。
   改成放進頁首說明區、跟著頁面捲走，不再浮在照片上；選完之後一樣留角落的小 ♪。 */
.transmission.inline { position: static; width: auto; margin: 20px 0 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .transmission { transition: none; transform: none; } }
.music-note { margin-top: 40px; font-size: 0.85rem; }

/* 3D 導覽（2026-10-30）：整張卡片可點，新分頁打開（3D 頁面是全螢幕，沒有本站導覽列可以回來） */
.tours { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .tours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tours > li { display: flex; flex-direction: column; }   /* 卡片下面還有「有共鳴」按鈕：卡片撐滿剩下的高度，按鈕排在卡片下面（2026-11-02） */
.tour-card { display: block; flex: 1; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.tour-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transition: filter .3s ease; }
.tour-title { display: block; padding: 14px 16px 0; font-weight: 700; line-height: 1.5; }
.tour-desc { display: block; padding: 6px 16px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.tour-card .go { display: block; padding: 10px 16px 16px; color: var(--accent); font-weight: 600; }
.tour-card[target="_blank"]::after { content: none; }   /* 卡片裡的「開始導覽 ↗」已經有箭頭，不要再自動多加一個在卡片最下面 */
.tour-card:hover, .tour-card:focus-visible { border-color: var(--accent); }
.tour-card:hover .tour-thumb img, .tour-card:focus-visible .tour-thumb img { filter: brightness(1); }
.tour-card:hover .tour-title { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .tour-thumb img { transition: none; } }

/* 影片：只放縮圖，點了去 YouTube（網站不放影片檔） */
.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video-card { display: block; text-decoration: none; color: var(--ink); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--surface); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: filter .3s ease; }
.video-hint {
  position: absolute; inset: auto 0 0 0; padding: 8px 12px; font-size: 0.85rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .25s ease;
}
.video-card:hover .video-hint, .video-card:focus-visible .video-hint { opacity: 1; }
.video-card:hover .video-thumb img { filter: brightness(1); }
.video-card .log { display: block; margin-top: 8px; }
.video-title { display: block; margin-top: 2px; font-weight: 600; line-height: 1.5; }
.video-card:hover .video-title { color: var(--accent); }
@media (hover: none) { .video-hint { opacity: 1; } }   /* 手機沒有 hover：提示一直顯示 */

/* ---------- 全部傳訊（/lsa/archive/） ----------
   篩選是單選：只有三類，複選等於「全部」，沒有意義。
   艙房顏色沿用全站規則：本站可讀的連結用橘色；艙房標籤用中性框線，只幫忙分辨類型。 */
.arc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.arc-filter {
  font: inherit; font-size: 0.9rem; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--muted);
}
.arc-filter:hover { color: var(--ink); border-color: var(--muted); }
.arc-filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.arc-filter[aria-pressed="true"] .log { color: inherit; }
.arc-status { margin: 0 0 8px; min-height: 1.4em; }
.arc-month { padding-top: 28px; }
.arc-month[hidden] { display: none; }
.arc-ym { font-size: 0.85rem; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.arc-list { list-style: none; margin: 0; padding: 0; }
.arc-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.arc-item[hidden] { display: none; }
/* 艙房、備註：單純的灰色小字，不加外框，不讓人誤以為能點（健檢 S2）。能點的篩選按鈕在頁面上方 */
.arc-room, .arc-tag { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.arc-tag::before { content: "· "; }
.arc-title { flex: 1 1 100%; line-height: 1.6; }
.arc-title a { font-weight: 600; }
.arc-title-plain { color: var(--ink); }
.arc-read { margin-left: 8px; font-size: 0.8rem; color: var(--accent); white-space: nowrap; }
.arc-ext { color: var(--muted); }   /* 外部連結的標題後面已經有 ↗，來源名稱退後 */
@media (min-width: 760px) {
  .arc-item { flex-wrap: nowrap; }
  .arc-item .log { flex: 0 0 6.5rem; }
  .arc-title { flex: 1 1 auto; }
}

/* ---------- 複製 Email 的提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 4px;
  font-size: 0.95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 30; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .toast, .slides-track { transition: none; scroll-behavior: auto; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 文章底部：上一篇／下一篇（2026-10-27） ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px 0 0; max-width: var(--measure); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; color: var(--ink); }
.pager a:hover, .pager a:focus-visible { border-color: var(--accent); }
.pager a:hover .pager-title { color: var(--accent); }
.pager-next { text-align: right; grid-column: 2; }
.pager-title { font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 559px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }

/* 文章裡的 YouTube 封面卡（插圖清單.csv，2026-10-28）：封面上已經寫「在 YouTube 觀看 →」，不再加外部連結的 ↗ */
.prose .yt .video-card::after { content: none; }
.prose .fig-link { margin: 1.2em 0; font-weight: 600; }
.prose .yt-note { font-size: 0.85em; color: var(--muted); }

/* ---------- 傳訊給我（2026-10-29） ---------- */
.transmit { display: grid; gap: 6px; max-width: var(--measure); margin: 8px 0 40px; }
.transmit[hidden] { display: none; }   /* display: grid 會蓋過 hidden，送出成功後表單要真的藏起來 */
.transmit label { font-weight: 600; margin-top: 14px; }
.transmit .opt { font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 6px; }
.transmit input, .transmit textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; width: 100%;
}
.transmit textarea { resize: vertical; min-height: 10em; line-height: 1.7; }
.transmit input::placeholder, .transmit textarea::placeholder { color: var(--muted); opacity: .8; }
.transmit input:focus, .transmit textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.transmit .actions { margin-top: 12px; }
.transmit button[disabled] { opacity: .6; cursor: wait; }
/* 機器人陷阱：真人看不到、按 Tab 也不會跳到這一格 */
.transmit .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.transmit-status { min-height: 1.4em; margin: 4px 0 0; color: var(--data); }
.transmit-status.is-bad { color: var(--accent); }
.transmit-done { max-width: var(--measure); margin: 8px 0 40px; padding: 20px; border: 1px solid var(--data); border-radius: 8px; }
.transmit-done .lead { margin: 6px 0 16px; }
/* 文章結尾的傳訊入口：一行字，不搶訂閱區的位置 */
.transmit-cta { margin: 32px 0 0; color: var(--muted); max-width: var(--measure); }

/* 文章結尾的「❤️ 有共鳴」（2026-11-02）：和 .btn 同一種外框按鈕；按過之後填滿、不能再按 */
.resonate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 32px 0 0; }
.resonate[hidden] { display: none; }
.resonate-btn {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; padding: 10px 18px; border-radius: 4px;
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
}
.resonate-btn:hover { background: var(--surface); color: var(--accent-strong); }
.resonate-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.resonate.is-on .resonate-btn { background: var(--accent); color: var(--on-accent); cursor: default; }
.resonate-count { color: var(--muted); }
/* 小一號的「有共鳴」：放在相簿、3D 導覽、小遊戲簡介、設定集各區的結尾 */
.resonate.is-small { margin: 12px 0 0; gap: 8px; font-size: .9rem; }
.resonate.is-small .resonate-btn { padding: 6px 12px; min-height: 40px; }

/* Google 整頁翻譯版最上方的說明（只在 translate.goog 網址出現，見 site.js 第 4 段） */
.mt-note { box-sizing: border-box; width: calc(100% - 32px); max-width: 1060px; margin: 12px auto 0; padding: 10px 16px; border-left: 3px solid var(--data); background: var(--surface); color: var(--muted); font-size: .9rem; }
.mt-note a { color: var(--accent); }
