/* 搜尋文第四版設計稿:克制的配色。深藍墨色的字、中性的底、一個品牌藍;黃色只有硬幣。 */
/* 手機上點圖、連結、按鈕、目錄不要出現系統的藍色方框(2026-12-01 執行長);按下去的回饋用我們自己的變暗,介紹頁 split.css 第 11 版已經有同一條 */
* { -webkit-tap-highlight-color: transparent; }
.v4 {
  color-scheme: light;
  --bg: #f7f8fa;
  --band: #e8f0fb;
  --card: #ffffff;
  --text: #1f2430;
  --sub: #474d58;
  --faint: #5a616d;
  --navy: #14213d;
  --blue: #1f5aa8;
  --btn: #2467bd;
  --btn-text: #ffffff;
  --tint: #dfeafa;
  --tint-ink: #1b4f94;
  --line: #e2e6ed;
  --ui: #737a87;
  --focus: #14213d;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 10px 28px rgba(20, 33, 61, 0.08);
  --k1: #10224a; --k2: #10224a; --k3: #10224a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v4 { margin: 0; background: var(--bg); color: var(--text); font-family: 'Huninn', 'Noto Sans TC', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.8; }
.v4 h1, .v4 h2, .v4 h3, .v4 b, .v4 th { font-weight: 400; }
.v4 .wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; position: relative; }
.v4 :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--btn); color: var(--btn-text); padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.v4 .topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--band) 92%, transparent); backdrop-filter: blur(10px); }
.v4 .topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.v4 .logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font-size: 20px; }
.v4 .logo img { width: 30px; height: 30px; }
.v4 .chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--blue); text-decoration: none; font-size: 15px; box-shadow: var(--shadow); }
.v4 .chip-link::after { content: ''; display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ic-ar) center / contain no-repeat; mask: var(--ic-ar) center / contain no-repeat; margin-left: 6px; vertical-align: -0.14em; }
.v4 .chip-link:hover { background: var(--tint); }

/* 唯一的色帶:第一個畫面(標題、結論、例子、對照表)。黃色只有貓抱著的硬幣 */
.v4 .hero { position: relative; overflow: hidden; background: var(--band); padding: 10px 0 14px; }
.v4 .mascot { position: absolute; right: -20px; top: 0; width: 116px; height: 116px; }
.v4 .mascot .k1 { stop-color: var(--k1); } .v4 .mascot .k2 { stop-color: var(--k2); } .v4 .mascot .k3 { stop-color: var(--k3); }
/* 段落小標(四種分法、先講好、記下來…):淺底膠囊,深色淺色都看得出來,一看就知道是下面那個大標的標籤(2026-11-27 社群 guide-writing-system ⑦;原本 15px 藍字太小太淡) */
.v4 .eyebrow { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 15px; line-height: 1.6; letter-spacing: 0.06em; }
.v4 h1 { margin: 0 0 8px; padding-right: 84px; font-size: clamp(25px, 6.6vw, 38px); line-height: 1.35; color: var(--navy); letter-spacing: 0.02em; }
.v4 .answer { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text); }
/* 答案下面接住心情的那一句(2026-11-27 社群 empathy-lines):比答案淡一點、不加框 */
.v4 .feel { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--sub); }

.v4 .band { position: relative; padding: 44px 0 0; background: var(--bg); }
.v4 .band:last-of-type { padding-bottom: 44px; }
.v4 .band-hero-tail { background: var(--band); padding: 4px 0 40px; }
.v4 h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.45; color: var(--navy); }
.v4 p { margin: 0 0 12px; }

.v4 .eg { margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: var(--sub); }
.v4 .tag { display: inline-block; margin-right: 8px; padding: 1px 10px; border-radius: 999px; background: var(--card); color: var(--tint-ink); font-size: 14px; line-height: 1.6; vertical-align: 1px; }

.v4 .card { position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.v4 .compare { padding: 4px; }
.v4 .sticker { position: absolute; right: 14px; top: -17px; z-index: 1; padding: 3px 12px; border-radius: 10px; background: var(--btn); color: var(--btn-text); font-size: 14px; line-height: 1.6; transform: rotate(3deg); }
.v4 table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.6; }
.v4 th, .v4 td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--text); }
.v4 thead th { border-top: 0; color: var(--faint); font-size: 14px; padding-top: 12px; padding-bottom: 8px; }
.v4 td.r, .v4 th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v4 td.r { color: var(--blue); font-size: 18px; }
/* 四欄的表(trip-settle,11-22):320 寬放得下 */
.v4 .compare.cols4 th, .v4 .compare.cols4 td { padding: 10px 8px; }
.v4 .compare.cols4 td.r { font-size: 16px; }

.v4 .ways { padding: 2px 18px; margin-top: 14px; }
.v4 .way { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.v4 .way:first-child { border-top: 0; }
.v4 .ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--tint-ink); font-size: 18px; line-height: 1; }
.v4 .way h3 { margin: 5px 0 2px; font-size: 19px; line-height: 1.5; color: var(--navy); }
.v4 .way p { margin: 0 0 6px; color: var(--sub); line-height: 1.7; }
.v4 .way .calc { margin: 0; font-size: 15px; color: var(--faint); line-height: 1.6; }
/* 分法卡用編號(2026-12-01 走查 d-1):「怎麼開口」的範例上面標「第 2 種・照房價」對回來 */
.v4 .ava.num { font-variant-numeric: tabular-nums; }
.v4 .say-for { margin: var(--sp-mid) 0 var(--sp-tight); color: var(--sub); font-size: 15px; }
.v4 .say .say-for:first-child { margin-top: 0; }

.v4 .say { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-top: 8px; }
.v4 .bubble { margin: 0; max-width: 92%; padding: 14px 18px; border-radius: 21px; /* 跟聊天的泡泡一樣四角全圓(2026-11-21) */ background: #2467bd; color: #ffffff; line-height: 1.7; }
.v4 .bubble .fill { color: rgba(255, 255, 255, 0.62); } /* 泡泡裡要換成自己資料的地方(2026-11-24 remind 那篇) */
.v4 .copy { font: inherit; font-size: 16px; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--card); color: var(--blue); cursor: pointer; box-shadow: var(--shadow); }
.v4 .copy::before { content: '⧉'; margin-right: 6px; }
.v4 .copy:hover { background: var(--tint); }
.v4 .copy:active { transform: scale(0.97); }

.v4 .shot { margin: 14px 0 16px; border-radius: 20px; overflow: hidden; background: #f7f8fa; box-shadow: var(--shadow); }
/* 一張圖最高約 0.6 屏(390 寬約 500px),超過的從下面裁掉、上面對齊(2026-11-27 ⑤;room-split 那張 12/1 後換新圖) */
.v4 .shot img { display: block; width: 100%; height: auto; max-height: 500px; object-fit: cover; object-position: top; }
/* 一段放兩張圖(⑥ 記的人那邊、朋友那邊):手機上下排,寬螢幕並排 */
.v4 .shots { display: grid; gap: var(--sp-mid); margin: var(--sp-mid) 0; }
.v4 .shots .shot { margin: 0; }
@media (min-width: 560px) { .v4 .shots { grid-template-columns: 1fr 1fr; align-items: start; } }
.v4 .steps { list-style: none; counter-reset: s; margin: 0 0 20px; padding: 0; }
.v4 .steps li { counter-increment: s; position: relative; padding: 3px 0 9px 42px; }
.v4 .steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-size: 15px; line-height: 29px; text-align: center; }

.v4 .go { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.v4 .btn { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 30px; border-radius: 999px; background: var(--btn); color: var(--btn-text); text-decoration: none; font-size: 18px; box-shadow: 0 8px 20px rgba(36, 103, 189, 0.25); }
.v4 .btn::after { content: ''; display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ic-ar) center / contain no-repeat; mask: var(--ic-ar) center / contain no-repeat; margin-left: 10px; vertical-align: -0.14em; }
.v4 .btn:hover { filter: brightness(1.08); }
.v4 .btn:active { transform: scale(0.98); }
.v4 .go small { color: var(--faint); font-size: 15px; }

.v4 .faq { margin-top: var(--sp-mid); padding: 0 18px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.v4 .faq details { border-top: 1px solid var(--line); }
.v4 .faq details:first-child { border-top: 0; }
.v4 .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; color: var(--navy); cursor: pointer; list-style: none; }
.v4 .faq summary::-webkit-details-marker { display: none; }
.v4 .faq summary::after { content: '＋'; flex: none; color: var(--blue); font-size: 18px; }
.v4 .faq details[open] summary::after { content: '－'; }
.v4 .faq details p { color: var(--sub); margin: 0; padding: 0 0 16px; }

.v4 .h2-more { margin-top: 44px; }
/* 搜尋文「哪一種適合我們？」下面接對應的計算機(2026-12-01 走查 a-3):一句說明＋白底膠囊連結,不用主題色 */
.v4 .to-calc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-tight) 12px; margin: var(--sp-loose) 0 0; padding-bottom: var(--sp-tight); color: var(--sub); font-size: 16px; }
.v4 .to-calc span { flex-basis: 100%; }
.v4 .topics { list-style: none; margin: var(--sp-mid) 0 0; padding: 0; display: grid; gap: 12px; }
.v4 .topics a { display: flex; align-items: center; gap: 14px; position: relative; min-height: 76px; padding: 14px 44px 14px 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.v4 .topics a::after { content: ''; display: inline-block; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic-ar) center / contain no-repeat; mask: var(--ic-ar) center / contain no-repeat; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--blue); }
/* 題目卡不放一字圓圈(2026-12-01 走查 d-2):標題已經講了題目,分組靠目錄的小標 */
.v4 .topics .t { display: block; }
.v4 .topics .q { display: block; color: var(--navy); font-size: 17px; line-height: 1.5; }
.v4 .topics .a { display: block; color: var(--sub); font-size: 15px; line-height: 1.6; }
.v4 .topics a:hover { background: var(--tint); }
.v4 .topics a:active { transform: scale(0.99); }

.v4 .footer { padding: 26px 0 40px; background: var(--bg); color: var(--faint); font-size: 15px; }
.v4 .footer a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; color: var(--sub); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .v4 * { transition: none !important; animation: none !important; } .v4 .copy:active, .v4 .btn:active, .v4 .topics a:active { transform: none; } }
@media (max-width: 350px) {
  .v4 .mascot { width: 100px; height: 100px; right: -18px; }
  .v4 h1 { font-size: 24px; padding-right: 70px; }
}
.v4 .ib { display: inline-block; }
.v4 .hero-short .answer { padding-right: 92px; }

/* first screen, 11-18 evening: the answer and the table are the only leads. No mascot, no label above the title, more air. */
.v4 .hero { padding: 22px 0 6px; }
.v4 h1 { padding-right: 0; margin: 0 0 14px; }
.v4 .answer { line-height: 1.75; }
.v4 .band-hero-tail { padding: 18px 0 44px; }
.v4 .eg { margin: 0 0 24px; font-size: 15px; color: var(--faint); }
.v4 .eg-after { margin: 16px 0 0; }
@media (max-width: 350px) { .v4 h1 { padding-right: 0; } }

.v4 .meta { margin: 28px 0 0; color: var(--faint); font-size: 15px; }

/* 頁首右邊加「登入」(11-18 找得到稽核):給用過攤攤的人 */
.v4 .topbar-inner nav { display: flex; align-items: center; gap: 6px; }
.v4 .tb-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--blue); text-decoration: none; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.v4 .tb-login:hover { background: var(--tint); }
.v4 .tb-login:focus-visible, .v4 .chip-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 350px) {
  .v4 .chip-link { padding: 0 12px; font-size: 14.5px; }
  .v4 .tb-login { padding: 0 11px; font-size: 14.5px; }
}

/* 按下去一定要有看得到的變化，範圍是整個點得到的範圍（11-22 執行長規則；開發 scripts/press-audit.mjs 部署前會擋）。
   跟攤攤 App 一樣是「變暗」（src/pages/split/styles/tokens.css 的 --press-dim / --press-overlay）：淺色 filter: brightness(0.92)；
   深色不用 filter（變亮太刺眼），疊一層 8% 白。底色透明的（logo、文字連結、問答、頁尾）只用 filter 會只暗到字，
   App 是程式補底色，這裡用 inset 陰影疊一層同樣濃度的暗色，整塊點得到的範圍都看得出來。 */
:root { --press-dim: brightness(0.92); --press-tint: rgba(0, 0, 0, 0.08); }
.v4 a:active, .v4 summary:active, .v4 button:active { filter: var(--press-dim); }
.v4 summary:active, .v4 .logo:active, .v4 a:not([class]):not(.topics a):active { filter: none; box-shadow: inset 0 0 0 100vmax var(--press-tint); border-radius: 8px; }
/* 登入是膠囊（本來就有左右留白和圓角）：形狀不改，原本的細框留著 */
.v4 .tb-login:active { filter: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 100vmax var(--press-tint); }
/* 暗的那塊不要緊貼字（規劃 11-22）：logo、頁尾和文章裡的文字連結按下去時，用外陰影往外多 6px（外陰影只畫在元素外面，
   跟裡面那層不會疊兩次），版面完全不動；不用 padding＋負 margin，因為會蓋掉原本的 margin、也會套到題目卡片。 */
.v4 .logo:active, .v4 a:not([class]):not(.topics a):active { box-shadow: inset 0 0 0 100vmax var(--press-tint), 0 0 0 6px var(--press-tint); }

/* ===== C 版型（11-27 執行長選 C；只套在 <article class="C"> 的頁，12/1 比較的四篇沒有這個 class） ===== */
.C h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.3; letter-spacing: 0.01em; margin: 0 0 14px; }
.C h2 { font-size: 23px; line-height: 1.4; }
.C .answer { font-size: 18px; line-height: 1.75; }
.C .eyebrow { font-size: 14px; letter-spacing: 0.12em; }
.C em.k { font-style: normal; }
.C em.k { background: linear-gradient(transparent 58%, #ffe08a 58%, #ffe08a 92%, transparent 92%); }
.C .hero .wrap { position: relative; }
.C .hero-char { position: absolute; right: 4px; top: 20px; width: 58px; height: auto; }
@media (max-width: 359px) { .C .hero-char { display: none; } .C .hero h1 { padding-right: 0 !important; } }
.C .hero h1 { padding-right: 66px; }
.C .hero { padding-top: 26px; }
.C .mascot { display: none; }
.C .band { padding-top: 52px; }
.C .way h3 { font-size: 20px; color: var(--navy); }
.C .calc { font-size: 15px; color: var(--faint); }
.C .topics .q { color: var(--navy); }
.C .hero { padding-bottom: 20px; } .C .band-hero-tail { padding-top: 0; }
.C .hero { padding-bottom: 32px; }
.C .band-hero-tail .eg:first-child { margin: 0 0 24px; }
.C .tag.top { background: #fff3c4; color: #6b4e00; font-size: 13px; vertical-align: 2px; margin-left: 6px; }
.C .way:first-child h3 { color: var(--navy); }
.C .topics .q { font-size: 16px; line-height: 1.45; }
.C .topics .a { font-size: 14px; }
@media (max-width: 359px) { .C .compare th[scope=row] { font-size: 14px; } .C .compare td { font-size: 16px; padding-left: 6px; padding-right: 6px; } .C .compare th, .C .compare td { padding-left: 8px; padding-right: 8px; } }
.C .nw { white-space: nowrap; }
.C p, .C li, .C td, .C th, .C summary, .C small, .C .topics .a { text-wrap: pretty; }
.C h1, .C h2, .C h3, .C .topics .q { text-wrap: balance; }
.C h1, .C h2, .C h3, .C .topics .q, .C .topics .a, .C .calc, .C .bubble, .C .tag, .C small, .C summary, .C th, .C td, .C .eg, .C .why, .C .msg .b, .C .answer { word-break: keep-all; overflow-wrap: anywhere; }
.C .calc .eq { display: block; }
/* 文章算式換成使用者填的數字時,上面一行小字(12-04 深夜) */
.C .ex-note { margin: 0 0 8px; font-size: 13px; color: var(--faint); }
/* 算式不從中間斷開(2026-12-01 執行長):一個算式一行;「＝」左右兩段各自不換行,放不下時只會在「＝」前面換行 */
.v4 .calc .eq { display: block; }
.v4 .calc .eq .l, .v4 .calc .eq .r, .v4 .calc .eq .c { white-space: nowrap; }
@media (max-width: 359px) { .C .calc { font-size: 13.5px; letter-spacing: -0.01em; } }
.C .hero { background: var(--band); padding: 24px 0 30px; }
.C h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.3; margin: 0 0 10px; padding: 0; }
.C .answer { margin: 0 0 16px; font-size: 18px; line-height: 1.7; }
.C .chat2 { display: grid; gap: 6px; margin: 0 0 14px; }
/* 頭貼對齊（12-03 執行長）：一行的泡泡置中，多行的頭貼貼著最後一行。整列 flex-end，頭貼往上墊 (一行泡泡 36 − 頭貼 28) ÷ 2 = 4px */
.C .msg { display: flex; align-items: flex-end; gap: 7px; margin: 0 0 12px; }
.C .msg > img, .C .msg > .av { margin-bottom: 4px; }
.C .msg > .b { margin: 0; }
.C .msg img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.C .msg .b { padding: 7px 12px; border-radius: 16px 16px 16px 4px; background: var(--card); color: var(--text); font-size: 15px; line-height: 1.45; box-shadow: 0 1px 2px rgba(20,33,61,.06); }
.C .msg .nm { font-size: 12px; color: var(--faint); margin-right: 4px; }
.C .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.C .tabs button { border: 0; border-radius: 999px; padding: 9px 4px; background: transparent; color: var(--sub); font: inherit; font-size: 15px; cursor: pointer; }
.C .tabs button[aria-selected="true"] { background: var(--btn); color: var(--btn-text); }
.C .receipt { padding: 16px 18px 14px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.C .rhead { display: flex; justify-content: space-between; font-size: 14px; color: var(--faint); border-bottom: 1px dashed var(--line); padding: 0 0 10px; margin: 0 0 6px; }
.C .line { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; padding: 8px 0; }
.C .line .it, .C .line .amt { font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.C .who { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.C .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 3px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 13px; }
.C .chip img { width: 20px; height: 20px; border-radius: 50%; }
.C .chip.off { background: transparent; color: var(--faint); text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--line); }
.C .chip.off img { opacity: .45; }
.C .tot { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); margin: 6px 0 0; padding-top: 10px; font-size: 15px; color: var(--sub); }
.C .pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.C .pp { padding: 10px 4px 8px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-align: center; font-size: 13px; color: var(--faint); }
.C .pp img { display: block; width: 34px; height: 34px; margin: 0 auto 2px; border-radius: 50%; }
.C .pp b { display: block; font-weight: 400; font-size: 19px; color: var(--blue); font-variant-numeric: tabular-nums; }
.C .why { margin: 12px 0 0; font-size: 15px; color: var(--sub); min-height: 3.2em; }
.C .hero-char, .v4 .mascot { display: none; }
@media (max-width: 359px) { .C .who { gap: 4px; } .C .chip { padding: 2px 7px 2px 2px; font-size: 12px; gap: 3px; } .C .chip img { width: 18px; height: 18px; } .C .receipt { padding-left: 14px; padding-right: 14px; } .C .tabs button { font-size: 14px; } }
/* C 版型的計算機（11-27，calc-*.html）：輸入卡、字母頭像、誰轉給誰 */
.C .av { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--card); color: var(--blue); font-size: 12px; line-height: 1; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.C .msg .av { width: 28px; height: 28px; font-size: 14px; background: var(--tint); color: var(--tint-ink); box-shadow: none; }
.C .pp .av.big { display: flex; width: 34px; height: 34px; margin: 0 auto 2px; font-size: 16px; background: var(--tint); color: var(--tint-ink); box-shadow: none; }
.C .chip .av { width: 18px; height: 18px; font-size: 11px; }
.C .calcbox { margin: 0 0 14px; padding: 14px 16px 10px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.C .cb-title { margin: 0 0 6px; font-size: 15px; color: var(--sub); }
.C .cb-sub { margin: 12px 0 2px; font-size: 14px; color: var(--faint); }
.C .cb-note { margin: -2px 0 4px; font-size: 13px; color: var(--faint); text-align: right; }
.C .cb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-bottom: 1px dashed var(--line); }
.C .cb-row:last-child { border-bottom: 0; }
.C .cb-row label, .C .cb-row .lb { font-size: 16px; color: var(--navy); }
.C .cb-in { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--band); color: var(--faint); font-size: 15px; }
.C .cb-in input, .C .cb-in select { width: 6.5em; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.C .cb-in.sel select { width: auto; max-width: 9em; text-align: left; font-size: 16px; }
.C .cb-in input:focus, .C .cb-in select:focus, .C .person .nm:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.C .person .nm { flex: 1; min-width: 0; max-width: 9em; height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.C .stepper { display: inline-flex; align-items: center; gap: 2px; }
.C .stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--band); color: var(--blue); font: inherit; font-size: 20px; cursor: pointer; }
.C .stepper button:disabled { color: var(--faint); opacity: .5; cursor: default; }
.C .stepper output { min-width: 2em; text-align: center; font-size: 18px; color: var(--navy); }
.C .tabs.two { grid-template-columns: repeat(2, 1fr); }
.C .why.warn { color: #b3261e; }
.C .xfer { list-style: none; margin: 4px 0 0; padding: 0; }
.C .xfer li { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--sub); }
.C .xfer li b { font-weight: 400; color: var(--navy); font-variant-numeric: tabular-nums; }
/* 結果下面的〔複製結果〕(2026-12-01 走查 b-1):白底膠囊,旁邊一行小字說用途 */
.C .copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-tight) 12px; margin: var(--sp-mid) 0 0; }
.C .copy-row span { color: var(--sub); font-size: 15px; }
.C .next { margin: 18px 0 0; }
.C .next p { margin: 0 0 10px; font-size: 15px; color: var(--sub); }
@media (max-width: 359px) { .C .calcbox { padding-left: 12px; padding-right: 12px; } .C .cb-in input { width: 5em; } .C .pp b { font-size: 16px; } }
.C .chip.solo { padding-right: 3px; }
.C .chip.plain { padding: 2px 10px; }
.C .pp .pn { display: block; }
.C .who .pct { align-self: center; font-size: 13px; color: var(--faint); }
.C .names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px 0 12px; border-bottom: 1px dashed var(--line); }
.C .names .nm { min-width: 0; height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.C .names .nm:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.C .how { font-size: 13px; color: var(--faint); }
.C .pay.c3 { grid-template-columns: repeat(3, 1fr); }
.C .pay.c4 { grid-template-columns: repeat(4, 1fr); }
.C .paylab { margin: 14px 0 0; font-size: 14px; color: var(--faint); }
.C .paylab + .pay { margin-top: 6px; }
/* 結果區(12-04 晚):誰轉給誰 → 每人(每家)一張卡 → 一行說明(合計、一份多少);卡片兩欄,名字和「先付」在上、細節小字、金額 */
.C #detail { margin-top: 22px; }
.C #detail > .paylab:first-child { margin-top: 0; }
.C #detail .pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .C #detail .pay { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.C #detail .pp { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left; font-size: 13px; }
.C #detail .pp-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.C #detail .pp .av.big { flex: none; width: 28px; height: 28px; margin: 0; font-size: 14px; }
.C #detail .pp .pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--navy); }
.C #detail .pp-tag { flex: none; margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 12px; }
.C #detail .pp-sub { color: var(--faint); font-size: 13px; }
.C #detail .pp b { margin-top: auto; font-size: 20px; }
.C #detail .why { min-height: 0; }
/* 誰轉給誰:結論放白卡(12-04 晚執行長:結論在淺藍底上、次要卡片反而白,層次倒了);圓角、陰影、左右切齊下面卡片 */
.C #detail .xfer { margin-top: 6px; padding: 2px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.C #detail .xfer li { padding: 12px 0; }
.C #detail .xfer li:last-child { border-bottom: 0; }
/* 包棟「小孩怎麼算」沒有小孩時:整列變淡、不能按(跟加減鈕到上下限一樣的灰) */
.C #kids-opts.off .qq { color: #b8c2d1; }
.C #kids-opts.off .tabs button { color: #b8c2d1; cursor: default; }
.C #kids-opts.off .tabs button[aria-selected="true"] { box-shadow: none; background: transparent; }
.C .hero .eg-after { margin: 4px 0 0; font-size: 14px; color: var(--faint); }
.C .hero h1 { padding-right: 0; }
@media (max-width: 359px) { .C h1.long { font-size: 27px; } }
/* 不能按的按鈕（例如人數到下限的加減鈕）按住時不變暗（11-22 執行長規則：不是能點的元素不能跟著變暗） */
.C button:disabled:active { filter: none !important; box-shadow: none !important; transform: none !important; }
.C .topics + .eyebrow { margin-top: 30px; }
.C .feel { margin: -6px 0 16px; font-size: 15px; line-height: 1.7; color: var(--sub); }
.C .feel { word-break: keep-all; overflow-wrap: anywhere; }
/* 包棟計算機：每家一塊（名字＋大人、小孩加減） */
.C .fam { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.C .fam .nm { width: 100%; max-width: 12em; height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.C .fam .nm:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.C .famrow { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.C .famrow .lb { font-size: 15px; color: var(--sub); }
.C .famrow .lb + .stepper { margin-right: 10px; }
.C .stepper.mini button { width: 34px; height: 34px; font-size: 18px; }
.C .stepper.mini output { min-width: 1.6em; font-size: 16px; }
.C .famrow { column-gap: 16px; row-gap: 6px; }
.C .famrow .grp { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.C .famrow .lb + .stepper { margin-right: 0; }
.C .way .calc a { color: var(--blue); text-underline-offset: 3px; }
.C .meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* 參考的討論（11-27，權威：資料有來源） */
.C .refs-note { margin: 0 0 8px; font-size: 14px; color: var(--faint); }
.C .refs { list-style: none; margin: 0 0 8px; padding: 0; }
.C .refs li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.C .refs a { display: block; color: var(--navy); font-size: 15px; text-underline-offset: 3px; }
.C .refs span { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); }
.C .pay.c2 { grid-template-columns: repeat(2, 1fr); }

/* 搜尋文固定淺色（11-27 規劃：截圖是淺色拍的、C 版型照淺色設計、跟首頁一致）；only light 擋住手機瀏覽器自動反黑 */
:root { color-scheme: only light; }

/* 11-27：步驟截圖的說明、記帳的人是誰 */
.C .shot figcaption { padding: 10px 16px 12px; font-size: 14px; color: var(--sub); background: #fff; word-break: keep-all; }
.C .shot-who { margin: 14px 0 0; font-size: 15px; color: var(--sub); }

/* 頁內目錄、錨點（11-27）：錨點捲到時留出頂端列的高度；目錄照 C 版型的卡片，不用粗體 */
.C [id] { scroll-margin-top: 72px; }
.C .toc { margin: 22px 0 0; padding: 14px 16px 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.C .toc-h { margin: 0 0 6px; font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }
.C .toc ol { list-style: none; margin: 0; padding: 0; }
.C .toc li { border-top: 1px dashed var(--line); }
.C .toc li:first-child { border-top: 0; }
.C .toc a, .C .toc summary { display: block; padding: 10px 2px; color: var(--navy); font-size: 15px; line-height: 1.5; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.C .toc a { position: relative; padding-right: 24px; }
.C .toc a::after { content: ''; display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic-cr) center / contain no-repeat; mask: var(--ic-cr) center / contain no-repeat; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--blue); opacity: 0.7; }
.C .toc summary { cursor: pointer; list-style: none; }
.C .toc summary::-webkit-details-marker { display: none; }
.C .toc summary::after { content: "＋"; float: right; color: var(--blue); }
.C .toc details[open] > summary::after { content: "－"; }
.C .toc details ol { margin: 0 0 6px 12px; }
.C .toc details li { border-top: 0; }
.C .toc details a { padding: 7px 2px; font-size: 14px; color: var(--sub); }
.C .toc a:active, .C .toc summary:active { background: var(--press-tint, rgba(20,33,61,.06)); border-radius: 8px; }
/* 名詞表的目錄：名詞做成小標籤 */
.C .toc-terms ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.C .toc-terms li { border-top: 0; }
.C .toc-terms li a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.C .toc-terms li a::after { content: none; }
.C .toc-more { margin: 4px 0 0; border-top: 1px dashed var(--line); }
/* 目錄能點的地方至少 44px 高（12-01 規則：按下去變暗、點擊範圍 44px） */
.C .toc a, .C .toc summary { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
.C .toc details a { min-height: 44px; }
.C .toc-terms li a { min-height: 44px; padding: 0 14px; }
.C .toc-terms li a:active { background: var(--press-tint, rgba(20,33,61,.06)); }
/* 按下去的樣子（12-01 開發，press-audit 在 C 版型抓到的 12 處；社群照同一份 commit 挑回 guide-wt）：
   分法按鈕沒選的那顆是透明底，原本的 filter 變暗看不出來，改成灰底（選了的那顆照舊變暗）。 */
.C .tabs button:not([aria-selected="true"]):active { filter: none; background: var(--press-tint); }
/* 參考的討論、作者那行：外面補一圈看不見的點擊範圍（每邊最多 8px，往 44px 補），樣子和按下去照舊 */
.C .refs a, .C .meta a { position: relative; isolation: isolate; }
.C .refs a::after, .C .meta a::after {
  content: '';
  position: absolute;
  top: max(-8px, min(0px, calc((100% - 44px) / 2)));
  bottom: max(-8px, min(0px, calc((100% - 44px) / 2)));
  left: 0;
  right: 0;
  z-index: -1;
}
/* 做法卡裡的連結（總整理每段連到單篇）：跟參考的討論一樣，外面補看不見的點擊範圍往 44px（每邊最多 8px） */
.C .way .calc a { position: relative; isolation: isolate; }
.C .way .calc a::after { content: ""; position: absolute; top: max(-8px, min(0px, calc((100% - 44px) / 2))); bottom: max(-8px, min(0px, calc((100% - 44px) / 2))); left: 0; right: 0; z-index: -1; }
/* 改成 flex 之後，常見問題那列的＋／－要靠右（12-01 修） */
.C .toc summary { justify-content: space-between; }
/* 目錄右邊的符號（›、＋、－）用同一種定位，對齊同一條直線（12-01） */
.C .toc summary { position: relative; padding-right: 24px; }
.C .toc a::after, .C .toc summary::after { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 16px; text-align: center; float: none; line-height: 1; }
.C .toc summary::after { font-size: 18px; }

/* 計算機的小加減(包棟每家的大人、小孩)和段落裡的文字連結:看得到的大小不變,外面補看不見的點擊範圍往 44px(每邊最多 8px)
   (2026-12-01 走查:press-audit 的點擊範圍檢查把計算機頁加進來後量到的,1202a 起就有) */
.C .stepper.mini button { position: relative; }
.C .stepper.mini button::after { content: ""; position: absolute; inset: -5px; }
.C p a:not([class]) { position: relative; isolation: isolate; }
.C p a:not([class])::after { content: ""; position: absolute; top: max(-8px, min(0px, calc((100% - 44px) / 2))); bottom: max(-8px, min(0px, calc((100% - 44px) / 2))); left: 0; right: 0; z-index: -1; }

/* 間距統一(2026-12-01 全站量過):
   段落之間一律是下一段的上方留白(52px),段落最後一個元素不另外加下邊距;沒有小標的段落,第一個元素不另外加上邊距
   標題 → 內文:文字 8px、卡片／題目卡／常見問題 14px;截圖和截圖之間 16px
   提醒還錢那篇的「開頭延伸段」底下留白跟其他頁的開頭一樣(30px) */
.v4 .band > .wrap > :last-child, .v4 .band > .wrap > :last-child > :last-child, .v4 .hero > .wrap > :last-child { margin-bottom: 0; }
.v4 .band > .wrap > :first-child { margin-top: 0; }
.C .band-hero-tail { padding-bottom: 30px; }

/* ===== 三級間距變數(2026-12-01):全站其他地方用;分法卡照 1202a 正式版的版面,不用這組(規劃 12-01 深夜) ===== */
.v4 { --sp-tight: 8px; --sp-mid: 16px; --sp-loose: 24px; }
/* 分法卡最上面的小標籤(最多人這樣做…):原本寫在 HTML 的 inline style 搬到這裡,樣子照舊 */
.v4 .way .tag.top { margin: 0 0 4px; display: inline-block; }
/* 分法卡右邊那欄撐滿(算式拆成一行一個後內容變短,原本靠內容撐到 260px 的會縮);寬度跟 1202a 一樣 */
.v4 .way > div { flex: 1; min-width: 0; }
/* 算式放不下、在「＝」前面換行時,第二行縮排對齊 */
.v4 .calc .eq { padding-left: 1.2em; text-indent: -1.2em; }
/* 沒有「＝」的說明句(只有 .c 小段)換行後不縮排,跟第一行左邊對齊(12-02 規劃) */
.v4 .calc .eq:not(:has(> .l)) { padding-left: 0; text-indent: 0; }
/* 分法比較表(12-02 drive-gas、room-split):表下面接說明時跟卡片隔中距;分法名稱欄不斷字 */
.v4 [data-sec="methods-table"] { margin-bottom: var(--sp-mid); }
.v4 [data-sec="methods-table"] td:first-child { white-space: nowrap; }
.v4 .after-table { margin-top: 0; }

/* 計算機第一屏的答案卡（12-03 走查 #3）：數字跟下面的收據同一個計算（calc-answer.js 讀 #pay），跟填數字卡同樣 14px 間距 */

/* 計算機目錄 2×2 方塊格（12-03 走查 #4）：圖示、名字、一句；一句貼齊卡片底部，四張一樣高 */
.C .calc-grid { list-style: none; margin: var(--sp-mid) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.C .calc-grid li { min-width: 0; }
.C .calc-grid a { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); }
.C .calc-grid img { width: 48px; height: 48px; display: block; }
.C .calc-grid .nm { font-size: 17px; line-height: 1.35; }
.C .calc-grid .ex { margin-top: auto; font-size: 13px; line-height: 1.5; color: var(--faint); white-space: nowrap; }


/* 文章目錄：計算機一排圖示、有數字的卡數字帶頭（12-03 走查 #4） */
.C .icon-row { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.C .icon-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); font-size: 14px; }
.C .icon-row img { width: 40px; height: 40px; display: block; }
.C .icon-more { margin: 10px 0 var(--sp-loose); font-size: 14px; }
.C .icon-more a { color: var(--blue); }
.C .topics .lead-n { display: block; margin: 0 0 4px; font-size: 26px; line-height: 1.15; color: var(--blue); font-variant-numeric: tabular-nums; }
.C .topics .lead-n small { margin-right: 6px; font-size: 14px; color: var(--faint); vertical-align: 4px; }

/* 計算機 v2（2026-12-04 改版：第一屏就是工具。標題下一句話，接著 1、2 兩步；空欄位灰字；結果在填數字的下面，還沒填時虛線框占位） */
.C .lead1 { margin: 0 0 14px; font-size: 16px; color: var(--sub); line-height: 1.6; }
.C .calcbox.v2 { padding: 16px 16px 14px; }
.C .cb-step { margin: 0 0 8px; font-size: 17px; color: var(--navy); line-height: 1.4; }
.C .cb-step ~ .cb-step { margin-top: 18px; }
.C .cb-step .sn { display: inline-block; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-size: 14px; line-height: 24px; text-align: center; vertical-align: 1px; }
.C .cb-big { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); color: var(--faint); font-size: 20px; }
.C .cb-big:focus-within { box-shadow: inset 0 0 0 2px var(--btn); }
.C .cb-big input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 22px; font-variant-numeric: tabular-nums; outline: none; }
.C .calcbox.v2 input::placeholder { color: #9aa1ad; opacity: 1; }
.C .cb-more { display: inline-flex; align-items: center; min-height: 40px; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-size: 15px; cursor: pointer; }
.C #by-km .cb-row:first-child { border-top: 0; }
.C .cb-row.first { justify-content: flex-start; gap: 12px; min-height: 44px; border-bottom: 0; }
.C .cb-hint { font-size: 14px; color: var(--faint); }
.C .calcbox.v2 .tabs { margin: 10px 0 4px; box-shadow: inset 0 0 0 1px var(--line); }
.C .cb-names { margin-top: 6px; border-top: 1px dashed var(--line); }
.C .cb-names summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--blue); cursor: pointer; }
.C .cb-names[open] summary { color: var(--sub); }
.C #detail { margin-bottom: 18px; }
.C #detail + .answer { margin-top: 8px; }
@media (max-width: 359px) { .C .calcbox.v2 { padding-left: 12px; padding-right: 12px; } .C .cb-big input { font-size: 20px; } }
.C .calcbox.v2 [hidden], .C #detail[hidden] { display: none !important; }
.C .calcbox.v2 .tabs:has(#m3[hidden]) { grid-template-columns: repeat(2, 1fr); }
.C .fams-v2 .fam { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 0; }
.C .fams-v2 .fam:last-child { border-bottom: 0; }
.C .fams-v2 .fam .nm { flex: 1 1 6.5em; max-width: 9em; color: var(--navy); }
.C .fams-v2 .famrow { margin-top: 0; justify-content: flex-end; column-gap: 12px; }
.C .famrow .grp[hidden] { display: none; }
.C .stepper.cnt .cnt-in { width: 2em; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--navy); font: inherit; font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.C .stepper.cnt .cnt-in::placeholder { color: #9aa1ad; opacity: 1; }
.C .stepper.cnt .cnt-in:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.C #names-box .deg { display: none; }
.C #names-box .person, .C #meter-people .person { border-bottom: 1px dashed var(--line); }
.C #meter-people .person .nm, .C #names-box .person .nm { flex: 1 1 6em; min-width: 0; max-width: 9em; height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.C .stepper.cnt .u { margin-left: 2px; font-size: 14px; color: var(--faint); }
.C .stepper.cnt.deg .cnt-in { width: 3.2em; }
.C .rooms .person { border-bottom: 1px dashed var(--line); }
.C .rooms .person .nm { flex: 1 1 6em; min-width: 0; max-width: 9em; height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.C .stepper.cnt.area .cnt-in { width: 2.6em; }
.C #calc.no-area .area { display: none; }
.C .calcbox.v2 .rooms + .tabs { margin-top: 12px; }
.C .calcbox.v2 .cb-in input:focus, .C .calcbox.v2 .cb-in select:focus { outline: none; }
.C .calcbox.v2 .cb-in:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.C .calcbox.v2 .kid-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.C .calcbox.v2 .kid-row[hidden] { display: none; }
.C .calcbox.v2 .kid-row .lb { flex: none; font-size: 15px; color: var(--sub); }
.C .calcbox.v2 .kid-row .tabs { flex: 1; margin: 0; }

/* 結果卡 v2（12-04 執行長：不要深色底、每人一列各自一塊、不粗不藍；整張卡只留「3 看結果」的編號和複製按鈕兩個強調色） */
.C .ans2 { margin: 22px 0 16px; padding: 16px 14px 14px; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1.5px var(--line), var(--shadow); scroll-margin-top: 76px; }
.C .ans2 .cb-step { margin: 0 0 4px; }
.C .ans2 .ans-l { margin: 0 0 10px 32px; font-size: 14px; color: var(--faint); }
.C .ans2 .ans-l:empty { display: none; }
.C .ans2 .ans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.C .ans2 .ans-list li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 12px; background: var(--bg); }
.C .ans2 .ans-list .av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #e6e9ee; color: var(--sub); font-size: 15px; line-height: 1; }
.C .ans2 .ans-list .who { flex: 1; min-width: 0; font-size: 16px; color: var(--navy); line-height: 1.35; }
.C .ans2 .ans-list b { flex: none; font-weight: 400; font-size: 23px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.C .ans2 .ans-list b .cur { margin-right: 2px; font-size: .78em; color: var(--faint); }
.C .ans2 .ans-list li.main { min-height: 64px; padding: 10px 14px; background: #eef1f5; }
.C .ans2 .ans-list li.main b { font-size: 30px; }
.C .ans2 .ans-list li.minor { padding-left: 14px; }
.C .ans2 .ans-list li.minor b { font-size: 20px; color: var(--faint); }
.C .ans2 .ans-how { margin: 10px 2px 0; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.C .ans2 .ans-how:empty { display: none; }
.C .ans2 .ans-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; }
.C .ans2 .ans-act span { font-size: 14px; color: var(--sub); }
.C .ans2 .copy { background: var(--tint); color: var(--tint-ink); box-shadow: none; }
.C .ans2 .copy:hover { background: #d2e2f7; }
.C .ans2.empty .ans-l { margin: 4px 0 2px; padding: 18px 12px; border: 2px dashed #c3cedd; border-radius: 12px; text-align: center; font-size: 15px; }
.C .ans2.empty .ans-list, .C .ans2.empty .ans-how, .C .ans2.empty .ans-act { display: none; }
.C .opt { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--bg); color: var(--faint); font-size: 12px; line-height: 20px; vertical-align: 1px; }
.C .cb-names[open] summary .opt { display: none; }
/* 清單的分隔線只由下一個區塊負責：最後一列不畫底線（12-04 電費朋友 B 下面兩條虛線疊在一起） */
.C #meter-people .person:last-child, .C #names-box .person:last-child, .C .rooms .person:last-child, .C .fams-v2 .fam:last-child { border-bottom: 0; }
.C .stepper.cnt { gap: 6px; }
.go-res { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-text); font: inherit; font-size: 16px; box-shadow: 0 6px 18px rgba(20, 33, 61, .22); cursor: pointer; }
.go-res[hidden] { display: none; }

/* 表單「左問題、右欄位」（12-04 執行長：問題跟欄位的排版要統一）：每一列 .qr 左邊問題、右邊欄位，整頁欄位同寬、同一條線；規則見 social/projects/tan2/calc-form-rules-1204.md 第二版 */
.C .calcbox.q { --fw: 196px; padding: 16px 16px 12px; }
.C .q .cb-step { margin: 0 0 6px; }
.C .q .cb-step ~ .cb-step { margin-top: 18px; }
.C .q .qr { display: grid; grid-template-columns: minmax(0, 1fr) var(--fw); align-items: center; gap: 10px; min-height: 52px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.C .q .qr:has(+ .cb-step), .C .q .qr:has(+ .cb-more), .C .q .qr:has(+ .sub), .C .q .qr:has(+ .cb-note), .C .q div > .qr:last-child { border-bottom: 0; }
.C .q .qq { min-width: 0; font-size: 16px; color: var(--navy); line-height: 1.35; overflow-wrap: anywhere; }
.C .q .qq small { display: block; font-size: 13px; color: var(--faint); }
.C .q .qv { display: flex; align-items: center; gap: 4px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--band); color: var(--faint); font-size: 15px; }
.C .q .qv:focus-within { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
/* 加減鈕(12-04 晚):− 和 + 各 44×44 貼在欄位兩端,中間數字和單位置中;外框只在打字時出(按鈕自己有按下去的灰底和鍵盤外框) */
.C .q .qv.step { gap: 4px; padding: 0; cursor: text; }
.C .q .qv.step:focus-within { box-shadow: none; }
.C .q .qv.step:has(input:focus) { box-shadow: inset 0 0 0 2px var(--blue); }
.C .q .qv.step input { flex: none; width: 1.1ch; margin-left: auto; line-height: normal; text-align: center; }
.C .q .qv.step .u { margin-right: auto; line-height: 1; transform: translateY(0.5px); }
/* 數字和單位的字形中線對齊格子中線(12-04 晚執行長:數字比「家」低;用截圖像素量,差 1px 內):單位往下 0.5 */
.C .q .qv.step .sb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--blue); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.C .q .qv.step .sb:active:not(:disabled) { background: rgba(31, 90, 168, .14); }
.C .q .qv.step .sb:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.C .q .qv.step .sb:disabled { color: #b8c2d1; cursor: default; }
/* 包棟每家:名字一整列,下面大人、小孩兩個加減欄各一半(12-04 晚:小孩直接顯示) */
.C .q .fam2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.C .q .fam2 > .qn { grid-column: 1 / -1; }
.C .q .fams .fam2:last-child { border-bottom: 0; }
/* 其他計算機清單前面的圖示(跟首頁方塊同一套;class 不用 .ic,會被套成箭頭) */
.v4 .topics .calc-ic { flex: none; width: 44px; height: 44px; }
.C .q .qv input, .C .q .qv select { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.C .q .qv input.nm, .C .q .qv select { font-size: 16px; text-align: left; }
.C .q .qv select { cursor: pointer; }
.C .q .qv input::placeholder { color: #9aa1ad; opacity: 1; }
.C .q .qv .pre, .C .q .qv .u { flex: none; }
.C .q .qr .tabs { display: grid; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 1fr; height: 44px; margin: 0; padding: 3px; gap: 3px; border-radius: 12px; background: var(--band); box-shadow: none; }
.C .q .qr .tabs button { height: 38px; padding: 0 8px; border-radius: 9px; font-size: 14px; white-space: nowrap; box-shadow: none; }
.C .q .qr .tabs button[aria-selected="true"] { background: var(--card); color: var(--tint-ink); box-shadow: 0 2px 6px rgba(20, 33, 61, .22); }
.C .q .qr .tabs button[hidden] { display: none; }
.C .q .sub { margin: 14px 0 0; font-size: 14px; color: var(--sub); }
.C .q .cb-more { margin-top: 8px; }
.C .q .cb-note { margin: 0 0 4px; text-align: right; }
.C .q .fams .sub:first-child { margin-top: 10px; }
.C #calc.q.no-area #rooms { display: none; }
.C .q .cb-names #people, .C .q .cb-names #names { margin-bottom: 0; }
@media (max-width: 359px) { .C .calcbox.q { --fw: 172px; } .C .q .qq { font-size: 15px; } .C .q .qr .tabs button { font-size: 13px; } }
/* 12-04 執行長：聚焦框在欄位邊上（上面那條）；分段改成表頭列；包棟一家一列、右邊兩格並排 */
.C .q .qh { min-height: 0; margin-top: 14px; padding: 14px 0 6px; border-top: 1px solid #cfd7e3; border-bottom: 0; }
.C .q .qh .qq { font-size: 16px; color: var(--navy); }
.C .q .qhc { font-size: 14px; color: var(--sub); text-align: right; padding-right: 12px; }
.C .q .pair { display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 0; }
.C .q .pair.two, .C .q .qh.kids .pair { grid-template-columns: 1fr 1fr; }
.C .q .qhc.pair > span { text-align: right; padding-right: 12px; }
.C .q .qhc.pair { padding-right: 0; }
.C .q .qh .k { display: none; }
.C .q .qh.kids .k { display: block; }
.C .q .qr:has(+ .qh) { border-bottom: 0; }
/* 12-04 執行長：誰先付的這類下拉變一般列（欄位樣子＋下尖角 icon）；複製上面放預覽框 */
.C .q .qv.sel select { appearance: none; -webkit-appearance: none; background: transparent; }
.C .q .qv.sel .chev { flex: none; width: 18px; height: 18px; margin-left: 4px; color: var(--faint); background: currentColor; -webkit-mask: var(--ic-cd) center / contain no-repeat; mask: var(--ic-cd) center / contain no-repeat; pointer-events: none; }
.C .q .cb-names { margin-top: 6px; border-top: 0; }
.C .q .cb-names summary { list-style: none; color: var(--blue); }
.C .q .cb-names summary::-webkit-details-marker { display: none; }
.C .q .cb-names summary::after { content: ''; display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ic-cd) center / contain no-repeat; mask: var(--ic-cd) center / contain no-repeat; margin-left: 6px; transition: transform .15s; }
.C .q .cb-names[open] summary { color: var(--blue); }
.C .q .cb-names[open] summary::after { transform: rotate(180deg); }
.C .ans2 .copy-pv { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--sub); font: inherit; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.C .ans2.empty .copy-pv { display: none; }
.C .q .qsep { margin-top: 10px; padding-top: 10px; border-top: 1px solid #cfd7e3; }
.C .q .qr:has(+ .qsep), .C .q .fams:has(+ .cb-more + .qsep) .qr:last-child { border-bottom: 0; }
/* 12-04 執行長：表格左欄的名字直接是文字框（白底、細灰框、同高 44），跟右邊淺藍數字欄位看得出不同 */
.C .q .qn { display: flex; align-items: center; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px #cfd7e3; }
.C .q .qn:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.C .q .qn input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 16px; outline: none; }
@media (max-width: 359px) { .C .q .qn { padding: 0 8px; } .C .q .qn input { font-size: 15px; } }
.C .q .qh.wide .qq { grid-column: 1 / -1; }
/* 12-04：朋友點複製來的連結打開時，頂端一行小字；複製那行在預覽框上面 */
.C .shared-note { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 13px; }
.C .shared-note[hidden] { display: none; }
.C .ans2 .ans-act + .copy-pv { margin-top: 10px; }
.C .q .qq small .nw { display: block; }
.C .ans2 .copy-pv .url { word-break: break-all; }
/* 12-04 執行長：一般手機填多少就看得到結果——標題區收緊、油錢三格一列、浮鈕放答案 */
.C .hero:has(.calcbox.q) { padding-top: 14px; }
.C .hero:has(.calcbox.q) h1 { margin-bottom: 4px; }
.C .lead1 { margin-bottom: 10px; line-height: 1.5; }
.C .shared-note { margin-bottom: 6px; }
.go-res { max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.C .q .trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; min-width: 0; }
.C .q .trio label { display: block; min-width: 0; }
.C .q .trio small { display: block; margin: 0 0 3px; font-size: 12px; color: var(--sub); text-align: center; white-space: nowrap; }
.C .q .trio .qv { padding: 0 8px; }
.C .q .trio .qv input { text-align: center; }

/* 箭頭一律用同一套線條 icon（12-04 執行長：不要用 → › ▾ ↓ 這類字元）：粗細 2、圓角、顏色跟著文字（currentColor）。
   用法：<span class="ic ic-ar" aria-hidden="true"></span>；CSS 偽元素用 --ic-* 當 mask。 */
:root { --ic-ar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); --ic-ad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); --ic-cr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); --ic-cd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.ic { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.14em; background: currentColor; -webkit-mask: var(--ic-ar) center / contain no-repeat; mask: var(--ic-ar) center / contain no-repeat; }
.ic-ad { -webkit-mask-image: var(--ic-ad); mask-image: var(--ic-ad); }
.ic-cr { -webkit-mask-image: var(--ic-cr); mask-image: var(--ic-cr); }
.ic-cd { -webkit-mask-image: var(--ic-cd); mask-image: var(--ic-cd); }

/* 12-04 執行長：分隔線一條規則——同一段裡列和列之間虛線；一段最後一列下面不畫；步驟標題前只靠空白；表頭列上面一條實線、前一列不畫虛線 */
.C .q .qr:has(+ [hidden] + .qh), .C .q .qr:has(+ div > .qh:first-child), .C .q .qr:has(+ [hidden] + div > .qh:first-child), .C .q .qr:has(+ [hidden] + .cb-step), .C .q .qr:has(+ .qsep), .C .q .qr:has(+ [hidden] + .qsep), .C .q div:has(+ .qsep) > .qr:last-child, .C .q div:has(+ .cb-step) > .qr:last-child { border-bottom: 0; }
.C .q .qsep { margin-top: 0; }
/* 油錢「或用公里估算」收合：右邊一顆跟欄位同樣子的鈕＋下尖角，點了原地展開三列 */
.C .q .qtoggle { justify-content: space-between; width: 100%; border: 0; color: var(--blue); font: inherit; font-size: 15px; cursor: pointer; }
.C .q .qtoggle .ic { width: 20px; height: 20px; transition: transform .15s; }
.C .q .qtoggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.go-res .ic { width: 18px; height: 18px; margin-left: 6px; }
.C .calc .ic, .C .trow .ic { width: .95em; height: .95em; margin: 0 4px; color: var(--faint); }
.C .q .opt-hint { margin: -2px 0 6px calc(100% - var(--fw)); font-size: 13px; color: var(--faint); line-height: 1.5; }
.C .q .opt-hint[hidden] { display: none; }
.C .q .qr:has(+ .opt-hint:not([hidden])) { border-bottom: 0; }
.C .q .qr:not(:has(~ :not([hidden]))) { border-bottom: 0; }
.C .q div:has(+ .qr:not(.qh):not(.qsep)) > .qr:last-child { border-bottom: 1px dashed var(--line); }
/* 12-04 執行長：「或用公里估算」整列就是一顆按鈕——白底、不像輸入欄、主題藍字、最右邊只有下尖角；按下去整列變暗 */
.C .q .qrow-btn { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 4px 0; border-top: 0; border-left: 0; border-right: 0; background: transparent; color: var(--blue); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.C .q .qrow-btn .qq { position: relative; z-index: 1; color: var(--blue); }
.C .q .qrow-btn .ic { position: relative; z-index: 1; width: 20px; height: 20px; margin-right: 12px; transition: transform .15s; }
.C .q .qrow-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.C .q .qrow-btn::before { content: ''; position: absolute; inset: 2px -8px; border-radius: 10px; background: transparent; transition: background .1s; }
.C .q .qrow-btn:active::before { background: var(--press-tint); }
.C .q .qrow-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.C .topics .a .qa { display: block; }

/* 點過的連結跟一般連結同色（12-04 執行長：點過變紫色不好看）。零權重：只在沒有別的顏色規則時生效，按鈕、卡片自己的顏色照舊 */
:where(.v4 a) { color: var(--blue); }
.C .end-cta { margin: 18px 0 4px; font-size: 16px; }
.C .end-cta .ic { margin-left: 4px; }
.C #answer + .next { margin-top: 4px; }
/* 按下去變暗、點擊範圍（12-04 開發 press 檢查 7 處）：透明底的按下去用灰底；不夠 44 高的用看不見的方式補 */
.C .q .qr .tabs button { position: relative; }
.C .q .qr .tabs button::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; }
.C .cb-more { min-height: 44px; padding: 0 8px; margin-left: -8px; border-radius: 8px; }
.C .cb-more:active { filter: none; background: var(--press-tint); }
.C .end-cta .text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin: -12px -8px; border-radius: 8px; }
.C .end-cta .text-link:active { filter: none; background: var(--press-tint); }
/* 品牌關係（12-04）：頁尾第一行一句、計算機結果卡按鈕圖示和下面一句 */
.footer .tt-rel { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--sub); line-height: 1.6; }
.footer .tt-rel img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.C .next .tt-ic { width: 22px; height: 22px; border-radius: 6px; vertical-align: -5px; margin-right: 6px; }
.C .next .tt-note { margin: 10px 0 0; font-size: 13px; color: var(--faint); line-height: 1.6; }
.C .next .tt-note img { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin: 0 2px; }
.footer .tt-rel .nw { white-space: nowrap; }
