/* Hallmark · macrostructure: Long Document（資料參考書） · tone: utilitarian · anchor hue: 165 teal-green
 * theme: custom（vibe: 官方規格書、數字是主角、安靜） · paper oklch(98.6% 0.004 95) · accent oklch(46% 0.09 165)
 * display + body: 系統中文黑體（不載外部字型） · nav: N9 edge-aligned minimal · footer: Ft2 inline rule
 * pre-emit critique: P4 H4 E4 S5 R5 V3
 */
:root {
  --c-paper: oklch(98.6% 0.004 95);
  --c-paper-2: oklch(96.2% 0.006 95);
  --c-ink: oklch(23% 0.012 250);
  --c-ink-2: oklch(45% 0.012 250);
  --c-rule: oklch(88.5% 0.006 95);
  --c-rule-strong: oklch(78% 0.008 95);
  --c-accent: oklch(46% 0.09 165);
  --c-accent-soft: oklch(94% 0.03 165);
  --c-warn: oklch(52% 0.12 50);
  --c-focus: oklch(55% 0.15 255);
  --font-body: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --text-base: 1.0625rem;
  --text-s: 1rem;
  --text-l: 1.25rem;
  --text-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  --text-num: clamp(2.6rem, 1.8rem + 4vw, 3.75rem);
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --measure: 40rem;
  --wide: 60rem;
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 120ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-paper: oklch(19% 0.01 250);
    --c-paper-2: oklch(23% 0.012 250);
    --c-ink: oklch(93% 0.006 95);
    --c-ink-2: oklch(72% 0.01 250);
    --c-rule: oklch(32% 0.012 250);
    --c-rule-strong: oklch(42% 0.012 250);
    --c-accent: oklch(78% 0.1 165);
    --c-accent-soft: oklch(30% 0.04 165);
    --c-warn: oklch(78% 0.11 60);
    --c-focus: oklch(75% 0.13 255);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-paper); color: var(--c-ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.7;
}
a { color: var(--c-accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; font-style: normal; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-xl); margin: 0 0 var(--space-xs); letter-spacing: -0.01em; }
h2 { font-size: var(--text-l); margin: var(--space-xl) 0 var(--space-s); }
h3 { font-size: var(--text-base); margin: var(--space-l) 0 var(--space-xs); }
p { margin: 0 0 var(--space-m); }
small, .muted { color: var(--c-ink-2); font-size: var(--text-s); }
.muted a { white-space: nowrap; }
.muted a.wrap { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
.num, td.n, .n { font-variant-numeric: tabular-nums; }

/* 版面 */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--space-m); }
.prose { max-width: var(--measure); }
.site-head { border-bottom: 1px solid var(--c-rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-l); padding-top: var(--space-2xs); padding-bottom: var(--space-2xs); }
.brand { font-weight: 800; color: var(--c-ink); text-decoration: none; font-size: var(--text-l); letter-spacing: -0.01em; white-space: nowrap; display: inline-block; padding: 0.4rem 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-m); margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--c-ink-2); text-decoration: none; white-space: nowrap; display: inline-block; padding: 0.55rem 0; }
.nav a:hover, .nav a[aria-current] { color: var(--c-ink); text-decoration: underline; }
main { padding: var(--space-l) 0 var(--space-2xl); }
.crumbs { font-size: var(--text-s); color: var(--c-ink-2); margin: calc(-1 * var(--space-s)) 0 var(--space-2xs); padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-xs); }
.crumbs li { white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--c-rule-strong); }
.crumbs a { color: var(--c-ink-2); display: inline-block; padding: 0.55rem 0; }
.lead { font-size: var(--text-l); color: var(--c-ink-2); max-width: var(--measure); }
.site-foot { border-top: 1px solid var(--c-rule); padding: var(--space-l) 0 var(--space-xl); color: var(--c-ink-2); font-size: var(--text-s); }
.site-foot p { margin: 0 0 var(--space-xs); }
.site-foot a { color: var(--c-ink-2); white-space: nowrap; }
.site-foot p a { display: inline-block; padding: 0.55rem 0; margin: -0.55rem 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-m); list-style: none; padding: 0; margin: var(--space-2xs) 0 0; }
.foot-links a { white-space: nowrap; display: inline-block; padding: 0.55rem 0; }

/* 主數字 */
.hero-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-m); margin: var(--space-l) 0; }
.big { border-top: 3px solid var(--c-ink); padding-top: var(--space-s); min-width: 0; }
.big .v { font-size: var(--text-num); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.big .u { font-size: var(--text-l); font-weight: 600; margin-left: var(--space-2xs); }
.big .l { color: var(--c-ink-2); font-size: var(--text-s); margin-top: var(--space-2xs); }
.big .l a { white-space: nowrap; }
.big .rk { font-weight: 700; margin-top: var(--space-2xs); }
.mdl { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.big.g1 { border-top-color: var(--c-accent); }
.big.g1 .v { color: var(--c-accent); }
.scale { display: flex; gap: 3px; margin-top: var(--space-xs); max-width: 12rem; }
.scale i { flex: 1; height: 6px; background: var(--c-rule); }
.scale i.on { background: var(--c-ink); }
.big.g1 .scale i.on { background: var(--c-accent); }

/* 區塊 */
.block { margin: var(--space-xl) 0; }
.block > h2:first-child { margin-top: 0; }
.panel { background: var(--c-paper-2); border-radius: var(--radius); padding: var(--space-m); }
.pos p { margin-bottom: var(--space-xs); }
.pos p:first-child { font-size: var(--text-l); }
.money { border-left: 3px solid var(--c-rule-strong); padding: var(--space-2xs) 0 var(--space-2xs) var(--space-m); margin: var(--space-m) 0; }
.money.ok { border-left-color: var(--c-accent); }
.money h3 { margin: 0 0 var(--space-2xs); }
.money p { margin: 0; color: var(--c-ink-2); font-size: var(--text-s); }

/* 規格表（定義列表） */
.spec { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--c-rule); }
.spec dt, .spec dd { margin: 0; padding: var(--space-xs) 0; border-bottom: 1px solid var(--c-rule); }
.spec dt { color: var(--c-ink-2); padding-right: var(--space-s); }
.spec dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* 表格 */
.tbox { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-rule); border-radius: var(--radius); max-width: 100%; }
table.t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.t th, .t td { padding: var(--space-xs) var(--space-s); text-align: left; border-bottom: 1px solid var(--c-rule); white-space: nowrap; }
.t th { font-weight: 600; color: var(--c-ink-2); background: var(--c-paper-2); position: sticky; top: 0; }
.t td.r, .t th.r { text-align: right; }
.t tr:last-child td, .t tr:last-child th { border-bottom: 0; }
#e-out { max-width: 32rem; margin: var(--space-m) 0; table-layout: auto; }
#e-out th { background: none; position: static; white-space: normal; }
#e-out th, #e-out td { padding-left: var(--space-xs); padding-right: var(--space-xs); }
#e-out th:first-child, #e-out td:first-child { padding-left: 0; }
#e-out td:last-child { padding-right: 0; }
#e-out th .muted { font-weight: 400; }
.dup { display: block; font-weight: 400; color: var(--c-ink-2); font-size: var(--text-s); white-space: nowrap; }
.big .rf { margin-top: var(--space-xs); font-weight: 700; }
.big .rf a { color: var(--c-ink); }
.big .rf.ok a { color: var(--c-accent); }
.terms { margin: 0 0 var(--space-m); }
.terms b { color: var(--c-ink); font-weight: 600; }
.note { margin: var(--space-xs) 0 0; }
.key-link { font-size: var(--text-l); font-weight: 600; margin: var(--space-s) 0 0; }
.t tr.me td { background: var(--c-accent-soft); }
.t td:first-child { font-weight: 600; }
/* 級距表、品牌表：不做固定高度的內捲框（第 4 輪），整頁捲動；寬度放不下時仍在框內左右捲 */
@media (min-width: 40.0625rem) and (max-width: 72rem) {
  /* 平板寬（6 欄全顯示）：長型號在型號欄內折行，不撐出框（768 寬實測最大冷氣級距頁會撐出） */
  table.list td:first-child, table.list td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; min-width: 6rem; }
}
.nw { white-space: nowrap; }
.links a { white-space: nowrap; display: inline-block; margin-right: var(--space-m); padding: 0.55rem 0; }
.t td a, .t th a { display: inline-block; padding: 0.55rem 0; margin: -0.55rem 0; }
.big .rf a, .tap { display: inline-block; padding: 0.7rem 0; margin: -0.7rem 0; }   /* 首屏退稅連結、404 回首頁：可點高度 ≥44px（r4_ux 建議 7） */
.only-narrow { display: none; }
.cs { display: none; }
.fold-more { margin: var(--space-s) 0 0; }
@media (max-width: 40rem) {
  .cf { display: none; }
  .cs { display: inline; }
  /* 手機版只留 4 欄：型號、等級、效率值、容量；型號欄拿剩下的寬度，其餘欄不換行 */
  table.list th:nth-child(2), table.list td:nth-child(2), table.list th:nth-child(6), table.list td:nth-child(6) { display: none; }
  table.list th, table.list td { padding-left: 0.4rem; padding-right: 0.4rem; }
  table.list th { white-space: nowrap; vertical-align: bottom; }
  table.list td:first-child { width: 100%; white-space: normal; overflow-wrap: anywhere; }
  table.list .dup { white-space: normal; }
  .only-narrow { display: block; }
}
@media (max-width: 40rem) {
  /* 卡片：型號、品牌各一整列；等級、效率值、容量三格並排，標籤在上、數字在下，不會被裁 */
  table.cards thead { display: none; }
  table.cards, table.cards tbody { display: block; width: 100%; }
  table.cards tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-s); border-bottom: 1px solid var(--c-rule); padding: var(--space-s); }
  table.cards td { display: block; border: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; min-width: 0; text-align: left; }
  table.cards td.r { text-align: left; }
  table.cards td::before { content: attr(data-l); display: block; color: var(--c-ink-2); font-weight: 400; font-size: var(--text-s); }
  table.cards td:first-child, table.cards td[data-l="品牌"] { grid-column: 1 / -1; }
  table.cards td[data-l="品牌"]::before { display: inline; margin-right: var(--space-xs); }
  table.cards td:first-child::before { content: none; }
  table.cards td.nb { display: none; }               /* 品牌對不到：卡片不顯示品牌那一列 */
}
@media (min-width: 40.0625rem) {
  table.list .dup { display: none; }                 /* 桌機已有核准日期欄，型號下不重複 */
}
details.old-grading { margin: var(--space-m) 0; }
details.old-grading summary { cursor: pointer; color: var(--c-accent); padding: 0.55rem 0; }

/* 列表 */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-rule); }
.rows li { border-bottom: 1px solid var(--c-rule); }
.rows a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-m); padding: var(--space-s) 0; text-decoration: none; color: var(--c-ink); }
.rows a:hover .k { text-decoration: underline; }
.rows .k { font-weight: 600; }
.rows .c { color: var(--c-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .c.cw { white-space: normal; text-align: right; min-width: 0; }
.rows .k { min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: var(--space-2xs) var(--space-s); border: 1px solid var(--c-rule-strong); border-radius: var(--radius); text-decoration: none; color: var(--c-ink); white-space: nowrap; }
.chips a:hover { border-color: var(--c-ink); }
.chips .c { color: var(--c-ink-2); margin-left: var(--space-2xs); font-variant-numeric: tabular-nums; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-l); }

/* 表單 */
label { display: block; font-weight: 600; margin-bottom: var(--space-2xs); }
input, select, button { font: inherit; font-size: var(--text-s); color: var(--c-ink); }
input[type=search], input[type=text], input[type=number], select {
  width: 100%; padding: var(--space-xs) var(--space-s); border: 1px solid var(--c-rule-strong); border-radius: var(--radius);
  background: var(--c-paper); min-height: 2.75rem;
}
input:hover, select:hover { border-color: var(--c-ink-2); }
input:disabled, select:disabled { opacity: 0.55; }
.search-big input { font-size: var(--text-l); min-height: 3.25rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--space-s) var(--space-m); margin: var(--space-m) 0; }
.btn { display: inline-block; padding: var(--space-xs) var(--space-m); border: 1px solid var(--c-rule-strong); border-radius: var(--radius); background: var(--c-paper); cursor: pointer; min-height: 2.75rem; white-space: nowrap; transition: border-color var(--dur) var(--ease-out); }
.btn:hover { border-color: var(--c-ink); }
.btn:active { transform: translateY(1px); }
.btn[aria-pressed=true] { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin: var(--space-m) 0; }
.toolbar select { width: auto; }
.toolbar .sortbox { display: inline-flex; align-items: center; gap: var(--space-xs); }   /* 「排序」標籤跟選單一起折行 */
.results { list-style: none; padding: 0; margin: var(--space-s) 0 0; }
.results li { border-bottom: 1px solid var(--c-rule); }
.results a, .results span.x { display: flex; justify-content: space-between; gap: var(--space-m); padding: 0.6rem 0; text-decoration: none; color: var(--c-ink); }
.results a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.search-big .status { margin: var(--space-2xs) 0 0; min-height: 0; }
.can { margin: var(--space-xs) 0 0; color: var(--c-ink-2); }
.can a { display: inline-block; padding: 0.55rem 0; }
.results .c { color: var(--c-ink-2); white-space: nowrap; }
.results .via { color: var(--c-ink-2); font-size: 0.875em; }
.results .via, .spec .ib { display: inline-block; max-width: 100%; }   /* 室內機型號整段一起換行，不在連字號斷開 */
.results li.co-head span.x { color: var(--c-ink-2); padding-top: var(--space-s); }
.results .co-more { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.6rem 0; min-height: 2.75rem;
  color: var(--c-accent); font-size: var(--text-m, 1rem); cursor: pointer; text-decoration: underline; }
.out { font-variant-numeric: tabular-nums; }
.out .v { font-size: var(--text-l); font-weight: 700; }
.status { color: var(--c-ink); font-size: var(--text-s); min-height: 1.5em; }
.status.err { color: var(--c-warn); }

/* 比較 */
.cmp { table-layout: fixed; }
.cmp th, .cmp td { white-space: normal; overflow-wrap: anywhere; }
.cmp th:first-child { width: 34%; }
.cmp td.better { color: var(--c-accent); font-weight: 700; }
.cmp .tag { display: block; font-size: var(--text-s); font-weight: 600; }
.cmp-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-f .full { grid-column: 1 / -1; }

/* 指南文 */
.guide .meta { margin-bottom: var(--space-l); }
.guide-body h2 { padding-top: var(--space-s); border-top: 1px solid var(--c-rule); }
.guide-body h3 { margin-top: var(--space-l); }
.guide-body p, .guide-body li { max-width: var(--measure); }
.guide-body ul, .guide-body ol { padding-left: 1.25em; margin: 0 0 var(--space-m); }
.guide-body li { margin-bottom: var(--space-2xs); }
.guide-body table { border-collapse: collapse; width: 100%; margin: var(--space-m) 0; font-variant-numeric: tabular-nums; border: 1px solid var(--c-rule); }
.guide-body th, .guide-body td { padding: var(--space-xs) var(--space-s); border-bottom: 1px solid var(--c-rule); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.guide-body th { background: var(--c-paper-2); color: var(--c-ink-2); font-weight: 600; }
.guide-body blockquote { margin: var(--space-m) 0; padding-left: var(--space-m); border-left: 3px solid var(--c-rule-strong); color: var(--c-ink-2); }
.related .rows .c { color: var(--c-accent); }
.src-list { padding-left: 1.25em; }
.src-list li { margin-bottom: var(--space-xs); overflow-wrap: anywhere; }

/* 舊文章 */
.legacy-note { background: var(--c-paper-2); padding: var(--space-s) var(--space-m); border-radius: var(--radius); font-size: var(--text-s); color: var(--c-ink-2); }
.post img { max-width: 100%; height: auto; }
.post table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.post th, .post td { border: 1px solid var(--c-rule); padding: var(--space-2xs) var(--space-xs); min-width: 6.5em; vertical-align: top; }
.post .lg-box, .post .lg-card { border: 1px solid var(--c-rule); border-radius: var(--radius); padding: var(--space-s) var(--space-m); margin: var(--space-m) 0; }
.post .lg-box > :last-child { margin-bottom: 0; }
.post .lg-title { font-weight: 700; margin-bottom: var(--space-2xs); }
.post .lg-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-m); }
.post blockquote { margin: var(--space-m) 0; padding-left: var(--space-m); border-left: 3px solid var(--c-rule-strong); color: var(--c-ink-2); }
.post-list li { margin-bottom: var(--space-xs); }
.cover { width: 100%; height: auto; border-radius: var(--radius); margin: var(--space-m) 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
