/* 佳德汽車 · Encar 線上選車  —  共用樣式（列表頁＋詳細頁） */
:root {
  --navy: #16244a; --navy2: #22366b; --gold: #c8952e; --gold-l: #f3cf7a; --gold-bg: #fbf1dc;
  --red: #c8202b; --line: #06c755; --fg: #141c2e; --mut: #5d6679; --bd: #d9dfea; --bg: #eef1f6; --card: #fff;
  --r: 14px; --sh: 0 1px 2px rgba(20,28,46,.06), 0 4px 14px rgba(20,28,46,.06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --num: "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --fz: 1; --fzmin: 0px; /* 字級倍數與最小字級：電腦版放大，方便長輩閱讀 */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, button, a, input, select, label, summary, [role=group] { touch-action: manipulation; } /* 快速點按鈕不會被當成「點兩下放大」，兩指縮放仍可用（同車價計算機） */
body { margin: 0; font-size: max(calc(16px * var(--fz)), var(--fzmin)); font-family: var(--font); color: var(--fg); background: var(--bg); line-height: 1.5; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- 頁首 ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hd .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.hd .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.hd .brand img { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.hd .brand b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gold-l); }
.hd .sp { flex: 1; }
.btn-line { display: inline-flex; align-items: center; gap: 6px; background: var(--line); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: max(calc(14px * var(--fz)), var(--fzmin)); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-line svg { width: 18px; height: 18px; }

/* ---------- 篩選區 ---------- */
.intro { background: linear-gradient(135deg, var(--navy2), var(--navy)); color: #fff; padding: 18px 0 64px; }
.intro h1 { margin: 0 0 4px; font-size: max(calc(22px * var(--fz)), var(--fzmin)); letter-spacing: .5px; }
.intro h1 em { font-style: normal; color: var(--gold-l); }
.intro p { margin: 0; font-size: max(calc(13px * var(--fz)), var(--fzmin)); opacity: .85; }
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin-top: -50px; position: relative; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 8px 4px; font-weight: 700; font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--mut); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg small { font-weight: 500; font-size: max(calc(11px * var(--fz)), var(--fzmin)); display: block; opacity: .8; }
.sel3 { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
@media (min-width: 640px) { .sel3 { grid-template-columns: repeat(3, 1fr); } }
.fld { position: relative; }
.fld select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--card); border: 1.5px solid var(--bd); border-radius: 10px; padding: 11px 34px 11px 12px; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.fld::after { content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.fld select:disabled { background: var(--bg); color: #9aa2b3; }
.fld select:focus, .chip:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.row2 { display: flex; gap: 8px; margin-top: 10px; }
.row2 .fld { flex: 1; }
.btn-f { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--navy); background: var(--card); color: var(--navy); border-radius: 10px; padding: 0 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-f .n { background: var(--red); color: #fff; border-radius: 999px; font-size: max(calc(11px * var(--fz)), var(--fzmin)); min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--gold-bg); border: 1px solid #ecd9b0; color: #7a5410; border-radius: 999px; padding: 3px 6px 3px 10px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); cursor: pointer; }
.tag::after { content: "×"; font-size: max(calc(15px * var(--fz)), var(--fzmin)); line-height: 1; padding: 0 3px; }
.extog { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tog { border: 1px solid var(--bd); background: #fff; color: #5b6478; border-radius: 999px; padding: 5px 9px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); cursor: pointer; white-space: nowrap; }
.tog.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag.clr { background: none; border-color: var(--bd); color: var(--mut); }
.tag.clr::after { content: none; }

/* ---------- 結果 ---------- */
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 2px 10px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--mut); }
.meta b { color: var(--fg); font-size: max(calc(17px * var(--fz)), var(--fzmin)); font-family: var(--num); }
.rate { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.car { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; content-visibility: auto; contain-intrinsic-size: auto 420px; }
.car:active { transform: scale(.985); }
@media (hover: hover) { .car:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(20,28,46,.12); } }
.car .ph { aspect-ratio: 4 / 3; background: #dde3ec; position: relative; overflow: hidden; }
.car .ph img { width: 100%; height: 100%; object-fit: cover; }
.car .yr { position: absolute; left: 8px; top: 8px; background: rgba(22,36,74,.85); color: #fff; font-size: max(calc(12px * var(--fz)), var(--fzmin)); font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.car .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.car h3 { margin: 0; font-size: max(calc(16px * var(--fz)), var(--fzmin)); line-height: 1.35; }
.car .sub { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car .specs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); margin-top: 2px; }
.car .pr { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--bd); }
.car .pr .l { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.car .pr .v { font-family: var(--num); font-weight: 800; font-size: max(calc(21px * var(--fz)), var(--fzmin)); color: var(--navy); line-height: 1.1; }
.car .pr .v small { font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-family: var(--font); font-weight: 700; }
.car .pr .k { text-align: right; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); white-space: nowrap; }
.car .pr .v.no { font-family: var(--font); font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--red); }
.price .big.no { font-family: var(--font); font-size: max(calc(20px * var(--fz)), var(--fzmin)); color: var(--red); }
.no .nr, .bad .nr { display: block; font-size: max(calc(12px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--mut); line-height: 1.4; }
.warnc { border: 2px solid var(--red); display: grid; gap: 4px; }
.warnc b { color: var(--red); font-size: max(calc(17px * var(--fz)), var(--fzmin)); }
.warnc span { color: var(--fg); font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.approx { font-size: max(calc(11px * var(--fz)), var(--fzmin)); color: var(--gold); font-weight: 700; }
.lux { display: inline-block; font-size: max(calc(11px * var(--fz)), var(--fzmin)); color: var(--red); font-weight: 700; }

.sk .ph, .sk .ln { background: linear-gradient(90deg, #e3e8ef 25%, #f1f4f8 50%, #e3e8ef 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
.sk .ln { height: 14px; border-radius: 6px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk .ph, .sk .ln { animation: none; } * { transition: none !important; } }

.more { display: flex; justify-content: center; padding: 22px 0 8px; }
.btn-m { border: 0; background: var(--navy); color: #fff; font-weight: 700; border-radius: 999px; padding: 12px 28px; cursor: pointer; }
.empty, .err { text-align: center; padding: 40px 16px; color: var(--mut); background: var(--card); border-radius: var(--r); }
.err b { color: var(--red); display: block; margin-bottom: 6px; }

/* ---------- 篩選視窗（手機由下往上） ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(10,16,32,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet .box { background: var(--card); width: 100%; max-width: 640px; max-height: 88vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet .box { border-radius: 18px; } }
.sheet .top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bd); }
.sheet .top h2 { margin: 0; font-size: max(calc(17px * var(--fz)), var(--fzmin)); }
.x { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; font-size: max(calc(20px * var(--fz)), var(--fzmin)); line-height: 1; cursor: pointer; }
.sheet .in { overflow-y: auto; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; }
.sheet h3 { font-size: max(calc(14px * var(--fz)), var(--fzmin)); margin: 16px 0 8px; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--bd); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); cursor: pointer; }
.chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.range { display: flex; align-items: center; gap: 8px; }
.range .fld { flex: 1; }
.sheet .bot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); }
.sheet .bot button { flex: 1; border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; }
.btn-ghost { border: 1.5px solid var(--bd); background: var(--card); }
.btn-pri { border: 0; background: var(--navy); color: #fff; }
.note { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 6px 0 0; }
body.lock { overflow: hidden; }
/* 分享篩選結果 */
.shr { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; border: 1.5px solid var(--navy); background: var(--card); color: var(--navy); border-radius: 999px; padding: 5px 13px 5px 10px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; cursor: pointer; white-space: nowrap; }
.shr svg { width: 15px; height: 15px; }
.shr:hover { background: var(--bg); }
.shbox { max-width: 480px; }
.shcard { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; padding: 10px; background: var(--bg); border-radius: 14px; }
.shimg { flex: none; width: 104px; aspect-ratio: 4 / 3; border-radius: 10px; background: #d9dfea center / cover no-repeat; }
.shimg[hidden] { display: none; }
.shsum { margin: 0; min-width: 0; font-weight: 700; color: var(--navy); line-height: 1.5; font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
.shsum small { display: block; margin-top: 2px; font-weight: 400; color: var(--mut); font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
.shurl { display: flex; align-items: stretch; border: 1.5px solid var(--bd); border-radius: 12px; background: var(--card); overflow: hidden; }
.shurl:focus-within { border-color: var(--navy); }
.shu { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font-size: 16px; font-family: var(--num); color: var(--fg); outline: none; }
.shurl .btn-pri { flex: none; border-radius: 0; padding: 0 18px; font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); cursor: pointer; white-space: nowrap; }
.shb { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.shb > * { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); cursor: pointer; white-space: nowrap; }
.shb svg { width: 18px; height: 18px; flex: none; }
.shb .btn-ghost { color: var(--navy); border: 1.5px solid var(--bd); background: var(--card); }
.shb .btn-ghost:hover { border-color: var(--navy); }
.shb .chev { font-size: 12px; transition: transform .2s; }
.shb [aria-expanded="true"] { border-color: var(--navy); background: var(--bg); }
.shb [aria-expanded="true"] .chev { transform: rotate(180deg); }
#shMore { display: none; }
/* 手機：兩個按鈕「複製連結｜分享連結」（分享選單裡就有 LINE），不顯示 QR Code */
.touch #shMore { display: inline-flex; }
.touch #shPhone { display: none; }
.touch .shb { grid-template-columns: 1fr 1fr; }
#shNote { margin: 12px 0 4px; line-height: 1.6; }
.shqr { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; padding: 18px 16px 14px; border: 1px solid var(--bd); border-radius: 14px; background: var(--card); }
.shqr[hidden] { display: none; }
.shqr .qr { box-sizing: border-box; width: 164px; height: 164px; padding: 8px; background: #fff; border-radius: 10px; display: grid; place-items: center; font-size: 12px; color: var(--mut); text-align: center; }
.shqr .qr img, .shqr .qr canvas { display: block; width: 100% !important; height: auto !important; }
.shqr figure { margin: 0; text-align: center; }
.shqr figcaption { margin-top: 8px; font-weight: 700; color: var(--navy); font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.shqr figcaption.ln { color: #06a948; }

/* ---------- 詳細頁 ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; margin: 12px 0; font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--navy); text-decoration: none; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.dt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: calc(186px + env(safe-area-inset-bottom)); }
.dt > * { min-width: 0; }
@media (min-width: 960px) { .dt { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .dt .side { position: sticky; top: 72px; } }
.gal { background: #0d1424; border-radius: var(--r); overflow: hidden; position: relative; }
.gal .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal .track::-webkit-scrollbar { display: none; }
.gal .track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; scroll-snap-align: center; background: #0d1424; }
.gal .cnt { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: max(calc(12px * var(--fz)), var(--fzmin)); padding: 2px 9px; border-radius: 999px; }
.gal .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: max(calc(20px * var(--fz)), var(--fzmin)); cursor: pointer; display: none; }
@media (hover: hover) { .gal .nav { display: block; } }
.gal .prev { left: 10px; } .gal .next { right: 10px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: thin; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .55; flex: 0 0 auto; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--gold); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.card h2 { margin: 0 0 12px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); color: var(--navy); display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
/* 分享按鈕 */
.ttl { position: relative; }
/* LINE 詢問這台：下方小字說明 */
.bar .btn-line .lt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.bar .btn-line .lt small { font-size: max(calc(11px * var(--fz)), var(--fzmin)); font-weight: 500; opacity: .9; }
/* 往下滑時的快速列（在頂部標題列下方） */
.qbar { position: fixed; left: 0; right: 0; top: 56px; z-index: 25; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 2px solid var(--gold-l); box-shadow: 0 4px 14px rgba(22,36,74,.2); padding: 8px 0; transform: translateY(-140%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
.qbar.on { transform: none; visibility: visible; }
.qbar .wrap { display: flex; gap: 8px; align-items: center; }
.qbar select { flex: 1; min-width: 0; height: 38px; border-radius: 10px; border: 0; padding: 0 8px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); background: #fff; color: var(--fg); }
.qbar select:disabled { opacity: .6; }
.qbar .qf { flex-shrink: 0; height: 38px; border-radius: 10px; border: 1.5px solid var(--gold-l); background: transparent; color: var(--gold-l); font-weight: 700; font-size: max(calc(14px * var(--fz)), var(--fzmin)); padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.qbar .qf span { background: var(--gold-l); color: var(--navy); border-radius: 999px; font-size: max(calc(11px * var(--fz)), var(--fzmin)); min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; }
/* 回到最上面（與車價計算機相同樣式） */
.totop { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 35; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold-l); background: var(--navy); box-shadow: 0 4px 12px rgba(22,36,74,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop.on { opacity: .92; transform: none; pointer-events: auto; }
.totop svg { width: 16px; height: 16px; fill: var(--gold-l); }
.bar ~ .totop, .totop:has(~ .bar) { bottom: calc(128px + env(safe-area-inset-bottom)); }
.ttl h1 { margin: 0; font-size: max(calc(21px * var(--fz)), var(--fzmin)); line-height: 1.35; }
.ttl .sub { color: var(--mut); margin-top: 2px; }
.ttl .mk { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--gold); font-weight: 700; }
.price .big { font-family: var(--num); font-size: max(calc(34px * var(--fz)), var(--fzmin)); font-weight: 800; color: var(--navy); line-height: 1.1; }
.price .big small { font-family: var(--font); font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
.price .wan { font-weight: 700; color: var(--fg); }
.price .krw { margin-top: 6px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--mut); }
.steps { margin-top: 12px; border-top: 1px solid var(--bd); padding-top: 8px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.steps div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.steps span { color: var(--mut); }
.steps b { font-family: var(--num); text-align: right; }
.steps .tot { border-top: 2px solid var(--gold); margin-top: 4px; padding-top: 8px; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.steps .tot span { color: var(--fg); font-weight: 700; }
.fine { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 10px 0 0; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.kv div span { display: block; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.kv div b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rec div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.rec span { display: block; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.rec b { font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
.rec .ok b { color: #13834a; } .rec .warn b { color: var(--red); }
.insp h3 { font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--navy); margin: 18px 0 8px; }
.insp h4 { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 12px 0 4px; }
.insp .okline { color: #13834a; font-weight: 700; margin: 0; }
.insp .warnline { color: #a86a00; font-weight: 700; margin: 0; }
.insp .badline { color: var(--red); font-weight: 700; margin: 0 0 6px; }
.insp .parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.insp .parts li { background: var(--bg); border-radius: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.insp .parts li b { font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.insp .parts li span { color: var(--red); font-weight: 700; font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
.insp .parts li em { font-style: normal; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); margin-left: auto; }
.insp .parts li.frame { background: #fdecec; }
.insp .bad { color: var(--red); }
.insp .mech { list-style: none; margin: 6px 0 0; padding: 0; }
.insp .mech li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--bd); font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
.insp .mech li b.okc { color: #13834a; } .insp .mech li b.warnc { color: #a86a00; } .insp .mech li b.bad { color: var(--red); }
.insp .scans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.insp .scans a { display: block; text-align: center; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--navy); text-decoration: none; }
.insp .scans img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border: 1px solid var(--bd); border-radius: 8px; background: #fff; display: block; margin-bottom: 4px; }
.insp details { margin-top: 8px; }
.insp .orig, .card .orig { display: inline-block; margin-top: 10px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); }
.insp summary { cursor: pointer; color: var(--navy); font-weight: 700; font-size: max(calc(13px * var(--fz)), var(--fzmin)); padding: 6px 0; }
.insp .cmt { margin: 0; font-size: max(calc(13px * var(--fz)), var(--fzmin)); line-height: 1.6; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.opth { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.opth h2 { margin: 0; }
.opts .cp { display: flex; gap: 6px; }
.btn-s { border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: 5px 10px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; cursor: pointer; }
.btn-s:active { background: var(--navy); color: #fff; }
.opts ul.choice { display: grid; gap: 6px; }
.opts ul.choice li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.opts ul.choice li b { font-weight: 600; }
.opts ul.choice li span { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.opts ul.choice li em { font-style: normal; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: #9aa2b3; }
.opts h3 { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 12px 0 6px; }
.opts h3:first-child { margin-top: 0; }
.opts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.opts li { background: var(--bg); border-radius: 8px; padding: 4px 10px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
.src a { color: var(--navy); font-weight: 700; word-break: break-all; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--bd); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.bar .wrap { display: flex; gap: 10px; padding: 0; }
.bar a, .bar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 12px; font-weight: 700; text-decoration: none; cursor: pointer; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.bar .enc { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.bar .btn-line { border-radius: 12px; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: rgba(20,28,46,.92); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.ft { text-align: center; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); padding: 28px 16px 40px; }
.ft p { margin: 4px 0; }

.price details.calc { margin-top: 12px; }
.price details.calc summary { cursor: pointer; color: var(--navy); font-weight: 700; font-size: max(calc(14px * var(--fz)), var(--fzmin)); padding: 6px 0; }
#choiceBox h3:first-child { margin-top: 14px; }
/* 頂部：只有 logo 可點回列表；LINE 按鈕加大可點範圍，避免誤觸 */
.hd .brand > a { display: flex; flex-shrink: 0; }
.hd .btn-line { position: relative; padding: 9px 14px; }
.hd .btn-line::after { content: ""; position: absolute; inset: -8px -8px -8px -12px; }
.exhd { margin: 10px 0 0; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); }
.exhd + .extog { margin-top: 6px; }
.bar .wrap { display: grid; grid-template-columns: 48px 1fr 1.9fr; }
.bar .shr { border: 1.5px solid var(--navy); background: #fff; color: var(--navy); padding: 0; }
.bar .shr svg { width: 20px; height: 20px; }
.bar .enc { flex-direction: column; gap: 0; line-height: 1.2; font-size: max(calc(13px * var(--fz)), var(--fzmin)); padding: 8px 6px; white-space: nowrap; }
@media (min-width: 700px) { .bar .wrap { grid-template-columns: 52px 1fr 1.6fr; } .bar .enc { flex-direction: row; gap: 4px; font-size: max(calc(15px * var(--fz)), var(--fzmin)); } }
.qrbox { max-width: 520px !important; }
/* 兩個 QR Code 並排：左＝手機開啟、右＝加 LINE 好友 */
.qr2 { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 4px 0 10px; }
.qr2 figure { margin: 0; text-align: center; }
.qr2 .qrimg { min-height: 0; padding: 12px 0 6px; }
.qr2 figcaption { margin-top: 6px; font-weight: 700; color: var(--navy); font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.qr2 figcaption.ln { color: #06a948; }
.qrimg { display: flex; justify-content: center; padding: 16px 0 4px; min-height: 236px; }
.qrimg img, .qrimg canvas { border: 8px solid #fff; box-shadow: 0 2px 10px rgba(20,28,46,.12); border-radius: 8px; }
#qrCopy { width: 100%; margin-top: 6px; }
/* 熱門廠牌標題紅字（iPhone 的系統選單可能不支援顏色） */
optgroup.hot { color: var(--red); }
optgroup.hot option { color: var(--fg); }
/* 搜尋框 */
.srch { position: relative; margin-top: 10px; }
.srch > svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mut); pointer-events: none; }
.srch input { width: 100%; border: 1.5px solid var(--bd); border-radius: 10px; padding: 11px 12px 11px 38px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); background: var(--card); color: var(--fg); -webkit-appearance: none; appearance: none; }
.srch input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.srch input::placeholder { color: #9aa2b3; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px; background: var(--card); border: 1px solid var(--bd); border-radius: 12px; box-shadow: 0 8px 24px rgba(20,28,46,.16); max-height: 60vh; overflow-y: auto; }
.sugg li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.sugg li b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); color: var(--navy); }
.sugg li small { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); white-space: nowrap; }
.sugg li:hover, .sugg li.on { background: var(--bg); }
.sugg li.none { color: var(--mut); cursor: default; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.btn-r { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1.5px solid var(--bd); background: var(--card); color: var(--mut); border-radius: 10px; padding: 0 12px; font-weight: 700; cursor: pointer; white-space: nowrap; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.btn-r svg { width: 15px; height: 15px; }
.intro .ask { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .intro h1 { font-size: clamp(17px, 5.4vw, 22px); letter-spacing: 0; } .intro p { font-size: max(calc(12px * var(--fz)), var(--fzmin)); } }
/* 快速列：放大鏡搜尋 */
.qbar .qs { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--gold-l); background: transparent; color: var(--gold-l); display: grid; place-items: center; cursor: pointer; padding: 0; }
.qbar .qs svg { width: 18px; height: 18px; }
.qbar .qin, .qbar .qx { display: none; }
.qbar.searching .qs, .qbar.searching select, .qbar.searching .qf { display: none; }
.qbar.searching .qin { display: block; flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; padding: 0 12px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); background: #fff; color: var(--fg); -webkit-appearance: none; appearance: none; }
.qbar.searching .qx { display: block; flex-shrink: 0; height: 38px; border: 0; background: transparent; color: var(--gold-l); font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); padding: 0 4px; cursor: pointer; }
.qbar .wrap + .wrap { position: relative; }
.qsugg { top: 6px; }
.intro h1 .spk { color: var(--gold-l); font-size: .8em; margin: 0 2px; vertical-align: 1px; }
.qbar .qs { background: var(--gold-l); color: var(--navy); border-color: var(--gold-l); }
.qbar .qs svg { stroke-width: 2.6; }
.qbar .qs svg circle, .qbar .qs svg path { stroke-width: 2.6; }
@media (max-width: 699px) { .intro { text-align: center; } }
/* 搜尋框右邊放重設 */
.srow { display: flex; gap: 8px; margin-top: 10px; align-items: stretch; }
.srow .srch { flex: 1; min-width: 0; margin-top: 0; }
.srow .btn-r { flex-shrink: 0; }
/* 收藏 */
.hfav { position: relative; flex-shrink: 0; width: 40px; height: 40px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-l); border: 1.5px solid rgba(243,207,122,.55); }
.hfav svg { width: 20px; height: 20px; fill: currentColor; }
.hfav .favN { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px/20px Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; text-align: center; display: block; }
.hfav .favN[hidden] { display: none; }
.fav { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(20,28,46,.2); color: #8a93a6; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.fav.on { color: var(--red); }
.fav.on svg { fill: currentColor; }
.fav:active svg { transform: scale(.85); }
.car .ph .fav { position: absolute; right: 8px; top: 8px; }
.ttl .fav { position: absolute; right: 12px; top: 12px; background: var(--bg); box-shadow: none; }
.ttl h1, .ttl .mk { padding-right: 44px; }
/* 收藏頁 */
.favhd h1 { margin: 0; font-size: max(calc(22px * var(--fz)), var(--fzmin)); color: var(--navy); }
.favhd h1 small { font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--mut); font-weight: 500; }
.favhd .fine { margin: 4px 0 14px; }
body:has(.favhd) main { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.car.gone .ph img { filter: grayscale(1) opacity(.6); }
.car.gone .bd { opacity: .6; }
.soldtag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(20,28,46,.85); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); white-space: nowrap; }
.car .chk { color: #9aa2b3; }
.chg { font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; margin-top: 6px; }
.chg.down { color: #13834a; } .chg.up { color: var(--red); }
.favbar { display: block !important; }
.favbar .btn-line { width: 100%; }
/* 同款比價 */
.cmp .cmpv { margin: 0 0 18px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
.cmp .cmpv b.ok { color: #13834a; } .cmp .cmpv b.hi { color: var(--red); }
.cmpbar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #cfe9da, #eef1f6 50%, #f6d6d8); margin: 26px 6px 8px; }
.cmpbar span { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.cmpbar .med { width: 2px; height: 16px; background: var(--mut); }
.cmpbar .me { width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(20,28,46,.35); }
.cmpbar .me i { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: max(calc(12px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); white-space: nowrap; }
.cmpk { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; margin-top: 10px; }
.cmpk span { display: block; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.cmpk b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); color: var(--navy); }
.cmpk div:nth-child(1) { text-align: left; } .cmpk div:nth-child(3) { text-align: right; }
/* 窄手機：頁首放得下 logo、名稱、收藏、LINE */
@media (max-width: 420px) {
  .hd .wrap { gap: 8px; }
  .hd .brand { gap: 8px; }
  .hd .brand b { font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
  .hd .btn-line { padding: 9px 12px; }
  .hd .btn-line .t2 { display: none; }
  .hfav { width: 36px; height: 36px; margin-right: 2px; }
}
.cmpbar .me.r i { left: auto; right: -6px; transform: none; }
.cmpbar .me.l i { left: -6px; transform: none; }
/* 公司資訊頁尾 */
.cft { background: #0f172a; color: #94a3b8; text-align: center; padding: 30px 16px calc(30px + env(safe-area-inset-bottom)); font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.cft p { margin: 6px 0; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.cft .t { color: #fff; font-size: max(calc(18px * var(--fz)), var(--fzmin)); font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; }
.cft svg { width: 16px; height: 16px; fill: #60a5fa; flex-shrink: 0; }
.cft a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; }
.cft .cp { margin-top: 16px; padding-top: 14px; border-top: 1px solid #1e293b; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: #64748b; }
.ft { padding-bottom: 24px; }
/* 有固定底條的頁面（詳細頁、收藏頁）：頁尾留出底條的高度 */
body:has(#bar:not([hidden])) .cft { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.dt { padding-bottom: 24px !important; }
body:has(.favhd) main { padding-bottom: 24px !important; }
/* 回到最上：放回原本的高度 */
.bar ~ .totop, .totop:has(~ .bar) { bottom: calc(96px + env(safe-area-inset-bottom)); }
/* 返回列表：做成好按的按鈕 */
.back { min-height: 44px; padding: 0 16px 0 12px !important; border: 1.5px solid var(--navy) !important; background: #fff !important; border-radius: 999px; font-size: max(calc(15px * var(--fz)), var(--fzmin)) !important; gap: 6px !important; margin: 14px 0 !important; box-shadow: 0 1px 4px rgba(20,28,46,.08); }
.back span { font-size: max(calc(22px * var(--fz)), var(--fzmin)); line-height: 1; margin-top: -2px; }
.cft .cp { display: block; line-height: 1.6; }
.cft { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
/* 頁尾：與官網相同（slate-900 底、slate-400 字、blue-400 圖示） */
.cft { background: #0f172a; color: #94a3b8; border-top: 1px solid #1e293b; text-align: center; font-size: max(calc(14px * var(--fz)), var(--fzmin)); padding: 32px 0 calc(76px + env(safe-area-inset-bottom)); font-family: ui-sans-serif, system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.cft .in { max-width: 1024px; margin: 0 auto; padding: 0 16px; }
.cft p { display: block; margin: 0; }
.cft .t { color: #fff; font-size: max(calc(18px * var(--fz)), var(--fzmin)); line-height: 28px; font-weight: 700; letter-spacing: .025em; margin: 0 0 12px; }
.cft .info { font-size: max(calc(14px * var(--fz)), var(--fzmin)); line-height: 20px; color: #94a3b8; margin-bottom: 12px; }
.cft .info p + p { margin-top: 4px; }
.cft .info .addr { line-height: 1.625; }
.cft svg { display: inline-block; width: 14px; height: 14px; fill: #60a5fa; vertical-align: -2px; margin-right: 4px; }
.cft a { color: inherit; text-decoration: underline; text-underline-offset: auto; }
.cft a:hover { color: #fff; }
.cft .cp { padding-top: 12px; border-top: 1px solid #1e293b; margin-top: 0; font-size: inherit; color: inherit; }
.cft .c1 { font-size: max(calc(12px * var(--fz)), var(--fzmin)); line-height: 16px; color: #64748b; }
.cft .c2 { font-size: max(calc(11px * var(--fz)), var(--fzmin)); color: #475569; font-style: italic; margin-top: 8px; }
@media (min-width: 640px) { .cft .t { font-size: max(calc(20px * var(--fz)), var(--fzmin)); } }
/* 標題旁圓形分享（與愛心同風格） */
.ttl .tshr { position: absolute; right: 12px; top: 56px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: var(--bg); color: var(--navy); }
.ttl .tshr svg { width: 19px; height: 19px; }
.ttl .tshr:active svg { transform: scale(.85); }
.ttl .sub { padding-right: 44px; }
.ttl { min-height: 104px; }
/* 收藏頁：加入比較 */
.cmpb { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; border: 1.5px solid var(--bd); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; cursor: pointer; }
.cmpb i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #9aa2b3; display: grid; place-items: center; font-style: normal; }
.cmpb.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.cmpb.on i { border-color: var(--gold-l); background: var(--gold-l); }
.cmpb.on i::after { content: "✓"; color: var(--navy); font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 900; line-height: 1; }
.bar .favbar { display: grid !important; grid-template-columns: 1fr 1.7fr; gap: 10px; }
body:has(.favhd) .bar .favbar { grid-template-columns: 1fr 1fr; } /* 收藏頁：左 LINE、右比較（右手拇指好按），一樣寬 */
#cmpGo { flex-direction: row !important; align-items: center; justify-content: center; gap: 8px !important; }
#cmpGo svg { width: 22px; height: 22px; flex: none; }
#cmpGo .lt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.favbar .btn-line { justify-content: center; }
.bar .favbar.one { grid-template-columns: 1fr; }
.btn-cmp { display: flex !important; flex-direction: column; gap: 0 !important; line-height: 1.25; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 12px; padding: 8px 6px !important; }
.btn-cmp b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); } .btn-cmp small { font-size: max(calc(11px * var(--fz)), var(--fzmin)); font-weight: 500; }
.btn-cmp:not(:disabled) { background: var(--navy); color: #fff; }
.btn-cmp:disabled { color: #8a93a6; border-color: var(--bd); cursor: default; }
/* 比較頁 */
.cmph { margin: 0; font-size: max(calc(22px * var(--fz)), var(--fzmin)); color: var(--navy); }
.cmpnote { margin: 4px 0 12px; }
body:has(.cmpmain) .cft { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.cmpwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: var(--r); box-shadow: 0 1px 4px rgba(20,28,46,.06); margin: 0 -4px; }
.cmpt { border-collapse: separate; border-spacing: 0; width: 100%; min-width: calc(84px + var(--n) * 148px); font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.cmpt th, .cmpt td { padding: 10px 8px; border-bottom: 1px solid #eef1f6; text-align: center; vertical-align: middle; }
.cmpt tbody th { position: sticky; left: 0; z-index: 1; background: #f7f8fb; text-align: left; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); font-weight: 700; width: 92px; min-width: 92px; box-shadow: 1px 0 0 #e3e7ef; }
.cmpt thead th { position: relative; vertical-align: top; background: #fff; }
.cmpt thead th.lab { position: sticky; left: 0; z-index: 2; background: #f7f8fb; box-shadow: 1px 0 0 #e3e7ef; }
.cmpt thead th.cc a { color: var(--fg); text-decoration: none; display: block; }
.cmpt .cimg { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #dde3ec; margin-bottom: 6px; }
.cmpt .cimg img { width: 100%; height: 100%; object-fit: cover; }
.cmpt thead b { display: block; font-size: max(calc(14px * var(--fz)), var(--fzmin)); line-height: 1.3; color: var(--navy); }
.cmpt thead small { display: block; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); font-weight: 500; margin-top: 2px; }
.cmpt thead th.sold b { color: var(--mut); }
.cmpt .rmc { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,28,46,.7); color: #fff; text-decoration: none; display: grid; place-items: center; font-size: max(calc(16px * var(--fz)), var(--fzmin)); line-height: 1; }
.cmpt tr.sec th { position: static; background: var(--navy); color: #fff; font-size: max(calc(14px * var(--fz)), var(--fzmin)); padding: 8px 10px; text-align: left; box-shadow: none; }
.cmpt tr.sec th > * { position: sticky; left: 10px; }
.cmpt tr.sec .btn-s { margin-left: 8px; background: #fff; color: var(--navy); border: 0; }
.cmpt tr.sub th { position: static; background: #eef1f6; color: var(--navy); font-size: max(calc(12px * var(--fz)), var(--fzmin)); text-align: left; box-shadow: none; }
.cmpt td.best { background: #e8f6ee; color: #13834a; font-weight: 700; }
.cmpt td.warn { color: var(--red); font-weight: 700; }
.cmpt td.okc { color: #13834a; }
.cmpt td .big { font-size: max(calc(16px * var(--fz)), var(--fzmin)); color: var(--navy); }
.cmpt td.best .big { color: #13834a; }
.cmpt td .bad { color: var(--red); font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; }
.cmpt td .y { color: #13834a; font-weight: 900; font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
.cmpt td .n { color: #c3c9d4; }
.cmpt td.na { color: #c3c9d4; }
.cmpt td.note { text-align: left; color: var(--mut); }
/* 比較表分類列：左欄固定 */
.cmpt tr.sec th { position: sticky; left: 0; z-index: 1; background: var(--navy); color: #fff; font-size: max(calc(14px * var(--fz)), var(--fzmin)); padding: 8px 10px; text-align: left; box-shadow: none; }
.cmpt tr.sec td { background: var(--navy); color: #cfd6e6; text-align: left; padding: 6px 8px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
.cmpt tr.sec .optn { margin-right: 8px; }
.cmpt tr.sec .btn-s { margin: 0; background: #fff; color: var(--navy); border: 0; }
.cmpt tr.sub th { position: sticky; left: 0; z-index: 1; background: #eef1f6; color: var(--navy); font-size: max(calc(12px * var(--fz)), var(--fzmin)); text-align: left; box-shadow: none; }
.cmpt tr.sub td { background: #eef1f6; }
/* 頁尾紅色文字愛心 */
.cft .hrt { color: #ef4444; font-style: normal; }
/* 底條分享：圓形，與標題旁的愛心、分享同風格 */
.bar .shr { width: 48px; height: 48px; padding: 0; border: 0 !important; border-radius: 50% !important; background: var(--bg) !important; color: var(--navy); align-self: center; justify-self: start; }
.bar .shr svg { width: 21px; height: 21px; }
.bar .shr:active svg { transform: scale(.85); }
/* QR 視窗的網址欄 */
.qrlink { display: flex; gap: 8px; margin-top: 8px; }
.qrlink input { flex: 1; min-width: 0; border: 1.5px solid var(--bd); border-radius: 10px; padding: 10px 12px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--fg); background: #f7f8fb; }
.qrlink input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.qrlink .btn-m { flex-shrink: 0; width: auto !important; margin: 0 !important; padding: 0 18px; }
/* 底條 Encar 原始頁面：淺灰底、無外框，與分享按鈕同風格 */
.bar .enc { border: 0 !important; background: var(--bg) !important; color: #3c4763 !important; border-radius: 24px !important; font-weight: 600; align-self: center; min-height: 48px; }
.bar .enc span:first-child { font-weight: 700; color: var(--navy); }
.bar .enc:active { background: #e2e6ee !important; }
/* Encar 原頁：一行就好 */
.bar .enc { flex-direction: row !important; font-size: max(calc(14px * var(--fz)), var(--fzmin)) !important; color: var(--navy) !important; font-weight: 700; white-space: nowrap; }
/* 比較頁車輛照片：iPhone Safari 在表格裡的 aspect-ratio 會算錯，改由圖片自己決定比例，整張縮小顯示 */
.cmpt .cimg { aspect-ratio: auto; height: auto; }
.cmpt .cimg img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }
.cmpt thead th.cc { width: calc((100% - 92px) / var(--n)); }
/* 比較頁：移除按鈕（白底圓形、置中的 X，貼在照片右上角） */
.cmpt .rmc { top: 16px !important; right: 14px !important; width: 30px !important; height: 30px !important; background: #fff !important; color: var(--navy) !important; box-shadow: 0 2px 8px rgba(20,28,46,.3); display: grid !important; place-items: center; padding: 0; font-size: 0 !important; z-index: 1; }
.cmpt .rmc svg { width: 14px; height: 14px; display: block; }
.cmpt .rmc:active { transform: scale(.92); }
/* 配備列的「只列出不同 N 項／顯示全部」：左右滑動時固定在左欄旁 */
.cmpt tr.sec .optw { position: sticky; left: 92px; display: inline-flex; align-items: center; white-space: nowrap; }
/* 比較頁：往下捲時固定在頁首下方的車名條 */
.cmpmini { position: fixed; top: 56px; z-index: 25; display: flex; background: #fff; box-shadow: 0 4px 12px rgba(20,28,46,.15); border-radius: 0 0 12px 12px; overflow: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .15s, transform .15s; }
.cmpmini.on { opacity: 1; transform: none; }
.cmpmini .mi-lab { flex-shrink: 0; background: #f7f8fb; box-shadow: 1px 0 0 #e3e7ef; font-size: max(calc(12px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--mut); display: flex; align-items: center; padding-left: 8px; position: relative; z-index: 1; }
.cmpmini .mi-vp { flex: 1; overflow: hidden; }
.cmpmini .mi-in { display: flex; will-change: transform; }
.cmpmini .mi-c { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 6px 8px; box-sizing: border-box; border-left: 1px solid #eef1f6; }
.cmpmini .mi-c img { width: 40px; height: 30px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.cmpmini .mi-t { font-size: max(calc(12px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmpmini .mi-t.gone { color: var(--mut); }
.cmpmini.on { pointer-events: auto; }
.cmpmini .mi-c { cursor: pointer; }
.cmpmini .mi-c:active { background: #eef1f6; }
/* 頁首：JD 圖示（白底小方塊）＋兩行字 */
.hd .bc > a { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.hd .bc .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: #fff; padding: 3px; display: block; box-sizing: border-box; }
.hd .bc .tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hd .bc .tx b { color: #fff; font-size: max(calc(16px * var(--fz)), var(--fzmin)); letter-spacing: .06em; white-space: nowrap; overflow: visible; }
.hd .bc .tx span { color: var(--gold-l); font-size: max(calc(10px * var(--fz)), var(--fzmin)); font-weight: 700; letter-spacing: .12em; margin-top: 3px; white-space: nowrap; }
@media (max-width: 420px) { .hd .bc .tx b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); } .hd .bc .tx span { font-size: max(calc(9.5px * var(--fz)), var(--fzmin)); letter-spacing: .1em; } }
/* JD 圖示白邊改細 */
.hd .bc .ic { padding: 1.5px; border-radius: 8px; width: 32px; height: 32px; }
/* 更多篩選：深藍實心、金色篩選圖示 */
.btn-f { border: 0 !important; background: linear-gradient(135deg, #1d2f5e, var(--navy)) !important; color: #fff !important; border-radius: 10px; padding: 0 16px !important; gap: 7px !important; font-size: max(calc(15px * var(--fz)), var(--fzmin)); letter-spacing: .02em; box-shadow: 0 3px 10px rgba(22,36,74,.22); transition: transform .1s, box-shadow .15s; }
.btn-f svg { width: 18px; height: 18px; color: var(--gold-l); flex-shrink: 0; }
.btn-f:active { transform: scale(.97); box-shadow: 0 1px 4px rgba(22,36,74,.2); }
.btn-f .n { background: var(--gold-l) !important; color: var(--navy) !important; font-weight: 800; }
/* 頁首副標：Cinzel 字型 */
.hd .bc .tx span { font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 600; font-size: max(calc(11px * var(--fz)), var(--fzmin)); letter-spacing: .16em; margin-top: 3px; }
@media (max-width: 420px) { .hd .bc .tx span { font-size: max(calc(10px * var(--fz)), var(--fzmin)); letter-spacing: .13em; } }
/* 頁首：小 logo 放在「佳德汽車」前面同一行 */
.hd .bc .tx b { display: flex; align-items: center; gap: 7px; }
.hd .bc .tx b .ic { width: 22px; height: 22px; padding: 1px; border-radius: 5px; background: #fff; flex-shrink: 0; }
/* 小 logo 再縮小，讓「佳德汽車」更突出 */
.hd .bc .tx b { gap: 6px; font-size: max(calc(17px * var(--fz)), var(--fzmin)); }
.hd .bc .tx b .ic { width: 17px; height: 17px; padding: 1px; border-radius: 4px; }
@media (max-width: 420px) { .hd .bc .tx b { font-size: max(calc(16px * var(--fz)), var(--fzmin)); } }
/* 頁首只放文字 */
.hd .bc .tx b { font-size: max(calc(18px * var(--fz)), var(--fzmin)); letter-spacing: .08em; }
@media (max-width: 420px) { .hd .bc .tx b { font-size: max(calc(17px * var(--fz)), var(--fzmin)); } }
/* 「佳德汽車」：粗體明體 */
.hd .bc .tx b { font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-weight: 900; font-size: max(calc(19px * var(--fz)), var(--fzmin)); letter-spacing: .1em; }
@media (max-width: 420px) { .hd .bc .tx b { font-size: max(calc(18px * var(--fz)), var(--fzmin)); } }
/* 詳細頁：Encar 刊登資訊 */
.ttl .lst { margin-top: 8px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); }
.ttl .lst i { font-style: normal; margin: 0 4px; color: #c3c9d4; }
/* 詳細頁：相似車輛 */
.sims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .sims { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sim { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--fg); min-width: 0; }
.sim .sp { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #dde3ec; margin-bottom: 4px; }
.sim .sp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sim .sp span { position: absolute; left: 6px; top: 6px; background: rgba(22,36,74,.85); color: #fff; font-size: max(calc(11px * var(--fz)), var(--fzmin)); font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.sim b { font-size: max(calc(13px * var(--fz)), var(--fzmin)); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.sim small { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
.sim em { font-style: normal; font-weight: 800; color: var(--navy); font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.sim em .no { font-style: normal; color: var(--red); font-size: max(calc(12px * var(--fz)), var(--fzmin)); }
/* 比較頁：輸出圖片用的版面（畫面外產生） */
.cmpexp { position: fixed; left: -20000px; top: 0; background: #fff; padding: 16px; font-family: inherit; }
.cmpexp .ex-h { display: flex; justify-content: space-between; align-items: flex-end; background: var(--navy); color: #fff; padding: 12px 14px; border-radius: 10px 10px 0 0; }
.cmpexp .ex-h b { display: block; font-size: max(calc(18px * var(--fz)), var(--fzmin)); letter-spacing: .08em; }
.cmpexp .ex-h span { display: block; font-size: max(calc(10px * var(--fz)), var(--fzmin)); color: var(--gold-l); letter-spacing: .14em; margin-top: 2px; }
.cmpexp .ex-h em { font-style: normal; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: #cfd6e6; }
.cmpexp .cmpt { min-width: 0 !important; width: 100%; }
.cmpexp .cmpt th, .cmpexp .cmpt td, .cmpexp .cmpt .optw { position: static !important; box-shadow: none !important; }
.cmpexp .ex-f { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 10px 2px 0; }
/* 詳細頁大圖：載入前先顯示墊底的小圖 */
.gal .track img { background-color: #0d1424; background-size: contain; background-position: center; background-repeat: no-repeat; }
.gal.sk .ph { background: #0d1424; }
/* 比較圖片：各車 Encar 網址 */
.cmpexp .ex-l { margin: 12px 2px 0; display: grid; gap: 6px; font-size: max(calc(12px * var(--fz)), var(--fzmin)); }
.cmpexp .ex-l b { display: block; color: var(--navy); }
.cmpexp .ex-l span { color: var(--mut); word-break: break-all; }
/* 比較頁：從收藏加入 */
.cmpadd { margin-top: 16px; }
.cmpadd .adds { display: grid; gap: 8px; }
.cmpadd .add { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--bd); border-radius: 12px; text-decoration: none; color: var(--fg); background: #fff; }
.cmpadd .add img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cmpadd .add span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmpadd .add b { font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpadd .add small { font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmpadd .add i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: max(calc(18px * var(--fz)), var(--fzmin)); flex-shrink: 0; }
.cmpadd .add.off { opacity: .5; }
/* 查無結果的提示 */
.empty .tip { display: inline-block; line-height: 1.7; margin-bottom: 16px; }
/* 比較頁：標題列右側的加入選單 */
.cmphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addsel { position: relative; display: inline-flex; align-items: center; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; white-space: nowrap; cursor: pointer; }
.addsel[hidden] { display: none; }
.addsel select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
/* 收藏頁：標題列右側的全選按鈕 */
.favrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.favrow .btn-s[hidden] { display: none; }
/* 收藏頁：精簡橫向卡片（左邊小照片、右邊資料），一個畫面看得到多台，方便勾選比較 */
body:has(.favhd) .grid { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { body:has(.favhd) .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body:has(.favhd) .car { flex-direction: row; align-items: stretch; }
body:has(.favhd) .car .ph { flex: 0 0 38%; max-width: 150px; aspect-ratio: auto; min-height: 112px; }
body:has(.favhd) .car .ph img { position: absolute; inset: 0; }
body:has(.favhd) .car .yr { font-size: max(calc(11px * var(--fz)), var(--fzmin)); padding: 1px 6px; left: 6px; top: 6px; }
body:has(.favhd) .car .ph .fav { width: 30px; height: 30px; right: 6px; top: auto; bottom: 6px; }
body:has(.favhd) .car .ph .fav svg { width: 16px; height: 16px; }
body:has(.favhd) .car .soldtag { font-size: max(calc(12px * var(--fz)), var(--fzmin)); padding: 4px 10px; }
body:has(.favhd) .car .bd { padding: 9px 10px; gap: 2px; min-width: 0; }
body:has(.favhd) .car h3 { font-size: max(calc(14px * var(--fz)), var(--fzmin)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:has(.favhd) .car .sub { font-size: max(calc(12px * var(--fz)), var(--fzmin)); }
body:has(.favhd) .car .specs { font-size: max(calc(12px * var(--fz)), var(--fzmin)); margin-top: 0; }
body:has(.favhd) .car .chg { font-size: max(calc(12px * var(--fz)), var(--fzmin)); margin-top: 2px; }
body:has(.favhd) .car .pr { border-top: 0; padding-top: 4px; margin-top: 2px; align-items: center; }
body:has(.favhd) .car .pr .l { display: none; }
body:has(.favhd) .car .pr .v { font-size: max(calc(17px * var(--fz)), var(--fzmin)); white-space: nowrap; }
body:has(.favhd) .car .pr .v.no { font-size: max(calc(14px * var(--fz)), var(--fzmin)); white-space: nowrap; } /* 暫不接受代購：跟搜尋列表一樣大小，不換行 */
body:has(.favhd) .car .pr .k { font-size: max(calc(11px * var(--fz)), var(--fzmin)); }
body:has(.favhd) .car .pr .k br { display: none; }
body:has(.favhd) .car .pr:has(.v.no) .k br { display: inline; } /* 暫不接受代購時，韓國售價分兩行才放得下 */
@media (max-width: 380px) { body:has(.favhd) .car .pr .k br { display: inline; } } /* 窄手機：韓國售價分兩行，車價才不會被擠斷 */
body:has(.favhd) .cmpb { margin-top: 6px; padding: 5px 12px 5px 8px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); align-self: flex-start; }
body:has(.favhd) .cmpb i { width: 16px; height: 16px; }
/* 比較圖片：每台車的欄位一樣寬 */
.cmpexp .cmpt { table-layout: fixed; }
.cmpexp .cmpt thead th.lab, .cmpexp .cmpt tbody th { width: 92px; }
/* 收藏頁：加入比較＋移除收藏 */
body:has(.favhd) .car .acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
body:has(.favhd) .car .acts .cmpb { margin-top: 0; }
.rmb { border: 1.5px solid #e3c4c6; background: #fff; color: var(--red); border-radius: 999px; padding: 5px 10px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; cursor: pointer; }
.rmb:active { background: #fdeeee; }
.favbtns { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.favbtns .btn-s[hidden] { display: none; }
#rmSold { color: var(--red); border-color: #e3c4c6; }
/* 收藏頁照片：固定 4:3，不再被拉長切掉 */
body:has(.favhd) .car { align-items: flex-start; }
body:has(.favhd) .car .ph { flex: 0 0 40%; max-width: 170px; aspect-ratio: 4 / 3; min-height: 0; align-self: flex-start; margin: 10px 0 10px 10px; border-radius: 10px; }
body:has(.favhd) .car .acts { flex-wrap: nowrap; justify-content: space-between; }
.rmb { border: 0 !important; background: none !important; color: #8a93a6 !important; padding: 4px 2px !important; font-size: max(calc(12px * var(--fz)), var(--fzmin)) !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 3px; border-radius: 0 !important; }
.rmb:active { color: var(--red) !important; }
/* 收藏頁：篩選列 */
.favtools { display: flex; gap: 8px; margin: 0 0 12px; }
.favtools[hidden] { display: none; }
.favtools select { flex: 1; min-width: 0; height: 40px; border: 1.5px solid var(--bd); border-radius: 10px; padding: 0 10px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); background: #fff; color: var(--fg); }
/* iPhone：任何東西都不能超出畫面右邊（避免整頁被縮小） */
html, body { overflow-x: clip; }
/* 收藏篩選：筆的按鈕與輸入框 */
.favtools .fq { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--gold-l); color: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0; }
.favtools .fq svg { width: 18px; height: 18px; }
.favtools #fQ, .favtools .fqx { display: none; }
.favtools.searching .fq, .favtools.searching select { display: none; }
.favtools.searching #fQ { display: block; flex: 1; min-width: 0; height: 40px; border: 1.5px solid var(--gold); border-radius: 10px; padding: 0 12px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); background: #fff; color: var(--fg); -webkit-appearance: none; appearance: none; }
.favtools.searching .fqx { display: block; flex-shrink: 0; border: 0; background: none; color: var(--navy); font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); padding: 0 4px; cursor: pointer; }
/* 收藏頁標題列：標題不斷行，按鈕放不下就自己換一行 */
.favrow { flex-wrap: wrap; row-gap: 8px; }
.favrow h1 { white-space: nowrap; }
.favbtns { margin-left: auto; flex-wrap: nowrap; }
/* 收藏頁：選取移除模式 */
body.editing #grid .car { cursor: pointer; position: relative; }
body.editing #grid .car .acts { visibility: hidden; }
body.editing #grid .car::after { content: ""; position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b6bdca; background: #fff; }
body.editing #grid .car.sel { box-shadow: 0 0 0 2px var(--red); }
body.editing #grid .car.sel::after { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
body.editing .favtools, body.editing #rmSold, body.editing #selAll, body.editing #editOn { display: none !important; }
.editbar .wrap { display: grid !important; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.editbar .eb-all { height: 48px; padding: 0 14px; border-radius: 12px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.editbar .eb-x { height: 48px; border: 0; background: var(--bg); color: var(--navy); border-radius: 12px; padding: 0 16px; font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); cursor: pointer; }
.editbar .eb-rm { height: 48px; border: 0; background: var(--red); color: #fff; border-radius: 12px; font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); cursor: pointer; }
.editbar .eb-rm:disabled { background: #e7c3c5; cursor: default; }
/* 照片載入失敗 */
.noimg { position: relative; }
.noimg::after { content: "暫無照片"; position: absolute; inset: 0; display: grid; place-items: center; color: #9aa2b3; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; pointer-events: none; }
.gal.noimg::after { color: #6b7590; }
/* 預估車價卡片：匯率說明 */
.price .ratenote { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--bd); }
.price .ratenote p { margin: 0; font-size: max(calc(12.5px * var(--fz)), var(--fzmin)); line-height: 1.6; color: var(--mut); }
.price .ratenote .ask { margin-top: 4px; color: var(--navy); font-weight: 700; font-size: max(calc(13px * var(--fz)), var(--fzmin)); }

/* ---------- 常見問題・聯絡我們（faq.html） ---------- */
.faq { padding-bottom: 32px; max-width: 860px; }
.faq h1 { font-size: max(calc(22px * var(--fz)), var(--fzmin)); color: var(--navy); margin: 4px 0 6px; }
.faq .lead { font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 0 0 14px; }
.faq .lead a { color: #05a347; font-weight: 700; }
.faq h2 { font-size: max(calc(15px * var(--fz)), var(--fzmin)); color: var(--navy); margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.faq h2::before { content: ""; width: 4px; height: 15px; background: var(--gold); border-radius: 2px; }
.faq details { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 8px; scroll-margin-top: 80px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 40px 14px 16px; font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); color: var(--fg); position: relative; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 14px; top: 13px; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "－"; }
.faq details > div { padding: 0 16px 14px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); line-height: 1.75; color: var(--fg); }
.faq details p { margin: 0 0 8px; }
.faq details ul, .faq details ol { margin: 0 0 8px; padding-left: 20px; }
.faq details li { margin-bottom: 4px; }
.faq .tbd { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #fff3c4; color: #8a6100; font-size: max(calc(12px * var(--fz)), var(--fzmin)); font-weight: 700; }
.faq .contact { margin-top: 30px; scroll-margin-top: 80px; }
.faq .cbtns { display: grid; gap: 8px; }
@media (min-width: 640px) { .faq .cbtns { grid-template-columns: 1fr 1fr; } }
.faq .cb { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 12px 16px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.faq .cb svg { width: 24px; height: 24px; flex: none; fill: var(--navy); }
.faq .cb span { display: grid; }
.faq .cb small { font-weight: 500; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); }
.faq .cb.line { background: var(--line); color: #fff; }
.faq .cb.line svg { fill: #fff; } .faq .cb.line small { color: rgba(255,255,255,.9); }
.faq .hours { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); margin: 10px 0 0; }
.cft .flink { margin: 0 0 10px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.cft .flink a + a::before { content: "｜"; display: inline-block; margin: 0 10px; font-weight: 400; opacity: .5; }
.cft .flink a { color: inherit; font-weight: 700; }
.faq .faqhd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq .tocontact { flex: none; padding: 6px 14px; border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; text-decoration: none; white-space: nowrap; }
.kv.vinrow { grid-template-columns: 1fr; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--bd); }
/* 車輛規格：每一項做成跟車況報告一樣的灰底小格 */
#sSpec .kv { gap: 8px; }
#sSpec .kv div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
#sSpec .kv div b { font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
#sSpec .kv.vinrow { margin-top: 8px; padding-top: 0; border-top: 0; }
.kv.vinrow b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: max(calc(16px * var(--fz)), var(--fzmin)); letter-spacing: .08em; user-select: all; -webkit-user-select: all; word-break: break-all; }
/* 頁尾：上方跟內容留一點距離；整體矮一點 */
.cft { margin-top: 24px; padding-top: 24px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
body:has(#bar:not([hidden])) .cft { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
.cft .t { margin-bottom: 8px; }
.cft .info { margin-bottom: 10px; }
.cft .c2 { margin-top: 6px; }

/* 頁首「?」常見問題 */
.hfaq span { font-size: max(calc(20px * var(--fz)), var(--fzmin)); font-weight: 900; line-height: 1; font-family: Georgia, serif; }
@media (max-width: 380px) { .hd .wrap { gap: 6px; } .hfav { width: 34px; height: 34px; } }
/* 排除開關收成一顆 */
.exrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.exbtn { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: 5px 12px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; cursor: pointer; }
.exbtn b { font-weight: 900; }
.exbtn .chev { margin-left: 2px; transition: transform .2s; }
.exbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faqhint { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--navy); font-weight: 700; }
#exPanel .exhd { margin-top: 8px; }
/* 詳細頁：為什麼暫不接受 */
.why { display: inline-block; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); margin: 4px 0 2px; }
.warnc .why { font-size: max(calc(13px * var(--fz)), var(--fzmin)); margin: 0 0 0 6px; }
/* 詳細頁：車輛詳細資料跳轉列 */
#jumpSen { height: 1px; margin-bottom: -17px; }
.jump { position: sticky; top: 56px; z-index: 20; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 12px 12px 12px; transition: border-radius .15s, box-shadow .15s; }
.jump .jt { margin: 0 0 10px 2px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.jump .jt::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.jump .jtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.jump a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; background: #f1f4f9; color: var(--navy); font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; text-decoration: none; white-space: nowrap; }
.jump a svg { width: 20px; height: 20px; }
.jump a.on { background: var(--navy); color: #fff; }
.jump.stuck { border-radius: 0 0 14px 14px; box-shadow: 0 6px 14px rgba(20,28,46,.14); padding-top: 8px; padding-bottom: 8px; }
.jump.stuck .jt { display: none; }
.jump.stuck a { flex-direction: row; justify-content: center; gap: 5px; padding: 7px 2px; }
.jump.stuck a svg { width: 16px; height: 16px; }
@media (max-width: 959px) { .jump.stuck { margin: 0 -16px; padding-left: 16px; padding-right: 16px; } }


.hfaq, .hfaq:hover { text-decoration: none; }
/* 比較表：每台欄寬最多 148px，手機上縮到剛好兩台放得下（左欄 92px） */
.cmpt { --cw: min(148px, calc((100vw - 24px - 92px) / 2)); min-width: calc(92px + var(--n) * var(--cw)); }
.cmpt tr.sub th { white-space: nowrap; overflow: visible; z-index: 2; } /* 便利／多媒體等小分類：一行顯示，可以超出左欄 */
/* 3 台以上：兩台完整，第三台露出約 28px，讓人知道右邊還有 */
.cmpt tbody th.wb { word-break: keep-all; overflow-wrap: anywhere; }
.cmpt.peek { --cw: min(148px, calc((100vw - 24px - 92px - 28px) / 2)); }
.cmpbox { position: relative; }
.cmpbox::after { content: ""; position: absolute; top: 0; right: -4px; bottom: 0; width: 28px; pointer-events: none; border-radius: 0 var(--r) var(--r) 0; background: linear-gradient(90deg, rgba(20,28,46,0), rgba(20,28,46,.14)); opacity: 0; transition: opacity .2s; }
.cmpbox.edge::after { opacity: 1; }
.cmphint { display: none; align-items: center; justify-content: flex-end; gap: 4px; margin: 0 0 6px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); transition: opacity .3s; }
.cmphint.on { display: flex; }
.cmphint.off { opacity: 0; }
.cmphint i { font-style: normal; display: inline-block; animation: cmpnudge 1.2s ease-in-out infinite; }
@keyframes cmpnudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
/* 詳細頁：「車輛詳細資料」＝大標題＋分隔線；四個按鈕是一整條標籤，貼在「車輛規格」卡片上緣，目前段落用金色細框 */
.jump { background: var(--bg); box-shadow: none; border-radius: 0; padding: 6px 0 0; margin-bottom: -16px; }
.jump .jt, .sechd { margin: 0 0 12px; font-size: max(calc(19px * var(--fz)), var(--fzmin)); font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.jump .jt::before { display: none; }
.jump .jt::after, .sechd::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, #c9d2e2, rgba(201,210,226,0)); }
.sechd { margin: 14px 0 -4px; }
.jump .jtabs { gap: 4px; align-items: end; border-bottom: 3px solid var(--navy); }
.jump a { flex-direction: row; justify-content: center; gap: 5px; padding: 9px 2px 8px; border-radius: 12px 12px 0 0; background: #dde4ef; border: 0; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--navy); transition: background .15s, padding .15s; }
.jump a svg { width: 16px; height: 16px; }
.jump a:hover { background: #d0d9e8; }
.jump a.on { background: var(--navy); color: #fff; padding-top: 12px; }
#sSpec { border-top-left-radius: 0; border-top-right-radius: 0; }
.jump.stuck { background: var(--card); border-radius: 0 0 14px 14px; padding-top: 8px; padding-bottom: 0; margin-bottom: -16px; }
.jump.stuck a { padding-top: 7px; padding-bottom: 6px; }
.jump.stuck a.on { padding-top: 10px; }
@media (max-width: 959px) { #jumpSen { margin-top: 10px; } }
.cmpt thead th.cc, .cmpt tbody td { width: var(--cw); min-width: var(--cw); }
.cmpt tbody th .ab { margin-left: 1px; letter-spacing: -.01em; }

/* ---------- 11/23：讀取中灰色方塊（車況、保險紀錄、比較頁）---------- */
.card.sk .ln { height: 14px; }
.cmpsk { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 10px; background: var(--card); border-radius: var(--r); padding: 12px; }
.cmpsk .skl { display: grid; gap: 22px; padding-top: 128px; }
.cmpsk .skc { display: grid; gap: 10px; align-content: start; }
.cmpsk .skc .ph { aspect-ratio: 4 / 3; border-radius: 8px; }
.cmpsk .ln { height: 14px; border-radius: 6px; }
.cmpsk .ph, .cmpsk .ln { background: linear-gradient(90deg, #e3e8ef 25%, #f1f4f8 50%, #e3e8ef 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
/* ---------- 照片全螢幕 ---------- */
.gal .track img { cursor: zoom-in; }
.lbx { position: fixed; inset: 0; z-index: 100; background: #000; }
.lbx .lbt { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lbx .lbt::-webkit-scrollbar { display: none; }
.lbx .lbp { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; }
.lbx .lbp img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lbx .lbc { position: absolute; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top)); color: #fff; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 999px; }
.lbx .lbq { position: absolute; right: 12px; top: calc(8px + env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: max(calc(20px * var(--fz)), var(--fzmin)); cursor: pointer; }
.lbx .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: max(calc(22px * var(--fz)), var(--fzmin)); cursor: pointer; display: none; }
@media (hover: hover) { .lbx .nav { display: block; } }
.lbx .prev { left: 14px; } .lbx .next { right: 14px; }
/* ---------- 小灰字放大、顏色加深（手機比較好讀）---------- */
:root { --mut: #4f586b; }
.fine, .note, .rate, .ft, .kv div span, .rec span, .insp .parts li em, .opts ul.choice li span, .sim small, .cmpt thead small, .cmpk span, .car .pr .l, .sugg li small, .cmpadd .add small { font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
.opts ul.choice li em { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: #6f788b; }
.approx, .lux { font-size: max(calc(12px * var(--fz)), var(--fzmin)); }
/* ---------- 小按鈕的可點範圍加大（外觀不變，手指比較不會點錯）---------- */
.btn-s, .cmpb, .exbtn, .rmb, .cft a { position: relative; }
.hfav::before, .fav::before, .tshr::before, .rmc::before, .btn-s::before, .cmpb::before, .exbtn::before, .rmb::before, .cft a::before { content: ""; position: absolute; inset: -6px; }
.rmc::before { inset: -8px; }
.rmb::before { inset: -10px -10px; }
.cft a::before { inset: -12px -4px; }
/* 收藏卡片：加入比較放右邊（右手拇指好按、跟底部比較按鈕同一側），移除放左邊（不容易誤按） */
body:has(.favhd) .car .acts .rmb { order: -1; }
/* 參考比價：預設收起，標題列顯示結論 */
details.cmp > summary { list-style: none; cursor: pointer; position: relative; padding-right: 30px; }
details.cmp > summary::-webkit-details-marker { display: none; }
details.cmp > summary::after { content: ""; position: absolute; right: 6px; top: 8px; width: 9px; height: 9px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
details.cmp[open] > summary::after { transform: rotate(-135deg); top: 13px; }
details.cmp > summary .cmpv { margin: 0; }
details.cmp[open] > summary .cmpv { margin-bottom: 18px; }
details.cmp:not([open]) > summary .cmpv::after { content: "　看比較 ›"; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); }
/* 怎麼買這台車 */
.howb h2 { display: flex; align-items: center; gap: 8px; }
.howb h2 small { margin-left: auto; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); font-weight: 600; }
.howb h2 small b { background: #fff3c4; color: #8a6100; padding: 1px 6px; border-radius: 4px; }
.howb ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: relative; }
.howb ol::before { content: ""; position: absolute; left: 12%; right: 12%; top: 17px; height: 2px; background: #d6dcea; }
.howb li { text-align: center; position: relative; font-size: max(calc(13px * var(--fz)), var(--fzmin)); line-height: 1.35; color: var(--fg); font-weight: 700; }
.howb li i { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-size: max(calc(15px * var(--fz)), var(--fzmin)); font-weight: 900; box-shadow: 0 0 0 4px var(--card); }
.howb li:first-child i { background: var(--line); }
.howb li span { display: block; font-weight: 500; color: var(--mut); font-size: max(calc(12px * var(--fz)), var(--fzmin)); margin-top: 2px; }
.howb .more { display: block; margin-top: 10px; text-align: center; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--navy); font-weight: 700; }
.lbx .lbh { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255,255,255,.75); font-size: max(calc(13px * var(--fz)), var(--fzmin)); }
/* 窄手機（360）：詳細頁底部三顆按鈕原本會超出畫面 14px，縮小間距與字 */
@media (max-width: 380px) {
  .bar .wrap:has(.enc) { gap: 6px; grid-template-columns: 44px auto 1fr; }
  .bar .shr { width: 44px; height: 44px; }
  .bar .enc { font-size: max(calc(13px * var(--fz)), var(--fzmin)) !important; padding: 8px 10px !important; }
  .bar .wrap:has(.enc) .btn-line { min-width: 0; padding-left: 8px; padding-right: 8px; }
  .bar .wrap:has(.enc) .btn-line .lt small { font-size: max(calc(10.5px * var(--fz)), var(--fzmin)); letter-spacing: -.02em; }
}
/* 參考比價移進預估車價卡片底部，預設收起 */
details.cmp.cmpin { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #c9d2e2; }
details.cmp.cmpin > summary::after { top: 6px; }
details.cmp.cmpin[open] > summary::after { top: 11px; }
details.cmp.cmpin .cmpv { font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
/* 怎麼買：8 週不加底色 */
.howb h2 small b { background: none; color: var(--navy); padding: 0; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
/* 全螢幕照片：✕ 和張數在亮色照片上也看得清楚（手機打橫時） */
.lbx .lbq { background: rgba(0,0,0,.62); border: 1.5px solid rgba(255,255,255,.8); box-shadow: 0 2px 8px rgba(0,0,0,.4); right: calc(12px + env(safe-area-inset-right)); font-weight: 700; }
.lbx .lbc { background: rgba(0,0,0,.6); }
.backfix { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: max(calc(15px * var(--fz)), var(--fzmin)); padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 18px rgba(20,28,46,.3); white-space: nowrap; }
.backfix span { font-size: max(calc(20px * var(--fz)), var(--fzmin)); line-height: 1; margin-top: -2px; }
.lbx .lbp { overflow: hidden; } .lbx .lbp img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.lbx .lbp { position: relative; display: block; } .lbx .lbp img { position: absolute; inset: 0; }
.backin { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); text-decoration: none; border: 1.5px solid var(--navy); border-radius: 999px; padding: 7px 14px; }
.backin span { font-size: max(calc(18px * var(--fz)), var(--fzmin)); line-height: 1; margin-top: -2px; }
details.cmp .cmpnote2 { margin: 6px 0 0; font-size: max(calc(12.5px * var(--fz)), var(--fzmin)); line-height: 1.5; color: var(--mut); font-weight: 500; }
details.cmp[open] > summary .cmpv { margin-bottom: 0; }
details.cmp[open] > summary .cmpnote2 { margin-bottom: 18px; }
/* 參考比價：分布圖上下多留空間；提醒只留一行 */
details.cmp .cmpnote2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.cmp[open] > summary .cmpnote2 { margin-bottom: 30px; }
details.cmp.cmpin .cmpbar { margin-top: 36px; margin-bottom: 24px; }
details.cmp.cmpin .cmpk { margin-bottom: 18px; }
/* 全螢幕照片：iPhone 打橫時用 CSS 直接蓋滿整個畫面（含網址列收合後的高度），外圍再補黑色，避免露出底下頁面 */
.lbx { top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 100vh; height: 100lvh; box-shadow: 0 0 0 100vmax #000; }
.lbx .lbt { height: 100vh; height: 100svh; }
.lbx .lbq { right: calc(18px + env(safe-area-inset-right)); top: calc(10px + env(safe-area-inset-top)); }
@media (orientation: landscape) { .lbx .lbq { right: calc(28px + env(safe-area-inset-right)); } }
/* 比價提醒：只在展開後顯示；「這台」跟上面文字多一點距離 */
details.cmp:not([open]) .cmpnote2 { display: none; }
details.cmp[open] > summary .cmpnote2 { margin-bottom: 40px; }
.faq .cb svg.ig { fill: none; stroke: var(--navy); stroke-width: 2; }
.faq .cb svg.ig .dot { fill: var(--navy); stroke: none; }
.lbcurtain { position: absolute; left: 0; right: 0; z-index: 99; background: #000; }
/* ---------- 聯絡我們：LINE 主按鈕＋電話地圖一組清單＋FB／IG 並排 ---------- */
.faq .cbtns { grid-template-columns: 1fr 1fr !important; gap: 0 10px; }
.faq .cbtns .cb { box-shadow: none; border: 1px solid #e3e7ef; }
.faq .cbtns .cb svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #eef1f6; box-sizing: border-box; }
.faq .cbtns .cb.line { grid-column: 1 / -1; margin-bottom: 14px; border: 0; box-shadow: 0 6px 16px rgba(6,199,85,.25); padding: 14px 16px; }
.faq .cbtns .cb.line svg { background: rgba(255,255,255,.22); }
.faq .cbtns .cb:nth-child(2), .faq .cbtns .cb:nth-child(3), .faq .cbtns .cb:nth-child(4) { grid-column: 1 / -1; border-radius: 0; border-top: 0; }
.faq .cbtns .cb:nth-child(2) { border-top: 1px solid #e3e7ef; border-radius: var(--r) var(--r) 0 0; }
.faq .cbtns .cb:nth-child(4) { border-radius: 0 0 var(--r) var(--r); margin-bottom: 14px; }
.faq .cbtns .cb:nth-child(-n+4)::after { content: "›"; margin-left: auto; font-size: max(calc(24px * var(--fz)), var(--fzmin)); line-height: 1; color: #a3abbb; font-weight: 400; }
.faq .cbtns .cb.line::after { color: rgba(255,255,255,.85) !important; }
.faq .cbtns .cb:nth-child(5), .faq .cbtns .cb:nth-child(6) { gap: 10px; padding: 12px; }
.faq .hours { margin-top: 14px; }
@media (min-width: 640px) { .faq .cbtns .cb:nth-child(-n+4) { grid-column: 1 / -1; } }
/* ---------- 預估車價（精簡版）：價格＋比價標籤同一行，計算方式／同款比價按了才展開 ---------- */
.price.p2 { padding-top: 16px; }
.p2h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.p2h b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); color: var(--navy); }
.p2h em { font-style: normal; font-size: max(calc(12.5px * var(--fz)), var(--fzmin)); color: var(--mut); }
.p2row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.price.p2 .big { font-size: max(calc(38px * var(--fz)), var(--fzmin)); }
.price.p2 .big small { font-size: max(calc(17px * var(--fz)), var(--fzmin)); font-weight: 700; margin: 0 2px; }
.p2tag { border: 0; border-radius: 999px; padding: 6px 11px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); font-weight: 800; white-space: nowrap; cursor: pointer; background: #eef1f6; color: var(--navy); }
.p2tag.hi { background: #fdecee; color: var(--red); }
.p2tag.ok { background: #e6f5ec; color: #13834a; }
.price.p2 .krw { margin-top: 2px; }
.p2btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.p2btns button { border: 1.5px solid var(--bd); background: #fff; border-radius: 10px; padding: 9px 0; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); cursor: pointer; font-family: inherit; }
.p2btns button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.p2btns button[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.p2btns button[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -1px; }
.p2btns button:disabled { opacity: .45; cursor: default; }
.p2pane { margin-top: 12px; padding: 12px; background: #f6f8fb; border-radius: 12px; }
.p2pane .steps { margin: 0; }
.p2pane .fine { margin-top: 8px; }
.p2pane .cmpv { margin: 0 0 2px; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
.p2pane .cmpnote2 { margin: 0 0 40px; font-size: max(calc(12.5px * var(--fz)), var(--fzmin)); color: var(--mut); }
.p2pane .cmpbar { margin: 0 6px 24px; }
.p2pane .cmpk { margin-bottom: 14px; }
.p2ask { margin: 10px 0 0; font-size: max(calc(12.5px * var(--fz)), var(--fzmin)); color: var(--mut); text-align: center; }
/* 列表最下面的說明：改成三行條列，靠左對齊，好讀 */
.ft .ftl { list-style: none; margin: 0 auto; padding: 14px 16px; max-width: 440px; text-align: left; background: rgba(255,255,255,.6); border: 1px solid #e3e7ef; border-radius: 12px; display: grid; gap: 6px; font-size: max(calc(13px * var(--fz)), var(--fzmin)); line-height: 1.55; }
.ft .ftl li { position: relative; padding-left: 14px; }
.ft .ftl li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #a3abbb; }
.ft .ftl b { color: var(--navy); }
.p2pane .cmpnote2 { font-weight: 700; color: var(--fg); }
.faq .tocontact { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--navy); color: #fff; padding: 8px 14px 8px 12px; box-shadow: 0 4px 10px rgba(22,36,74,.2); }
.faq .tocontact svg { width: 16px; height: 16px; color: var(--gold-l); }
/* 全螢幕照片：內容層 */
.lbx .lbs { position: absolute; inset: 0; }
.lbx .lbt { height: 100% !important; }
/* 「聯絡方式」：跳到下方聯絡區的按鈕（淺金底＋往下箭頭，看得出是「往下看」不是撥電話） */
.faq .tocontact { background: var(--gold-l); color: var(--navy); box-shadow: 0 3px 8px rgba(201,150,58,.3); padding: 8px 12px 8px 16px; gap: 4px; }
.faq .tocontact svg { width: 18px; height: 18px; color: var(--navy); }
/* 底部 LINE 按鈕：呼吸燈（綠光一圈圈往外淡出，提醒可以按） */
@keyframes lineBreath { 0% { box-shadow: 0 0 0 0 rgba(6,199,85,.55); } 70% { box-shadow: 0 0 0 12px rgba(6,199,85,0); } 100% { box-shadow: 0 0 0 0 rgba(6,199,85,0); } }
.bar .btn-line { animation: lineBreath 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .bar .btn-line { animation: none; } }
/* ---------- 底部按鈕列：深藍底（跟頁首、頁尾同色系）；收藏頁「選取移除」的編輯列維持白底 ---------- */
.bar:not(.editbar) { background: var(--navy); border-top: 1px solid #24345f; backdrop-filter: none; }
.bar:not(.editbar) .shr, .bar:not(.editbar) .enc { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.bar:not(.editbar) .enc span:first-child { color: #fff; }
.bar:not(.editbar) .shr:active, .bar:not(.editbar) .enc:active { background: rgba(255,255,255,.22) !important; }
.bar:not(.editbar) .btn-cmp { background: #fff; color: var(--navy); border-color: #fff; }
.bar:not(.editbar) .btn-cmp:disabled { background: transparent; color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.3); }
/* 手機頁首：LINE 改成圓形圖示，跟「?」、愛心一致 */
@media (max-width: 420px) {
  .hd .btn-line { width: 36px; height: 36px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; flex-shrink: 0; }
  .hd .btn-line .t1, .hd .btn-line .t2 { display: none; }
  .hd .btn-line svg { width: 20px; height: 20px; margin: 0; }
}
@media (max-width: 380px) { .hd .btn-line { width: 34px; height: 34px; } }
/* LINE 呼吸燈：回到最早的柔和光暈（底條、聯絡區大按鈕） */
.faq .cbtns .cb.line { animation: lineBreath 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .faq .cbtns .cb.line { animation: none; } }
/* 底條：往下滑時收起、往上滑馬上出現；接近頁面最底一定顯示 */
.bar:not(.editbar) { transition: transform .25s ease; }
.bar.bar-off { transform: translateY(calc(100% + 16px)); }
.bar.bar-off ~ .totop, .totop:has(~ .bar.bar-off) { bottom: calc(24px + env(safe-area-inset-bottom)); }
.totop { transition: bottom .25s ease, opacity .2s; }
/* 存成圖片：品牌字跟網頁頁首一樣 */
.cmpexp .ex-h b { font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-weight: 900; font-size: max(calc(19px * var(--fz)), var(--fzmin)); letter-spacing: .1em; }
.cmpexp .ex-h span { font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 600; font-size: max(calc(11px * var(--fz)), var(--fzmin)); letter-spacing: .16em; }
/* 照片載入失敗：不顯示破圖和替代文字，改成一行小字 */
.car .ph img, .sim .sp img, .cimg img, .gal img, .thumbs img { color: transparent; }
.noimg { position: relative; }
.noimg::after { content: "照片載入失敗"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: #8a93a6; white-space: nowrap; }
/* ---------- 收藏頁、比較頁底部兩顆按鈕：一行字、比較矮；比較＝金色、存成圖片＝白框 ---------- */
.bar .favbar { grid-template-columns: 1fr 1fr !important; }
.bar .favbar .btn-line, .bar .favbar .btn-cmp { height: 50px; min-height: 0; padding: 0 10px !important; border-radius: 14px !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px !important; font-size: max(calc(16px * var(--fz)), var(--fzmin)); font-weight: 800; white-space: nowrap; }
.bar .favbar small { display: none !important; }
.bar .favbar .lt { flex-direction: row !important; align-items: center; }
.bar .favbar .btn-line svg, .bar .favbar .btn-cmp svg { width: 20px; height: 20px; flex-shrink: 0; }
.bar .favbar .btn-cmp b { font-size: max(calc(16px * var(--fz)), var(--fzmin)); }
body:has(.favhd) .bar .favbar .btn-cmp:not(:disabled) { background: var(--gold-l); color: var(--navy); border-color: var(--gold-l); }
#saveImg, #saveImg:disabled { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.55) !important; }
/* 按 LINE 後的提示：告訴客人到 LINE 要「貼上」 */
.pastehint { position: fixed; inset: 0; z-index: 120; background: rgba(10,16,32,.55); display: grid; align-items: end; }
.pastehint .ph-card { background: #fff; border-radius: 20px 20px 0 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; animation: phUp .22s ease-out; }
@keyframes phUp { from { transform: translateY(40px); opacity: 0; } }
.pastehint .ph-ok { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #e6f5ec; color: #13834a; display: grid; place-items: center; }
.pastehint .ph-ok svg { width: 28px; height: 28px; }
.pastehint b { display: block; font-size: max(calc(18px * var(--fz)), var(--fzmin)); color: var(--navy); }
.pastehint p { margin: 8px 0 16px; font-size: max(calc(14.5px * var(--fz)), var(--fzmin)); line-height: 1.6; color: var(--fg); }
.pastehint p em { font-style: normal; font-weight: 800; color: #13834a; }
.pastehint .ph-go { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; background: var(--line); color: #fff; font-size: max(calc(16px * var(--fz)), var(--fzmin)); font-weight: 800; text-decoration: none; }
.pastehint .ph-go svg { width: 20px; height: 20px; }
.pastehint .ph-x { margin-top: 10px; border: 0; background: none; color: var(--mut); font-size: max(calc(14px * var(--fz)), var(--fzmin)); padding: 8px 16px; font-family: inherit; cursor: pointer; }
/* 車輛詳情底部 LINE：一行「LINE 詢問這台」 */
.bar .wrap:has(.enc) .btn-line small { display: none; }
.bar .wrap:has(.enc) .btn-line .lt { flex-direction: row; align-items: center; }
.bar .wrap:has(.enc) .btn-line { font-size: max(calc(16px * var(--fz)), var(--fzmin)); font-weight: 800; white-space: nowrap; gap: 8px; }
/* 電腦版 LINE 視窗（QR Code） */
.pastehint.lineqr { align-items: center; justify-items: center; }
.lineqr .ph-card { border-radius: 20px; max-width: 460px; width: calc(100% - 32px); padding: 24px 24px 16px; }
.lineqr .qrs { display: flex; justify-content: center; gap: 28px; margin: 16px 0 6px; }
.lineqr figure { margin: 0; }
.lineqr .qr { width: 168px; height: 168px; display: grid; place-items: center; font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: var(--mut); }
.lineqr .qr img, .lineqr .qr canvas { display: block; }
.lineqr figcaption { margin-top: 8px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); }
.lineqr p { margin: 10px 0 14px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.err .ecode { display: block; margin-top: 14px; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: #a3abbb; }
.cmpt td small.c2 { display: block; margin-top: 2px; font-size: max(calc(12px * var(--fz)), var(--fzmin)); color: var(--mut); }
/* 電腦版：底部按鈕不要拉滿整個螢幕，跟內容一樣置中、限制寬度 */
@media (min-width: 700px) { .bar .wrap { max-width: 640px; margin: 0 auto; } }
/* 電腦／平板橫向：「怎麼買這台車」移到右欄預估車價下方（右欄比較不空）；手機維持放在原始車源下面 */
.howb-side { display: none; }
@media (min-width: 960px) { .howb-side { display: block; } .howb-main { display: none; } }
/* 電腦版列表搜尋區：產地＋搜尋同一列，廠牌／車系／車型＋排序＋更多篩選同一列，欄位不會拉太長 */
@media (min-width: 960px) {
  .panel { display: flex; flex-wrap: wrap; column-gap: 10px; align-items: stretch; }
  .panel > * { flex: 1 1 100%; }
  .panel > .seg { flex: 0 0 420px; }
  .panel > .srow { flex: 1 1 420px; margin-top: 0; }
  .panel > .srow .srch input { height: 100%; }
  .panel > .sel3 { flex: 3 1 58%; }
  .panel > .row2 { flex: 1.4 1 28%; }
}
/* 電腦版收藏頁：篩選選單不要拉滿 */
@media (min-width: 700px) { .favtools select { flex: 0 0 220px; } }
/* 電腦（有滑鼠）：滑過按鈕時有回饋，知道哪裡可以點 */
@media (hover: hover) {
  .btn-s:hover, .btn-r:hover, .exbtn:hover, .rmb:hover, .p2btns button:not([aria-expanded="true"]):hover, .seg button:hover, .cmpb:not(.on):hover { background-color: #eef2f8; }
  .btn-line:hover, .bar .btn-line:hover, .cb.line:hover, .ph-go:hover { filter: brightness(1.06); }
  .btn-m:hover, .btn-f:hover, .tocontact:hover { filter: brightness(1.12); }
  .bar:not(.editbar) .shr:hover, .bar:not(.editbar) .enc:hover, #saveImg:hover { background: rgba(255,255,255,.2) !important; }
  .body .btn-cmp:not(:disabled):hover, body:has(.favhd) .bar .favbar .btn-cmp:not(:disabled):hover { filter: brightness(1.05); }
  .hfav:hover { background: rgba(243,207,122,.15); }
  .faq .cbtns .cb:not(.line):hover { background: #f6f8fb; }
  .sim:hover, .cmpt thead th.cc a:hover b { text-decoration: underline; }
  select:hover { border-color: #b8c2d3; }
  .p2tag:hover { filter: brightness(.97); }
  button, select, summary, .tag { cursor: pointer; }
}
/* 內容很短時（例如收藏只有幾台），頁尾下面不要露出一塊空白：頁面底色接頁尾的深色 */
html { background: #0f172a; }
/* 電腦版頁首：「?」「愛心」旁加上文字 */
.hfav .hl { display: none; }
@media (min-width: 960px) {
  .hfav:has(.hl) { width: auto; padding: 0 14px 0 10px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; margin-right: 8px; }
  .hfav .hl { display: inline; font-style: normal; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; color: #fff; white-space: nowrap; }
  .hfav .favN { position: static; margin-left: 2px; }
}
/* 電腦版收藏：搜尋框直接顯示，不用先按筆 */
@media (min-width: 700px) {
  .favtools .fq, .favtools .fqx { display: none !important; }
  .favtools #fQ { display: block; flex: 1 1 260px; max-width: 360px; height: 40px; border: 1.5px solid var(--bd); border-radius: 10px; padding: 0 12px; font-size: max(calc(15px * var(--fz)), var(--fzmin)); background: #fff; color: var(--fg); }
  .favtools.searching select { display: block; }
}
/* 收藏頁搜尋框：前面放大鏡，跟列表的搜尋框一致 */
.favtools #fQ { padding-left: 38px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6679' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 12px center / 18px 18px !important; }
.favtools #fQ::placeholder { color: #9aa2b3; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.favtools #fQ:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
/* 詳情頁頁首左上的返回鈕（頁首固定在上方，所以隨時按得到） */
.hback { flex-shrink: 0; width: 36px; height: 36px; margin: 0 2px 0 -6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; }
.hback svg { width: 22px; height: 22px; }
.hback::before { content: ""; position: absolute; inset: -8px -6px; }
@media (hover: hover) { .hback:hover { background: rgba(255,255,255,.2); } }
@media (max-width: 380px) { .hback { width: 32px; height: 32px; margin-right: 0; } }
/* 電腦寬螢幕：回到最上的 ▲ 靠在內容右邊外側，不要貼在視窗最右邊 */
@media (min-width: 1300px) { .totop { right: max(14px, calc((100vw - var(--wrapW, 1180px)) / 2 - 50px)); } }
/* 詳情頁：手機照原本順序（照片→價格→詳細資料）。電腦：「車輛詳細資料」是自己的捲動框（滑鼠在框裡捲資料），照片和右欄跟著整頁捲 */
.lcol { display: contents; }
.dt .lg { order: 1; } .dt .side { order: 2; } .dt .ld { order: 3; }
@media (min-width: 960px) {
  .dt .lg, .dt .side, .dt .ld { order: 0; }
  .lcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
  .dt .ld { grid-template-columns: minmax(0, 1fr); align-content: start; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c3cad8 transparent; padding: 0 8px 16px 0; margin-right: -8px; border-radius: var(--r); }
  .dt .ld::-webkit-scrollbar { width: 8px; } .dt .ld::-webkit-scrollbar-thumb { background: #c3cad8; border-radius: 4px; }
  .ld .jump { top: 0 !important; }
}
/* 電腦版大字：所有文字放大（版面寬度不變），方便長輩閱讀 */
@media (min-width: 960px) { :root { --fz: 1.2; --fzmin: 14px; } }
@media (min-width: 1200px) { :root { --fz: 1.35; --fzmin: 15px; } }
/* 標題、車名、按鈕：依詞語（空格）斷行，「第3代」「年式」等不被拆開；太長沒空格時才硬斷，不會超出框 */
h1, h2, h3, h4, summary, dt, button, th, .sub, .btn-m, .why, .more { word-break: keep-all; overflow-wrap: anywhere; }
/* 相似車輛車名：最多三行（依詞語斷行），不再用「…」切掉 */
.sim b { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
/* 段落、說明、清單：避免最後一行只剩一兩個字 */
/* 段落：一般換行（iPhone 的 text-wrap:pretty 會每行提早斷、右邊空一塊）；手機長段落左右對齊；結尾孤字由 ui.js 黏起來 */
.nobr { white-space: nowrap; }
@media (max-width: 899px) { .faq details p, .faq details li, .faq .intro p { text-align: justify; } }
@media (min-width: 960px) and (max-width: 1199px) { .sims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw { white-space: nowrap; }
/* 電腦版大字後：原本用「…」切掉的文字改成換行顯示完整（依詞語斷行） */
@media (min-width: 960px) {
  body:has(.favhd) .car h3, .car .sub, .cmpadd .add b, .cmpadd .add small, details.cmp .cmpnote2 { white-space: normal; overflow: visible; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; }
}
/* 電腦版大字：比較表欄寬跟著字級放大，項目名稱（例：電子收費（Hi-Pass））不被擠斷 */
@media (min-width: 960px) {
  .cmpt { --cw: calc(148px * var(--fz)); min-width: calc(92px * var(--fz) + var(--n) * var(--cw)); }
  .cmpt tbody th, .cmpexp .cmpt thead th.lab, .cmpexp .cmpt tbody th { width: calc(92px * var(--fz)); min-width: calc(92px * var(--fz)); }
}
.cmpmini .mi-t { line-height: 1.4; } /* 字母下緣（g、y）不被切到 */
/* 頁首品牌字是標誌，不跟著大字倍數放大（避免塞滿 56px 頁首） */
@media (min-width: 960px) { .hd .bc .tx b { font-size: 22px; } .hd .bc .tx span { font-size: 12px; } }
/* 電腦版：網頁內容加寬（大字比較不擠）；列表頁標題置中 */
@media (min-width: 1200px) { :root { --wrapW: 1320px; } .wrap { max-width: var(--wrapW); } }
@media (min-width: 700px) { .intro { text-align: center; } }
/* 圖示按鈕的文字（收藏／分享）：手機只顯示圖示，電腦版圖示＋文字 */
.tl { display: none; font-style: normal; }
@media (min-width: 960px) {
  .ttl .fav, .ttl .tshr { width: auto; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; right: 14px; }
  .ttl .fav { top: 14px; } .ttl .tshr { top: 58px; }
  .ttl .tl { display: inline; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 700; color: var(--navy); white-space: nowrap; }
  .ttl h1, .ttl .mk, .ttl .sub { padding-right: 120px; }
  .ttl .fav:hover, .ttl .tshr:hover { background: #e3e8f1; }
  .bar .shr { width: auto !important; height: 48px; padding: 0 18px 0 14px !important; border-radius: 999px !important; display: inline-flex; align-items: center; gap: 6px; justify-self: stretch; }
  .bar .shr .tl { display: inline; font-size: max(calc(15px * var(--fz)), var(--fzmin)); font-weight: 700; white-space: nowrap; }
  .bar .wrap:has(.shr) { grid-template-columns: 1fr 1fr 1.6fr; }
  .bar .shr { justify-content: center; }
  .lineqr .qrs { gap: 56px; }
}
/* 頁首「我的收藏」等不要底線；收藏頁沒有車時的說明置中 */
.hfav { text-decoration: none; }
#grid > .empty, #grid > .err { grid-column: 1 / -1; }
/* 連不上 Encar：整列置中的提示 */
.errx { padding: 48px 20px 36px; box-shadow: var(--sh); max-width: 640px; width: 100%; margin: 8px auto 0; justify-self: center; }
.errx .ei { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: #fdf3e1; color: var(--gold); }
.errx .ei svg { width: 32px; height: 32px; }
.errx b { color: var(--navy); font-size: max(calc(20px * var(--fz)), var(--fzmin)); margin-bottom: 10px; }
.errx p { margin: 0 auto 22px; max-width: 30em; line-height: 1.75; text-wrap: pretty; }
.errx p span { display: inline-block; } /* 以詞組換行，不會剩一個字掉到下一行 */
.errx .eb { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.errx .eb > * { min-width: 160px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 20px; text-decoration: none; }
.errx .eln { background: #06c755; color: #fff; }
/* 原始車源、相似車輛：在兩欄版面外面，各佔一整行（電腦版在整頁最下面、底條上方） */
.lx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.simw { display: grid; gap: 16px; min-width: 0; }
/* 相似車輛：電腦版滑鼠移上去不用底線，改成照片微放大、車名變金色 */
.sim, .sim:hover { text-decoration: none; }
@media (hover: hover) {
  .sim .sp { overflow: hidden; } .sim .sp img { transition: transform .25s; }
  .sim:hover .sp img { transform: scale(1.05); } .sim:hover b { color: var(--gold); }
}
/* 收藏頁車名（手機也一樣）：最多兩行、依詞語斷行，不用「…」切掉 */
body:has(.favhd) .car h3 { white-space: normal; overflow: hidden; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* 車況格子標籤：依詞語斷行、兩行平均（例：特殊紀錄／（泡水／火災）） */
.rec span { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
/* 比較表浮動車名：依詞語斷行，最多三行（手機欄寬較窄） */
.cmpmini .mi-t { word-break: keep-all; overflow-wrap: anywhere; -webkit-line-clamp: 3; line-clamp: 3; }
/* 短句換行時兩行平均，不留孤字（匯率、車況結論） */
.rate, .okline { text-wrap: balance; }
/* 電腦版列表「全部／韓國車／進口車」：外框加深，選到的那格深藍底白字 */
@media (min-width: 960px) {
  .panel > .seg { background: #e3e8f0; border: 1px solid #c3ccd9; }
  .seg button { color: #3d4a5f; }
  .seg button.on { background: var(--navy); color: #fff; box-shadow: none; }
}
/* 收藏頁車型副標（例：M4 Convertible Competition M…）：手機也最多兩行完整顯示 */
body:has(.favhd) .car .sub { white-space: normal; overflow: hidden; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* 手機：比較表浮動列小照片放在車名上面，車名用整格寬度 */
@media (max-width: 699px) {
  .cmpmini .mi-c { flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 8px; }
  .cmpmini .mi-c img { width: 44px; height: 30px; }
}
/* 詳情頁底條：三顆按鈕同高（50px）、同樣圓角方形（跟收藏頁底條一致），分享＝方形圖示鈕 */
.bar .wrap:has(.enc) { gap: 8px; align-items: stretch; }
.bar .wrap:has(.enc) > * { height: 50px; min-height: 0 !important; border-radius: 14px !important; align-self: stretch; margin: 0; }
.bar .wrap:has(.enc) .shr { width: 50px !important; justify-self: stretch; }
.bar .wrap:has(.enc) .enc { padding: 0 14px !important; font-size: max(calc(15px * var(--fz)), var(--fzmin)) !important; }
@media (max-width: 959px) { .bar .wrap:has(.enc) { grid-template-columns: 50px auto 1fr; } }
@media (max-width: 379px) { .bar .wrap:has(.enc) { gap: 6px; } .bar .wrap:has(.enc) .enc { padding: 0 10px !important; font-size: max(calc(14px * var(--fz)), var(--fzmin)) !important; } }
@media (min-width: 960px) { .bar .wrap:has(.enc) .shr { width: auto !important; } }
/* 詳情頁底條文字：手機「分享 ⇧」「Encar ↗」；電腦版「分享此輛 ⇧」「Encar 原頁 ↗」；符號都在右邊，LINE 寬度不變 */
.bar .shr .tm { font-style: normal; font-weight: 700; white-space: nowrap; }
.bar .shr svg { order: 2; }
.bar .wrap:has(.enc) .shr { gap: 5px; }
@media (max-width: 959px) {
  .bar .wrap:has(.enc) { grid-template-columns: 1fr 1fr 2fr; }
  .bar .wrap:has(.enc) .shr { width: auto !important; padding: 0 8px !important; font-size: max(calc(15px * var(--fz)), var(--fzmin)); }
  .bar .wrap:has(.enc) .shr svg { width: 18px; height: 18px; }
  .bar .tl2 { display: none; }
}
@media (min-width: 960px) { .bar .shr .tm { display: none; } }
/* 相似車輛說明放在標題下面 */
.simw .simnote { margin: -8px 0 -4px; }
/* 比較表浮動列：小照片和車名置中 */
@media (max-width: 699px) { .cmpmini .mi-c { align-items: center; text-align: center; } }
/* 原始車源：手機在下面、電腦版在右欄「怎麼買這台車」下面；說明接在標題旁邊、字小一點；手機在「。」後換行 */
.src-side { display: none; }
.src .srcl { margin: 0 0 6px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); color: #3c4763; }
@media (min-width: 960px) {
  .src-main { display: none; } .src-side { display: block; }
  .src h2 { display: inline-flex; margin-right: 10px; vertical-align: baseline; }
  .src h2 + .srcl { display: inline; }
  .src > a { display: block; margin-top: 6px; }
}
@media (min-width: 960px) { .src .mbr { display: none; } }
/* 配備分組、車況小標：小標深藍加粗＋金色小點，組與組之間細分隔線（引導但不搶眼） */
.opts h3, .insp h3 { display: flex; align-items: center; gap: 7px; font-size: max(calc(14px * var(--fz)), var(--fzmin)); font-weight: 800; color: var(--navy); margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid #e8ebf1; }
.opts h3::before, .insp h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.opts .opth + h3 { border-top: 0; padding-top: 0; margin-top: 4px; }
.opts ul { padding-left: 13px; }
/* 紀錄格子：有狀況的格子淡紅底＋左側紅線，一眼看到要注意的項目 */
.rec .warn { background: #fdf2f2; box-shadow: inset 3px 0 0 #e7a3a3; }
/* 手機：原始車源網址字小一點，維持一行 */
@media (max-width: 959px) { .src > a { white-space: nowrap; font-size: min(15px, 3.6vw); } }
@media (min-width: 960px) and (max-width: 1199px) { .src > a { white-space: nowrap; font-size: 13px; } .src h2 + .srcl { display: block; } }
/* 車況「查看全部檢查項目」加底線，看得出可以點 */
.insp summary { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
/* 電腦版右欄：卡片細框＋柔和陰影、車名卡頂端金線、價格卡淡藍漸層底、計算方式／同款比價按鈕框加深（有層次但不搶眼） */
@media (min-width: 960px) {
  .dt .side .card { border: 1px solid #e3e8f0; box-shadow: 0 2px 12px rgba(20,28,46,.06); }
  .dt .side .ttl { border-top: 3px solid var(--gold); }
  .dt .side .price { background: linear-gradient(180deg, #f3f6fb 0%, #fff 70%); }
  .p2btns button { border-color: #b8c3d5; background: #fff; box-shadow: 0 1px 2px rgba(20,28,46,.06); }
  .p2btns button:not([aria-expanded="true"]):hover { background-color: #eef2f8; border-color: var(--navy); }
}

/* 計算方式：金額不換行（「韓元」不被擠到下一行） */
.steps b { white-space: nowrap; }

/* 「共 N 台」不換行（窄螢幕「台」不被擠到下一行，讓匯率那段自己換行） */
.meta > span:first-child { white-space: nowrap; flex-shrink: 0; }
/* 手機：第一排「共 N 台」＋右邊分享按鈕，匯率自己一排；平板以上同一排、匯率靠右 */
.meta { flex-wrap: wrap; align-items: center; row-gap: 4px; }
.meta .shr { margin-left: auto; }
.meta .rate { flex-basis: 100%; text-wrap: wrap; }
.meta .rate span { display: inline-block; }
@media (min-width: 768px) { .meta { flex-wrap: nowrap; } .meta .shr { margin-left: 10px; } .meta .rate { flex-basis: auto; margin-left: auto; text-align: right; } }

/* 搜尋建議：被隱藏的品牌灰字、不能點 */
.sugg li.hid b { color: var(--mut); font-weight: 600; }
.sugg li.hid:hover { background: none; }

/* 收藏頁精簡卡片：「預估車價」字樣藏起來，但「含奢侈稅」「約」標籤要留著 */
body:has(.favhd) .car .pr .l:has(span) { display: block; font-size: 0; line-height: 1; margin-bottom: 2px; }
body:has(.favhd) .car .pr .l span { font-size: max(calc(11px * var(--fz)), var(--fzmin)); }

/* 收藏頁：高價車（韓國售價 1 億韓元以上或車價千萬以上）數字長，韓國售價分兩行，不被切掉 */
body:has(.favhd) .car .pr.long .k br { display: inline; }
/* 頁尾：回官網首頁的卡片 */
.cft a.home { position: relative; display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 20px auto 24px; padding: 18px 18px 18px 20px; border-radius: 16px; overflow: hidden; text-align: left; text-decoration: none; color: #fff; border: 1px solid rgba(243,207,122,.28); background: #16244a; box-shadow: 0 10px 30px rgba(0,0,0,.35); isolation: isolate; }
.cft a.home .hi { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,23,42,.94) 0%, rgba(22,36,74,.82) 55%, rgba(22,36,74,.45) 100%), url(../../../assets/home/hero.jpg) center 45%/cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cft a.home .ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cft a.home small { font-size: 11px; letter-spacing: .14em; color: var(--gold-l); font-weight: 700; }
.cft a.home b { font-size: max(calc(19px * var(--fz)), var(--fzmin)); line-height: 1.35; letter-spacing: .04em; }
.cft a.home .ht span { font-size: max(calc(13px * var(--fz)), var(--fzmin)); color: #cbd5e1; line-height: 1.5; }
.cft a.home .ha { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f3cf7a, #c8952e); color: #16244a; font-size: 20px; font-weight: 700; transition: transform .3s; }
.cft a.home:hover { color: #fff; border-color: rgba(243,207,122,.55); }
.cft a.home:hover .hi { transform: scale(1.06); }
.cft a.home:hover .ha, .cft a.home:active .ha { transform: translateX(4px); }
.cft a.home:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }
/* 車況報告「查看全部檢查項目」展開後：群組標題做成有底色的小標，跟下面的項目分出層次 */
.insp details h4 { display: flex; align-items: center; gap: 8px; margin: 16px 0 2px; padding: 7px 10px; border-radius: 8px; background: var(--bg); border-left: 3px solid var(--gold); color: var(--navy); font-weight: 800; font-size: max(calc(14px * var(--fz)), var(--fzmin)); }
.insp details h4:first-of-type { margin-top: 10px; }
.insp details .mech li { padding-left: 13px; }
/* 車輛頁副標（車型等級，例：CLS450 4MATIC AMG Line）：大家講車用這行，加深加粗 */
.ttl .sub { color: var(--gold3, #8a6a2a); font-weight: 600; font-size: max(calc(16px * var(--fz)), var(--fzmin)); margin-top: 4px; letter-spacing: .01em; }

/* 列表卡片：右上分享小按鈕（車名那一行的右邊） */
.car .bd { position: relative; }
.car .bd .lshr { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: var(--bg); color: var(--navy); }
.car .bd .lshr svg { width: 17px; height: 17px; }
.car .bd .lshr:active { transform: scale(.92); }
.car .bd h3, .car .bd .sub { padding-right: 40px; }

/* 收藏頁 LINE 詢問：勾選要問哪幾台 */
.askpick .apall { display: flex; align-items: center; gap: 10px; padding: 12px 2px; font-weight: 700; border-bottom: 1px solid var(--bd); cursor: pointer; }
.askpick .api { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--bd); cursor: pointer; }
.askpick input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.askpick .api img, .askpick .api .noi { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg); flex: none; }
.askpick .api .t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.askpick .api .t b { font-size: max(calc(15px * var(--fz)), var(--fzmin)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.askpick .api .t small { color: var(--mut); font-size: max(calc(13px * var(--fz)), var(--fzmin)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.askpick .apgo { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bd); }
.askpick .apgo .btn-line { width: 100%; justify-content: center; height: 48px; font-size: max(calc(16px * var(--fz)), var(--fzmin)); font-weight: 700; }
.askpick .apgo .btn-line:disabled { opacity: .5; }
.askpick .apmk { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
/* 收藏頁「加入比較」勾勾：用線條畫，不用 ✓ 字（Windows 字型的 ✓ 細又歪，跟手機不一樣） */
.cmpb i { width: calc(16px * var(--fz)) !important; height: calc(16px * var(--fz)) !important; flex-shrink: 0; }
.cmpb.on i::after { content: ""; width: 28%; height: 52%; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: translateY(-12%) rotate(45deg); font-size: 0; }
/* 電腦版收藏頁、詳情頁、比較頁：底部按鈕列維持整條，黏在畫面底，滑到最後停在頁尾上方（不再跑到頁尾下面） */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  #bar { position: sticky; bottom: 0; transform: none !important; }
  body:has(#bar:not([hidden])) .cft { padding-bottom: 32px !important; margin-top: 0 !important; }
}
.cl { display: inline-block; max-width: 100%; } /* wrap.js：標題的句段，放不下整段換行 */
/* 車況報告、保險紀錄標題旁的問號：點了另開《看懂 Encar 車況檢查與保險紀錄》 */
.qh { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 7px; border-radius: 50%; background: var(--gold-bg); border: 1.5px solid var(--gold); color: #9a6b12; font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; vertical-align: 2px; font-family: var(--sans, system-ui); }
.qh:hover { background: var(--gold); color: #fff; }
