/* 網站共用樣式：手機優先、無外部字型、不需 JavaScript、亮／暗色自動切換。
   顏色都定義成變數；文字與背景組合皆符合 WCAG AA（一般文字 4.5:1、圖形 3:1）。 */
/* 品牌識別 v1（規範/品牌識別.md）：好物橘 #F26A1B、墨藍 #1B2640、石灰 #5B6475、米白 #FBF8F3。
   橘底按鈕用墨藍深色字（#F26A1B＋白字只有 3.1:1，不到 AA）；優點綠文字用加深一階的 #0A5C47（#0F8A6A 在淺綠底只有 3.9:1）。 */
:root {
  --bg: #FBF8F3;              /* 米白頁面底色 */
  --card: #FFFFFF;            /* 卡片、表格、圖表底 */
  --surface: #F4F0E9;
  --surface-2: #ECE6DC;
  --text: #1B2640;            /* 墨藍 */
  --muted: #5B6475;           /* 石灰 */
  --border: #E6E0D6;
  --border-strong: #D3CBBE;
  --link: #1D5FB4;
  --accent: #F26A1B;          /* 好物橘：裝飾線、圖形（非文字） */
  --accent-ink: #B8470C;      /* 橘色「文字」用的加深色（白底 5.3:1） */
  --grad-a: #FF9A3D;          /* 暖橘漸層 */
  --grad-b: #E8530E;
  --cta: #F26A1B;             /* 按鈕：好物橘＋墨藍字 4.9:1 */
  --cta-hover: #FF8A3D;
  --cta-text: #1B2640;
  --on-grad: #141A26;         /* 漸層標籤上的字（最暗端 4.7:1） */
  --price: #1B2640;
  --pros-line: #0F8A6A;
  --pros-ink: #0A5C47;
  --pros-bg: #E7F6F1;
  --cons-line: #C2410C;
  --cons-ink: #C2410C;        /* 在 #FDECE6 上 4.5:1 */
  --cons-bg: #FDECE6;
  --marker: #FFE58A;
  --note-bg: #FFF6DB;
  --note-badge-bg: #8A5A00;
  --note-badge-text: #FFFFFF;
  --disc-bg: #F4F0E9;
  --img-bg: #FFFFFF;
  --header-bg: rgba(251, 248, 243, 0.92);
  --logo-a: #1B2640;
  --logo-b: #F26A1B;
  --chart-bar: #868E96;
  --chart-best: #F26A1B;
  --seg-machine: #1C7ED6;
  --seg-consumable: #F26A1B;
  --seg-power: #7048E8;
  --shadow: 0 1px 2px rgba(27, 38, 64, 0.04), 0 8px 24px rgba(27, 38, 64, 0.06);
  --radius: 14px;             /* 卡片、表格、圖表一律 14px；小元件 8px */
  --radius-sm: 8px;
  --wrap: 57rem;              /* 912px（含左右 16px 留白，內容 880px）：全站統一寬度，頁首、文字、圖卡、頁尾同一條邊（v2.5） */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;  /* 系統字（Apple 官網同做法）：iPhone＝蘋方、Android＝思源黑體 */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A26;
    --card: #1B2232;
    --surface: #1F2738;
    --surface-2: #283146;
    --text: #E8ECF3;
    --muted: #A3ADC2;
    --border: #2E3850;
    --border-strong: #42506B;
    --link: #8DBDFF;
    --accent: #FF8A3D;
    --accent-ink: #FF8A3D;
    --grad-a: #FF9A3D;
    --grad-b: #E8530E;
    --cta: #FF8A3D;
    --cta-hover: #FFA766;
    --cta-text: #141A26;
    --on-grad: #141A26;
    --price: #E8ECF3;
    --pros-line: #3BC9A0;
    --pros-ink: #7EE3C4;
    --pros-bg: #12302A;
    --cons-line: #F08A5D;
    --cons-ink: #FFB08F;
    --cons-bg: #3A2019;
    --marker: rgba(255, 213, 79, 0.36);
    --note-bg: #2A2618;
    --note-badge-bg: #FFE58A;
    --note-badge-text: #141A26;
    --disc-bg: #1F2738;
    --img-bg: #FFFFFF;        /* 商品圖多為白底，暗色模式也保留白色方框 */
    --header-bg: rgba(20, 26, 38, 0.92);
    --logo-a: #E8ECF3;
    --logo-b: #FF8A3D;
    --chart-bar: #6C7A93;
    --chart-best: #FF8A3D;
    --seg-machine: #339AF0;
    --seg-consumable: #F76707;
    --seg-power: #9775FA;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.8;
  overflow-wrap: break-word;  /* 不從英數字中間斷開 */
  line-break: strict;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 76px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* ---------- 頁首（細、固定在上方） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 58px; }
.site-name {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.08rem; color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo-mark { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.site-logo { flex: none; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.site-logo:hover { text-decoration: none; }
.logo-svg { display: block; flex: none; }
.logo-word { font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1; }
.logo-a { color: var(--logo-a); }
.logo-b { color: var(--logo-b); }
.logo-sub { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; padding-left: 9px; border-left: 1px solid var(--border-strong); line-height: 1.2; }
.logo-footer .logo-word { font-size: 1.1rem; }
@media (max-width: 380px) { .logo-header .logo-sub { display: none; } }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-block; padding: 5px 11px; border-radius: 999px; color: var(--text);
  text-decoration: none; white-space: nowrap; font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-2); }
@media (min-width: 720px) {
  .site-nav ul { justify-content: flex-end; }
}

/* ---------- 文字排版 ---------- */
main { padding-top: 14px; padding-bottom: 56px; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; line-height: 1.38; margin: 0.35em 0 0.5em; font-weight: 800; }
h2 { font-size: 1.4rem; line-height: 1.45; margin: 2.6em 0 0.9em; font-weight: 800; }
h2::after {
  content: ""; display: block; width: 44px; height: 4px; margin-top: 0.45em; border-radius: 4px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
h3 { font-size: 1.15rem; line-height: 1.5; margin: 2em 0 0.6em; font-weight: 800; }
h4 { font-size: 1.02rem; margin: 1.3em 0 0.4em; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.3em; }
strong { font-weight: 700; }
mark {
  color: inherit; background: linear-gradient(transparent 58%, var(--marker) 58%);
  padding: 0 0.08em; font-weight: 700;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
blockquote {
  margin: 1.2em 0; padding: 0.7em 1em; border-left: 4px solid var(--border-strong); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted);
}
blockquote p:last-child { margin-bottom: 0; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }

/* ---------- 麵包屑、文章開頭 ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0.4em 0 0; font-size: 0.84rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb li + li { margin-top: 0; }
.article-head { margin-bottom: 1.2em; }
.byline { display: flex; align-items: center; gap: 10px; margin: 0 0 1em; }
.byline-mark {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: inline-flex; align-items: center; justify-content: center;
}
.byline-mark::after { content: "編"; color: var(--on-grad); font-weight: 800; font-size: 0.95rem; }
.byline-name { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.4; }
.post-meta { color: var(--muted); font-size: 0.86rem; margin: 0; line-height: 1.5; }
.post-meta .sep { margin: 0 0.4em; }
.draft-banner { background: #8A5A00; color: #ffffff; padding: 6px 12px; border-radius: var(--radius); font-weight: 700; }

/* 推廣揭露（必須在第一個購買按鈕之前） */
.disclosure {
  display: block; background: var(--disc-bg); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 9px 14px; font-size: 0.86rem; line-height: 1.7; margin: 0 0 12px; color: var(--muted);
}
.disclosure strong { color: var(--text); }
.disclosure a { margin-left: 0.5em; white-space: nowrap; }

/* 我們怎麼整理資料 */
.trust { background: var(--card); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; line-height: 1.7; box-shadow: var(--shadow); }
.trust-title { font-weight: 700; margin: 0 0 4px; }
.trust ul { list-style: none; padding: 0; margin: 0 0 4px; }
.trust li + li { margin-top: 0.1em; }
.trust li::before { content: "✓"; color: var(--pros-ink); font-weight: 800; margin-right: 0.5em; }
.trust-link { font-size: 0.86rem; }

/* 目錄（details／summary，不需 JS） */
.toc { background: var(--surface); border-radius: var(--radius); margin: 0 0 2em; font-size: 0.95rem; }
.toc summary { cursor: pointer; padding: 10px 16px; font-weight: 700; list-style-position: inside; }
.toc-count { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 0.6em; }
.toc ol { margin: 0; padding: 0 16px 12px 2.4em; }
.toc li + li { margin-top: 0.15em; }

/* ---------- 一般表格（Markdown 表格；必要時才左右滑動） ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; line-height: 1.6; }
caption { caption-side: top; text-align: left; font-weight: 700; padding: 10px 12px 6px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.al-r { text-align: right; }
.al-c { text-align: center; }
.table-note { font-size: 0.8rem; color: var(--muted); margin: 0.4em 0 1.4em; }

/* ---------- 價格與按鈕 ---------- */
.price { display: block; font-weight: 800; font-size: 1.1rem; color: var(--price); line-height: 1.3; font-variant-numeric: tabular-nums; }
.price-date { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.price-na { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
  background: var(--cta); color: var(--cta-text); border-radius: 999px; font-weight: 700;
  text-decoration: none; line-height: 1.25; text-align: center;
  box-shadow: 0 2px 0 rgba(27, 38, 64, 0.14);
}
.cta:hover { background: var(--cta-hover); text-decoration: none; }
.cta::after { content: "↗"; font-weight: 400; margin-left: 0.3em; }
.cta-block { display: flex; width: 100%; min-height: 50px; border-radius: var(--radius-sm); font-size: 1rem; }
.badge {
  display: inline-block; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: var(--on-grad); font-weight: 800; font-size: 0.8rem;
  line-height: 1.4; padding: 3px 12px; border-radius: 999px;
}

/* ---------- 商品圖片（固定方框、object-fit: contain，不裁切） ---------- */
.pimg {
  width: 100%; aspect-ratio: 1 / 1; background: var(--img-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.pimg img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pimg-ph {
  flex-direction: column; gap: 2px; padding: 10px; text-align: center; line-height: 1.35;
  background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px);
}
.ph-brand { font-size: 0.75rem; color: var(--muted); }
.ph-model { font-weight: 800; font-size: 0.95rem; color: var(--text); }

/* ---------- 先看結論卡片 {{picks}} ---------- */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 1.2em 0 1.6em; }
.pick-card {
  display: flex; flex-direction: column; align-items: stretch; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius); padding: 16px 16px 18px; background: var(--card); box-shadow: var(--shadow);
}
.pick-badge { align-self: center; margin-bottom: 10px; }
.pick-img { max-width: 190px; margin: 0 auto 10px; }
.pick-brand { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.pick-name { margin: 0.1em 0 0.4em; font-weight: 800; font-size: 1.02rem; line-height: 1.45; }
.pick-fact { margin: 0 0 0.6em; font-size: 0.88rem; line-height: 1.6; color: var(--muted); flex: 1; }
.pick-price { margin-bottom: 10px; }

/* ---------- 規格比較表 {{compare}} ---------- */
.compare-wrap { margin: 1.4em 0 0.4em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.compare-fit { overflow: hidden; }
table.compare { table-layout: fixed; width: 100%; font-size: 0.92rem; }
table.compare th[scope="row"], table.compare .cmp-corner {
  width: 7.5rem; background: var(--surface); font-size: 0.86rem; font-weight: 700; color: var(--text);
}
table.compare .cmp-corner { vertical-align: bottom; color: var(--muted); }
table.compare td + td, table.compare th + td, table.compare .cmp-prod { border-left: 1px solid var(--border); }
table.compare tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 50%, var(--card)); }
.cmp-prod { background: var(--card); text-align: center; vertical-align: top; padding: 14px 10px 12px; font-weight: 400; }
.cmp-img { max-width: 160px; margin: 0 auto 8px; }
.cmp-brand { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.cmp-name { display: block; font-weight: 800; font-size: 1rem; line-height: 1.4; margin-bottom: 4px; }
.cmp-price { display: block; margin-bottom: 8px; }
.cmp-prod .cta-block, .row-cta .cta-block { min-height: 44px; font-size: 0.92rem; padding: 6px 10px; }
.row-cta td { background: var(--surface) !important; }

/* 手機（≤640px）：每列改成「規格名一行、各商品數值並排」，不用左右滑動 */
@media (max-width: 640px) {
  .compare-fit table.compare, .compare-fit table.compare thead, .compare-fit table.compare tbody { display: block; width: 100%; }
  .compare-fit table.compare tr { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
  .compare-fit table.compare th, .compare-fit table.compare td { display: block; width: auto; border-left: 0; }
  .compare-fit table.compare .cmp-corner { display: none; }
  .compare-fit table.compare .cmp-prod { padding: 10px 6px; border-bottom: 1px solid var(--border); }
  .compare-fit table.compare .cmp-prod + .cmp-prod,
  .compare-fit table.compare td + td { border-left: 1px solid var(--border); }
  .compare-fit table.compare tbody th[scope="row"] {
    grid-column: 1 / -1; background: var(--surface-2); padding: 5px 12px; font-size: 0.84rem; border-bottom: 0;
  }
  .compare-fit table.compare tbody td { padding: 7px 10px 9px; border-bottom: 1px solid var(--border); background: var(--card); }
  .compare-fit table.compare tbody tr:last-child td { border-bottom: 0; }
  .compare-fit table.compare tbody td::before {
    content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); line-height: 1.4;
  }
  .compare-fit .row-cta td::before { content: none; }
  .cmp-name { font-size: 0.9rem; }
  .cmp-img { max-width: 120px; }
  .cmp-prod .cta-block, .row-cta .cta-block { font-size: 0.84rem; padding: 6px; min-height: 44px; }
}

/* 4 款以上：保留左右滑動，第一欄固定 */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare-wide { table-layout: auto; width: max-content; min-width: 100%; }
table.compare-wide td, table.compare-wide .cmp-prod { min-width: 11rem; max-width: 15rem; }
table.compare-wide th[scope="row"], table.compare-wide .cmp-corner { position: sticky; left: 0; z-index: 2; min-width: 6.5rem; }

/* ---------- 商品卡 {{product}} ---------- */
.product-card {
  border-radius: var(--radius); padding: 20px 16px; margin: 2em 0 1.4em;
  background: var(--card); box-shadow: var(--shadow);
}
.pc-head .badge { margin-bottom: 8px; }
.pc-brand { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
h3.pc-name { margin: 0.15em 0 0.1em; font-size: 1.25rem; line-height: 1.45; padding: 0; border: 0; }
.pc-model { margin: 0 0 0.9em; font-size: 0.84rem; color: var(--muted); }
.pc-main { display: grid; gap: 14px; }
.pc-img { max-width: 210px; margin: 0 auto; }
.pc-buy { display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--surface); border-radius: var(--radius-sm); padding: 16px; }
.pc-price .price { font-size: 1.55rem; }
.pc-buy-note { margin: 0; font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.4; }
.pc-proscons { display: grid; gap: 12px; margin: 16px 0; }
.pc-box { border-radius: var(--radius-sm); overflow: hidden; border-top: 3px solid; }
.pc-box .pc-label { margin: 0; padding: 6px 14px; font-weight: 800; font-size: 0.95rem; }
.pc-box ul { margin: 0; padding: 10px 14px 12px 2em; font-size: 0.93rem; line-height: 1.7; }
.pros { border-color: var(--pros-line); background: var(--pros-bg); }
.pros .pc-label { color: var(--pros-ink); }
.pros li::marker { color: var(--pros-line); }
.cons { border-color: var(--cons-line); background: var(--cons-bg); }
.cons .pc-label { color: var(--cons-ink); }
.cons li::marker { color: var(--cons-line); }
.pc-box .pc-label { padding: 8px 14px 0; }
.pc-box ul { padding-top: 4px; }
.pc-spec { display: grid; grid-template-columns: 1fr; margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.88rem; line-height: 1.55; }
.pc-spec div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); border-bottom: 1px solid var(--border); margin-bottom: -1px; }
.pc-spec dt { background: var(--surface); padding: 7px 10px; color: var(--muted); font-weight: 700; }
.pc-spec dd { margin: 0; padding: 7px 10px; }
.pc-sources { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.pc-sources-label { font-weight: 700; margin-right: 0.5em; }
@media (min-width: 640px) {
  .product-card { padding: 22px 24px; }
  .pc-main { grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
  .pc-img { margin: 0; }
  .pc-proscons { grid-template-columns: 1fr 1fr; }
  .pc-spec { grid-template-columns: 1fr 1fr; }
  .pc-spec div:nth-child(odd) { border-right: 1px solid var(--border); }
}

/* ---------- 持有成本表 {{cost}} ---------- */
.cost { margin: 1.4em 0; }
.cost-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
table.cost-table { table-layout: fixed; width: 100%; }
.cost-table caption { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 12px; }
.cost-table thead th:first-child, .cost-table th[scope="row"] { width: 44%; }
.cost-table thead th + th { text-align: right; }
.cost-table td { text-align: right; font-variant-numeric: tabular-nums; }
.cost-table .muted { color: var(--muted); }
.row-total th, .row-total td { font-weight: 800; background: var(--surface); }
.cost-formula { font-size: 0.9rem; margin: 0.6em 0 0.4em; }
.cost-sources { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 640px) {
  .cost-table, .cost-table tbody { display: block; width: 100%; }
  .cost-table thead { display: none; }
  .cost-table caption { display: block; }
  .cost-table tr { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .cost-table th, .cost-table td { display: block; width: auto !important; }
  .cost-table th[scope="row"] { grid-column: 1 / -1; background: var(--surface-2); padding: 5px 12px; font-size: 0.86rem; border-bottom: 0; }
  .cost-table td { padding: 6px 10px 8px; font-size: 0.88rem; }
  .cost-table td + td { border-left: 1px solid var(--border); }
  .cost-table td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
  .cost-table .row-total th { background: var(--surface-2); }
}

/* ---------- 圖表 {{chart}}、{{costchart}}（行內 SVG） ---------- */
.chart { margin: 1.6em 0; padding: 16px 18px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.chart-title { font-weight: 800; margin: 0 0 6px; line-height: 1.5; }
.chart-svg { display: block; overflow: visible; }
.chart-svg text { font-size: 14px; fill: var(--text); font-family: inherit; }
.chart-svg .lbl { font-weight: 700; }
.chart-svg .val { font-variant-numeric: tabular-nums; }
.chart-svg .best-tag { font-weight: 800; }
.chart-svg .bar { fill: var(--chart-bar); }
.chart-svg .is-best .bar { fill: var(--chart-best); }
.chart-svg .seg { stroke: var(--card); stroke-width: 2px; }
.seg-machine { fill: var(--seg-machine); }
.seg-consumable { fill: var(--seg-consumable); }
.seg-power { fill: var(--seg-power); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 2px 16px; list-style: none; padding: 0; margin: 0 0 4px; font-size: 0.84rem; color: var(--muted); }
.chart-legend li + li { margin-top: 0; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-machine { background: var(--seg-machine); }
.sw-consumable { background: var(--seg-consumable); }
.sw-power { background: var(--seg-power); }
.chart-breakdown { font-size: 0.86rem; line-height: 1.65; padding-left: 1.2em; margin: 8px 0 6px; }
.chart-note { font-size: 0.78rem; color: var(--muted); margin: 4px 0 0; line-height: 1.6; }
@media (forced-colors: active) {
  .chart-svg .bar, .chart-svg .seg { fill: CanvasText; }
  .chart-svg .is-best .bar { fill: Highlight; }
}

/* ---------- 編輯部提醒 {{note}} ---------- */
.note-box { margin: 1.6em 0; padding: 14px 18px 16px; background: var(--note-bg); border-radius: var(--radius); }
.note-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 800; background: var(--note-badge-bg); color: var(--note-badge-text);
  padding: 2px 10px; border-radius: 999px; margin-bottom: 6px;
}
.note-box p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--card); border-radius: var(--radius); padding: 4px 18px; box-shadow: var(--shadow); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item { padding: 0.3em 0 0.2em; }
.faq-item h3 { margin: 0.7em 0 0.3em; font-size: 1.02rem; border: 0; padding: 0; }
.faq-item h3::before { content: "Q. "; color: var(--accent-ink); font-weight: 800; }
.faq-a p { margin-bottom: 0.7em; }

/* ---------- 資料來源、相關文章、列表 ---------- */
.sources { font-size: 0.9rem; }
.post-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.post-list li + li { margin-top: 0; }
.post-item { border-radius: var(--radius); padding: 16px 18px; background: var(--card); box-shadow: var(--shadow); }
.post-link { font-weight: 800; font-size: 1.04rem; line-height: 1.5; text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.post-desc { margin: 0.35em 0; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.post-date { margin: 0; font-size: 0.8rem; color: var(--muted); }
@media (min-width: 720px) {
  .post-list { grid-template-columns: 1fr 1fr; }
}
.hero {
  margin: 12px 0 8px; padding: 40px 24px 34px; border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--grad-a) 22%, transparent) 0%, transparent 55%),
    var(--card);
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0; }
.hero-name { display: block; font-size: 0.95rem; font-weight: 800; color: var(--accent-ink); letter-spacing: 0.04em; margin-bottom: 0.5em; }
.hero-tagline { display: block; font-size: 2rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.hero-sub { margin: 0.6em 0 0.4em; font-size: 1.08rem; font-weight: 700; }
.hero-lead { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 40em; }
.lead { color: var(--muted); }
.cat-block h2 a { color: var(--text); text-decoration: none; }
.more { text-align: right; font-size: 0.92rem; }

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 0.85rem; color: var(--muted); padding: 24px 0 32px; line-height: 1.7; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 0.8em; }
.footer-brand .site-name { font-size: 1rem; }
.footer-tagline { margin: 0; font-weight: 700; color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0.8em 0; }
.copyright { margin: 0; }

@media (min-width: 720px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 56px 48px 46px; }
  .hero-tagline { font-size: 2.6rem; }
}
@media print {
  .site-header { position: static; }
  .site-nav, .cta, .related, .toc { display: none; }
}

/* ==========================================================
   v2.1 閱讀優化（2026-11-29，使用者手機實測回饋）
   參考 Apple 台灣官網、報導者、Wirecutter 的做法：
   系統字、內文左右對齊（中文書刊排法）、每行約 40 字、標題不留單字孤行、商品圖填滿卡片。
   ========================================================== */
.post-body { letter-spacing: 0.02em; }
.post-body > p, .post-body > ul > li, .post-body > ol > li, .note-box {
  text-align: justify; text-justify: inter-character; text-wrap: pretty;
}
.post-body > p { margin-bottom: 1.25em; }
h1 { text-wrap: pretty; }
h2, h3, .pick-name, .cmp-name, .post-link { text-wrap: balance; }
@media (max-width: 640px) {
  body { line-height: 1.85; }
  h1 { font-size: 1.6rem; line-height: 1.4; }
}
@media (min-width: 720px) {
  body { font-size: 1.125rem; }   /* 桌機 18px */
}

/* 麵包屑：一行就好，太長的標題用「…」收起 */
.breadcrumb ol { flex-wrap: nowrap; white-space: nowrap; }
.breadcrumb li { flex: none; }
.breadcrumb li[aria-current] { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 商品圖：去掉外框、填滿，像電商商品頁 */
.pimg { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.pick-img { max-width: 260px; }
.pc-img { width: 100%; max-width: 360px; margin: 0 auto; }
@media (min-width: 640px) {
  .pc-main { grid-template-columns: 300px minmax(0, 1fr); }
  .pc-img { max-width: none; }
}

/* 手機版「先看結論」：左圖右文的商品列（電商清單做法），按鈕在下方整排 */
@media (max-width: 640px) {
  .picks { grid-template-columns: 1fr; gap: 12px; }
  .pick-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 14px; text-align: left; padding: 14px; align-items: start; }
  .pick-badge { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .pick-img { grid-column: 1; grid-row: 2 / span 4; max-width: none; margin: 0; }
  .pick-brand { grid-column: 2; grid-row: 2; }
  .pick-name { grid-column: 2; grid-row: 3; font-size: 0.98rem; }
  .pick-fact { grid-column: 2; grid-row: 4; margin-bottom: 0.4em; }
  .pick-price { grid-column: 2; grid-row: 5; margin-bottom: 0; }
  .pick-card .cta-block { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; }
}

/* 商品卡規格：項目名不從中間斷開 */
.pc-spec div { grid-template-columns: 8em minmax(0, 1fr); }
.pc-spec dt { word-break: keep-all; }

/* v2.2 文章開頭精簡（2026-11-29）：讀者一打開就看到內容
   推廣揭露縮成標題下一行灰字（仍在第一個購買按鈕之前，check 規則 2 守門）；
   「我們怎麼整理資料」移到文末、資料來源之前；目錄預設收合。 */
.disclosure { background: none; border: 0; border-radius: 0; padding: 0; margin: 2px 0 14px; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }
.disclosure strong { color: var(--muted); font-weight: 700; }
.article > .trust { margin: 2.6em 0 0; }
.toc { margin: 0 0 1.6em; }
.toc summary { padding: 9px 16px; }


/* v2.3 雙層寫法（2026-11-29）
   {{answer}}：每個 H2 下的答案句（讀者 3 秒看懂、AI 擷取用）；{{more}}：細節收合（Google 仍會讀取）。 */
.answer {
  margin: 0 0 1.2em; padding: 12px 16px; background: var(--card); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow);
  font-weight: 700; font-size: 1.04em; line-height: 1.75; text-align: left !important;
}
details.more { margin: 0.6em 0 1.4em; background: var(--surface); border-radius: var(--radius); }
.more > summary { text-align: left; cursor: pointer; padding: 10px 16px; font-weight: 700; color: var(--link); }
.more-body { padding: 0 12px 12px; }
.more-body > .cost:first-child { margin-top: 0; }

/* v2.4 寬版版型（2026-11-29，使用者：桌機看起來像手機排版太窄）
   大品牌做法（Wirecutter、Apple 新聞稿）：文字欄維持 720px 好讀，
   精選卡、比較表、商品卡、計算明細放寬到 1080px，桌機不再空蕩。 */
.article { max-width: 1080px; margin: 0 auto; }
.article > .article-head, .article > .toc, .article > .src-more, .article > .related,
.article .post-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.article .post-body > .picks, .article .post-body > .compare-wrap, .article .post-body > .table-note,
.article .post-body > .product-card, .article .post-body > .more { max-width: none; }
@media (min-width: 900px) {
  .pc-main { grid-template-columns: 340px minmax(0, 1fr); }
  .pick-img { max-width: 280px; }
  .cmp-img { max-width: 180px; }
}
/* 資料來源：收合成一行小字 */
.src-more { margin-top: 2.4em; font-size: 0.85rem; color: var(--muted); }
.src-more > summary { cursor: pointer; padding: 6px 0; }
.src-more ul { margin: 0.4em 0 0; padding-left: 1.2em; line-height: 1.7; }

/* v2.5 全站統一寬度（2026-11-29，使用者：有窄有寬要統一）
   取消 v2.4 的窄文字／寬圖卡，所有區塊同寬 880px、左右邊對齊。
   寬度變大後一行字變長 → 桌機字級 19px、行高 1.9，每行約 46 字，仍在舒適範圍。 */
.article, .article > .article-head, .article > .toc, .article > .src-more, .article > .related,
.article .post-body > * { max-width: none; margin-left: 0; margin-right: 0; }
@media (min-width: 720px) {
  body { font-size: 1.1875rem; line-height: 1.9; }
  .pick-fact, .pc-box ul, table { font-size: 0.9rem; }
}
.picks { margin-bottom: 0.5em; }
.picks-note { font-size: 0.8rem; color: var(--muted); margin: 0 0 1.4em; }
.article .post-body > .picks-note { margin-left: 0; }

/* v2.6 首頁精簡橫幅（2026-11-29，使用者：首頁介紹占版面太大）
   拿掉大卡片與長段說明，改成：標語一行＋副標＋3 個賣點小標籤，高度約為原本的一半。 */
.hero { margin: 8px 0 4px; padding: 22px 0 18px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--border); }
.hero-tagline { margin: 0; font-size: 1.55rem; line-height: 1.35; font-weight: 800; letter-spacing: 0; }
.hero-sub { margin: 0.3em 0 0; font-size: 0.98rem; font-weight: 400; color: var(--muted); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.hero-points li { margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--surface); font-size: 0.84rem; font-weight: 700; color: var(--text); }
.hero-points li::before { content: "✓"; color: var(--accent-ink); margin-right: 0.4em; }
@media (min-width: 720px) {
  .hero { padding: 28px 0 22px; }
  .hero-tagline { font-size: 1.9rem; }
}

.hero + .cat-block > h2 { margin-top: 1.3em; }

/* v2.7 首頁第二步（2026-11-29）：分類入口、文章卡縮圖、連結過期的無連結方塊
   縮圖與商品圖同規則：白底方框、object-fit: contain，不裁切、不疊任何東西在圖上（平台素材條款禁止修改）。 */
.cat-tiles { margin: 18px 0 4px; }
.cat-tiles ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-tiles li + li { margin-top: 0; }
.cat-tile {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; line-height: 1.35;
}
.cat-tile:hover { text-decoration: none; box-shadow: var(--shadow), inset 0 0 0 1px var(--border-strong); }
.cat-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent-ink);
}
.cat-svg { display: block; }
.cat-text { min-width: 0; display: flex; flex-direction: column; }
.cat-name { font-weight: 800; font-size: 0.98rem; word-break: keep-all; overflow-wrap: anywhere; }
.cat-count { font-size: 0.8rem; color: var(--muted); }
@media (min-width: 560px) { .cat-tiles ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .cat-tiles ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tiles + .cat-block > h2 { margin-top: 1.3em; }

/* 文章卡：左縮圖、右文字；兩欄並排時卡片等高、縮圖同一位置 */
.post-item.has-thumb { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
.post-thumb {
  display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--img-bg); border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--border); overflow: hidden;
}
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.post-text { min-width: 0; }
@media (min-width: 720px) { .post-item.has-thumb { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; } }

/* 推廣連結過期（offer_meta.link_expires）：不輸出按鈕，放同樣大小的無連結方塊 */
.cta-off {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
  background: var(--surface-2); color: var(--muted); border-radius: 999px; font-weight: 700; line-height: 1.25; text-align: center;
}
.cta-off.cta-block { display: flex; width: 100%; min-height: 50px; border-radius: var(--radius-sm); font-size: 1rem; }
.pick-card .cta-off.cta-block { margin-top: auto; }
@media (max-width: 640px) { .pick-card .cta-off.cta-block { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; } }.post-text .post-link { display: block; line-height: 1.5; }

/* v2.8 答案框一點一行（2026-11-29，使用者：「先看結論」重點全擠在一段不好讀）
   {{answer}} 原文有 2 段以上（以「；」「。」切）→ <div class="answer answer-points"><ul>，每點一行。
   保留 v2.3 的橘色左邊框卡片；清單不用預設圓點，改成品牌橘 6px 圓點；字重 600 比單句答案略輕。 */
.answer-points { padding: 12px 16px 12px 14px; font-weight: 600; line-height: 1.7; }
.answer-points ul { list-style: none; margin: 0; padding: 0; }
.answer-points li {
  position: relative; margin: 0; padding-left: 1.1em; min-width: 0;
  text-align: left; overflow-wrap: break-word;
}
.answer-points li + li { margin-top: 0.45em; }
.answer-points li::before {
  content: ""; position: absolute; left: 0.15em; top: calc(0.85em - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 480px) {
  .answer-points { padding: 11px 13px 11px 12px; font-size: 1em; }
  .answer-points li { padding-left: 1em; }
}

/* v2.8 商品圖統一相框（2026-11-29，使用者：並排的商品圖大小看起來不一致）
   平台素材有紅色滿版、有白底小主體，依條款不能裁切或修改 → 改成統一相框：
   白底（暗色模式也白底）、固定 1:1、內距 7px、1px 實線邊框、圓角 12px，圖片在框內 contain 置中。
   同一列並排的卡片相框寬度完全相同：精選卡、比較表表頭用 width: 100% ＋ 同一個上限（欄寬本來就等寬），
   手機左圖右文固定 128px 欄。 */
.pimg, .post-thumb {
  aspect-ratio: 1 / 1; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: none; padding: 7px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pimg img, .post-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pimg.pimg-ph { padding: 10px; background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); }
.pick-img, .cmp-img, .pc-img { width: 100%; flex: none; }
.pick-badge { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-thumb { padding: 6px; }
@media (max-width: 640px) {
  .pick-card { grid-template-columns: 128px minmax(0, 1fr); }
  .pick-img { width: 128px; }
}
