/* ============================================================
   GET SHOTS DONE — 介面設計系統 ui.css
   單一檔案，全站共用。取代 landing.css 與 site.css 的視覺角色；
   兩個舊檔保留在版本庫內，但頁面已不再引用。

   命名分兩層：
     第一層  原始色，用「色相名 + 亮度數字」，例如 --blue-45、--slate-18、--sky-98。
     第二層  語意變數，指向原始色，例如 --primary: var(--blue-45)。
   頁面與元件一律只用語意變數；深色主題只重新定義語意變數，
   不重新定義原始色，所以原始色在兩個主題下永遠代表同一個顏色。

   類別顏色同樣分兩層：--cat-cast: var(--red-48)。
   每個類別另有一個 -ink 變體，專供文字與膠囊使用，
   因為規格色用作文字時部分達不到 4.5:1 的對比要求。
   規格色本身只用於色點、色條、底線標記這類圖形元素。
   ============================================================ */

/* ---------- 第一層：原始色 ---------- */
:root {
  --white:      #ffffff;
  --sky-98:     #f3faff;
  --sky-97:     #f6f9fb;
  --sky-95:     #edf3f7;
  --sky-93:     #e5ecf1;
  --slate-92:   #e8ecee;
  --slate-87:   #d9dfe3;
  --slate-50:   #788288;
  --slate-48:   #7d878d;
  --slate-45:   #6a737a;
  --slate-44:   #686f76;
  --slate-19:   #262f36;
  --slate-18:   #252f37;
  --slate-12:   #151e25;
  --slate-08:   #0c151b;
  --slate-05:   #040c13;

  --blue-66:    #5495ff;
  --blue-50:    #1c69e3;
  --blue-45:    #105fd9;
  --blue-48:    #2c56c9;
  --blue-76:    #8aa9ff;

  --red-48:     #c8372d;
  --red-45:     #be322d;
  --red-74:     #ff8a7e;
  --orange-48:  #d9761a;
  --orange-36:  #9f591a;
  --orange-68:  #ffae5c;
  --violet-50:  #7b45b8;
  --violet-77:  #c79bee;
  --green-36:   #2e8b57;
  --green-30:   #24774d;
  --green-61:   #5fd69a;
  --brown-37:   #8a5a33;
  --brown-65:   #d8a173;
  --teal-30:    #12848a;
  --teal-27:    #12747a;
  --teal-58:    #4fd3da;
  --steel-41:   #4a6488;
  --steel-73:   #9db6d8;
  --gray-44:    #6b7075;
  --gray-41:    #64696e;
  --gray-71:    #aeb5bb;

  --gold-42:    #b07d1f;
  --gold-62:    #d9a441;
  --gold-72:    #e7c37e;
  --navy-32:    #1f3f6e;
  --navy-58:    #7ea2d6;
}

/* ---------- 第二層：語意變數（淺色主題） ---------- */
:root {
  --bg:               var(--sky-98);
  --card:             var(--white);
  --card-translucent: rgba(255, 255, 255, 0.70);
  --text:             var(--slate-18);
  --text-muted:       var(--slate-44);
  --muted:            var(--sky-95);
  --secondary:        var(--slate-92);
  --border:           var(--slate-87);
  --border-soft:      rgba(217, 223, 227, 0.55);
  --primary:          var(--blue-45);
  --primary-fg:       var(--sky-97);
  --primary-soft:     rgba(16, 95, 217, 0.10);
  --primary-softer:   rgba(16, 95, 217, 0.06);
  --ring:             var(--blue-50);
  --nav-bg:           rgba(243, 250, 255, 0.78);
  --shadow-sm:        0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card:      0 2px 6px rgba(15, 23, 42, 0.05), 0 12px 28px -18px rgba(15, 23, 42, 0.22);
  --shadow-window:    0 40px 90px -30px rgba(15, 23, 42, 0.55);
  --mark-alpha:       0.16;

  /* 日夜色條（拍攝大表的視覺語言） */
  --day:              var(--gold-42);
  --night:            var(--navy-32);

  /* 九個拆解類別。規格色作圖形用；-ink 作文字用。 */
  --cat-cast:      var(--red-48);      --cat-cast-ink:     var(--red-45);
  --cat-action:    var(--orange-48);   --cat-action-ink:   var(--orange-36);
  --cat-prop:      var(--violet-50);   --cat-prop-ink:     var(--violet-50);
  --cat-wardrobe:  var(--green-36);    --cat-wardrobe-ink: var(--green-30);
  --cat-setdress:  var(--brown-37);    --cat-setdress-ink: var(--brown-37);
  --cat-graphic:   var(--teal-30);     --cat-graphic-ink:  var(--teal-27);
  --cat-shoot:     var(--steel-41);    --cat-shoot-ink:    var(--steel-41);
  --cat-permit:    var(--gray-44);     --cat-permit-ink:   var(--gray-41);
  --cat-vfx:       var(--blue-48);     --cat-vfx-ink:      var(--blue-48);

  --sans:  "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", "Noto Sans CJK TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --r-ctl:  0.35rem;
  --r-card: 12px;
  --r-lg:   16px;
  --wrap:   1180px;
  --wrap-narrow: 760px;
}

/* 深色主題：只重新定義語意變數 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:               var(--slate-05);
    --card:             var(--slate-08);
    --card-translucent: rgba(12, 21, 27, 0.72);
    --text:             var(--sky-93);
    --text-muted:       var(--slate-48);
    --muted:            var(--slate-12);
    --secondary:        var(--slate-12);
    --border:           var(--slate-19);
    --border-soft:      rgba(38, 47, 54, 0.66);
    --primary:          var(--blue-66);
    --primary-fg:       var(--slate-05);
    --primary-soft:     rgba(84, 149, 255, 0.14);
    --primary-softer:   rgba(84, 149, 255, 0.08);
    --ring:             var(--blue-66);
    --nav-bg:           rgba(4, 12, 19, 0.78);
    --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.40), 0 1px 3px rgba(0, 0, 0, 0.32);
    --shadow-card:      0 2px 6px rgba(0, 0, 0, 0.34), 0 12px 28px -18px rgba(0, 0, 0, 0.70);
    --shadow-window:    0 40px 90px -30px rgba(0, 0, 0, 0.85);
    --mark-alpha:       0.26;

    --day:              var(--gold-72);
    --night:            var(--navy-58);

    --cat-cast:      var(--red-74);      --cat-cast-ink:     var(--red-74);
    --cat-action:    var(--orange-68);   --cat-action-ink:   var(--orange-68);
    --cat-prop:      var(--violet-77);   --cat-prop-ink:     var(--violet-77);
    --cat-wardrobe:  var(--green-61);    --cat-wardrobe-ink: var(--green-61);
    --cat-setdress:  var(--brown-65);    --cat-setdress-ink: var(--brown-65);
    --cat-graphic:   var(--teal-58);     --cat-graphic-ink:  var(--teal-58);
    --cat-shoot:     var(--steel-73);    --cat-shoot-ink:    var(--steel-73);
    --cat-permit:    var(--gray-71);     --cat-permit-ink:   var(--gray-71);
    --cat-vfx:       var(--blue-76);     --cat-vfx-ink:      var(--blue-76);
  }
}

:root[data-theme="dark"] {
  --bg:               var(--slate-05);
  --card:             var(--slate-08);
  --card-translucent: rgba(12, 21, 27, 0.72);
  --text:             var(--sky-93);
  --text-muted:       var(--slate-48);
  --muted:            var(--slate-12);
  --secondary:        var(--slate-12);
  --border:           var(--slate-19);
  --border-soft:      rgba(38, 47, 54, 0.66);
  --primary:          var(--blue-66);
  --primary-fg:       var(--slate-05);
  --primary-soft:     rgba(84, 149, 255, 0.14);
  --primary-softer:   rgba(84, 149, 255, 0.08);
  --ring:             var(--blue-66);
  --nav-bg:           rgba(4, 12, 19, 0.78);
  --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.40), 0 1px 3px rgba(0, 0, 0, 0.32);
  --shadow-card:      0 2px 6px rgba(0, 0, 0, 0.34), 0 12px 28px -18px rgba(0, 0, 0, 0.70);
  --shadow-window:    0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --mark-alpha:       0.26;

  --day:              var(--gold-72);
  --night:            var(--navy-58);

  --cat-cast:      var(--red-74);      --cat-cast-ink:     var(--red-74);
  --cat-action:    var(--orange-68);   --cat-action-ink:   var(--orange-68);
  --cat-prop:      var(--violet-77);   --cat-prop-ink:     var(--violet-77);
  --cat-wardrobe:  var(--green-61);    --cat-wardrobe-ink: var(--green-61);
  --cat-setdress:  var(--brown-65);    --cat-setdress-ink: var(--brown-65);
  --cat-graphic:   var(--teal-58);     --cat-graphic-ink:  var(--teal-58);
  --cat-shoot:     var(--steel-73);    --cat-shoot-ink:    var(--steel-73);
  --cat-permit:    var(--gray-71);     --cat-permit-ink:   var(--gray-71);
  --cat-vfx:       var(--blue-76);     --cat-vfx-ink:      var(--blue-76);
}

/* ============================================================
   基礎
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
/* 全站字體比例：2026-09-28 試用意見要求字體放大約 10%。
   所有 font-size 一律用 rem（原本的 px 值除以 16），只改這一個百分比就可以整站調整；
   用百分比而不寫死 px，瀏覽器的字體大小設定仍然有效。 */
html { font-size: 110%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.022em; line-height: 1.2; margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
button { font-family: var(--sans); cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--primary-soft); }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}

.u-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.u-wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .u-wrap, .u-wrap-narrow { padding: 0 16px; } }

.u-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.u-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   排版
   ============================================================ */
.u-h1 { font-size: clamp(2.25rem, 5.94vw, 4.25rem); line-height: 1.08; letter-spacing: -0.03em; }
.u-h1 em, .u-accent { font-style: normal; color: var(--primary); }
.u-h2 { font-size: clamp(1.625rem, 3.52vw, 2.5rem); line-height: 1.18; letter-spacing: -0.026em; }
.u-h3 { font-size: clamp(1.125rem, 1.98vw, 1.375rem); line-height: 1.3; letter-spacing: -0.016em; }
.u-lede { font-size: clamp(1rem, 1.65vw, 1.125rem); line-height: 1.8; color: var(--text-muted); }
.u-body { font-size: 0.9688rem; line-height: 1.85; color: var(--text-muted); }
.u-small { font-size: 0.8438rem; line-height: 1.7; color: var(--text-muted); }
.u-tiny { font-size: 0.7812rem; line-height: 1.7; color: var(--text-muted); }

.u-sec { padding: 88px 0; }
.u-sec.tight { padding: 56px 0; }
.u-sec.alt { background: var(--muted); }
@media (max-width: 720px) { .u-sec { padding: 60px 0; } }

.u-sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.u-sec-head .u-lede { margin-top: 16px; }

/* ============================================================
   膠囊標籤
   ============================================================ */
.u-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); background: var(--card-translucent);
  border-radius: 999px; padding: 6px 15px 6px 12px;
  font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap;
}
.u-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }

/* 語言標示：連在連結文字旁邊，說明目標頁只有繁體中文版。
   導覽列位置窄，所以那裏只顯示簡短的一個標示，
   完整的字樣放在同一個連結內的 .u-vh，螢幕閱讀器仍然讀得完整。 */
.u-langtag {
  font-size: 0.7188rem; font-weight: 500; line-height: 1.4;
  color: var(--text-muted); white-space: nowrap;
}
h3 .u-langtag, .u-h3 .u-langtag { letter-spacing: 0; }
.u-nav-links .u-langtag, .lp-nav-r .u-langtag {
  margin-left: 5px; font-size: 0.6562rem;
  border: 1px solid var(--border); border-radius: 999px; padding: 0 5px;
}
.u-foot .u-langtag { font-size: 0.6875rem; }

/* ============================================================
   按鈕
   ============================================================ */
.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-ctl); border: 1px solid transparent;
  padding: 12px 22px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; transition: background .18s, border-color .18s, color .18s, opacity .18s;
  background: var(--primary); color: var(--primary-fg); border-color: var(--primary);
}
.u-btn:hover { opacity: 0.9; }
.u-btn.ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.u-btn.ghost:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.u-btn.sm { padding: 9px 16px; font-size: 0.8438rem; }
.u-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.u-tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.9375rem; font-weight: 600; color: var(--primary); text-decoration: none;
  padding: 12px 6px; border-radius: var(--r-ctl);
}
.u-tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.u-tlink svg { width: 15px; height: 15px; }

.u-btnrow { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ============================================================
   打勾賣點列
   ============================================================ */
.u-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.u-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-muted); }
.u-check svg { width: 16px; height: 16px; flex: none; color: var(--primary); }

/* ============================================================
   卡片
   ============================================================ */
.u-card {
  background: var(--card-translucent);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
}
.u-card.solid { background: var(--card); }
.u-card.lg { border-radius: var(--r-lg); padding: 28px 26px; }
.u-card h3, .u-card .u-h3 { margin-bottom: 10px; }
.u-card > p { color: var(--text-muted); font-size: 0.9062rem; line-height: 1.8; }

.u-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex: none;
}
.u-icon svg { width: 20px; height: 20px; }

.u-grid { display: grid; gap: 18px; }
.u-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.u-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .u-grid-3, .u-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .u-grid-2, .u-grid-3, .u-grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   導覽列：初始透明，捲動後半透明底加底線
   ============================================================ */
.u-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, backdrop-filter .2s;
}
.u-nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--border-soft); backdrop-filter: blur(12px); }
.u-nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.u-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.u-brand svg { width: 24px; height: 24px; }
.u-brand span { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.u-nav-links { display: flex; align-items: center; gap: 4px; }
.u-nav-links a {
  text-decoration: none; font-size: 0.875rem; color: var(--text-muted);
  padding: 8px 11px; border-radius: var(--r-ctl); transition: color .18s, background .18s; white-space: nowrap;
}
.u-nav-links a:hover, .u-nav-links a.on { color: var(--text); background: var(--muted); }
.u-nav-r { display: flex; align-items: center; gap: 8px; }
.u-nav-r .u-btn { padding: 9px 18px; font-size: 0.875rem; }
.u-lang { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }
.u-lang a { text-decoration: none; padding: 5px 6px; border-radius: var(--r-ctl); color: var(--text-muted); }
.u-lang a:hover { color: var(--text); }
.u-lang a.on { color: var(--primary); font-weight: 600; }
.u-lang .s { opacity: 0.45; }

.u-theme {
  width: 36px; height: 36px; border-radius: var(--r-ctl);
  border: 1px solid var(--border); background: var(--card-translucent); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: color .18s, border-color .18s;
}
.u-theme:hover { color: var(--text); border-color: var(--primary); }
.u-theme svg { width: 17px; height: 17px; }
.u-theme .i-moon { display: none; }
:root[data-theme="dark"] .u-theme .i-sun { display: none; }
:root[data-theme="dark"] .u-theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .u-theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .u-theme .i-moon { display: block; }
}

body { padding-top: 61px; }
@media (max-width: 860px) {
  .u-nav-in { padding: 10px 16px; }
  .u-nav-links a.hide-sm, .u-nav-r a.hide-sm { display: none; }
  .u-nav-r { gap: 6px; }
}

/* ============================================================
   首屏
   ============================================================ */
.u-hero { padding: 72px 0 40px; text-align: center; }
.u-hero .u-h1 { margin-top: 22px; }
.u-hero .u-lede { margin: 20px auto 0; max-width: 62ch; }
.u-hero .u-btnrow { justify-content: center; margin-top: 30px; }
.u-hero .u-checks { justify-content: center; margin-top: 26px; }
@media (max-width: 720px) { .u-hero { padding: 48px 0 28px; } }

/* 首屏入口：外觀像對話框的第一步，可以直接上載劇本（2026-09-28 試用意見）。
   選了檔案由 assets/home-start.js 暫存到同源 IndexedDB，再導向 /demo?start=upload。 */
.hs {
  max-width: 640px; margin: 30px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 18px 18px 16px;
}
.hs-who { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.hs-msg {
  border: 1px solid var(--border-soft); border-left: 3px solid var(--primary); background: var(--muted);
  border-radius: var(--r-card); padding: 12px 14px; font-size: 0.9375rem; line-height: 1.8; color: var(--text);
}
.hs-drop {
  display: block; margin-top: 14px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--border); border-radius: var(--r-card); background: var(--muted);
  padding: 22px 16px; transition: border-color .18s, background .18s;
}
.hs-drop:hover, .hs-drop.over { border-color: var(--primary); background: var(--primary-softer); }
.hs-drop:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.hs-drop-t { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.hs-drop-s { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--text-muted); }
.u-hero .hs .u-btnrow { justify-content: flex-start; margin-top: 14px; }
.hs .u-btn { padding: 10px 18px; }
.hs-priv { margin-top: 12px; }
.hs .u-err { margin-top: 10px; }
@media (max-width: 720px) { .hs { padding: 14px 14px 12px; } .hs .u-btnrow .u-btn { flex: 1 1 auto; } }

/* ============================================================
   試用者意見
   ============================================================ */
.u-voice { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.u-voice blockquote { margin: 0; }
.u-voice blockquote p { font-size: 0.9688rem; line-height: 1.9; color: var(--text); }
.u-voice figcaption {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.u-voice-who { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.u-voice-svc { font-size: 0.8125rem; color: var(--text-muted); }
.u-voice-note { text-align: center; margin-top: 18px; }

/* 視窗外框：頂部三個圓點加標題列 */
.u-window {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-window);
}
.u-window-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-soft); background: var(--muted);
}
.u-window-dots { display: flex; gap: 6px; flex: none; }
.u-window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.u-window-title { font-size: 0.7812rem; color: var(--text-muted); font-family: var(--mono); letter-spacing: -0.01em; }
.u-window-body { padding: 0; }

/* 首屏產品模擬：左劇本、右拆解 */
.u-mock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.u-mock > * { min-width: 0; }
.u-mock-l { padding: 20px 22px; border-right: 1px solid var(--border-soft); }
.u-mock-r { padding: 20px 22px; background: var(--muted); }
@media (max-width: 820px) {
  .u-mock { grid-template-columns: minmax(0, 1fr); }
  .u-mock-l { border-right: 0; border-bottom: 1px solid var(--border-soft); }
}
.u-mock-h {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.u-script {
  font-size: 0.8438rem; line-height: 1.95; color: var(--text); text-align: left;
  word-break: break-word;
}
.u-script p { margin: 0; }
.u-script .sc-no { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   類別顏色的公用類
   ============================================================ */
.cat-cast     { --cat: var(--cat-cast);     --cat-ink: var(--cat-cast-ink); }
.cat-action   { --cat: var(--cat-action);   --cat-ink: var(--cat-action-ink); }
.cat-prop     { --cat: var(--cat-prop);     --cat-ink: var(--cat-prop-ink); }
.cat-wardrobe { --cat: var(--cat-wardrobe); --cat-ink: var(--cat-wardrobe-ink); }
.cat-setdress { --cat: var(--cat-setdress); --cat-ink: var(--cat-setdress-ink); }
.cat-graphic  { --cat: var(--cat-graphic);  --cat-ink: var(--cat-graphic-ink); }
.cat-shoot    { --cat: var(--cat-shoot);    --cat-ink: var(--cat-shoot-ink); }
.cat-permit   { --cat: var(--cat-permit);   --cat-ink: var(--cat-permit-ink); }
.cat-vfx      { --cat: var(--cat-vfx);      --cat-ink: var(--cat-vfx-ink); }

.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 3px 11px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.7; white-space: nowrap;
  color: var(--cat-ink, var(--text-muted));
  background: color-mix(in srgb, var(--cat, var(--border)) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--cat, var(--border)) 34%, transparent);
}
.cat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat, var(--border)); display: inline-block; flex: none; }
.cat-dot.off { background: var(--border); opacity: 0.55; }
.cat-bar { width: 3px; border-radius: 2px; background: var(--cat, var(--border)); align-self: stretch; flex: none; }

/* 劇本原文內的標記：淡色底加同色底線 */
mark.cat-mark {
  background: color-mix(in srgb, var(--cat, var(--primary)) calc(var(--mark-alpha) * 100%), transparent);
  color: inherit;
  border-bottom: 2px solid var(--cat, var(--primary));
  border-radius: 2px;
  padding: 0 1px;
}
mark.cat-mark.on {
  background: color-mix(in srgb, var(--cat, var(--primary)) 46%, transparent);
  outline: 2px solid var(--cat, var(--primary));
  outline-offset: 1px;
}

.cat-legend { display: flex; flex-wrap: wrap; gap: 8px 10px; }

/* ============================================================
   膠囊分頁（pill tabs）
   ============================================================ */
.u-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 30px;
}
.u-tab {
  border: 1px solid var(--border); background: var(--card-translucent); color: var(--text-muted);
  border-radius: 999px; padding: 9px 18px; font-size: 0.875rem; font-weight: 500;
  transition: background .18s, color .18s, border-color .18s;
}
.u-tab:hover { color: var(--text); border-color: var(--primary); }
.u-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); font-weight: 600; }
.u-tabpanel:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   步驟
   ============================================================ */
.u-steps { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: ustep; }
@media (max-width: 940px) { .u-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .u-steps { grid-template-columns: minmax(0, 1fr); } }
.u-step { counter-increment: ustep; }
.u-step .n {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; display: inline-block; margin-bottom: 12px;
}
.u-step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.u-step p { font-size: 0.875rem; line-height: 1.8; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.u-faq { border-top: 1px solid var(--border-soft); }
.u-faq details { border-bottom: 1px solid var(--border-soft); }
.u-faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 2px; position: relative;
  font-size: 1rem; font-weight: 600; line-height: 1.6; color: var(--text);
}
.u-faq summary::-webkit-details-marker { display: none; }
.u-faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.u-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.u-faq .a { padding: 0 8px 20px 2px; font-size: 0.9062rem; line-height: 1.9; color: var(--text-muted); }

/* 摺疊的「依據」區 */
.u-src { margin-top: 6px; }
.u-src summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted); padding: 2px 6px; border-radius: var(--r-ctl);
}
.u-src summary::-webkit-details-marker { display: none; }
.u-src summary::before {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s;
}
.u-src[open] summary::before { transform: rotate(45deg); }
.u-src .q {
  margin-top: 4px; padding: 6px 12px; font-size: 0.8125rem; line-height: 1.8; color: var(--text-muted);
  border-left: 2px solid var(--cat, var(--border)); background: var(--muted); border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
}

/* ============================================================
   場次卡的日夜色條
   ============================================================ */
.u-scene { position: relative; border: 1px solid var(--border-soft); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.u-scene::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--border);
}
.u-scene.is-day::before   { background: var(--day); }
.u-scene.is-night::before { background: var(--night); }
.u-scene.is-both::before  { background: linear-gradient(180deg, var(--day) 0 50%, var(--night) 50% 100%); }
.u-io {
  display: inline-block; border-radius: 999px; border: 1px solid var(--border);
  padding: 1px 9px; font-size: 0.7188rem; color: var(--text-muted); background: var(--muted);
}

/* 條狀檢視（stripboard，本輪唯讀） */
.u-strip { border: 1px solid var(--border-soft); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.u-striprow {
  display: grid; grid-template-columns: 6px 64px 52px 52px minmax(0, 1fr) 62px auto;
  gap: 0 12px; align-items: center; width: 100%; text-align: left;
  padding: 0 14px 0 0; border: 0; border-top: 1px solid var(--border-soft); background: transparent;
  color: var(--text); font-size: 0.8438rem; min-height: 46px;
  transition: background .15s;
}
.u-strip .u-striprow:first-child { border-top: 0; }
.u-striprow:hover { background: var(--muted); }
.u-striprow .bar { align-self: stretch; background: var(--border); }
.u-striprow.is-day .bar   { background: var(--day); }
.u-striprow.is-night .bar { background: var(--night); }
.u-striprow.is-both .bar  { background: linear-gradient(180deg, var(--day) 0 50%, var(--night) 50% 100%); }
.u-striprow .no { font-family: var(--mono); font-size: 0.7812rem; color: var(--text-muted); padding-left: 12px; }
.u-striprow .tm, .u-striprow .io { font-size: 0.7812rem; color: var(--text-muted); }
.u-striprow .pl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-striprow .cc { font-size: 0.7812rem; color: var(--text-muted); font-family: var(--mono); }
.u-striprow .dots { display: flex; gap: 5px; align-items: center; justify-self: end; }
@media (max-width: 720px) {
  .u-striprow { grid-template-columns: 6px 52px 44px minmax(0, 1fr); row-gap: 4px; padding-bottom: 10px; padding-top: 8px; }
  .u-striprow .io, .u-striprow .cc { display: none; }
  .u-striprow .dots { grid-column: 2 / -1; justify-self: start; padding-left: 12px; }
}

/* ============================================================
   表單
   ============================================================ */
.u-form { margin-top: 8px; }
.u-fs { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.u-fs legend { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--primary); margin-bottom: 16px; padding: 0; }
.u-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.u-fgrid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .u-fgrid { grid-template-columns: minmax(0, 1fr); } }
.u-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.u-f > span { font-size: 0.8438rem; font-weight: 500; color: var(--text); }
.u-f .req { color: var(--primary); margin-left: 3px; }
.u-f > input, .u-f > select, .u-f > textarea {
  width: 100%; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  padding: 11px 13px; font-family: var(--sans); font-size: 0.9375rem; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.u-f > input::placeholder, .u-f > textarea::placeholder { color: var(--text-muted); opacity: 0.8; }
.u-f > input:focus, .u-f > select:focus, .u-f > textarea:focus {
  border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft);
}
.u-f > textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.u-hint { font-size: 0.7812rem; color: var(--text-muted); line-height: 1.6; }
.u-checkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.u-chk {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  padding: 8px 14px; font-size: 0.8438rem; color: var(--text-muted); cursor: pointer;
  transition: border-color .18s, color .18s;
}
.u-chk input { accent-color: var(--primary); margin: 0; }
.u-chk:has(input:checked) { border-color: var(--primary); color: var(--text); background: var(--primary-softer); }
.u-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; cursor: pointer; }
.u-consent input { accent-color: var(--primary); margin-top: 6px; flex: none; }
.u-note {
  border: 1px solid var(--border-soft); border-left: 3px solid var(--primary);
  background: var(--muted); border-radius: var(--r-ctl);
  padding: 16px 18px; font-size: 0.8438rem; color: var(--text-muted); line-height: 1.8; margin: 26px 0;
}
.u-note strong { color: var(--text); }
.u-err { font-size: 0.8438rem; color: var(--cat-cast-ink); line-height: 1.7; margin-top: 10px; }

/* 訂閱表單 */
.u-sub { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.u-sub input[type="email"] {
  flex: 1; min-width: 200px; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  padding: 12px 14px; font-family: var(--sans); font-size: 0.9375rem; outline: none; transition: border-color .18s, box-shadow .18s;
}
.u-sub input[type="email"]:focus { border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft); }
.u-sub button {
  background: var(--primary); color: var(--primary-fg); border: 1px solid var(--primary);
  border-radius: var(--r-ctl); padding: 12px 24px; font-size: 0.9375rem; font-weight: 600; transition: opacity .18s;
}
.u-sub button:hover { opacity: 0.9; }

/* ============================================================
   長文
   ============================================================ */
.u-prose { max-width: 70ch; }
.u-prose > * + * { margin-top: 1.3em; }
.u-prose h2 { font-size: clamp(1.375rem, 2.64vw, 1.75rem); margin-top: 2.2em; padding-top: 1.3em; border-top: 1px solid var(--border-soft); }
.u-prose h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.u-prose p, .u-prose li { color: var(--text-muted); line-height: 1.95; font-size: 0.9688rem; }
.u-prose ul, .u-prose ol { padding-left: 1.3em; margin: 0; }
.u-prose li { margin-top: 0.5em; }
.u-prose li::marker { color: var(--primary); }
.u-prose strong { color: var(--text); font-weight: 600; }
.u-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.u-prose blockquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 18px; margin: 0; color: var(--text-muted); }
.u-prose table { width: 100%; border-collapse: collapse; font-size: 0.9062rem; }
.u-prose th, .u-prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.u-prose th { color: var(--text); font-weight: 700; font-size: 0.8125rem; }
.u-prose td { color: var(--text-muted); }
.u-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* ============================================================
   頁尾
   ============================================================ */
.u-foot { border-top: 1px solid var(--border-soft); padding: 56px 0 36px; background: var(--muted); }
.u-foot-g { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.u-foot h4 { font-size: 0.7812rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text); margin-bottom: 14px; }
.u-foot a { display: block; text-decoration: none; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 9px; transition: color .18s; }
.u-foot a:hover { color: var(--primary); }
.u-foot-b {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.7812rem; color: var(--text-muted);
}
.u-foot-b a { display: inline; color: var(--primary); }
@media (max-width: 880px) { .u-foot-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (max-width: 520px) { .u-foot-g { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   動效
   ============================================================ */
@keyframes uRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.u-rise { animation: uRise .7s cubic-bezier(.22, 1, .36, 1) both; }
.u-d1 { animation-delay: .06s; } .u-d2 { animation-delay: .12s; } .u-d3 { animation-delay: .18s; } .u-d4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .u-rise { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   相容層：把舊的 lp-* 與 site.css 類名，重新定義在同一套 token 之上。
   目的是讓未改結構的頁面直接換上新外觀，減少 HTML 改動風險。
   ============================================================ */

/* ---- lp-* ---- */
.lp { background: var(--bg); color: var(--text); }
.lp-w { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lp-wn { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .lp-w, .lp-wn { padding: 0 16px; } }

.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border);
  background: var(--card-translucent); border-radius: 999px; padding: 5px 14px;
  font-size: 0.7812rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; text-transform: none; }
.lp-eyebrow.acc { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 34%, transparent); background: var(--primary-softer); }

.lp-h1 { font-size: clamp(2.25rem, 5.72vw, 3.875rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; color: var(--text); }
.lp-h2 { font-size: clamp(1.5rem, 3.3vw, 2.375rem); line-height: 1.2; letter-spacing: -0.026em; font-weight: 700; color: var(--text); }
.lp-body { font-size: 0.9688rem; line-height: 1.85; color: var(--text-muted); max-width: 62ch; }
.lp-small { font-size: 0.8438rem; line-height: 1.7; color: var(--text-muted); }
.lp-dim { color: var(--text-muted); }
.lp-sec { padding: 72px 0; }
.lp-sec.flush { padding-top: 40px; }
.lp-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; margin-bottom: 36px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-fg); border: 1px solid var(--primary);
  border-radius: var(--r-ctl); padding: 12px 24px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  transition: opacity .18s; text-decoration: none;
}
.lp-btn:hover { opacity: 0.9; }
.lp-btn.ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.lp-btn.ghost:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.lp-btn:disabled { opacity: 0.45; cursor: not-allowed; }
a.lp-btn { display: inline-flex; }

.lp-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9375rem; font-weight: 600;
  color: var(--primary); text-decoration: none; border-bottom: 0; padding: 4px 0; }
.lp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp-link.dim { color: var(--text-muted); }
.lp-link.dim:hover { color: var(--primary); }

.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: transparent;
  border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.lp-nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--border-soft); backdrop-filter: blur(12px); }
.lp-nav-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lp-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.lp-brand svg { width: 24px; height: 24px; }
.lp-brand span { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--text); white-space: nowrap; }
.lp-nav-r { display: flex; align-items: center; gap: 6px; }
.lp-nav-r a, .lp-nav-r button { background: none; border: 0; text-decoration: none; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--text-muted); padding: 8px 11px; border-radius: var(--r-ctl); transition: color .18s, background .18s; white-space: nowrap; }
.lp-nav-r a:hover, .lp-nav-r button:hover, .lp-nav-r a.on { color: var(--text); background: var(--muted); }
.lp-nav-r a.cta { background: var(--primary); color: var(--primary-fg); padding: 9px 18px; font-weight: 600; }
.lp-nav-r a.cta:hover { background: var(--primary); color: var(--primary-fg); opacity: 0.9; }
.lp-lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); }
.lp-lang a { font-size: 0.75rem; padding: 5px 6px; }
.lp-lang a.on { color: var(--primary); font-weight: 600; }
.lp-lang .s { color: var(--text-muted); opacity: 0.45; font-size: 0.75rem; }
@media (max-width: 860px) { .lp-nav-in { padding: 10px 16px; } .lp-nav-r a.hide-sm, .lp-nav-r .hide-sm { display: none; } }

.lp-idx { border-top: 1px solid var(--border-soft); }
.lp-r { display: grid; grid-template-columns: 56px 168px 1fr; gap: 22px; align-items: baseline;
  padding: 16px 8px; border-bottom: 1px solid var(--border-soft); border-radius: var(--r-ctl); transition: background .18s; }
.lp-r:hover { background: var(--muted); }
.lp-r .rn { font-family: var(--mono); font-size: 0.75rem; color: var(--primary); }
.lp-r .rt { font-size: 1rem; font-weight: 600; color: var(--text); }
.lp-r .rd { font-size: 0.8438rem; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 720px) { .lp-r { grid-template-columns: 40px 1fr; gap: 4px 14px; } .lp-r .rd { grid-column: 2; } }

.lp-rows { border-top: 1px solid var(--border-soft); }
.lp-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 12px; border-bottom: 1px solid var(--border-soft); border-radius: var(--r-card); text-decoration: none; transition: background .18s; }
.lp-row:hover { background: var(--muted); }
.lp-row .rc { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.lp-row .rh { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); font-weight: 700; color: var(--text); line-height: 1.35; letter-spacing: -0.02em; }
.lp-row:hover .rh { color: var(--primary); }
.lp-row .rp { font-size: 0.8438rem; color: var(--text-muted); margin-top: 5px; line-height: 1.7; }
.lp-row .ra { color: var(--text-muted); font-size: 0.9375rem; }
.lp-row:hover .ra { color: var(--primary); }
@media (max-width: 720px) { .lp-row { grid-template-columns: 1fr; gap: 7px; } .lp-row .ra { display: none; } }

.lp-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 56px; }
@media (max-width: 860px) { .lp-split { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.lp-sub { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.lp-sub input[type="email"] {
  flex: 1; min-width: 200px; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  padding: 12px 14px; font-family: var(--sans); font-size: 0.9375rem; outline: none; transition: border-color .18s, box-shadow .18s;
}
.lp-sub input[type="email"]::placeholder { color: var(--text-muted); opacity: 0.8; }
.lp-sub input[type="email"]:focus { border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft); }
.lp-sub button {
  background: var(--primary); color: var(--primary-fg); border: 1px solid var(--primary);
  border-radius: var(--r-ctl); padding: 12px 24px; font-family: var(--sans); font-size: 0.9375rem;
  font-weight: 600; letter-spacing: 0; text-transform: none; transition: opacity .18s;
}
.lp-sub button:hover { opacity: 0.9; }
@media (max-width: 520px) { .lp-sub { flex-direction: column; } }

.lp-form { margin-top: 8px; }
.lp-fs { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.lp-fs legend { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--primary); margin-bottom: 16px; padding: 0; }
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.lp-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .lp-grid { grid-template-columns: minmax(0, 1fr); } }
.lp-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-f > span { font-size: 0.8438rem; font-weight: 500; color: var(--text); letter-spacing: 0; }
.lp-f .req { color: var(--primary); margin-left: 3px; }
.lp-f > input, .lp-f > select, .lp-f > textarea {
  width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--r-ctl); padding: 11px 13px; font-family: var(--sans); font-size: 0.9375rem; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.lp-f > input::placeholder, .lp-f > textarea::placeholder { color: var(--text-muted); opacity: 0.8; }
.lp-f > input:focus, .lp-f > select:focus, .lp-f > textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft); }
.lp-f > textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.lp-hint { font-size: 0.7812rem; color: var(--text-muted); line-height: 1.6; }
.lp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chk { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  padding: 8px 14px; font-size: 0.8438rem; color: var(--text-muted); cursor: pointer; transition: border-color .18s, color .18s; }
.lp-chk input { accent-color: var(--primary); margin: 0; }
.lp-chk:has(input:checked) { border-color: var(--primary); color: var(--text); background: var(--primary-softer); }
.lp-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; cursor: pointer; }
.lp-consent input { accent-color: var(--primary); margin-top: 6px; flex: none; }
.lp-note { border: 1px solid var(--border-soft); border-left: 3px solid var(--primary); background: var(--muted);
  border-radius: var(--r-ctl); padding: 16px 18px; font-size: 0.8438rem; color: var(--text-muted); line-height: 1.8; margin: 26px 0; }

.lp-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 4px 14px;
  border: 1px solid var(--border-soft); border-radius: var(--r-card); background: var(--card-translucent);
  box-shadow: var(--shadow-sm); padding: 18px 20px; }
.lp-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--mono);
  font-size: 0.75rem; font-weight: 600; color: var(--primary); padding-top: 3px; }
.lp-steps b { color: var(--text); font-weight: 700; font-size: 0.9688rem; }
.lp-steps span { color: var(--text-muted); font-size: 0.875rem; line-height: 1.8; }

.lp-foot { border-top: 1px solid var(--border-soft); padding: 56px 0 36px; background: var(--muted); }
.lp-foot-g { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 32px; }
.lp-foot h4 { font-family: var(--sans); font-size: 0.7812rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: 14px; }
.lp-foot a { display: block; text-decoration: none; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 9px; transition: color .18s; }
.lp-foot a:hover { color: var(--primary); }
.lp-foot-b { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.7812rem; color: var(--text-muted); }
.lp-foot-b a { display: inline; color: var(--primary); }
@media (max-width: 760px) { .lp-foot-g { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

.lp-rise { animation: uRise .7s cubic-bezier(.22, 1, .36, 1) both; }
.lp-d1 { animation-delay: .06s; } .lp-d2 { animation-delay: .12s; } .lp-d3 { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .lp-rise { animation: none; } }

/* ---- site.css 的類名 ---- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .wrap, .wrap-narrow { padding: 0 16px; } }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: transparent;
  border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--border-soft); backdrop-filter: blur(12px); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 0.875rem; color: var(--text-muted); padding: 8px 11px; border-radius: var(--r-ctl); transition: color .18s, background .18s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--muted); }
.nav-cta { font-size: 0.875rem; font-weight: 600; padding: 9px 18px !important; border: 1px solid var(--primary);
  background: var(--primary); color: var(--primary-fg) !important; border-radius: var(--r-ctl); }
.nav-cta:hover { opacity: 0.9; background: var(--primary) !important; color: var(--primary-fg) !important; }
@media (max-width: 860px) { .nav-inner { padding: 10px 16px; } .nav-links a.hide-sm { display: none; } .nav-links { gap: 2px; } }

.section { padding: 80px 0; position: relative; }
.section.tight { padding: 52px 0; }
.section.alt { background: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 9px; border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
  background: var(--primary-softer); border-radius: 999px; padding: 5px 14px;
  font-size: 0.7812rem; letter-spacing: 0; text-transform: none; color: var(--primary); font-weight: 600; margin-bottom: 18px; }
.kicker-line { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.kicker-line::after { content: ""; height: 1px; flex: 1; background: var(--border-soft); }

.display { font-size: clamp(2.125rem, 5.72vw, 3.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.5rem, 3.3vw, 2.25rem); margin-bottom: 18px; letter-spacing: -0.026em; }
.h3 { font-size: 1.1875rem; margin-bottom: 10px; letter-spacing: -0.016em; }
.lede { font-size: clamp(1rem, 1.76vw, 1.125rem); color: var(--text-muted); line-height: 1.85; max-width: 64ch; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.7812rem; color: var(--text-muted); line-height: 1.7; }
.rule { height: 1px; background: var(--border-soft); border: 0; margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 24px; border-radius: var(--r-ctl);
  text-decoration: none; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0;
  transition: opacity .18s, border-color .18s, color .18s; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

.grid { display: grid; gap: 18px; background: transparent; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-gap { gap: 18px; background: transparent; }
.card { background: var(--card-translucent); border: 1px solid var(--border-soft); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); padding: 26px 24px; transition: border-color .18s, box-shadow .18s; }
.card:hover { border-color: var(--border); box-shadow: var(--shadow-card); }
.grid-gap .card { border: 1px solid var(--border-soft); border-radius: var(--r-card); background: var(--card-translucent); }
.card .idx { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; display: inline-block; }
.card p { color: var(--text-muted); font-size: 0.9062rem; line-height: 1.8; }
a.card { text-decoration: none; display: block; }
a.card:hover .h3 { color: var(--primary); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; background: transparent; }
.step { background: var(--card-translucent); border: 1px solid var(--border-soft); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); padding: 22px 20px; }
.step .n { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; display: inline-block; margin-bottom: 10px; }
.step .t { font-size: 0.9688rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.016em; }
.step .d { font-size: 0.8438rem; color: var(--text-muted); line-height: 1.7; }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: clamp(1.375rem, 2.64vw, 1.75rem); margin-top: 2.2em; padding-top: 1.3em; border-top: 1px solid var(--border-soft); }
.prose h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.prose p { color: var(--text-muted); line-height: 1.95; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-muted); }
.prose li { margin-top: 0.5em; line-height: 1.9; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; border-bottom: 0; }
.prose blockquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 18px; color: var(--text-muted); font-style: normal; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9062rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; }
.prose td { color: var(--text-muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.note { border: 1px solid var(--border-soft); border-left: 3px solid var(--primary); background: var(--muted);
  padding: 16px 20px; border-radius: var(--r-ctl); font-size: 0.9062rem; color: var(--text-muted); line-height: 1.8; }
.note strong { color: var(--text); }

.art-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 0.7812rem; color: var(--text-muted); }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.footer { border-top: 1px solid var(--border-soft); padding: 56px 0 36px; background: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--sans); font-size: 0.7812rem; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: 14px; font-weight: 700; }
.footer a { display: block; text-decoration: none; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 9px; transition: color .18s; }
.footer a:hover { color: var(--primary); }
.footer-bot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.7812rem; color: var(--text-muted); }
.footer-bot a { color: var(--primary); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

.tool-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border-soft); margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 11px 13px; border-radius: var(--r-ctl); font-family: var(--sans); font-size: 0.9375rem; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 78px; line-height: 1.7; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.check-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: background .18s, border-color .18s; background: var(--card);
}
.check-item input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.check-item input[type="checkbox"]:checked::after {
  content: ""; display: block; width: 5px; height: 9px; margin: 2px auto 0;
  border-right: 2px solid var(--primary-fg); border-bottom: 2px solid var(--primary-fg); transform: rotate(45deg);
}
.check-item label { cursor: pointer; flex: 1; }
.check-item .ci-t { font-size: 0.9375rem; display: block; margin-bottom: 3px; color: var(--text); }
.check-item .ci-d { font-size: 0.8438rem; color: var(--text-muted); line-height: 1.7; }
.check-item input:checked ~ label .ci-t { color: var(--text-muted); text-decoration: line-through; }

.rise { animation: uRise .7s cubic-bezier(.22, 1, .36, 1) both; }
.rise-1 { animation-delay: .06s; } .rise-2 { animation-delay: .12s; } .rise-3 { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* ============================================================
   首頁互動示範（hd-*）
   只用上面兩層的語意變數與類別顏色 token，不另設一套顏色。
   沒有 JS 時，.hd-bar／.hd-filters／.hd-hint 仍是 hidden，
   視窗內只顯示場 1 的靜態內容。
   ============================================================ */
.hd .u-window-body { padding: 0; }

.hd-bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft); background: var(--muted);
}
.hd-tabs, .hd-views { display: flex; flex-wrap: wrap; gap: 8px; }
.hd .u-tab { padding: 7px 15px; font-size: 0.8438rem; }
.u-tab[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); font-weight: 600; }

.hd-filters {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
}
.hd-filter { cursor: pointer; }
/* 已按下：底色加深，文字改用 --text。
   類別的 -ink 色放在 32% 的類別底色上達不到 4.5:1，
   類別身分由色點、邊框與內框線表示。 */
.hd-filter[aria-pressed="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--cat, var(--border)) 32%, var(--card));
  border-color: var(--cat, var(--border));
  box-shadow: inset 0 0 0 1px var(--cat, var(--border));
}

.hd #hdScript { max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.hd-note { margin-top: 10px; }

/* 劇本原文內的可按標記：外觀仍是標記，行為是按鈕 */
.hd-markbtn {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  text-align: inherit; line-height: inherit; cursor: pointer;
}
mark.hd-mark { padding: 0 1px; }

/* 拆解清單 */
.hd-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hd-item {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--border-soft); border-left: 3px solid var(--cat, var(--border));
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0; background: var(--card);
  padding: 10px 12px; color: var(--text); font-family: var(--sans); font-size: 0.875rem;
  transition: background .15s, border-color .15s;
}
button.hd-item { cursor: pointer; }
button.hd-item:hover { background: var(--primary-softer); border-color: var(--border); }
button.hd-item[aria-pressed="true"] {
  background: color-mix(in srgb, var(--cat, var(--primary)) 12%, var(--card));
  border-color: color-mix(in srgb, var(--cat, var(--border)) 46%, transparent);
  border-left-color: var(--cat, var(--primary));
}
.hd-item-name { display: block; margin-top: 6px; font-size: 0.875rem; line-height: 1.6; }
.hd-item-q { display: block; margin-top: 4px; font-size: 0.7812rem; color: var(--text-muted); line-height: 1.7; }
/* 已選項目的底色帶類別色，--text-muted 放在上面不足 4.5:1，引文改用 --text */
button.hd-item[aria-pressed="true"] .hd-item-q { color: var(--text); }
.hd-empty { color: var(--text-muted); padding: 10px 2px; }

/* 條狀檢視 */
.hd-stripwrap { padding: 16px; }
.hd-stripwrap .u-striprow { cursor: pointer; position: relative; }
.hd-stripwrap .u-striprow[aria-current="true"] { background: var(--primary-softer); }
.hd-stripwrap .u-striprow[aria-current="true"] .no { color: var(--primary); font-weight: 600; }

/* 視窗下方的行動按鈕 */
.hd-foot {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between;
  padding: 16px; border-top: 1px solid var(--border-soft); background: var(--muted);
}
.hd-hint { margin: 0; flex: 1 1 260px; min-width: 0; }
.hd-foot .u-btn { flex: none; }

@media (max-width: 720px) {
  .hd-bar, .hd-filters, .hd-foot, .hd-stripwrap { padding: 12px; }
  .hd #hdScript { max-height: none; }
  .hd-foot { justify-content: stretch; }
  .hd-foot .u-btn { width: 100%; }
}
@media (max-width: 520px) {
  .hd-bar { flex-direction: column; align-items: stretch; }
  .hd-tabs, .hd-views { justify-content: center; }
}

.print-only { display: none; }
@media print {
  .nav, .u-nav, .lp-nav, .footer, .u-foot, .lp-foot, .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; padding-top: 0 !important; }
  .section, .u-sec, .lp-sec { padding: 0 !important; }
  .card, .u-card, .note, .u-note, .field input, .field textarea { background: #fff !important; border-color: #999 !important; color: #000 !important; box-shadow: none !important; }
  h1, h2, h3, h4, .prose p, .prose li, .muted, .tiny, .check-item .ci-d { color: #000 !important; }
  .kicker, .card .idx, .step .n { color: #555 !important; background: transparent !important; }
  a { color: #000 !important; border: 0 !important; }
  .check-item { border-bottom: 1px solid #ccc; break-inside: avoid; }
  .check-item input[type="checkbox"] { border: 1px solid #000 !important; }
  .print-only { display: block !important; }
}

/* 支持機構 */
.u-support { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.u-support-h { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); margin: 0; }
.u-support-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.u-support-logo { display: inline-flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--border); border-radius: var(--r-card, 12px); padding: 14px 22px; }
.u-support-logo img { display: block; height: 64px; width: auto; }
@media (max-width: 480px) { .u-support-logo img { height: 52px; } }

/* 跳到主要內容（2026-10-26 A8）：平時移出畫面，鍵盤 Tab 到它時才出現在左上角。
   只有這一個用途，不影響其他樣式。 */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 1000;
  padding: 8px 14px; border-radius: var(--r-ctl);
  background: var(--bg); color: var(--text); border: 2px solid var(--ring);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 8px; }
