/* ==========================================================================
   璇璣臺 LightInward — 設計系統
   --------------------------------------------------------------------------
   全站唯一的一份樣式。頁面裡只留該頁獨有的幾行。

   ★ 為什麼要有這個檔案：功能是從三個專案搬來的（OneHeart 的會員、
     taiyidigital 的寄信、新寫的報告），每一頁各帶一套顏色與間距，
     使用者從登入頁走到報告頁像換了三個網站。
     設計系統的意義不是漂亮，是「同一件事在每一頁長得一樣」。

   概念：（待重寫）原本是「回光 —— 夜盡天明的那道光」，2026-10-26 改名璇璣臺之後
     紫微斗數源自星象，所以底是將亮未亮的夜空（靛墨），
     這個比喻不成立了。色票暫時沿用，視覺改版時整段重寫。
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    /* ══ 璇璣臺品牌 token ════════════════════════════════════════════════
       正本在 huiguang-brand/tokens.css。

       ★ 色碼只在這一段出現。底下那些 --night / --paper / --glow 是既有
         名字，一律指向這裡 —— 998 行 CSS 加 11 個頁面的內嵌樣式都在用
         舊名字，一次改掉沒辦法逐頁驗證，而漏掉一處的症狀是「那一塊看
         不見了」，不是會報錯的那種錯。頁面逐一改完再把舊名收掉。

       ★ 混色（--faint、--glow-soft 這些）先算成 hex 寫死，不用
         color-mix()。報告與命書的 PDF 走 headless Chrome 單獨渲染，
         而 var() 裡的 color-mix 不支援時是「無效值 → 繼承」，
         症狀同樣是看不見。
       ══════════════════════════════════════════════════════════════ */

    /* 夜 */
    --bg:              #0c1120;
    --bg-raised:       #151c30;
    --ink-night:       #ede6d6;   /* 夜底上的字。--ink 另有既有用途（紙上的字），不能直接佔用 */
    --ink-muted-night: #a3a8b8;
    --hairline:        #2b3350;
    --gold:            #d6b25e;
    --on-gold:         #0c1120;
    --ziwei:           #a48bc4;
    --indigo:          #34457f;

    /* 紙 */
    --paper-bg:       #f3eee3;
    --paper-raised:   #fbf8f1;
    --paper-ink:      #1a1f2e;
    --paper-muted:    #5a5f70;
    --paper-hairline: #d9d0be;
    --paper-gold:     #86661c;
    --paper-ziwei:    #5f4580;

    /* 深夜空的四階。品牌只給一個夜色，但主視覺需要一條由上而下的漸層 ——
       這四階是 indigo 按 55 / 35 / 15 / 0% 混進 bg 算出來的，
       不是另外挑的四個顏色。 */
    --sky-1: #222e54;
    --sky-2: #1a2341;
    --sky-3: #12192e;
    --sky-4: #080b16;

    /* 形狀只有方與圓：卡片與宮位格方角，按鈕用 radius-sm。
       ★ radius-sm 的原始 token 是 2px，2026-10-08 使用者要求按鈕更柔
         → 10px。tokens.css / tokens.json 與 BRAND.md 那句話要同步改。 */
    --radius-none: 0;
    --radius-sm:   10px;
    --radius-full: 9999px;

    /* ── 既有名字 → 品牌 token ──────────────────────────────────── */

    /* 夜空 */
    --night:      var(--bg);
    --night-2:    var(--bg-raised);
    /* 第三階夜色品牌沒有對應的。用 sky-1 —— 它在既有樣式裡的用途
       （夜空漸層的頂、流年宮的底）正是品牌給 indigo 的位置。 */
    --night-3:    var(--sky-1);
    /* ★ 從半透明換成實色。原本是 rgba(237,230,214,.14)，會隨背後的底
       自動調整；實色不會，所以疊在 indigo 上時是比較暗的一條。
       品牌把 hairline 定義成實色，預覽頁也是這樣，先照品牌走。 */
    --night-line: var(--hairline);
    --night-text: var(--ink-night);
    --night-mute: var(--ink-muted-night);

    /* 紙 */
    --paper:   var(--paper-raised);
    --paper-2: var(--paper-bg);
    --paper-3: #e9e2d4;        /* paper-hairline 40% + paper-bg */
    --ink:     var(--paper-ink);
    --ink-2:   #373c4c;        /* 比 ink 軟一階，法遵頁的正文在用 */
    --muted:   var(--paper-muted);
    /* ★ paper-muted 95% + paper-bg。幾乎等於 --muted，而這是沒辦法的事：
       品牌只定義一階次要色，這個第三階是站上自己加的。在奶油色紙底上
       要同時「比 muted 更安靜」又「過 4.5:1」做不到 —— 再淡一階就是
       4.02，而這個變數在用的地方（表單提示、頁尾、法遵小字）
       都是真的要讀的字。選讀得到，不選有層次。 */
    --faint:   #626676;
    --line:    var(--paper-hairline);
    --line-2:  #c2bbad;        /* paper-hairline 88% + paper-ink */

    /* 璇璣臺 */
    --glow:      var(--gold);
    --glow-soft: #ddc282;      /* gold 70% + ink-night，夜底上更亮的一階 */
    --glow-deep: var(--paper-gold);
    --glow-wash: #f2ece0;      /* paper-gold 8% + paper-raised */

    /* 語意：吉凶沿用傳統色，跟主色分開 */
    --good:      #c8553d;   /* 吉 · 硃砂 */
    --good-wash: #fbeae6;
    --bad:       #4f5b73;   /* 凶 · 石青 */
    --bad-wash:  #e9ecf1;
    --warn:      #b8882a;
    --warn-wash: #fbf1d8;
    --warn-line: #ecd9a0;
    --warn-ink:  #7a5a14;   /* wash 上的文字要比 --warn 更深才讀得到 */
    --danger:    #b3423a;
    --danger-wash: #f7e6e4;
    --danger-line: #efc7c2;
    --danger-ink:  #7a2b25;
    /* 完成。原本三個值寫死在 .notice-ok 裡，收進來才有辦法跟著主題換。 */
    --ok:        #245a3d;
    --ok-wash:   #e8f2ec;
    --ok-line:   #bfdccb;
    --glow-line: #ded4bc;   /* paper-gold 25% + paper-raised */

    /* 字 */
    --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
    --sans:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;
    --mono:  "SFMono-Regular", Consolas, "Roboto Mono", monospace;

    /* 尺度 */
    --measure: 42rem;          /* 內文寬度，約 40 個中文字 */
    --shell:   68rem;          /* 站台最大寬 */
    --r:    var(--radius-sm);     /* 按鈕、輸入框、提示框 */
    --r-lg: var(--radius-none);   /* 卡片與宮位格一律方角 */
    --shadow: 0 1px 2px rgba(26, 31, 46, .06), 0 8px 24px -12px rgba(26, 31, 46, .18);
    --shadow-night: 0 30px 80px -30px rgba(0, 0, 0, .7);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* ★ hidden 屬性要贏過任何 display 規則。.btn 之類寫了 display:inline-flex 的元件，
   沒有這一條的話加了 hidden 還是會顯示（結果頁的「分享圖片」在桌機上就這樣露出來過）。 */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--glow-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .01em;
    margin: 0;
    text-wrap: balance;
}
p { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--glow-soft); color: var(--ink); }

.tnum { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny  { font-size: 13px; }

/* ── Type scale ─────────────────────────────────────────────────────────── */
/* ★ 2026-10-27 璇璣臺：標題字距大幅拉開。
      這是整套識別裡最省力的一項 —— 不需要插畫、不需要新字型，
      只要 letter-spacing，而中文標題拉開之後的氣質差很多。

   ★ 一定要配 text-indent 補回來。letter-spacing 會在**最後一個字後面**
      也加一份間距，置中的標題會因此整段左偏半格。
      這是拉字距最常見的那個「看起來沒對齊但量不出來」的問題。 */
.t-display { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.18;
             letter-spacing: .2em; text-indent: .2em; }
.t-h1 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: .18em; text-indent: .18em; }
.t-h2 { font-size: clamp(22px, 2.6vw, 27px); letter-spacing: .16em; text-indent: .16em; }
.t-h3 { font-size: 19px; }
.t-lead { font-size: 17px; line-height: 1.9; color: var(--muted); }
.eyebrow {
    font-family: var(--sans); font-size: 12.5px; letter-spacing: .18em;
    color: var(--glow-deep); text-transform: uppercase; font-weight: 500;
}
.night .eyebrow { color: var(--glow); }

/* ── Shell ──────────────────────────────────────────────────────────────── */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }
.center { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: var(--gap, 16px); }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(251, 250, 248, .82);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .shell { display: flex; align-items: center; gap: 26px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 26px; height: 26px; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
/* ★ 通用的 a 規則一律排除 .btn：這兩條是 (0,1,1)，會贏過 .btn-primary / .btn-glow 的 (0,1,0)，
   結果站頭的「免費排盤」變成灰字配墨底、夜空裡的金按鈕變成淺金字配金底 ——
   hover 又正常是因為 .btn-*:hover 是 (0,2,0)。li.css 第五個「通用規則吃掉元件」的案例。 */
.site-nav a:not(.btn) { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a.btn { padding: 8px 16px; font-size: 14px; }
/* 後台入口。只有管理員看得到，所以刻意做得比其他項目更安靜 ——
   它是工作用的門，不是要跟「我的報告」搶注意力的。外框讓它一眼認得出是另一類。 */
.site-nav a.nav-admin {
    padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
    font-size: 13px; color: var(--faint);
}
.site-nav a.nav-admin:hover { color: var(--ink); border-color: var(--muted); }
.site-nav form { display: none; }
@media (max-width: 640px) { .site-nav { gap: 14px; } .site-nav .hide-sm { display: none; } }

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 13px; }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
/* ★ 跟上面 .site-nav 同一條規矩：通用的 a 要排除 .btn。
   這裡目前沒有按鈕所以還沒出事，但 (0,1,1) 一樣會贏過 .btn-* 的 (0,1,0) ——
   哪天在頁尾放一顆按鈕，它的字色會變成 --muted，而且沒有任何徵兆。 */
.site-footer a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--ink); }
.site-footer .brand { margin-right: auto; }
.site-footer .brand .name { font-size: 15px; }
.site-footer .brand .mark { width: 18px; height: 18px; }
/* 交易主體。刻意比連結列再淡一階 —— 要看得到，但不跟導覽搶注意力 */
.site-footer .foot-operator { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* 交易主體標示（_OperatorNotice.cshtml）。結帳、付款、完成頁各放一次 */
.op-notice { font-size: 12.5px; line-height: 1.85; color: var(--muted); margin: 0; }
.op-notice strong { color: var(--ink); font-weight: 600; }
.card .op-notice, .co-side .op-notice { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* 回 字標誌 */
.mark { display: inline-block; }
/* ★ 標誌是單色的：品牌只有 gold / moon / ink 三個單色版本，沒有雙色版，
   所以金點那一元素也跟著 currentColor。
   線寬不在這裡設 —— SVG 的 viewBox 是 120（命盤格線），
   在 CSS 寫 1.6 會變成格寬的 1/75 而不是品牌規定的 1/8。 */
.mark .frame { fill: none; stroke: currentColor; }
.mark .light { fill: currentColor; }

/* ── Night panels（夜空區塊，星空畫在 canvas 上） ───────────────────── */
/* ★ 這裡的 overflow: hidden 會讓**裡面所有的 position: sticky 失效** ——
      hidden 製造了一個捲動容器，sticky 從此對著那個不會捲的容器算。
      computed style 照樣是 sticky、top 照樣在，元素就是不黏，沒有任何錯誤。
      要在夜空區塊裡放 sticky 的話，那一層要改成 overflow: clip
      （一樣裁切，但不製造捲動容器）—— 命書閱讀頁的側邊目錄就是這樣處理的。 */
.night {
    position: relative; overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, var(--night-2) 45%, var(--night) 100%);
    color: var(--night-text);
}
.night a:not(.btn) { color: var(--glow-soft); }
.night .muted, .night .faint { color: var(--night-mute); }
.night .starfield, .kw-card .starfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.night > .shell, .night > .inner { position: relative; }
.night::after {
    /* 地平線上的那道光 */
    content: ""; position: absolute; left: 50%; bottom: -1px; width: min(1100px, 140%); height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--glow) 35%, var(--glow-soft) 50%, var(--glow) 65%, transparent);
    opacity: .75;
}
.night.flat::after { display: none; }

/* 更深的夜空。分享頁與結果頁的主視覺用 —— 那兩處是會被截圖的，
   底色壓深，關鍵字才跳得出來。一般區塊仍用 .night 就好。
   ★ 2026-10-08 改品牌色票：原本是四個寫死的紫，現在走 --sky-*（藍）。 */
.night.deep {
    background:
        radial-gradient(120% 55% at 50% 100%, rgba(214, 178, 94, .13) 0%, rgba(214, 178, 94, 0) 60%),
        radial-gradient(90% 60% at 50% 0%, var(--sky-1) 0%, var(--sky-2) 40%, var(--sky-3) 75%, var(--sky-4) 100%);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--r);
    font-size: 15.5px; font-weight: 500; line-height: 1.2; text-decoration: none;
    /* ★ 2026-10-27：按鈕的字也拉開，跟標題同一套語言。
       text-indent 的理由同 .t-display —— 不補的話按鈕文字會左偏。 */
    letter-spacing: .2em; text-indent: .2em;
    border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ink-night); }
.btn-primary:hover { background: var(--night-2); color: var(--ink-night); }
.btn-glow { background: var(--glow); border-color: var(--glow); color: var(--night); font-weight: 600; }
.btn-glow:hover { background: var(--glow-soft); border-color: var(--glow-soft); color: var(--night); }
.btn-ghost { background: transparent; }
.night .btn-ghost { border-color: var(--night-line); color: var(--night-text); }
.night .btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--ink-night); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; padding: 0; color: var(--glow-deep); text-decoration: underline; text-underline-offset: .18em; font-weight: 400; }
.btn-link:hover { transform: none; box-shadow: none; color: var(--ink); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field > label, .field .lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field .hint { color: var(--faint); font-size: 13px; line-height: 1.6; margin-top: 6px; }
.field .err, .field-validation-error, .validation-summary-errors { color: var(--danger); font-size: 13.5px; }
.validation-summary-errors ul { margin: 0 0 16px; padding-left: 18px; }
.validation-summary-valid { display: none; }
.input, .field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=tel], .field input[type=date], .field input[type=time], .field input[type=number],
.field select, .field textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line-2); border-radius: var(--r);
    background: var(--paper); font-size: 16px; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    outline: none; border-color: var(--glow-deep); box-shadow: 0 0 0 3px var(--glow-wash);
}
.field input.input-validation-error { border-color: var(--danger); }
.field textarea { resize: vertical; line-height: 1.7; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23625d78' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.field .check input { width: 18px; height: 18px; margin: 4px 0 0; flex: none; accent-color: var(--ink); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }
/* 年／月／日：手機上也維持一列，生日拆成三行反而難讀 */
.row-3 { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .row-3 { gap: 6px; } .row-3 select { padding-left: 10px; padding-right: 30px; background-position: right 8px center; } }
/* 曆別／年／月／日。四個擠一列在手機上太窄（農曆的「閏五月」要放得下），所以折成 2×2 */
.row-birth { display: grid; grid-template-columns: 0.85fr 1.15fr 1fr 0.95fr; gap: 10px; }
/* 閏月的更正連結：那一年有同號閏月才會出現，所以刻意壓低存在感 */
.field .leap-hint { margin-top: 4px; }
.field .leap-hint a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 560px) {
    .row-birth { grid-template-columns: 1fr 1fr; gap: 8px; }
    .row-birth select { padding-left: 12px; padding-right: 30px; background-position: right 8px center; }
}
fieldset { border: none; padding: 0; margin: 0 0 32px; min-width: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 18px; padding: 0; margin-bottom: 18px; }

/* ── Cards / surfaces ───────────────────────────────────────────────────── */
/* ★ background-color 不是 background。.card 會跟 .ornate 疊在一起用
      （書架的 .vol 就是 card + vol + ornate），而 .ornate 的四角記號是
      background-image 畫的 —— 簡寫會把它整組重設掉。
      兩條規則特異性相同，目前靠「.ornate 寫在後面」才贏，太脆。 */
.card { background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
/* ★ .card 的白底寫在 .night 後面，兩者同為單一 class 時後者勝 ——
   所以 class="card night" 會變成白底配淺色字，對比只有 2.3:1，等於讀不到。
   兩個 class 疊起來時要把夜空底還回去。 */
.card.night {
    background: radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, var(--night-2) 45%, var(--night) 100%);
    border-color: transparent;
}
.card.raised { box-shadow: var(--shadow); border-color: transparent; }
.card.off { opacity: .55; }
.band { background: var(--paper-2); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.notice { border-radius: var(--r); padding: 14px 18px; font-size: 14px; line-height: 1.8; border: 1px solid; }
.notice-warn { background: var(--warn-wash); border-color: var(--warn-line); }
.notice-danger { background: var(--danger-wash); border-color: var(--danger-line); color: var(--danger-ink); }
.notice-info { background: var(--glow-wash); border-color: var(--glow-line); }
.notice-ok { background: var(--ok-wash); border-color: var(--ok-line); color: var(--ok); }

/* ── Tags ───────────────────────────────────────────────────────────────── */
.tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px;
    font-weight: 500; letter-spacing: .02em; vertical-align: middle;
}
.tag-glow { background: var(--glow-wash); color: var(--glow-deep); }
.tag-good { background: var(--good-wash); color: var(--good); }
.tag-bad { background: var(--bad-wash); color: var(--bad); }
.tag-mute { background: var(--paper-3); color: var(--muted); }
.tag-warn { background: var(--warn-wash); color: var(--warn-ink); }
.tag-danger { background: var(--danger-wash); color: var(--danger); }
.tag-strong { background: var(--ink); color: var(--ink-night); }
.tag-medium { background: var(--paper-3); color: var(--ink); }
.tag-weak { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ── Plans（方案卡） ─────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan {
    position: relative; display: block; text-decoration: none; color: inherit;
    /* ★ 原本是 background 簡寫。拆成 background-color 是因為 .ornate 用
       background-image 畫四角記號，簡寫會把它整組洗掉。 */
    background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 28px;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.plan.main { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow), var(--shadow); }
.plan .mark-tag { position: absolute; top: -11px; left: 22px; }
.plan .pn { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.plan .pp { font-size: 34px; font-family: var(--serif); margin: 10px 0 14px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.plan .pp small { font-size: 14px; font-family: var(--sans); color: var(--muted); margin-right: 4px; letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1.5px; background: var(--glow-deep); }
.plan .cta { margin-top: 20px; }


/* ── 璇璣臺紋飾（雙線框 + 四角記號）────────────────────────────────────── */
/*
   參考稿的卡片都有「細雙框 + 四個角的短記號」。這是這套識別的主要紋飾。

   ★ 四角記號用 background-image 畫，不另外加元素。
     加元素的話 Razor 與 design-system/src 兩份 markup 都要改，
     而那兩份沒有任何東西會提醒你它們走鐘了（見 .design-sync/NOTES.md）。
     八個漸層、每個角兩條（一橫一豎），用 background-position 定位。

   ★ 內框用 ::before，所以套用的元素必須是 position: relative。
     .plan 與 .card 本來就是，其他地方要自己確認。

   ★ 顏色走 --glow，所以在紙底（--glow 是 --paper-gold #86661c）與
     夜底（#d6b25e）都成立，不必寫兩份。
*/
/* ★ .plan 一起列進選擇器，而不是去 Razor 加一個 class ——
      加 class 的話 Views/ 與 design-system/src/ 兩份 markup 都要改，
      而那兩份走鐘了不會有任何東西提醒你。 */
.ornate,
.plan {
    --tick: 11px;
    background-image:
        linear-gradient(var(--glow), var(--glow)), linear-gradient(var(--glow), var(--glow)),
        linear-gradient(var(--glow), var(--glow)), linear-gradient(var(--glow), var(--glow)),
        linear-gradient(var(--glow), var(--glow)), linear-gradient(var(--glow), var(--glow)),
        linear-gradient(var(--glow), var(--glow)), linear-gradient(var(--glow), var(--glow));
    background-size:
        var(--tick) 2px, 2px var(--tick), var(--tick) 2px, 2px var(--tick),
        var(--tick) 2px, 2px var(--tick), var(--tick) 2px, 2px var(--tick);
    background-position:
        left top, left top, right top, right top,
        left bottom, left bottom, right bottom, right bottom;
    background-repeat: no-repeat;
}
/* 內框。inset 5px 是參考稿量出來的比例。 */
.ornate::before,
.plan::before {
    content: ""; position: absolute; inset: 5px;
    border: 1px solid var(--glow);
    opacity: .16; pointer-events: none;
}



/* ── 圓框入口列（璇璣臺識別）──────────────────────────────────────────── */
/*
   參考稿首頁英雄下方的那一排圓形徽記。等分欄位、細直線分隔。

   ★ 徽記是 Images/brand/ic-*.svg（2026-10-30 換成正式版：深藍圓底、霧金描線）。
     SVG 自己帶圓底和金環，所以 .ent-ic 不再畫邊框和底色，只負責尺寸與圓形裁切。
     原檔是 512 畫布、圓只佔 81%，放進來之前 viewBox 已經裁到外圈（47 47 418 418），
     不然框的圓會套著圖的圓變兩層。

   ★ 徽記一定要去背。帶背景的話圓形遮罩會把方形的四角切成一道亮弧，
     看起來像月亮 —— 從 mockup 裁出來的那批就是這樣報銷的。
*/
.entries {
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--night-2);
}
.ent {
    display: block; text-align: center; text-decoration: none; color: inherit;
    padding: 22px 10px 24px; border-right: 1px solid var(--line);
    transition: background .2s var(--ease);
}
.ent:last-child { border-right: 0; }
.ent:hover { background: rgba(214, 178, 94, .06); color: inherit; }
.ent-ic {
    display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto;
    border-radius: 50%; color: var(--glow); overflow: hidden;
}
.ent-ic svg { width: 26px; height: 26px; }
.ent-ic img { width: 100%; height: 100%; object-fit: cover; }
.ent-nm {
    display: block; margin-top: 10px; font-family: var(--serif); font-weight: 500;
    font-size: 13.5px; letter-spacing: .14em; text-indent: .14em;
}
.ent-ds {
    display: block; margin-top: 4px; font-size: 11px; line-height: 1.8;
    color: var(--muted); letter-spacing: .02em;
}
/* ★ 五欄在手機上一定擠爆。改成每排兩個，最後一個獨佔一排 ——
      三欄的話字會被壓成一行一個字。 */
@media (max-width: 720px) {
    .entries { grid-template-columns: repeat(2, 1fr); }
    .ent { border-bottom: 1px solid var(--line); }
    .ent:nth-child(2n) { border-right: 0; }
    .ent:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ── 十二宮命盤 ──────────────────────────────────────────────────────────── */
.chart12 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--night-line);
    border: 1px solid var(--night-line); border-radius: var(--r-lg); overflow: hidden;
    /* 自己帶前景色，不要靠外層的 .night。命盤是一個完整的深色物件，
       放到紙色底上也該讀得到（跟 .kw-card 一樣的道理）。 */
    color: var(--night-text);
}
.chart12 .cell {
    background: var(--night-2); padding: 12px 12px 14px; min-height: 120px;
    display: flex; flex-direction: column;
}
.chart12 .cell .pname { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--night-mute); letter-spacing: .04em; }
/* ★ 地支小字原本用 --faint —— 那是紙底的 token，而格子是夜色的。
   命盤「放到紙色底上也該讀得到」指的是整個物件自帶前景色，
   不是裡面的字可以借用紙底的灰。 */
.chart12 .cell .branch { font-family: var(--serif); color: var(--night-mute); opacity: .8; }
.chart12 .cell .stars { margin-top: auto; padding-top: 10px; font-family: var(--serif); font-size: 15px; line-height: 1.55; letter-spacing: .06em; }
.chart12 .cell .star { display: block; }
/* 流年宮是命盤上唯一要跳出來的格子 —— indigo 正是品牌給這種強調色塊的顏色 */
.chart12 .cell.yearly { background: linear-gradient(160deg, var(--indigo), var(--sky-1)); box-shadow: inset 0 0 0 1px var(--glow); }
.chart12 .cell.yearly .pname { color: var(--glow); }
.chart12 .cell.yearly .stars { color: var(--glow-soft); }
/* 流年格的底是 indigo，而 night-mute 疊在 indigo 上只有 3.84:1。
   改用 ink-night 加透明度 —— 跟方案卡在 indigo 上的做法一致，
   不為了這一處另外發明一個灰。 */
.chart12 .cell.yearly .branch { color: var(--ink-night); opacity: .82; }
.chart12 .cell.yearly .pname::after { content: "流年"; font-size: 10.5px; padding: 2px 6px; border: 1px solid var(--glow); border-radius: 3px; margin-left: 6px; }
.chart12 .center {
    /* ★ margin 一定要歸零：上面那個通用的 .center 工具（.measure center 在用的）
       會把 margin 設成 auto，套在 grid 項目上會讓中央區塊縮成內容寬度、
       露出左右兩條底色。跟 .stars 一樣，是一個字的工具類名撞到元件內部類名。 */
    margin: 0;
    grid-column: 2 / 4; grid-row: 2 / 4; background: var(--night);
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px;
}
.chart12 .center .mark { width: 34px; height: 34px; color: var(--night-mute); margin-bottom: 14px; }
.chart12 .center .who { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; }
.chart12 .center .sub { color: var(--night-mute); font-size: 12.5px; margin-top: 8px; line-height: 1.8; letter-spacing: .06em; }
@media (max-width: 560px) {
    .chart12 .cell { min-height: 92px; padding: 8px 8px 10px; }
    .chart12 .cell .stars { font-size: 12.5px; letter-spacing: .02em; }
    .chart12 .cell .pname { font-size: 11px; }
    .chart12 .cell.yearly .pname::after { display: none; }
    .chart12 .center .who { font-size: 16px; }
}

/* ── 關鍵字卡（分享物件） ────────────────────────────────────────────────── */
.kw-card {
    position: relative; overflow: hidden; text-align: center;
    border-radius: var(--r-lg); padding: 56px 28px 48px;
    background: radial-gradient(90% 70% at 50% 100%, var(--indigo) 0%, var(--sky-2) 55%, var(--sky-4) 100%);
    color: var(--night-text); box-shadow: var(--shadow-night);
}

.kw-card .inner { position: relative; }
.kw-card .eyebrow { color: var(--glow); }
.kw-card .word {
    font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 9vw, 76px);
    letter-spacing: .18em; text-indent: .18em; line-height: 1.25; margin: 18px 0 14px;
    text-shadow: 0 2px 30px rgba(214, 178, 94, .18);
}
.kw-card .rule { width: 56px; height: 1px; background: var(--glow); margin: 0 auto 16px; opacity: .9; }
/* 關鍵字卡的漸層底部是 indigo，所以這兩行字不能用 night-mute（3.84:1）*/
.kw-card .sub { color: var(--ink-night); opacity: .82; font-size: 14px; letter-spacing: .1em; }
.kw-card .brand-line { margin-top: 34px; font-size: 12px; letter-spacing: .3em; color: var(--ink-night); opacity: .82; }

/* ── 關鍵字海報（分享頁那一張，給人截圖用）─────────────────────────────── */
/* 跟 .kw-card 的差別：這是一整頁的主角，不是欄位裡的一張卡。
   四個字時排成 2x2 的大字塊 —— 中文四字方陣本來就比一長行耐看，
   而且在手機直式截圖裡佔得住畫面。字數不是四個就照常排一行。 */
.kw-poster { text-align: center; }
.kw-poster .year {
    font-family: var(--mono); font-size: 12px;
    letter-spacing: .3em; text-indent: .3em; color: var(--night-mute); opacity: .8;
}
.kw-poster .eyebrow { margin-top: 10px; }
.kw-poster .word {
    margin: 22px 0 0; font-family: var(--serif); font-weight: 600;
    font-size: clamp(56px, 13vw, 104px); line-height: 1.04; color: var(--ink-night);
    letter-spacing: .1em; text-indent: .1em;
    text-shadow: 0 0 40px rgba(214, 178, 94, .25), 0 2px 2px rgba(0, 0, 0, .35);
}
.kw-poster .word.grid4 {
    display: grid; grid-template-columns: repeat(2, auto); gap: 0 .06em;
    justify-content: center; letter-spacing: 0; text-indent: 0;
}
.kw-poster .word.grid4 span { display: block; }
.kw-poster .rule {
    width: 64px; height: 1px; background: var(--glow); margin: 24px auto 0;
    opacity: .9; box-shadow: 0 0 12px rgba(214, 178, 94, .6);
}
.kw-poster .sub { margin-top: 16px; font-size: 14px; letter-spacing: .14em; text-indent: .14em; color: var(--night-mute); }
.kw-poster .brand-line {
    margin-top: 30px; font-size: 11.5px; letter-spacing: .3em; text-indent: .3em;
    color: var(--night-mute); opacity: .85;
}

/* ── 可展開推導（收據） ───────────────────────────────────────────────────── */
/* 方角：這是內容面板不是按鈕（BRAND.md：卡片一律方角，只有按鈕用 radius-sm）*/
details.ev { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-none); background: var(--paper); }
details.ev > summary {
    cursor: pointer; padding: 11px 16px; font-size: 13.5px; color: var(--glow-deep);
    list-style: none; display: flex; align-items: center; gap: 8px; user-select: none;
}
details.ev > summary::-webkit-details-marker { display: none; }
details.ev > summary::before {
    content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); transition: transform .2s var(--ease); margin-left: 2px;
}
details.ev[open] > summary::before { transform: rotate(45deg); }
details.ev[open] > summary { border-bottom: 1px dashed var(--line); }
.ev-list { margin: 0; padding: 6px 16px 14px; }
.ev-item { padding: 12px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.ev-item:first-child { border-top: none; }
.ev-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
/* 白話為主、術語為次。正文已經不用術語了，展開來只給一句「流年化祿入財帛宮」
   等於沒有解釋 —— plain 是在講什麼，basis 是它在命盤上的出處。 */
/* ★ 襯線。這一行是整個產品主張的唯一證據，要讀起來像一句話，
   不是像一筆欄位 —— 核准的預覽頁也是這樣。 */
.ev-plain { font-family: var(--serif); font-size: 15px; line-height: 1.95; letter-spacing: .03em; }
.ev-basis { font-weight: 600; }
.ev-basis-sub { font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; font-family: var(--mono); }
.ev-src { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
/* 排盤提醒。放在命盤與內文之間，要看得見但不要像錯誤訊息 */
.warn-block { margin: 0 0 32px; }
.warn-block p { margin: 0; }
.warn-block p + p { margin-top: 10px; }
/* Note 級的排盤提醒（閏月、夏令時間）。原本在第 9 章「這份報告是怎麼算出來的」，
   那一章 2026-10-04 整章移除之後搬到跟顯眼提醒同一個位置。
   刻意比 notice-warn 輕一級：要看得到，但它不是警告，不該搶走第一章的注意力。 */
.warn-note {
    margin: 0 0 32px; padding: 2px 0 2px 16px;
    background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    color: var(--muted); font-size: 13.5px;
}
.warn-note p { margin: 0; }
.warn-note p + p { margin-top: 8px; }
/* 方法與界線。原本是報告的第 9 章，2026-10-04 改成頁尾的固定文字。
   刻意做得比正文安靜：它是讀完之後才會看的東西，不是內容。 */
.rpt-method {
    margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 13.5px; line-height: 1.9;
}
.rpt-method p { margin: 0 0 12px; }
.rpt-method p:last-child { margin-bottom: 0; }
.rpt-method .more a { color: var(--muted); text-decoration: underline; }
.rpt-method .more a:hover { color: var(--ink); }

/* ── 流月時間軸 ──────────────────────────────────────────────────────────── */
.tl { display: flex; gap: 6px; flex-wrap: wrap; }
.tl .d {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; border: 1px solid var(--line-2); color: var(--faint); text-decoration: none; font-variant-numeric: tabular-nums;
    transition: transform .15s var(--ease);
}
.tl a.d:hover { transform: translateY(-1px); }
.tl .d.on { background: var(--ink); border-color: var(--ink); color: var(--glow); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; padding: 18px 0; font-weight: 500; list-style: none;
    display: flex; gap: 14px; align-items: baseline; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--glow-deep); flex: none; font-weight: 300; }
.faq details[open] summary::before { content: "－"; }
.faq .ans { padding: 0 0 20px 32px; color: var(--muted); line-height: 1.9; }
.faq .ans p { margin: 0 0 10px; }

/* ── 說明頁與法律頁 ───────────────────────────────────────────────────────── */
.legal { max-width: var(--measure); margin: 56px auto 96px; padding: 0 24px; }
.legal h1 { font-size: 30px; margin: 0 0 8px; }
.legal .ver { color: var(--faint); font-size: 13px; margin: 0 0 40px; }
.legal h2 { font-size: 19px; margin: 40px 0 12px; }
.legal p { line-height: 1.95; margin: 0 0 16px; }
.legal ul { line-height: 1.95; margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.legal li { margin-bottom: 6px; }
.legal dt { font-weight: 600; margin-top: 18px; }
.legal dd { margin: 6px 0 0; line-height: 1.95; color: var(--ink-2); }
.legal .box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 16px; background: var(--paper); }
.legal details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.legal details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: baseline; gap: 10px; }
.legal details summary::-webkit-details-marker { display: none; }
.legal details summary::before { content: "＋"; color: var(--glow-deep); font-weight: 300; flex: none; }
.legal details[open] summary::before { content: "－"; }
.legal details p { margin: 12px 0 0; color: var(--ink-2); }

/* ── 簡單頁（成功／等待／錯誤） ─────────────────────────────────────────── */
.simple { max-width: 32rem; margin: 96px auto; padding: 0 24px; text-align: center; }
.simple .glyph { width: 44px; height: 44px; margin: 0 auto 22px; color: var(--faint); }
.simple h1 { font-size: 26px; margin-bottom: 12px; }
.simple p { color: var(--muted); line-height: 1.9; }
.simple .acts { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.kv:first-child { border-top: none; }
.kv .k { color: var(--muted); }
.kv .v { font-variant-numeric: tabular-nums; text-align: right; }

/* ── 表單頁（登入／註冊／結帳） ───────────────────────────────────────────── */
.auth { max-width: 26rem; margin: 64px auto 96px; padding: 0 24px; }
/* .brand 是 inline-flex，會縮到內容寬 —— 只寫 justify-content 是沒有作用的空宣告。
   要真的置中必須讓它變成 block 級的 flex 容器。 */
.auth .brand { display: flex; justify-content: center; margin-bottom: 28px; }
.auth h1 { font-size: 26px; text-align: center; margin-bottom: 8px; }
.auth .lead { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 28px; line-height: 1.8; }
.auth .or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: 22px 0; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth .foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 24px; }
.btn-google { gap: 10px; }
.btn-google svg { width: 18px; height: 18px; }
/* LINE 的登入按鈕照它的品牌規範用綠底白字；Google 那顆是白底彩色 logo，各家照各家的。 */
.btn-line { gap: 10px; background: #06c755; border-color: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; border-color: #05b34c; color: #fff; }
.btn-line svg { width: 20px; height: 20px; }
/* ── 分享列（連結分享：LINE / Facebook / 複製）────────────────────────── */
/* 三顆等重的次要按鈕。品牌色只給一個小圓點當提示，不把整顆按鈕塗成 LINE 綠 ——
   那會跟頁面上唯一的主要動作搶眼。 */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row .btn { gap: 8px; flex: 1 1 150px; }   /* 手機上換行時撐滿，不會排成 1+2 */
.share-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.share-row .dot.line { background: #06c755; }
.share-row .dot.fb { background: #1877f2; }
.share-row .dot.copy { background: var(--glow); }
.night .share-row .btn { border-color: var(--night-line); color: var(--night-text); background: rgba(255,255,255,.04); }
.night .share-row .btn:hover { background: rgba(255,255,255,.09); color: var(--ink-night); }

.form-page { max-width: 36rem; margin: 56px auto 96px; padding: 0 24px; }
.form-page h1 { font-size: 28px; margin-bottom: 8px; }
.form-page .lead { color: var(--muted); margin-bottom: 32px; line-height: 1.85; }

/* ── 導購流程的版型（_LayoutWizard）───────────────────────────────────── */
/* ★ 沒有頁首頁尾。站台導覽提供的每一個出口都是一次「離開這條路」的機會，
      而這條路的整個設計就是讓人一步一步走到底。
      感覺要接近一支 App 而不是一個網站。

   ★ 手機優先。這條路大部分的人會在手機上走完 ——
      桌面只是把同一個版面置中並限寬，不另外設計一套。 */

.wz-body {
    /* 100dvh 而不是 100vh：手機瀏覽器的網址列會伸縮，
       用 vh 會讓底部的按鈕被網址列蓋住或留下一條空白。 */
    min-height: 100dvh; display: flex; flex-direction: column;
    background: var(--paper);
}

/* ── 頂部：品牌、進度、返回 ───────────────────────────────── */
/* 外層：滿版的底色與分隔線。內層：限寬，跟內容對齊 ——
   桌面上內容是置中的，頂部的東西不跟著對齊的話，
   那個品牌標記會孤單地釘在左上角。 */
.wz-top {
    flex: none; border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky; top: 0; z-index: 20;
}
.wz-top-in {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 16px;
    max-width: 680px; margin: 0 auto; padding: 14px 20px;
}
.wz-brand { display: inline-flex; align-items: center; color: var(--ink); }
.wz-brand svg { width: 22px; height: 22px; }

/* 進度點。不用數字也不用百分比 —— 走到第幾步用看的比用讀的快。 */
.wz-progress { display: flex; gap: 6px; justify-self: center; }
.wz-progress span {
    width: 22px; height: 3px; border-radius: 2px; background: var(--line-2);
    transition: background .3s var(--ease);
}
.wz-progress span.on { background: var(--glow); }

.wz-back { justify-self: end; font-size: 14px; color: var(--muted); }
.wz-back:hover { color: var(--ink); }
.wz-back-spacer { justify-self: end; }

/* ── 內容 ──────────────────────────────────────────────────── */
.wz-main { flex: 1 0 auto; }

/* 一頁一件事的步驟頁：垂直置中、限寬、一屏裝得下。
   介紹頁不要用這個 class —— 它的內容本來就比一屏長。 */
.wz-step {
    min-height: calc(100dvh - 118px);
    display: flex; flex-direction: column; justify-content: center;
    max-width: 520px; margin: 0 auto; padding: 32px 20px 40px;
}
.wz-step h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.35; margin: 0 0 12px; }
.wz-step .hint { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0 0 28px; }

/* ── 底部的主要動作 ────────────────────────────────────────── */
/* ★ 一頁只有一個主要動作，而且它永遠在同一個位置。
      「下一步在哪裡」不該是每一頁都要重新找的東西。 */
.wz-act { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.wz-act .btn { width: 100%; justify-content: center; }
.wz-act .skip {
    text-align: center; font-size: 14px; color: var(--muted);
    background: none; border: 0; padding: 8px; cursor: pointer;
}
.wz-act .skip:hover { color: var(--ink); text-decoration: underline; }

/* ── 法遵那一行 ────────────────────────────────────────────── */
/* 頁尾拿掉了，但交易主體與必要連結不能跟著消失。 */
.wz-legal {
    flex: none; padding: 18px 20px 26px; text-align: center;
    font-size: 12px; color: var(--faint); line-height: 2;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.wz-legal a { color: var(--faint); }
.wz-legal a:hover { color: var(--muted); }

/* ── 驗證碼那一頁 ─────────────────────────────────────────── */
/* ★ 六位數字要好打也要好讀。等寬 + 字距，讓人一眼數得出打了幾位 —— 
      他正從信箱切回來，手上記著六個數字。 */
input.wz-code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 30px; letter-spacing: .34em; text-align: center;
    text-indent: .34em;   /* 字距會讓整串看起來偏左，補回來 */
    padding: 14px 10px;
}

/* 信箱印出來讓他核對。打錯字是這一步最常見的卡關原因，
   而他要能在這一頁就看出來，不必回上一步。 */
.wz-step .wz-mail { word-break: break-all; }

.wz-note {
    margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r);
    background: rgba(214, 178, 94, .12); border: 1px solid rgba(214, 178, 94, .3);
    font-size: 14px; line-height: 1.7;
}

/* 重寄與換信箱。收不到的原因有兩種（沒寄到 vs 信箱打錯），
   只給其中一個解法的話另一種人就卡死了。 */
.wz-alt {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 20px; font-size: 14px;
}
.wz-alt .sep { color: var(--faint); }
.wz-alt form.wz-inline { display: inline; margin: 0; }
.wz-alt .linklike {
    background: none; border: 0; padding: 0; font: inherit;
    /* ★ 原本是 var(--accent)，但 --accent 在 li.css 裡沒有定義
       （只存在於三個 Print 檢視的內嵌樣式）。無效的 var() 會讓整個
       color 宣告失效、退回繼承父層 —— 不報錯，只是這兩個連結一直
       沒有自己的顏色。 */
    color: var(--glow-deep); cursor: pointer; text-decoration: underline;
    text-underline-offset: 3px;
}
.wz-alt .linklike:hover { opacity: .8; }

/* ── 導購流程：整條路改夜色 ─────────────────────────────────────────────── */
/* ★ BRAND.md：「網站預設 Night 主題」。.wz-body 只有 _LayoutWizard 在用，
      所以這一段的作用範圍就是那五頁，別的頁面碰不到。

   ★ 這條路大部分的人在手機上走完，而且常常是晚上 ——
      夜色在這裡不只是品牌一致，螢幕也不會突然刺眼。 */

body.wz-body { background: var(--night); color: var(--night-text); }

body.wz-body .wz-top { background: var(--night); border-bottom-color: var(--night-line); }
body.wz-body .wz-brand { color: var(--night-text); }
body.wz-body .wz-progress span { background: var(--night-line); }
body.wz-body .wz-progress span.on { background: var(--glow); }
body.wz-body .wz-back { color: var(--night-mute); }
body.wz-body .wz-back:hover { color: var(--night-text); }

body.wz-body .wz-step .hint,
body.wz-body .wz-act .skip,
body.wz-body .wz-legal,
body.wz-body .wz-legal a,
body.wz-body .muted { color: var(--night-mute); }
body.wz-body .wz-act .skip:hover,
body.wz-body .wz-legal a:hover { color: var(--night-text); }
body.wz-body .wz-alt .sep { color: var(--night-mute); }
body.wz-body .wz-alt .linklike { color: var(--glow-soft); }

/* 表單欄位。共用的 .field 是給紙底設計的（白底、淺框），
   原樣放到夜空上會變成三個發亮的白塊。 */
body.wz-body .field label { color: var(--night-text); }
body.wz-body .field .hint { color: var(--night-mute); }
/* ★ 用 background-color 不是 background 簡寫 ——
      簡寫會把 background-image/repeat/position 一起重設，
      而 select 的下拉箭頭正是畫在 background-image 上的。
      這一條的特異性 (0,2,2) 比 .wz-step .field select 的 (0,2,1) 高，
      用簡寫的話箭頭會被清掉而且完全不報錯。 */
body.wz-body .field input,
body.wz-body .field select,
body.wz-body .field textarea,
body.wz-body input.wz-code {
    background-color: var(--night-2); border-color: var(--night-line); color: var(--night-text);
}
body.wz-body .field input::placeholder,
body.wz-body .field textarea::placeholder { color: var(--night-mute); opacity: .7; }
body.wz-body .field input:focus,
body.wz-body .field select:focus,
body.wz-body input.wz-code:focus {
    border-color: var(--glow); box-shadow: 0 0 0 3px rgba(214, 178, 94, .18);
}

/* 選項（你想看誰的盤／知不知道時辰）。手機上這是用拇指點的，
   所以維持大塊面積，只換配色。 */
body.wz-body .wz-choice label {
    background: var(--night-2); border-color: var(--night-line); color: var(--night-text);
}
body.wz-body .wz-choice label:hover { border-color: var(--night-mute); }
body.wz-body .wz-choice label.on {
    border-color: var(--glow); background: var(--night-2);
    box-shadow: inset 0 0 0 1px var(--glow);
}

/* 方案卡（命盤之後那一頁）。方角、不用陰影。 */
body.wz-body .wz-plan {
    background: var(--night-2); border-color: var(--night-line);
    color: var(--night-text); border-radius: var(--radius-none);
}
body.wz-body .wz-plan:hover { border-color: var(--glow); transform: none; }
body.wz-body .wz-plan.on { border-color: var(--glow); box-shadow: inset 0 0 0 1px var(--glow); }
body.wz-body .wz-plan li { color: var(--night-mute); }
body.wz-body .wz-plan li::before { background: var(--glow); }
body.wz-body .wz-plan .pr small { color: var(--night-mute); }
body.wz-body .wz-plan .note { color: var(--night-mute); border-top-color: var(--night-line); }
body.wz-body .wz-plans .lead,
body.wz-body .wz-plans-foot .back-link { color: var(--night-mute); }
body.wz-body .wz-plans-foot .back-link:hover { color: var(--night-text); }

/* 從免費排盤帶過來的出生資料（確認用，不是重填） */
body.wz-body .confirm-box { background: var(--night-2); border-color: var(--night-line); }

/* 白底按鈕在夜空上會太跳，換成細框 */
body.wz-body .btn:not(.btn-glow):not(.btn-primary):not(.btn-line):not(.btn-link) {
    background: transparent; border-color: var(--night-line); color: var(--night-text);
}
body.wz-body .btn:not(.btn-glow):not(.btn-primary):not(.btn-line):not(.btn-link):hover {
    border-color: var(--night-mute); color: var(--night-text); box-shadow: none;
}
body.wz-body .btn-primary {
    background: var(--night-text); border-color: var(--night-text); color: var(--night);
}
body.wz-body .btn-primary:hover { background: var(--night-text); color: var(--night); opacity: .9; }
body.wz-body .btn-link { color: var(--glow-soft); }

/* /Start 介紹頁（目前沒有任何連結指向它，但直接打網址到得了，不能壞掉） */
body.wz-body .sec,
body.wz-body .band { background: none; border-bottom: 1px solid var(--night-line); }
body.wz-body .sec .t-lead { color: var(--night-mute); }
body.wz-body table.cmp th,
body.wz-body table.cmp td { border-bottom-color: var(--night-line); }
body.wz-body table.cmp th { color: var(--night-mute); }
body.wz-body table.cmp td { color: var(--night-mute); }
body.wz-body table.cmp td:last-child { color: var(--night-text); }

/* ── 命盤頁下方的命書方案 ─────────────────────────────────── */
/* ★ 命書刻意**不**跟上面兩張流年方案並排 —— 跟首頁同一個決定。
      並排會讓它讀起來像「更貴的流年方案」，但它論的是完全不同的東西：
      上面兩個講某一年會發生什麼，命書講這個人是誰、一生怎麼走。
      買了流年的人還是可能想買命書，反過來也一樣。那不是升級關係。 */
.upsell-mingshu {
    margin-top: 48px; padding-top: 40px;
    border-top: 1px solid var(--line);
}
.upsell-mingshu .plans { max-width: 460px; margin: 24px auto 0; }
/* ── 排盤的揭曉 ───────────────────────────────────────────── */
/* ★ 動畫只用在轉場與揭曉（使用者 2026-10-07 定的原則）。
      會動的東西如果到處都是，就沒有一個地方是重要的。

   順序：盤的外框先出現 → 十二個宮格依序亮起 → 星曜一顆顆落入。
   那個順序本身就是在說「這是為你排的」—— 一次全部出現看起來像
   一張早就畫好的圖。 */

@keyframes castFrame { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes castCell  { from { opacity: 0; } to { opacity: 1; } }
/* 星曜從格子上方落下一小段。位移刻意很小（6px）——
   大的位移在十二個格子裡同時發生會像畫面在抖。 */
@keyframes castStar  { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.chart-cast { animation: castFrame .5s var(--ease) both; }

/* 宮格：0.2s 之後開始，每格差 40ms。十二格走完約 0.68s。
   用 nth-child 而不是 --i，因為格子的順序就是 DOM 的順序。 */
.chart-cast .cell { animation: castCell .4s var(--ease) both; }
.chart-cast .cell:nth-child(1)  { animation-delay: .20s; }
.chart-cast .cell:nth-child(2)  { animation-delay: .24s; }
.chart-cast .cell:nth-child(3)  { animation-delay: .28s; }
.chart-cast .cell:nth-child(4)  { animation-delay: .32s; }
.chart-cast .cell:nth-child(5)  { animation-delay: .36s; }
.chart-cast .cell:nth-child(6)  { animation-delay: .40s; }
.chart-cast .cell:nth-child(7)  { animation-delay: .44s; }
.chart-cast .cell:nth-child(8)  { animation-delay: .48s; }
.chart-cast .cell:nth-child(9)  { animation-delay: .52s; }
.chart-cast .cell:nth-child(10) { animation-delay: .56s; }
.chart-cast .cell:nth-child(11) { animation-delay: .60s; }
.chart-cast .cell:nth-child(12) { animation-delay: .64s; }
.chart-cast .cell:nth-child(13) { animation-delay: .68s; }

/* 星曜：0.8s 之後開始，每顆差 55ms。--i 是**跨宮累加**的索引 ——
   每宮各自從 0 的話，十二宮的第一顆星會同時落下，
   看起來像十二個東西一起閃，而不是一顆一顆。 */
.chart-cast .star {
    animation: castStar .42s var(--ease) both;
    animation-delay: calc(.8s + var(--i, 0) * .055s);
}

/* 流年命宮最後才亮起來 —— 它是這張盤上唯一「今年」的東西，
   跟其他格子一起出現就看不出它的分量。 */
@keyframes castYearly { from { box-shadow: none; } to { box-shadow: inset 0 0 0 1px var(--glow); } }
.chart-cast .cell.yearly { animation: castCell .4s var(--ease) both, castYearly .6s var(--ease) 2.2s both; }

/* ── 可點擊的宮位 ─────────────────────────────────────────── */
/* ★ 他自己點開了那一宮，是整條漏斗上意圖最明確的一刻。 */
button.chart12-cell, .chart12 button.cell {
    font: inherit; color: inherit; text-align: left;
    border: 0; cursor: pointer; width: 100%;
    transition: background .2s var(--ease);
}
.chart12 button.cell:hover { background: rgba(255, 255, 255, .055); }
.chart12 button.cell:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }

/* 展開中的那一宮：只有邊框，不填色。
   實測在夜色的盤上疊任何一層暖色都會變灰（.10 像那一格壞了，
   連 .035 都比鄰格亮一階）—— 金框加上金色宮名已經夠清楚，
   而且跟流年宮（也是 inset 邊框）是同一種語言，只是粗一階。 */
.chart12 button.cell[aria-expanded="true"] {
    box-shadow: inset 0 0 0 2px var(--glow);
}
.chart12 button.cell[aria-expanded="true"] .pname { color: var(--glow); }

/* ── 展開的那一宮 ─────────────────────────────────────────── */
.palace-panels { margin-top: 14px; }
.palace-panel {
    border: 1px solid rgba(214, 178, 94, .26); border-radius: var(--r-lg);
    background: rgba(214, 178, 94, .05); padding: 18px 20px;
    animation: castStar .3s var(--ease) both;
}
.palace-panel .pp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.palace-panel .pp-name { font-family: var(--serif); font-size: 18px; color: var(--night-text); }
.palace-panel .pp-meaning {
    margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--night-text);
}
.palace-panel .pp-stars {
    display: flex; gap: 10px; align-items: baseline;
    padding: 12px 0; border-top: 1px dashed var(--night-line);
    font-size: 14px; line-height: 1.8;
}
.palace-panel .pp-stars .k { flex: none; color: var(--night-mute); font-size: 13px; }
.palace-panel .pp-stars .v { color: var(--glow-soft); }
.palace-panel .pp-more {
    margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--night-line);
    font-size: 13.5px; line-height: 1.85; color: var(--night-mute);
}

/* ── 會暈的人直接看最終狀態 ───────────────────────────────── */
/* ★ 這一段不是加分項。前庭系統敏感的人看到十二格依序閃動加二十幾顆星落下，
      反應不是「有儀式感」而是想吐。 */
@media (prefers-reduced-motion: reduce) {
    .chart-cast,
    .chart-cast .cell,
    .chart-cast .cell.yearly,
    .chart-cast .star,
    .palace-panel { animation: none; }
    .chart-cast .cell.yearly { box-shadow: inset 0 0 0 1px var(--glow); }
}
/* ── 方案頁（第④步）────────────────────────────────────────── */
/* ★ 這一頁出現在他已經看過自己的命盤之後。卡片要能一眼比完 ——
      正在決定的人不該還要捲上捲下對照。 */
.wz-plans { padding: 36px 0 64px; }
.wz-plans-in { max-width: 520px; margin: 0 auto; padding: 0 20px; }
.wz-plans h1 { font-size: clamp(24px, 5vw, 32px); line-height: 1.35; margin: 10px 0 14px; }
.wz-plans .lead { color: var(--muted); font-size: 15.5px; line-height: 1.9; margin: 0 0 30px; }

.wz-plan {
    /* ★ 它是 <a>，而基礎的 a 規則沒有 text-decoration: none ——
       漏了這一行會讓整張卡的文字（方案名、價格、每一條特色）全部帶底線。
       首頁的 .plan 有寫，這裡一直漏著。 */
    text-decoration: none;
    display: block; margin-bottom: 14px; padding: 20px 22px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--paper); color: var(--ink);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.wz-plan:hover { border-color: var(--glow); transform: translateY(-1px); }
/* 主推的那一張用金色外框，不要用「最熱門」這種標籤 ——
   那是我們說的，而且沒有數字支持。 */
.wz-plan.on { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow); }

.wz-plan .head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.wz-plan .nm { font-family: var(--serif); font-size: 18px; }
.wz-plan .pr { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wz-plan .pr small { font-size: 13px; color: var(--muted); margin-right: 2px; }

.wz-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wz-plan li {
    font-size: 14.5px; line-height: 1.75; color: var(--muted);
    padding-left: 16px; position: relative;
}
.wz-plan li::before {
    content: ""; position: absolute; left: 0; top: .66em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--glow-deep);
}
.wz-plan .note {
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
    font-size: 13px; line-height: 1.75; color: var(--faint);
}

.wz-plans-foot { margin-top: 26px; text-align: center; }
.wz-plans-foot .back-link { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.wz-plans-foot .back-link:hover { color: var(--ink); }

/* 命盤頁走到方案頁的承接 */
.cr-next { text-align: center; padding: 8px 0 4px; }
.cr-next .btn { min-width: 240px; justify-content: center; }
/* 從免費排盤帶過來的出生資料。是**確認**不是重填 ——
   把同一組欄位再問一次，等於在說「剛才那次不算」。 */
.confirm-box {
    border: 1px solid var(--line); border-radius: var(--r);
    background: var(--paper-2); padding: 4px 16px;
}
.confirm-box .row {
    display: flex; gap: 16px; padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}
.confirm-box .row:last-child { border-bottom: 0; }
.confirm-box .k { flex: none; width: 56px; font-size: 13.5px; color: var(--muted); }
.confirm-box .v { font-size: 15px; color: var(--ink); }
/* ── 步驟頁的元件 ─────────────────────────────────────────── */

/* 大顆的選項按鈕。手機上一下就按完，而下拉要「點開、滑動、選、關閉」四個動作。
   radio 本身藏起來但仍然存在 —— 鍵盤與讀螢幕軟體走的是它。 */
.wz-choice { display: flex; gap: 12px; }
.wz-choice.stack { flex-direction: column; }
.wz-choice label {
    flex: 1; position: relative; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 18px 20px; background: var(--paper);
    font-size: 16px; text-align: center;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.wz-choice label:hover { border-color: var(--glow-deep); }
.wz-choice label.on {
    border-color: var(--glow); background: var(--glow-wash, rgba(214, 178, 94,.08));
    box-shadow: inset 0 0 0 1px var(--glow);
}
/* 鍵盤焦點要看得見 —— radio 藏起來之後，焦點框也會跟著不見。 */
.wz-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.wz-choice input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 2px; }

/* 時／分兩個下拉並排 */
.wz-time { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 步驟頁的欄位。跟結帳頁的 .field 是同一套語彙，但這裡的字大一點 ——
   一頁只有一件事的時候，那件事可以大方一點。 */
.wz-step .field { margin-bottom: 22px; }
.wz-step .field > label {
    display: block; margin-bottom: 8px;
    font-size: 14px; color: var(--night-mute);
}
/* ★ 這一條是 (0,3,1)，比 body.wz-body .field input 的 (0,2,2) 高 ——
      夜色不能靠外面再疊一層覆寫，要改在這裡。
      .wz-step 只有導購流程在用，不會影響別的頁面。 */
.wz-step .field input[type="text"],
.wz-step .field input[type="email"],
.wz-step .field select {
    width: 100%; padding: 14px 16px; font-size: 16px;
    border: 1px solid var(--night-line); border-radius: var(--r);
    color: var(--night-text);
}
.wz-step .field input[type="text"],
.wz-step .field input[type="email"] { background: var(--night-2); }
/* ★ select 不能用 background 簡寫 —— 簡寫會把 .field select 畫的那支箭頭
      （background-image/repeat/position）一起重設掉。
      這個 bug 一直都在：導購流程的時／分下拉從來沒有箭頭，
      因為 appearance:none 關掉了原生的，而自訂的那張又被簡寫清掉了。 */
.wz-step .field select {
    background-color: var(--night-2);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3a8b8' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.wz-step .field input::placeholder { color: var(--night-mute); opacity: .65; }
/* ★ 16px 不能再小。iOS Safari 對小於 16px 的輸入框會自動放大整個頁面，
     而且放大之後不會縮回去 —— 使用者接下來每一步都在一個被放大的畫面上。 */
.wz-step .field input:focus, .wz-step .field select:focus {
    outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(214, 178, 94,.15);
}
.wz-step .err { display: block; margin-top: 8px; font-size: 13.5px; color: var(--danger, #b4453c); }

/* _BirthFields 在步驟頁裡的排法。它自己的版面是為結帳頁的窄欄設計的。 */
.wz-step .birth-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wz-step .birth-row select { width: 100%; }

@media (max-width: 380px) {
    .wz-choice { flex-direction: column; }
}
/* ── 介紹頁（第①步）───────────────────────────────────────── */
/* ★ 這一頁是例外：它的內容本來就比一屏長，而且那是刻意的 ——
      一個不認識紫微的人需要讀幾段才知道這是什麼。
      後面的步驟頁才是一頁一件事。 */
.wz-intro .hero { padding: 72px 0 80px; }
.wz-intro .hero .shell { max-width: 680px; }
.wz-intro .hero .t-lead { max-width: 31em; } /* 右邊是星盤（.hero-art.mid），導言不能鋪滿 680px 的 shell */
/* ★ 下 padding 不可以是 0。
      原本是 `72px 0 0`，構想是「段與段之間的距離由下一段的 top padding 提供」，
      同底色的時候看不出問題 —— 但一碰到換底色（.sec.night）內容就會貼著邊界，
      實測內容距離區塊底部只有 1px。2026-10-14 回報的就是這個。 */
.wz-intro .sec { padding: 72px 0 48px; }
.wz-intro .sec:last-of-type { padding-bottom: 72px; }

/* 最後的 CTA 區塊整塊置中 —— 它是這一頁的終點。 */
.wz-cta { text-align: center; }
.wz-cta .t-lead { margin-left: auto; margin-right: auto; max-width: 28em; }
.wz-cta .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.wz-cta .note { color: var(--night-mute); font-size: 13.5px; margin-top: 18px; }

/* 推導面板的示意。這裡還沒有任何人的命盤，所以是寫死的範例 ——
   但版面要跟真正的 _EvidencePanel 一致，否則他看到實物時會覺得被騙。 */
.ev-demo {
    margin: 26px auto 0; max-width: 520px; text-align: left;
    border: 1px solid rgba(214, 178, 94, .22); border-radius: var(--r-lg);
    padding: 20px 22px; background: rgba(255, 255, 255, .03);
}
.ev-demo-line { font-size: 15.5px; line-height: 1.95; color: var(--night-text); }
.ev-demo-panel {
    margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--night-line);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ev-demo-basis {
    width: 100%; margin-top: 8px; font-family: var(--mono); font-size: 12.5px;
    color: var(--glow-deep); letter-spacing: .04em;
}

/* 接下來會發生什麼。「按下去會怎樣」的不確定本身就是一道關卡，
   先講清楚只有三步、而且排盤不用錢，比任何說服的話有用。 */
.start-steps {
    list-style: none; margin: 26px auto 0; padding: 0; max-width: 380px;
    text-align: left; display: flex; flex-direction: column; gap: 12px;
}
/* ★ 這一段只有介紹頁在用，而介紹頁走的是夜色版型 ——
      原本用的是紙底的 --muted / --line / --ink：
      文字在夜底上只有 2.4:1，而編號圓圈是深色字配淺色框，數字等於看不見。 */
.start-steps li {
    display: flex; align-items: baseline; gap: 12px;
    font-size: 14.5px; line-height: 1.8; color: var(--night-mute);
}
.start-steps li span {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11.5px;
    border: 1px solid var(--night-line); color: var(--night-text);
}

@media (max-width: 560px) {
    .wz-top-in { padding: 12px 16px; }
    .wz-step { padding: 24px 16px 32px; }
    .wz-intro .hero { padding: 48px 0 56px; }
    .wz-intro .sec { padding: 56px 0 36px; }
}
/* ── 導購頁面共用（首頁與 /Start）───────────────────────────────────────── */
/* ★ 這一段原本只存在於 Home/Index.cshtml 的內嵌 <style>。
      /Start 重用了同樣的 class 卻拿不到樣式，整頁沒有版面 ——
      所以把「版面規則」搬到共用檔，首頁只留它自己特有的東西
      （右側命盤那一欄、價格卡、結尾區塊）。 */

.hero { padding: 84px 0 96px; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .t-lead { color: var(--night-mute); max-width: 30em; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .note { color: var(--night-mute); font-size: 13.5px; margin-top: 16px; }

/* 深色區塊裡的導言。.night 本來就覆寫了 .muted 與 .faint，
   但 .t-lead 沒有 —— 它在淺色底上用 --muted，放到夜空上就太暗了。 */
.night .t-lead { color: var(--night-mute); }

/* ★ 上下都要有 padding。原本只有上緣 88px、下緣 0 ——
      結果是有些區塊之間看起來有空間（因為它最後一個元素自己帶 margin），
      有些只剩 88px。量出來最寬 573px、最窄 88px，而那個差距是巧合不是設計。

      下緣給得比上緣小：標題在區塊的開頭，它上面需要的距離
      比區塊結尾需要的多 —— 不然讀的人會分不出標題屬於上一塊還是下一塊。 */
.sec { padding: 92px 0 56px; }
.sec h2 { margin-bottom: 18px; }
.sec .t-lead { margin-bottom: 30px; }

/* ★ .sec 只有上方 padding —— 區塊之間的距離全靠下一段的 padding-top。
     這在淺色接淺色時看不出問題，但**下一段有底色**時，色塊的邊界
     會直接貼在上一段的最後一個元素下緣，一點呼吸都沒有。
     所以：有底色的區塊自己要有完整的上下內距。 */
.sec.night { padding-bottom: 88px; }

table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 34px; }
table.cmp th, table.cmp td { padding: 17px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.75; }
/* ★ 表頭與第一列之間原本是 0px —— 欄位名稱跟第一筆資料黏在一起，
      看起來像四列資料而不是「標題加三列」。 */
table.cmp th { font-size: 12.5px; color: var(--faint); font-weight: 500; letter-spacing: .06em; padding-bottom: 14px; }
table.cmp tr:first-child th { border-bottom-color: var(--ink); }
table.cmp tr:nth-child(2) td { padding-top: 20px; }
table.cmp td:last-child { font-weight: 500; }

@media (max-width: 860px) { .hero { padding: 64px 0 72px; } }
@media (max-width: 560px) { table.cmp { font-size: 14px; } }
/* ── 整頁夜色 ───────────────────────────────────────────────────────────── */
/* ★ BRAND.md：「網站預設 Night 主題；命盤報告 PDF 與列印用 Paper 主題」。
      由頁面設定 ViewBag.BodyClass = "night-page" 開啟，沒設的頁面不受影響 ——
      一次全站換過去沒辦法逐頁驗證，而漏掉一處的症狀是「那一塊看不見」。 */
body.night-page {
    /* ── 紙色 token → 夜色。元件一個都不用改 ──────────────────────────
       這些值全部由品牌 token 算出來或直接指過去，沒有新發明的色碼。 */
    --paper:   var(--bg-raised);
    --paper-2: var(--bg);
    --paper-3: #1d2540;                  /* bg-raised 與 sky-1 之間，標籤底色用 */
    --ink:     var(--ink-night);
    --ink-2:   #d4cec0;                  /* 比 ink-night 軟一階 */
    --muted:   var(--ink-muted-night);
    --faint:   #7f8597;                  /* ink-muted-night 混進 bg，再淡一階 */
    --line:    var(--hairline);
    --line-2:  #3a4466;                  /* 比 hairline 明顯一階，框線與輸入框用 */

    /* 金：紙底的 glow-deep 是深金（#86661c），在夜底上幾乎看不見 */
    --glow-deep: var(--gold);
    --glow-wash: rgba(214, 178, 94, .14);

    /* ★ 語意色：色相保留、亮度提高。
       -wash 改成半透明 —— 實色的淺色塊在夜底上會變成一塊發亮的色磚，
       半透明會跟著背後那一層走。 */
    --good:        #e08069;
    --good-wash:   rgba(224, 128, 105, .15);
    --bad:         #9aa8c0;
    --bad-wash:    rgba(154, 168, 192, .15);
    --warn:        #d9ac55;
    --warn-wash:   rgba(217, 172, 85, .15);
    --danger:      #e8796f;
    --danger-wash: rgba(232, 121, 111, .15);

    --warn-line:   rgba(217, 172, 85, .38);
    --warn-ink:    var(--warn);
    --danger-line: rgba(232, 121, 111, .38);
    --danger-ink:  var(--danger);
    --ok:          #7fc9a0;
    --ok-wash:     rgba(127, 201, 160, .15);
    --ok-line:     rgba(127, 201, 160, .38);
    --glow-line:   rgba(214, 178, 94, .38);

    /* 品牌：「不用陰影；以 bg-raised 與 hairline 區分層次」。
       而且為紙底調的陰影在夜底上本來就看不見，只會讓 hover 的手感消失。 */
    --shadow: none;

    background: var(--night); color: var(--night-text);
}

body.night-page .site-header,
body.night-page .site-footer {
    background: var(--night); border-color: var(--night-line); color: var(--night-text);
}
/* ★ 一定要排除 .btn —— 這是本檔第 212 行那條註解講的同一件事，而我又犯了一次。
      `.site-header a` 是 (0,2,2)，會贏過 `body.night-page .btn-primary` 的 (0,2,1)，
      結果是頁首那顆主要按鈕變成米色底配米色字，整顆看不見，而且不會報錯。
      2026-10-13 上線之後才發現 —— 我的元件檢視頁裡沒有 .site-header。 */
/* ★ 夜底的次要按鈕改成金色描邊（璇璣臺識別）。
      只改夜底 —— 流年報告的長文是紙底，那邊的按鈕維持原樣。

   ★ 一定要排除 .btn-glow 與 .btn-primary。那兩個是實心的，
      再疊一層金邊金字會讓它們變成「金底金字」看不見 ——
      本檔第 212 行那條註解講的就是這一類，而這個 repo 已經踩過六次。 */
body.night-page .btn:not(.btn-glow):not(.btn-primary) {
    border-color: rgba(214, 178, 94, .45);
    color: var(--glow);
    background-image: linear-gradient(180deg, rgba(214, 178, 94, .12), rgba(214, 178, 94, .03));
}
body.night-page .btn:not(.btn-glow):not(.btn-primary):hover {
    border-color: var(--glow); color: var(--glow-soft);
}

body.night-page .site-header a:not(.btn),
body.night-page .site-footer a:not(.btn) { color: var(--night-text); }
body.night-page .site-nav a:not(.btn) { color: var(--night-mute); }
body.night-page .site-nav a:not(.btn):hover { color: var(--ziwei); }
body.night-page .site-footer a:not(.btn):hover { color: var(--ziwei); }
body.night-page .site-footer .foot-operator {
    border-top-color: var(--night-line); color: var(--night-mute);
}
/* 頁首那顆主要按鈕在夜底上要換一組色 —— .btn-primary 的 ink 底在夜空上
   跟背景黏在一起（兩者都是深色）。 */
/* ★ 「拿 --ink 當背景」的規則在翻主題之後會跟文字撞色 ——
   --ink 被指向淺色，而它們的文字本來就是淺色（--ink-night）。
   底已經對了（淺色底），要換的是文字。 */
body.night-page .btn-primary,
body.night-page .tag-strong { color: var(--night); }
body.night-page .btn-primary:hover { background: var(--night-2); color: var(--night-text); }

/* ── 落地頁（首頁）的夜色版型 ───────────────────────────────────────────── */
/* ★ 區塊之間改用一條 hairline，取代原本的深淺交替。
      品牌：「不用陰影；以 bg-raised 與 hairline 區分層次」。
   ★ 前綴一律是 .lp：.plan 另外兩頁（Chart/Result、Member/Index）還在用紙色版本。 */
.lp .sec,
.lp .band { padding: 96px 0; background: none; border-bottom: 1px solid var(--night-line); }
.lp .hero { border-bottom: 1px solid var(--night-line); }
.lp .closing { border-bottom: none; }

/* 只有英雄區留星空與地平線那道光。
   品牌：「星空只是背景…一個畫面最多一組」、「gold 要稀少」。 */
.lp .sec.night, .lp .closing.night { background: none; }
.lp .sec.night::after, .lp .closing.night::after { display: none; }

.lp .t-lead, .lp .muted, .lp .small, .lp .tiny { color: var(--night-mute); }
.lp strong { color: var(--night-text); font-weight: 500; }

/* 推導展示（.proof）：方角、細線分隔，不用陰影 */
.lp .proof {
    background: none; border: 1px solid var(--night-line); border-radius: 0;
    box-shadow: none; overflow: hidden;
}
.lp .proof .q { background: var(--night-2); font-family: var(--serif); letter-spacing: .03em; line-height: 1.95; }
.lp .proof .a { background: var(--night-2); border-top: 1px solid var(--night-line); }
.lp .proof .a .lbl { color: var(--ziwei); }
.lp .proof .a .row { border-top: 1px solid var(--night-line); }
.lp .proof .a .src { color: var(--night-mute); }

/* 現況對照表 */
.lp table.cmp th, .lp table.cmp td { border-bottom-color: var(--night-line); }
.lp table.cmp th { color: var(--night-mute); }
.lp table.cmp tr:first-child th { border-bottom-color: var(--night-text); }
.lp table.cmp td {
    color: var(--night-mute); font-family: var(--serif);
    line-height: 1.95; letter-spacing: .03em;
}
.lp table.cmp td:last-child { color: var(--night-text); }

/* ── 方案卡：indigo ─────────────────────────────────────────────────────── */
/* ★ 使用者指定 indigo 用在方案選擇；品牌說 indigo 用於大色塊。
      這裡是整頁唯一需要「停下來做決定」的地方。
   ★ 色塊放在卡片上而不是整段背景：大色塊當背景時，卡片是「挖空」的，
      視線會先看到色塊再找卡片；反過來卡片自己發亮，方案才是主角。 */
.lp .plans-head { margin: 0 auto 56px; }
body.night-page .plans { grid-template-columns: repeat(2, 1fr); gap: 24px; }
body.night-page .plans > .plan {
    /* ★ 這裡是 background-color 不是 background。簡寫會把 .ornate 畫的
       八個漸層（四角記號）一起重設，紋飾會整組消失而且不報錯。 */
    background-color: var(--indigo); border: 1px solid transparent; border-radius: 0;
    padding: 48px 24px 24px; display: flex; flex-direction: column; box-shadow: none;
}
body.night-page .plans > .plan:hover { transform: none; box-shadow: none; border-color: var(--night-text); }
body.night-page .plans > .plan.main { border-color: var(--night-text); box-shadow: none; }
/* ★ 絕對定位，放進卡片本來就有的 48px 上內距裡 ——
   留在文件流的話，有標籤那張的標題、價格、條列會整個往下錯開一截。 */
body.night-page .plans > .plan .mark-tag {
    position: absolute; top: 16px; left: 24px; margin: 0;
    background: var(--night-text); color: var(--indigo); border-radius: var(--radius-sm);
}
body.night-page .plans > .plan .pn { font-size: 22px; font-weight: 500; }
body.night-page .plans > .plan .pp { font-size: 40px; margin: 16px 0 0; }
/* ★ indigo 上的次要文字不要用 night-mute —— 只有 3.84:1。
      改用 night-text 加透明度，同一個顏色家族，不會多出一個新的灰。 */
body.night-page .plans > .plan .pp small { color: var(--night-text); opacity: .6; }
body.night-page .plans > .plan ul { margin-top: 24px; color: inherit; }
body.night-page .plans > .plan li {
    font-family: var(--serif); font-size: 15px; line-height: 2.05;
    color: var(--night-text); opacity: .82; letter-spacing: .03em; padding-left: 16px;
}
body.night-page .plans > .plan li::before {
    width: 3px; height: 3px; border-radius: 50%; top: .9em;
    background: var(--night-text); opacity: .5;
}
body.night-page .plans > .plan .cta { margin-top: auto; padding-top: 48px; }

/* indigo 上的按鈕。刻意不用金色 —— 方案區靠色塊本身就夠突出，
   再放一顆金的會讓「哪個才是主要動作」失焦（BRAND.md：gold 要稀少）。 */
body.night-page .plans > .plan .btn {
    background: transparent; border-color: var(--night-text); color: var(--night-text);
}
body.night-page .plans > .plan .btn:hover {
    background: rgba(237, 230, 214, .08); color: var(--night-text);
    transform: none; box-shadow: none;
}
body.night-page .plans > .plan .btn-primary {
    background: var(--night-text); border-color: var(--night-text); color: var(--indigo);
}
body.night-page .plans > .plan .btn-primary:hover { background: var(--night-text); color: var(--indigo); opacity: .88; }

/* ★ 命書區只有一張卡，不能跟著上面吃兩欄的格線 ——
   不然它會縮成半個欄寬，條列變成一行兩三個字。 */
.lp #mingshu .plans,
body.night-page .upsell-mingshu .plans { grid-template-columns: 1fr; max-width: 460px; margin: 28px auto 0; }

/* 命書那張刻意不用 indigo —— indigo 是方案區的語言，
   而命書論的是完全不同的東西，整段都在把它跟上面隔開。 */
.lp #mingshu .plan,
/* ★ background-color 不可改回簡寫，理由同上（會洗掉四角記號）。 */
body.night-page .upsell-mingshu .plan { background-color: var(--night-2); border-color: var(--night-line); }
.lp #mingshu .plan li,
body.night-page .upsell-mingshu .plan li { color: var(--night-mute); opacity: 1; }
.lp #mingshu .plan li::before,
body.night-page .upsell-mingshu .plan li::before { background: var(--night-mute); opacity: .6; }
.lp #mingshu .plan .pp small,
body.night-page .upsell-mingshu .plan .pp small { color: var(--night-mute); opacity: 1; }
.lp #mingshu .plan .btn-glow,
body.night-page .upsell-mingshu .plan .btn-glow { background: var(--glow); border-color: var(--glow); color: var(--on-gold); }
.lp #mingshu .plan .btn-glow:hover,
body.night-page .upsell-mingshu .plan .btn-glow:hover { background: var(--glow-soft); border-color: var(--glow-soft); color: var(--on-gold); }

/* FAQ */
.lp .faq details { border-bottom-color: var(--night-line); }
.lp .faq summary { font-family: var(--serif); font-size: 18px; }
.lp .faq summary::before { color: var(--night-mute); }
.lp .faq summary:hover { color: var(--ziwei); }
.lp .faq .ans { color: var(--night-mute); line-height: 2; letter-spacing: .03em; }
.lp .faq .ans a { color: var(--glow-soft); }

@media (max-width: 920px) { body.night-page .plans { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .lp .sec, .lp .band { padding: 64px 0; } }

/* ── 動效 ───────────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .6s var(--ease) both; }
.rise-2 { animation: rise .6s .12s var(--ease) both; }
.rise-3 { animation: rise .6s .24s var(--ease) both; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); animation: breathe 1.6s ease-in-out infinite; vertical-align: middle; margin-right: 8px; }

/* ── 列印 ───────────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: inherit; text-decoration: none; }
}


/* ── 六入口導覽、手機底欄、開發中、星位章（2026-10-29 大更新）──────────────── */
/*
   簡報 p31 的六個入口：頂列（_SiteNav）、首頁六張卡（.entries）、手機底欄（_SiteTabs）
   三個地方同一份資料（Service/Catalog/SiteEntries）。

   ★ 手機不做漢堡選單：≤720px 頂列只留品牌與登入，底部固定一條 .site-tabs。
     純 CSS，沒有 JS；body 在這個寬度補底 padding，底欄不會蓋住內容。
*/
.nav-primary { display: flex; align-items: center; gap: 20px; margin-right: 6px; }
.nav-primary a { white-space: nowrap; }
.site-nav .nav-primary a[aria-current="page"] { color: var(--ink); }
.nav-soon { font-size: 9px; letter-spacing: .08em; color: var(--faint); margin-left: 2px; vertical-align: super; }
@media (max-width: 980px) { .nav-primary { gap: 13px; } .nav-primary a { font-size: 13px; } .site-nav { gap: 14px; } }

.site-tabs { display: none; }
@media (max-width: 720px) {
    .nav-primary { display: none; }
    .site-tabs {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        background: var(--paper); border-top: 1px solid var(--line);
        padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
    }
    .site-tabs a { display: grid; justify-items: center; gap: 4px; font-size: 11px; letter-spacing: .1em; color: var(--muted); text-decoration: none; }
    .site-tabs a img, .site-tabs a .mark { width: 24px; height: 24px; border-radius: 50%; }
    .site-tabs a[aria-current="page"] { color: var(--glow); }
    body { padding-bottom: 66px; }
}

/* 內頁的頁首：眉標、標題、一段引言。書房、星官、關於、每日都用。 */
.pg { padding: 56px 0 96px; }
.pg-head { margin-bottom: 36px; max-width: 46em; }
.pg-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: .12em; margin: 10px 0 12px; }
.pg-head .t-lead { margin: 0; }

/* 開發中／未開放。
   ★ 不沿用 .card.off —— 那個語意是「退款了」，書架在用。 */
.tag-soon { background: var(--night-3); color: var(--glow); }
.soon { position: relative; }
.soon .soon-body { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; opacity: .82; }
.soon-t { margin: 0 0 6px; font-size: 17px; letter-spacing: .06em; }
.soon-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.ent-soon { display: block; margin: 6px auto 0; width: max-content; padding: 1px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .12em; color: var(--glow); border: 1px solid var(--night-line); }
.ent.soon .ent-ic { opacity: .7; }

/* 星位章：一位星官的圓形記號。有肖像印肖像，沒有就是代表色的雙色圓加一個字。
   顏色（--sa / --sb / color）由 _StarSeal 寫在 style 上，每位不同。 */
.star-seal {
    --sa: var(--night-3); --sb: var(--glow);
    display: inline-grid; place-items: center; flex: none;
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 50% 36%, var(--sb) 0%, var(--sa) 74%);
    font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 3px var(--paper), 0 0 0 4px var(--line-2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.star-seal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.star-seal.sm { width: 40px; height: 40px; font-size: 17px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.star-seal.lg { width: 112px; height: 112px; font-size: 44px; }
.star-seal.xl { width: 150px; height: 150px; font-size: 58px; }

/* 首頁入口列從五個變六個；手機三欄兩列。 */
.entries { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 720px) {
    .entries { grid-template-columns: repeat(3, 1fr); }
    .ent { border-bottom: 1px solid var(--line); }
    .ent:nth-child(2n) { border-right: 1px solid var(--line); }
    .ent:nth-child(3n) { border-right: 0; }
    .ent:last-child { grid-column: auto; }
    .ent:nth-child(n+4) { border-bottom: 0; }
    .ent-ds { font-size: 10.5px; }
}

/* ── 你的天空卡（批次 3）──────────────────────────────────────────────── */
/* 三個地方用同一塊：我的命盤最上面、註冊完成那一刻的結果頁、公開分享頁 /sky/{slug}。 */
.sky-card { position: relative; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--paper); }
.sky-top { display: flex; gap: 18px; align-items: center; }
.sky-eb { font-size: 12px; letter-spacing: .2em; color: var(--glow); }
.sky-nm { font-family: var(--serif); font-size: 26px; letter-spacing: .1em; margin-top: 4px; }
.sky-tt { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sky-line { font-family: var(--serif); font-size: 17px; line-height: 1.8; margin: 18px 0 0; letter-spacing: .02em; }
.sky-ms, .sky-note { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.sky-acts { margin-top: 18px; }
.sky-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; }
.sky-foot .btn-link { font-size: 13px; }
.sky-welcome, .sky-wrap { max-width: 34rem; margin-bottom: 24px; }
.sky-welcome .eyebrow { margin-bottom: 10px; }
.sky-mini { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 18px; text-decoration: none; color: inherit; font-size: 13.5px; }
.sky-mini:hover { color: var(--glow); }

/* ── 場景帶（2026-10-29 老高的角色與場景設定圖） ─────────────────────── */
/* 頁面最上面一條那位星官的場景，底部淡進頁面底色。每日、速配、玄璣子用（_SceneBand）。
   角色頁與書的介紹頁的頁首也鋪同一組圖，樣式各自寫在那一頁。 */
.scene-band { position: relative; height: 220px; overflow: hidden; background-color: var(--bg); }
.scene-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.scene-veil { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 28, .25) 55%, rgba(11, 15, 28, .35) 100%); }
.scene-cap { position: absolute; right: 18px; bottom: 10px; font-size: 11.5px; letter-spacing: .16em; color: var(--muted); }
.scene-band + .pg { padding-top: 32px; }
@media (max-width: 720px) { .scene-band { height: 150px; } }

/* ── 書的橫幅（_BookBand）──────────────────────────────────────────────── */
/* 首頁 #plans（天樞君・年河渡口）與 #mingshu（北辰君・星書觀星臺）各壓一條。
   上下用 mask 淡掉，不是鋪一層跟底色同色的紗幕：#plans 的底是純色、#mingshu 的底是放射漸層，
   同一條規則要在兩種底上都接得起來，只有讓影片自己淡成透明才做得到。
   mask 不支援時退回硬邊，不會壞版。 */
/* 影片是 16:9。電腦版最高 580px（1440 寬時看得到 72% 的畫面高度），手機版直接給 16:9 整格不裁。 */
.book-band { position: relative; height: clamp(320px, 40vw, 580px); overflow: hidden; margin-bottom: 30px; }
.book-band .bb-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                       object-position: center 46%; display: block; filter: brightness(.8) saturate(.94);
                       -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 92%, transparent 100%);
                               mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 92%, transparent 100%); }
.book-band .bb-cap { position: absolute; right: 20px; bottom: 14px; font-size: 11.5px; letter-spacing: .16em; color: var(--night-mute); }
@media (max-width: 720px) { .book-band { height: auto; aspect-ratio: 16 / 9; margin-bottom: 22px; } }

/* ── 主視覺底圖（首頁、排盤入口）───────────────────────────────────────── */
/* 整塊鋪滿，左暗右透的紗幕讓字讀得到；星空 canvas 疊在畫上面
   （它被插成區塊的第一個子元素，不給 z-index 會被畫蓋住）。
   ★ 首頁那張是 tools/hero-art.py 把北辰君設定圖那一格柔邊融進星書觀星臺烘出來的 2000×1000。
     人物在圖的右邊，所以 object-position 靠右上：窄螢幕裁掉左邊的桌案，超寬螢幕裁下襬不裁冠。
   ★ 不可以用 mask-image 做左緣淡出再疊在星空上：整張是底圖，淡出要靠紗幕。 */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; z-index: 0; pointer-events: none; user-select: none; }
/* 排盤入口頁用右弼的星盤羅盤臺：星盤在圖正中間，1280 寬會壓在文字後面，所以放大到 125% 靠左，星盤落到文字右邊（全站 img 有 max-width:100%，這裡要解掉，不然寬度靜默被夾回 100%）。 */
.hero-art.mid { width: 125%; max-width: none; right: auto; object-position: 50% 30%; }
.hero .starfield { z-index: 1; }
.hero-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none;
             background: linear-gradient(90deg, var(--night) 0%, rgba(11, 15, 28, .9) 34%, rgba(11, 15, 28, .12) 66%, transparent 80%),
                         linear-gradient(0deg, rgba(9, 12, 22, .65), transparent 40%); }
.hero .shell { position: relative; z-index: 3; }
/* 首頁主視覺的動畫（Images/brand/hero-beichen.mp4）疊在第一格（<picture> 的電腦版來源）上面。
   ★ 播起來才淡入：掛上 src 到第一格解出來之間，有的瀏覽器會先畫一格黑。
   ★ 手機與關掉動態效果直接不顯示，底下的 <picture> 在那兩種情況給的是原本那張有北辰君的圖。 */
.hero-video { opacity: 0; transition: opacity .9s ease; background: transparent; }
.hero-video.playing { opacity: 1; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* 窄螢幕人物會壓到字：退成淡背景。不要 display:none，手機是多數流量，整個拿掉等於多數人看不到主視覺。 */
@media (max-width: 860px) {
    .hero-art { object-position: 100% top; opacity: .55; }
    .hero-art.mid { width: 100%; object-position: 62% 30%; opacity: .4; }
    .hero-veil { background: linear-gradient(0deg, rgba(9, 12, 22, .72), rgba(9, 12, 22, .4)); }
}

/* ── 星官一排（_StarStrip）────────────────────────────────────────────── */
/* 八顆去背的頭（-face.png）直接浮在夜底上，沒有卡也沒有框。雙生那格兩顆並排、疊一點。 */
/* ★ 下襬的淡出用 mask 不烘進圖裡：圖是 256 色的 PNG，漸層烘進去會變成一條一條的橫紋。 */
.star-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; }
.star-strip a { display: block; text-decoration: none; color: inherit; text-align: center; font-size: 13px; letter-spacing: .08em; transition: transform .2s var(--ease); }
.star-strip a:hover { transform: translateY(-3px); color: var(--glow); }
.star-strip .fg { display: block; position: relative; height: 0; padding-bottom: 100%; }
.star-strip .fg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; display: block;
                      -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
                              mask-image: linear-gradient(to bottom, #000 74%, transparent 98%); }
/* 雙生那一格塞兩顆頭。圖本身裁得比別人緊（臉要跟其他星官一樣大），四邊都會切到頭髮，
   所以上下一層、左右一層，兩層 mask 取交集。mask-composite 不支援時退回聯集＝等於沒淡出，不會壞版。 */
.star-strip .fg.twin img { width: 66%;
                      -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 74%, transparent 98%),
                                          linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
                              mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 74%, transparent 98%),
                                          linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
                      -webkit-mask-composite: source-in; mask-composite: intersect; }
.star-strip .fg.twin img + img { left: auto; right: 0; }
/* 肖像卡（-card.jpg）自己有金框和星空底，整格放、不淡出：淡出會把框的下緣吃掉。
   ★ class 不可以叫 card：全站的 .card 元件有內距和邊框，格子會被撐成 121×149。 */
.star-strip .fg.has-card img { object-fit: cover; object-position: center; border-radius: 3px;
                           -webkit-mask-image: none; mask-image: none;
                           box-shadow: 0 6px 18px rgba(4, 7, 16, .45); }
.star-strip .nm { display: block; margin-top: 4px; }
@media (max-width: 720px) {
    .star-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .star-strip .nm { font-size: 12px; letter-spacing: .04em; }
}

/* 開發中卡改印全身圖（頁面傳 ViewData["figure"]=true：每日的一籤、玄璣子）。 */
.soon-fig { flex: none; width: 84px; height: 112px; object-fit: cover; object-position: top center; border-radius: 5px; box-shadow: 0 0 0 1px var(--line-2); }

/* ── 天空卡底鋪守護星官的場景 ────────────────────────────────────────── */
/* 跟 og 圖（SkyImage.cshtml）同一個做法：場景壓暗當底，內容都要在它上面。
   ★ 圖從邊緣內縮 2px，.ornate 畫在卡片背景上的四角記號才露得出來；內框 ::before 要拉到圖上面。 */
.sky-card { overflow: hidden; }
.sky-bg { position: absolute; top: 2px; left: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; object-position: center 40%; opacity: .42; z-index: 0; pointer-events: none; border-radius: var(--r-lg); }
.sky-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
             background: linear-gradient(90deg, rgba(12, 17, 32, .92) 0%, rgba(12, 17, 32, .72) 55%, rgba(12, 17, 32, .45) 100%); }
.sky-card > :not(.sky-bg):not(.sky-shade) { position: relative; z-index: 1; }
.sky-card.ornate::before { z-index: 1; }

/* 場景帶接在 404 與登入頁的上面（那兩頁不是 .pg）。 */
.scene-band + .simple { margin-top: 48px; }
.scene-band + .auth { margin-top: 40px; }
