/* =========================================================
   全省堆高機：工業黃 × 石墨灰
   長者友善：基本字級 18px、點擊區 ≥ 48px、高對比
   ========================================================= */
:root {
  --yellow: #F5B700;
  --yellow-deep: #D99F00;
  --yellow-soft: #FFF4CC;
  --graphite: #24282C;
  --steel: #3B4249;
  --concrete: #E9ECEE;
  --surface: #FFFFFF;
  --ink: #1C1F22;
  --muted: #4A5157;
  --line: #C9CFD4;
  --danger: #A8201A;
  --ok: #1B6B39;
  --focus: #1A5FD0;
  --radius: 6px;
  --wrap: 1200px;
  --font: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --font-num: "Barlow Semi Condensed", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

/* 字級切換：標準 / 大 / 特大（rem 全部跟著放大） */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.fs-l  { font-size: 112.5%; }
html.fs-xl { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.75;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: #0F4FA8; text-underline-offset: 3px; }
a:hover { color: #0A3A7E; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 12px 20px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; fill: currentColor; }

/* ---------- 按鈕 ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 10px 22px;
  border: 2px solid var(--graphite); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1.3;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--concrete); color: var(--ink); }
.btn-primary { background: var(--yellow); border-color: var(--yellow-deep); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-dark { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--steel); color: #fff; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn-lg { min-height: 60px; font-size: 1.25rem; }

/* ---------- 頁首 ---------- */
.site-header { background: var(--graphite); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; padding: 8px 0; }
.logo img { max-height: 56px; width: auto; display: block; }
.header-tools { display: flex; align-items: center; gap: 24px; }
.header-phones { display: none; gap: 20px; }
.header-phones a { color: var(--yellow); text-decoration: none; font-family: var(--font-num); font-size: 1.625rem; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.header-phones a:hover { color: #fff; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 8px 16px;
  background: var(--yellow); color: var(--ink);
  border: 0; border-radius: var(--radius);
  font: inherit; font-size: 1.125rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}

/* 字級切換 */
.font-size { display: flex; align-items: center; gap: 6px; font-size: 1rem; }
.font-size span { color: #D5DADE; margin-right: 4px; }
.font-size button {
  min-width: 48px; min-height: 44px; padding: 0 10px;
  background: transparent; color: #fff; border: 2px solid #6A737B; border-radius: var(--radius);
  font: inherit; font-weight: 700; cursor: pointer;
}
.font-size button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.site-header .font-size { display: none; }

/* 警示條紋：整站唯一的裝飾 */
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--graphite) 14px 28px); }

/* ---------- 主選單 ---------- */
.site-nav { background: var(--steel); display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 58px; padding: 0 20px;
  color: #fff; text-decoration: none; font-size: 1.1875rem; font-weight: 700;
  border-bottom: 1px solid #4E565E;
}
.site-nav a:hover { background: var(--graphite); color: var(--yellow); }
.site-nav a[aria-current="page"] { box-shadow: inset 6px 0 0 var(--yellow); color: var(--yellow); }
.site-nav .nav-tools { padding: 16px 20px 20px; color: #fff; }
.site-nav .nav-tools .font-size span { color: #fff; }
.site-nav .nav-phones a { display: flex; min-height: 56px; margin-bottom: 10px; border: 0; border-radius: var(--radius); background: var(--yellow); color: var(--ink); font-family: var(--font-num); font-size: 1.5rem; gap: 10px; }

/* ---------- 頁面標題 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 22px; }
.breadcrumb { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 1rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #8A939A; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 6px 0 0; color: var(--muted); }

main { display: block; padding: 24px 0 48px; }
main > .page-head:first-child { margin-top: -24px; }
.section { margin-bottom: 36px; }
.section-title { font-size: 1.5rem; margin-bottom: 16px; padding-left: 14px; border-left: 6px solid var(--yellow); }

/* ---------- 公告列（取代跑馬燈） ---------- */
.notice { background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; font-size: 1.125rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- 搜尋 ---------- */
.search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.search-form label { flex: 1; }
.search-form input {
  width: 100%; min-height: 56px; padding: 10px 16px;
  border: 2px solid var(--steel); border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 1.125rem;
}
.search-form .btn { min-height: 56px; flex: none; }

/* ---------- 分類切換、篩選 ---------- */
.cat-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 16px; border: 2px solid var(--graphite); border-radius: var(--radius); overflow: hidden; }
.cat-switch a {
  display: flex; align-items: center; justify-content: center; min-height: 60px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700;
}
.cat-switch a + a { border-left: 2px solid var(--graphite); }
.cat-switch a[aria-current="page"] { background: var(--yellow); }
.filters { margin-bottom: 28px; }
.filters summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  font-weight: 700; cursor: pointer; list-style: none;
}
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "展開"; font-size: 1rem; color: var(--muted); }
.filters[open] summary::after { content: "收合"; }
.filters[open] summary { margin-bottom: 14px; }
.filters h2 { font-size: 1.0625rem; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 6px 18px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700;
  border: 2px solid var(--line); border-radius: 999px;
}
.chip:hover { border-color: var(--graphite); color: var(--ink); }

/* ---------- 產品卡片 ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.product-card:hover { border-color: var(--graphite); }
.photo-box { display: block; position: relative; padding-top: 75%; background: #D3D8DC; overflow: hidden; }
.photo-box img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-box .no-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product-model { font-family: var(--font-num); font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; letter-spacing: .01em; }
.product-model a { color: var(--ink); text-decoration: none; }
.product-model a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; } /* 整張卡片可點 */
.product-meta { margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); }
.product-meta li { display: flex; gap: 12px; }
.product-meta b { color: var(--ink); min-width: 3em; }
.product-card .btn { margin-top: auto; position: relative; z-index: 1; }

/* 載重銘牌：仿堆高機上的容量銘牌 */
.plate {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--graphite); border-radius: 3px;
  margin: 0 0 14px; padding: 10px 14px;
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8C7A3A, #3B3214);
}
.plate::before { left: 6px; }
.plate::after { right: 6px; }
.plate div { padding: 0 8px; }
.plate div + div { border-left: 2px solid rgba(36,40,44,.35); }
.plate dt { font-size: .9375rem; font-weight: 700; margin: 0; }
.plate dd { margin: 0; font-family: var(--font-num); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.plate dd small { font-family: var(--font); font-size: 1rem; margin-left: 4px; }
.plate-lg dd { font-size: 2.75rem; }

/* ---------- 分頁 ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 8px; list-style: none; padding: 0; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; min-height: 52px; padding: 0 14px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.pager a:hover { border-color: var(--graphite); }
.pager [aria-current="page"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }

/* ---------- 產品明細 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.gallery-main { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-main .photo-box { border-radius: 4px; }
.gallery-hint { font-size: 1rem; color: var(--muted); margin: 8px 0 0; }
.thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.thumbs button { width: 96px; height: 72px; padding: 0; border: 3px solid transparent; border-radius: 4px; background: #D3D8DC; cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--yellow-deep); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-info .product-model { font-size: 2.25rem; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); margin: 0 0 20px; border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 7em; background: #F4F6F7; font-weight: 700; color: var(--muted); }
.cta-box { display: grid; gap: 12px; background: var(--surface); border: 2px solid var(--graphite); border-radius: var(--radius); padding: 18px; }
.cta-box p { margin: 0; font-weight: 700; }
.cta-box .btn-primary { font-family: var(--font-num); font-size: 1.5rem; flex-wrap: wrap; }

/* ---------- 留言 ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px 20px; }
.qa-list { list-style: none; margin: 0; padding: 0; }
.qa-list > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa-list > li:last-child { border-bottom: 0; }
.qa-q, .qa-a { margin: 0; }
.qa-who { font-weight: 700; }
.qa-time { color: var(--muted); font-size: 1rem; margin-left: 8px; }
.qa-a { margin-top: 10px; padding: 12px 16px; background: var(--yellow-soft); border-left: 5px solid var(--yellow); }
.empty { color: var(--muted); margin: 0; }

/* ---------- 表單 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--danger); font-weight: 700; font-size: 1rem; margin-left: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 1rem; font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid #7D868D; border-radius: var(--radius); background: #fff; color: var(--ink);
  font: inherit; font-size: 1.125rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--focus); }
.field-captcha input { max-width: 200px; }
.form-note { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- 訊息框 ---------- */
.message { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 2px solid; background: var(--surface); font-size: 1.25rem; }
.message .icon { width: 1.6em; height: 1.6em; }
.message p { margin: 0 0 12px; }
.message-ok { border-color: var(--ok); }
.message-ok .icon { fill: var(--ok); }
.message-warn { border-color: var(--danger); }
.message-warn .icon { fill: var(--danger); }
.message-info { border-color: var(--line); }

/* ---------- 品牌 ---------- */
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brand-grid a { overflow-wrap: anywhere; }
.brand-grid a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 700; text-align: center; min-height: 100%; }
.brand-grid a:hover { border-color: var(--graphite); }
.brand-grid .brand-logo { display: flex; align-items: center; justify-content: center; height: 80px; width: 100%; }
.brand-grid img { max-height: 80px; width: auto; }

/* ---------- 聯絡資訊 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.phone-cards { display: grid; gap: 12px; margin-bottom: 20px; }
.phone-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 20px; background: var(--yellow); border: 2px solid var(--yellow-deep); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.phone-card:hover { background: var(--yellow-deep); color: var(--ink); }
.phone-card .label { display: block; font-size: 1rem; font-weight: 700; }
.phone-card .num { display: block; font-family: var(--font-num); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list b { display: block; color: var(--muted); font-size: 1rem; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: 4px; display: block; margin-top: 16px; background: #D3D8DC; }

/* 後台編輯的內容 */
.prose { max-width: 46em; }
.prose img { border-radius: 4px; }
.prose table { border-collapse: collapse; max-width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--graphite); color: #E3E7EA; padding: 36px 0 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.site-footer h2 { font-size: 1.25rem; color: var(--yellow); margin-bottom: 12px; }
.site-footer .chip { background: transparent; color: #fff; border-color: #5D666E; }
.site-footer .chip:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-company p { margin: 0 0 6px; }
.footer-company .num { font-family: var(--font-num); font-size: 1.5rem; font-weight: 700; color: var(--yellow); text-decoration: none; }
.footer-qr { display: none; }
.footer-qr .qr-box { background: #fff; padding: 8px; width: 136px; height: 136px; border-radius: 4px; }
.footer-qr .qr-box img, .footer-qr .qr-box canvas { width: 120px !important; height: 120px !important; }
.footer-qr p { font-size: 1rem; margin-top: 8px; }
.copyright { margin-top: 32px; padding: 18px 0; border-top: 1px solid #3E454C; font-size: 1rem; color: #B9C0C6; }

/* ---------- 手機底部操作列 ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--graphite); border-top: 3px solid var(--yellow);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; font-size: 1.1875rem; font-weight: 700; text-decoration: none; }
.action-bar .call { background: var(--yellow); color: var(--ink); }
.action-bar .ask { color: #fff; }
body.has-action-bar { padding-bottom: 70px; }

/* ---------- 放大看圖 ---------- */
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; background: #141618; display: none; flex-direction: column; }
.lightbox.is-open { display: flex; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; }
.lightbox-img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 8px; min-height: 0; }
.lightbox-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }

/* =========================================================
   平板以上
   ========================================================= */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-wide { grid-column: 1 / -1; }
  .phone-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  h1 { font-size: 2.25rem; }
  .menu-toggle { display: none; }
  .header-phones, .site-header .font-size { display: flex; }
  .site-header .wrap { min-height: 92px; }
  .logo img { max-height: 68px; }

  .site-nav { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; }
  .site-nav a { min-height: 60px; padding: 0 18px; border-bottom: 0; font-size: 1.125rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--yellow); }
  .site-nav .nav-tools { display: none; }
  .filters summary { display: none; }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .detail-wide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr auto; gap: 36px; }
  .footer-qr { display: block; }
  .map-frame { height: 420px; }

  .action-bar { display: none; }
  body.has-action-bar { padding-bottom: 0; }
}

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

@media print {
  .site-nav, .action-bar, .hazard, .search-form, .site-footer, .menu-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- 其他堆高機（側欄） ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list a { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; font-family: var(--font-num); font-size: 1.25rem; font-weight: 700; }
.mini-list a:hover { border-color: var(--graphite); }
.mini-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 3px; background: #D3D8DC; flex: none; }

/* =========================================================
   v3：閱讀輔助列、智能選車、語音
   ========================================================= */

/* ---------- 閱讀輔助列 ---------- */
.assist-bar { background: #17191C; color: #E6E9EC; border-bottom: 1px solid #33383E; }
.assist-bar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 60px; }
.assist-label { display: none; font-size: 1rem; color: #C3C9CE; }
.zoom { display: flex; align-items: stretch; border: 2px solid #59626A; border-radius: var(--radius); overflow: hidden; }
.zoom button {
  min-width: 52px; min-height: 46px; padding: 0 10px;
  background: transparent; color: #fff; border: 0;
  font: inherit; font-weight: 700; cursor: pointer; line-height: 1;
}
.zoom button + button { border-left: 2px solid #59626A; }
.zoom .zoom-out { font-size: 1rem; }
.zoom .zoom-in { font-size: 1.375rem; }
.zoom .zoom-level { min-width: 66px; font-family: var(--font-num); font-size: 1.125rem; color: var(--yellow); }
.zoom button:hover:not(:disabled) { background: #2B3035; }
.zoom button:disabled { color: #6B737A; cursor: not-allowed; }
.speak-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 50px; padding: 0 14px;
  background: transparent; color: #fff; border: 2px solid #59626A; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.speak-btn:hover { border-color: var(--yellow); }
.speak-btn.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- 選單裡的智能選車 ---------- */
.site-nav a.nav-smart { gap: 8px; color: var(--yellow); }
.site-nav a.nav-smart .icon { width: 1.1em; height: 1.1em; }

/* ---------- 搜尋：語音按鈕 ---------- */
.search-form { flex-wrap: wrap; }
.search-form label { flex: 1 1 100%; }
.search-form .btn { flex: 1 1 0; }
.mic-btn { border-color: var(--steel); }
.mic-btn.is-listening { background: var(--graphite); border-color: var(--graphite); color: var(--yellow); }
.mic-btn.is-listening .icon { animation: mic-pulse 1s ease-in-out infinite; }
@keyframes mic-pulse { 50% { transform: scale(1.25); } }
.voice-status { margin: -14px 0 20px; font-weight: 700; color: var(--steel); min-height: 0; }
.voice-status:empty { display: none; }

/* ---------- 智能選車助手 ---------- */
.assistant {
  position: relative; margin: 0 0 28px; padding: 22px 18px 24px;
  color: #fff; border-radius: 8px;
  background-color: var(--graphite);
  background-image: radial-gradient(rgba(245,183,0,.16) 1px, transparent 1.2px);
  background-size: 18px 18px;
  border: 2px solid #3A4046;
  box-shadow: inset 0 3px 0 var(--yellow);
}
.assistant-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.assistant-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.assistant-icon .icon { width: 30px; height: 30px; }
.assistant h1 { font-size: 1.625rem; margin: 0 0 4px; color: #fff; }
.assistant-head p { margin: 0; color: #D7DCE0; }
.finder-form { display: grid; gap: 18px; }
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.q-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--font-num); font-size: 1.125rem; flex: none; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: block; cursor: pointer; }
.tile span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 8px 10px; border-radius: var(--radius);
  background: #33393F; border: 2px solid #4F575F; color: #fff; font-weight: 700; font-size: 1.125rem;
}
.tile:hover span { border-color: var(--yellow); }
.tile input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tile input:checked + span::before { content: "✓"; margin-right: 6px; }
.tile input:focus-visible + span { outline: 3px solid #7FB0FF; outline-offset: 2px; }
.finder-submit { width: 100%; font-size: 1.3125rem; }
.finder-submit .icon { width: 1.4em; height: 1.4em; }
.finder-back { width: 100%; background: transparent; color: #fff; border-color: #6A737B; }
.finder-back:hover { background: #33393F; color: #fff; }
.finder-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--yellow); }
.finder-progress .dots { display: flex; gap: 6px; }
.finder-progress i { display: block; width: 28px; height: 6px; border-radius: 3px; background: #4F575F; }
.finder-progress i.on { background: var(--yellow); }
.finder-form [hidden] { display: none !important; }
.finder-summary { list-style: none; margin: 0; padding: 4px 0; display: grid; gap: 8px; }
.finder-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #33393F; border-radius: var(--radius); }
.finder-summary span { color: #C3C9CE; }
.finder-summary b { color: var(--yellow); }

/* 結果頁：修改條件 */
.finder-again { margin-bottom: 20px; }
.finder-again summary {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 18px;
  background: var(--graphite); color: var(--yellow); border-radius: var(--radius);
  font-weight: 700; cursor: pointer; list-style: none;
}
.finder-again summary::-webkit-details-marker { display: none; }
.finder-again[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.assistant-compact { border-radius: 0 0 8px 8px; margin: 0; box-shadow: none; border-top: 0; }
.finder-count { font-size: 1.25rem; margin-bottom: 16px; }
.finder-count b { font-family: var(--font-num); font-size: 1.75rem; }

/* ---------- 符合度 ---------- */
.product-card.is-match { border-width: 2px; }
.ribbon {
  position: absolute; left: 0; top: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 12px;
  background: var(--graphite); color: var(--yellow); font-weight: 700; font-size: 1rem;
  border-radius: 0 999px 999px 0;
}
.match { margin: 0 0 14px; padding: 12px 14px; background: #F4F6F7; border-radius: 4px; border: 1px solid var(--line); }
.match-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.match-head b { font-family: var(--font-num); font-size: 1.875rem; line-height: 1; }
.meter { height: 12px; margin: 8px 0 10px; background: #D9DEE2; border-radius: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow-deep), var(--yellow)); border-radius: 6px; transform-origin: left; animation: meter-fill .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes meter-fill { from { transform: scaleX(0); } }
.reasons { list-style: none; margin: 0; padding: 0; font-size: 1rem; line-height: 1.55; }
.reasons li { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; }
.reasons .icon { width: 1.15em; height: 1.15em; fill: var(--ok); margin-top: .15em; }

@media (min-width: 480px) {
  .assist-label { display: inline; }
}
@media (min-width: 640px) {
  .search-form { flex-wrap: nowrap; }
  .search-form label { flex: 1; }
  .search-form .btn { flex: none; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .assistant { padding: 28px 32px 30px; }
  .assistant h1 { font-size: 2rem; }
  .finder-form { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .finder-form .tiles { grid-template-columns: 1fr 1fr; }
  .finder-submit { grid-column: 1 / -1; justify-self: start; width: auto; min-width: 280px; }
  .assistant-compact .finder-form { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .meter i, .mic-btn.is-listening .icon { animation: none; }
}

/* =========================================================
   v4：分享、延遲載入
   ========================================================= */
.share { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; }
.share-title { font-weight: 700; margin: 0 0 10px; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-buttons .btn-line { grid-column: 1 / -1; }
.share-buttons .btn { white-space: normal; text-align: center; padding-left: 12px; padding-right: 12px; }
.btn-line { background: #06C755; border-color: #06C755; color: #fff; }
.btn-line:hover { background: #05A847; border-color: #05A847; color: #fff; }
.share-url { margin: 12px 0 0; font-size: 1rem; color: var(--muted); word-break: break-all; }
.share-url span { font-family: var(--font-num); font-size: 1.125rem; color: var(--ink); user-select: all; -webkit-user-select: all; }
.share-status { margin: 8px 0 0; font-weight: 700; color: var(--ok); }
.share-status:empty { display: none; }
.footer-share .share { background: transparent; border-color: #3E454C; margin-top: 28px; }
.footer-share .share-title { color: var(--yellow); }
.footer-share .btn:not(.btn-line) { background: transparent; color: #fff; border-color: #5D666E; }
.footer-share .share-status { color: #8FE3A8; }
.share-compact .share-buttons { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
  .share-compact .share-buttons { display: flex; flex-wrap: wrap; }
  .share-compact .share-buttons .btn { flex: none; }
}
/* 延遲載入：還沒下載前顯示灰底 */
img.lazy { background: #D3D8DC; }

/* =========================================================
   v5：頁尾地址、寄信
   ========================================================= */
.footer-address { display: inline-flex; gap: 8px; align-items: flex-start; color: #fff; text-decoration: none; }
.footer-address .icon { color: var(--yellow); margin-top: .25em; }
.footer-address span { text-decoration: underline; text-underline-offset: 3px; }
.footer-address small { display: block; font-size: .9375rem; color: #B9C0C6; text-decoration: none; }
.footer-address:hover span { color: var(--yellow); }
.mail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px; border: 2px solid #5D666E; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700; }
.mail-link:hover { border-color: var(--yellow); color: var(--yellow); }
.mail-text { display: block; margin-top: 6px; font-size: .9375rem; color: #B9C0C6; word-break: break-all; }
.mail-text:empty { display: none; }
.info-list .mail-link { border-color: var(--graphite); color: var(--ink); margin-top: 4px; }
.info-list .mail-link:hover { background: var(--concrete); color: var(--ink); }
.info-list .mail-text { color: var(--muted); }

/* =========================================================
   v6：深色 Logo、預設圖、智能選車動畫與入口
   ========================================================= */

/* ---------- 頁首 Logo ---------- */
.logo { gap: 12px; color: #fff; text-decoration: none; }
.logo img { height: 48px; width: auto; max-height: none; }
.logo-name { font-size: 1.375rem; font-weight: 700; letter-spacing: .06em; color: #fff; white-space: nowrap; }
.logo:hover .logo-name { color: var(--yellow); }

/* ---------- 照片預設圖 ---------- */
img.img-fallback { object-fit: cover; background: #2B3035; }
.thumbs img.img-fallback, .mini-list img.img-fallback { object-fit: cover; }
.brand-logo img.img-fallback { height: 80px; width: auto; border-radius: 4px; }

/* ---------- 選單：智能選車黃色按鈕 ---------- */
.site-nav a.nav-smart { background: var(--yellow); color: var(--ink); }
.site-nav a.nav-smart:hover { background: var(--yellow-deep); color: var(--ink); }
.site-nav a.nav-smart[aria-current="page"] { box-shadow: none; color: var(--ink); }
.site-nav a.nav-smart .icon { animation: spark-twinkle 1.8s ease-in-out 1s 3; }

/* ---------- 手機底部：中間凸起的智能選車 ---------- */
.action-bar { grid-template-columns: 1fr 1.1fr 1fr; align-items: end; }
.action-bar a { flex-direction: column; gap: 2px; font-size: 1.0625rem; min-height: 64px; line-height: 1.2; }
.action-bar a .icon { width: 1.5em; height: 1.5em; }
.action-bar .ask { background: var(--steel); }
.action-bar .smart {
  position: relative; margin-top: -18px; min-height: 82px;
  background: #17191C; color: #fff;
  border: 3px solid var(--yellow); border-bottom: 0; border-radius: 18px 18px 0 0;
}
.action-bar .smart .icon { color: var(--yellow); animation: spark-twinkle 1.8s ease-in-out 1.2s 3; }
body.has-action-bar { padding-bottom: 92px; }

/* ---------- 智能選車主視覺 ---------- */
.assistant-top { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.assistant-top .assistant-head { margin-bottom: 0; }
.fs-scene { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }
.fs-ground { stroke: #555E66; stroke-width: 3; stroke-dasharray: 10 8; }
.fs-body { fill: var(--yellow); }
.fs-cab { fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.fs-seat { fill: #3B4249; }
.fs-mast { fill: #C9CFD4; }
.fs-mast2 { fill: #8E979E; }
.fs-steel { fill: #C9CFD4; }
.fs-pallet { fill: #9A7440; }
.fs-card { fill: #fff; }
.fs-label { font-size: 11px; font-weight: 700; fill: #4A5157; text-anchor: middle; font-family: var(--font); }
.fs-pct { font-size: 21px; font-weight: 700; fill: #1C1F22; text-anchor: middle; font-family: var(--font-num); }
.fs-track { fill: #D9DEE2; }
.fs-meter { fill: var(--yellow-deep); }
.fs-wheel circle { fill: #111315; }
.fs-wheel .fs-hub { fill: #9AA3AA; }
.fs-spark { fill: var(--yellow); }

/* 動畫：開進來 → 舉起卡片 → 符合度跑滿 → 星星閃一下（只播一次） */
.fs-truck { animation: fs-drive 1.3s cubic-bezier(.2,.75,.25,1) .2s both; }
.fs-wheel { transform-box: fill-box; transform-origin: center; animation: fs-spin 1.3s cubic-bezier(.2,.75,.25,1) .2s both; }
.fs-lift { animation: fs-lift .8s cubic-bezier(.3,.7,.3,1) 1.5s both; }
.fs-meter { transform-box: fill-box; transform-origin: left; animation: fs-meter 1s ease-out 2.2s both; }
.fs-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: fs-spark 1.4s ease-out both; }
.fs-s1 { animation-delay: 3s; }
.fs-s2 { animation-delay: 3.2s; }
.fs-s3 { animation-delay: 3.35s; }
@keyframes fs-drive { from { transform: translateX(-300px); } }
@keyframes fs-spin { from { transform: rotate(-720deg); } }
@keyframes fs-lift { from { transform: translateY(26px); } }
@keyframes fs-meter { from { transform: scaleX(0); } }
@keyframes fs-spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: 1; transform: scale(1) rotate(90deg); } }
@keyframes spark-twinkle { 50% { transform: scale(1.3) rotate(20deg); } }

/* 首頁主視覺更醒目：黃色光暈邊框 */
.assistant { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245,183,0,.18), inset 0 3px 0 var(--yellow); }

/* ---------- 搜尋頁的智能選車入口 ---------- */
.finder-banner {
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 14px 16px;
  background: var(--graphite); color: #fff; border-radius: var(--radius); text-decoration: none;
  border-left: 6px solid var(--yellow);
}
.finder-banner:hover { color: #fff; background: var(--steel); }
.finder-banner b { display: block; color: var(--yellow); }
.finder-banner-icon { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); border-radius: 10px; }
.finder-banner-go { margin-left: auto; flex: none; padding: 8px 16px; background: var(--yellow); color: var(--ink); border-radius: var(--radius); font-weight: 700; }

@media (min-width: 640px) {
  .assistant-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .fs-scene { width: 300px; flex: none; margin: 0; }
}
@media (min-width: 960px) {
  .logo img { height: 60px; }
  .logo-name { font-size: 1.75rem; }
  .site-nav a.nav-smart { min-height: 44px; margin: 8px 6px; border-radius: 999px; padding: 0 18px; }
  .fs-scene { width: 340px; }
}
@media (max-width: 359px) {
  .logo-name { font-size: 1.125rem; }
  .action-bar a { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-truck, .fs-wheel, .fs-lift, .fs-meter, .fs-spark, .site-nav a.nav-smart .icon, .action-bar .smart .icon { animation: none !important; }
  .fs-spark { opacity: 1; }
}
/* 訊息框裡的按鈕在小螢幕、大字級時可以換行 */
.message > div { min-width: 0; }
.message .btn { white-space: normal; flex-wrap: wrap; }

/* v7：分享按鈕排列、熱門搜尋說明 */
.share:not(.share-compact) [data-native-share] { grid-column: 1 / -1; }
.hot-note { margin: -6px 0 10px; font-size: .9375rem; color: #B9C0C6; }

/* =========================================================
   v8：詢價／留言表單
   ========================================================= */
.inquiry-form { display: grid; gap: 22px; }
.inquiry-form .form-grid { gap: 16px; }
.inquiry-about { margin: 0; padding: 12px 16px; background: var(--yellow-soft); border-left: 5px solid var(--yellow); border-radius: 4px; }
.inquiry-about b { font-family: var(--font-num); font-size: 1.25rem; }
.form-step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 14px; }

/* 常見問題快速按鈕 */
.quick-picks-title { margin: 0 0 8px; font-weight: 700; }
.quick-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  min-height: 52px; padding: 8px 12px;
  background: #fff; color: var(--ink); border: 2px solid #7D868D; border-radius: var(--radius);
  font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; line-height: 1.3;
}
.pick:hover { border-color: var(--graphite); }
.pick[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow-deep); }
.pick[aria-pressed="true"]::before { content: "✓ "; }

/* 聯絡方式群組 */
.contact-set { padding: 16px; background: #F4F6F7; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-set legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 700; font-size: 1.125rem; }
.contact-set legend + * { clear: both; }
.contact-set.has-error { border-color: var(--danger); background: #FDF2F1; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 1rem; margin-left: 6px; }

/* 選填欄位收合 */
.more-fields summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 700; cursor: pointer; list-style: none;
}
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::after { content: "＋ 展開"; font-size: 1rem; }
.more-fields[open] summary::after { content: "－ 收合"; }
.more-fields[open] summary { margin-bottom: 14px; }

/* 錯誤提示 */
.form-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--danger); background: #FDF2F1; border-radius: var(--radius); }
.form-alert[hidden] { display: none; }
.form-alert .icon { fill: var(--danger); width: 1.6em; height: 1.6em; flex: none; }
.form-alert b { color: var(--danger); font-size: 1.125rem; }
.form-alert p { margin: 2px 0 0; }
.field-error { margin: 6px 0 0; color: var(--danger); font-weight: 700; font-size: 1rem; }
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); background: #FFFBFA; }
.field-captcha .captcha-q { font-family: var(--font-num); font-size: 1.375rem; background: var(--yellow-soft); padding: 0 8px; border-radius: 4px; }
.inquiry-submit[disabled] { opacity: .7; cursor: wait; }
.inquiry-form .form-note { margin: -8px 0 0; }

@media (min-width: 640px) {
  .quick-picks { grid-template-columns: repeat(4, 1fr); }
  .contact-set .form-grid { grid-template-columns: 1fr 1fr; }
}
/* 聯絡頁右欄較窄：常見問題維持兩欄 */
@media (min-width: 960px) {
  .contact-grid .quick-picks { grid-template-columns: 1fr 1fr; }
}
