/* ── 主題色：要換網站配色，改這一段就好 ─────────────── */
:root {
  --ink: #031631;
  --ink-2: #072247;
  --ink-3: #12305d;
  --text: #1d2433;
  --muted: #5d6878;
  --line: #e3e7ee;
  --field: #cfd6e0;
  --bg: #f4f6f9;
  --soft: #eef1f5;
  --accent: #0b63ce;
  --accent-d: #084c9e;
  --accent-l: #e8f1fd;
  --cyan: #4cc9ff;
  /* 綠色只用在「適用、成功」這類狀態 */
  --ok: #12a678;
  --ok-d: #07694c;
  --ok-l: #e6f8f1;
  --ok-line: #b7ead7;
  --amber: #f5b301;
  --red: #e5484d;
  --red-l: #fdecec;
  --blue-l: #eef2ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --wrap: 1240px;
  --font: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, -apple-system, sans-serif;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6878' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ── 基本 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(11, 99, 206, .55); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.i { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
main { min-height: 60vh; padding-bottom: 64px; outline: none; }
.page { padding-top: 14px; }
.narrow { max-width: 880px; }
.noscript { text-align: center; padding: 40px; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.boot-spin { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 按鈕與表單 ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 700; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-d); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .i { width: 18px; height: 18px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--field); }
.btn-outline:hover { background: #fff; border-color: var(--text); }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.link { padding: 0; border: 0; background: none; color: var(--accent-d); font-weight: 600; }
.link:hover { text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(127, 127, 127, .14); }

select { appearance: none; background: #fff var(--chev) no-repeat right 10px center / 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.field i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); background-color: #fff;
}
.field select { padding-right: 36px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .vs select:focus, .f-price input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 99, 206, .18);
}
.validated .field :invalid { border-color: var(--red); }

/* ── 頁首 ─────────────────────────────────────────── */
.topbar { background: #020d1f; color: #aeb8c7; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-msg { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar-msg .i { width: 16px; height: 16px; color: var(--cyan); }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a:hover { color: #fff; }
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 12px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 12.5px; cursor: pointer;
}
.lang-btn .i { flex: none; width: 15px; height: 15px; }
.lang-btn .lang-caret { width: 12px; height: 12px; transform: rotate(90deg); opacity: .8; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(-90deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 150; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(10, 22, 40, .18);
}
.lang-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--soft); outline: none; }
.lang-list button[aria-checked="true"] { font-weight: 700; }
.lang-list .i { width: 16px; height: 16px; color: var(--accent); }

.mainbar { background: var(--ink); color: #fff; }
.mainbar-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.menu-btn { display: none; color: #fff; }
.logo { display: flex; flex: none; align-items: center; gap: 10px; }
.logo-mark { width: auto; height: 40px; }
.logo-word { width: auto; height: 17px; }

.search { position: relative; display: flex; flex: 1; max-width: 640px; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 2px solid transparent; border-radius: 10px 0 0 10px; background: #fff; color: var(--text); }
.search input:focus { outline: none; border-color: var(--accent); }
.search button { display: grid; place-items: center; width: 56px; border: 0; border-radius: 0 10px 10px 0; background: var(--accent); color: #fff; }
.search button:hover { background: var(--accent-d); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; padding: 8px; border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.chip:hover, .chip:focus { background: var(--accent-l); color: var(--accent-d); outline: none; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.sg-item:hover, .sg-item:focus { background: var(--soft); outline: none; }
.sg-item img { width: 44px; height: 44px; padding: 4px; border-radius: 6px; background: var(--soft); }
.sg-item b { display: block; font-size: 14px; font-weight: 600; }
.sg-item small { color: var(--muted); font-size: 12px; }
.sg-all { display: block; padding: 10px 8px 4px; color: var(--accent-d); font-size: 14px; font-weight: 700; }
.sg-empty { margin: 0; padding: 8px; color: var(--muted); }

.hactions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hbtn { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.hbtn:hover { background: rgba(255, 255, 255, .08); }
.hbtn .i { width: 24px; height: 24px; }
.hb-text { display: flex; flex-direction: column; line-height: 1.25; }
.hb-text small { color: #9aa6b8; font-size: 12px; }
.hb-text b { max-width: 140px; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  position: absolute; top: 2px; left: 24px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800;
}

.catnav { position: relative; z-index: 40; background: var(--ink-2); color: #dfe5ee; border-top: 1px solid rgba(255, 255, 255, .06); }
.catnav-in { display: flex; align-items: stretch; }
.cn-link { display: flex; align-items: center; height: 46px; padding: 0 13px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.cn-item:hover > .cn-link, .cn-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cn-extra { color: var(--cyan); }
.cn-item + .cn-extra { margin-left: auto; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(6px);
  background: #fff; color: var(--text); border-top: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
  transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.cn-item:hover .mega, .cn-item:focus-within .mega { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: .08s; }
.mega-in { display: flex; justify-content: space-between; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 24px 20px; }
.mega-list { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); align-content: start; gap: 4px 32px; }
.mega-list a { padding: 6px 0; font-size: 15px; }
.mega-list a:hover { color: var(--accent-d); }
.mega-all { font-weight: 700; color: var(--accent-d); }
.mega-img { width: 170px; height: 170px; padding: 18px; border-radius: 16px; background: var(--soft); }
.drawer-head, .drawer-foot, .scrim { display: none; }

/* ── 車款列與選單 ─────────────────────────────────── */
.vbar { background: #fff; border-bottom: 1px solid var(--line); }
.vbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 62px; padding-top: 9px; padding-bottom: 9px; }
.vbar-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-l); color: var(--accent-d); flex: none; }
.vbar-label { font-weight: 600; }
.vbar .vs { flex: 1; min-width: 300px; }
.vbar.has-v { background: var(--accent-l); border-color: #cfe0f7; }
.vbar.has-v .vbar-icon { background: #fff; }
.vbar-v { font-size: 16px; }
.vbar-acts { display: flex; gap: 18px; margin-left: auto; color: var(--accent-d); font-size: 14px; font-weight: 600; }
.vbar-acts a:hover { text-decoration: underline; }

.vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.vs-f span { display: none; }
.vs select { width: 100%; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); background-color: #fff; }
.vs select:disabled { background-color: var(--soft); color: #98a2b3; cursor: not-allowed; }
.vs-stacked { grid-template-columns: 1fr; gap: 12px; }
.vs-stacked .vs-f span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.vs-stacked select { height: 48px; }
.vs-stacked .btn { height: 50px; font-size: 16px; }

/* ── 首頁 ─────────────────────────────────────────── */
.hero {
  overflow: hidden; color: #fff;
  background: radial-gradient(900px 420px at 85% -10%, #0d4a9e 0%, transparent 65%), linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 52px; }
.hero-copy { align-self: stretch; display: flex; flex-direction: column; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.hero h1 { margin-bottom: 16px; font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.5px; }
.hero-lead { max-width: 560px; margin: 0 0 22px; color: #b9c3d2; font-size: 17px; }
.hero-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: #dfe5ee; }
.hero-points .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(11, 99, 206, .18); color: var(--cyan); }
.hero-car { width: 100%; max-width: 560px; height: auto; margin-top: auto; padding-top: 24px; margin-bottom: -6px; }
.hero-card { position: relative; margin-bottom: 52px; padding: 26px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 22px; }
.hero-card h2 .i { width: 26px; height: 26px; color: var(--accent); }
.hc-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.hc-current { margin: 14px 0 0; font-size: 14px; }
.hc-current a { color: var(--accent-d); font-weight: 700; }

.section { padding-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 24px; }
.sec-more { color: var(--accent-d); font-weight: 700; white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px 16px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.ct-img { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--soft); }
.ct-img img { width: 72%; height: 88%; object-fit: contain; }
.ct-name { font-weight: 700; }

.steps { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 32px; padding: 32px; border-radius: 18px; background: var(--ink); color: #fff; }
.steps-head h2 { font-size: 26px; }
.steps-head p { margin: 0; color: #aeb8c7; }
.steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .05); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); font-weight: 800; }
.steps li b { display: block; margin-bottom: 4px; }
.steps li p { margin: 0; color: #aeb8c7; font-size: 14px; }

.make-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.make-grid-lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 20px; }
.make-tile, .model-tile, .year-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center;
  transition: border-color .15s, color .15s;
}
.make-tile:hover, .model-tile:hover, .year-tile:hover { border-color: var(--accent); color: var(--accent-d); }
.make-tile b { font-size: 15px; }
.make-tile small, .make-tile em, .model-tile small { color: var(--muted); font-size: 12px; font-style: normal; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.model-tile { padding: 14px 16px; text-align: left; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 16px; }
.year-tile { font-size: 17px; font-weight: 700; }
.vs-card { margin: 12px 0 8px; }

.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { padding: 14px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-3); font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.brand-chip:hover { border-color: var(--accent); color: var(--accent-d); }
.brand-chip img { max-height: 28px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.brand-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brand-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.bc-name { font-size: 20px; font-weight: 800; }
.brand-card small { color: var(--muted); }
.brand-card p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; }
.brand-card em { color: var(--accent-d); font-size: 14px; font-style: normal; font-weight: 700; }

.assure-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.assure-row > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.assure-row .i { width: 28px; height: 28px; margin-bottom: 8px; color: var(--accent-d); }
.assure-row b { display: block; margin-bottom: 4px; }
.assure-row p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 商品卡片 ─────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: #d3d9e2; box-shadow: var(--shadow); }
.pc-img { position: relative; display: block; aspect-ratio: 1; background: var(--soft); }
.pc-img img { width: 100%; height: 100%; padding: 14%; object-fit: contain; transition: transform .25s; }
.pcard:hover .pc-img img { transform: scale(1.04); }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.tag-sale { background: var(--red); color: #fff; }
.tag-new { background: var(--ink); color: #fff; }
.wish-btn {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--muted); box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.wish-btn:hover, .wish-btn.on { color: var(--red); }
.wish-btn.on .i { fill: currentColor; }
.pc-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.pc-brand { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.pc-name { display: -webkit-box; min-height: 2.8em; overflow: hidden; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-name:hover { color: var(--accent-d); }
.pc-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 4px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.p-now { color: var(--ink); font-size: 18px; font-weight: 800; }
.p-was { color: #98a2b3; font-size: 13px; }
.price-ask { color: var(--muted); font-size: 14px; font-weight: 700; }
.price-lg .p-now { font-size: 30px; }
.price-lg .p-was { font-size: 16px; }
.price-ask.price-lg { color: var(--text); font-size: 22px; }
.fit { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.fit .i { width: 14px; height: 14px; stroke-width: 3; }
.fit-yes { background: var(--ok-l); color: var(--ok-d); }
.fit-uni { background: var(--blue-l); color: #3a4aa6; }
.fit-no { background: var(--red-l); color: #b42318; }

/* ── 列表頁 ───────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--accent-d); }
.crumbs [aria-current] { color: var(--text); }
.list-head { margin: 6px 0 18px; }
.list-head h1 { margin: 0 0 4px; font-size: 28px; }
.list-intro { margin: 0; color: var(--muted); }
.sub-tiles { display: flex; gap: 10px; margin-bottom: 18px; padding-bottom: 6px; overflow-x: auto; }
.sub-tile { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.sub-tile:hover { border-color: var(--accent); color: var(--accent-d); }
.sub-tile img { width: 36px; height: 36px; padding: 4px; border-radius: 50%; background: var(--soft); }

.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 24px; }
.filters { position: sticky; top: 12px; padding: 4px 16px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.f-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.f-clear { color: var(--accent-d); font-size: 13px; font-weight: 600; }
.f-box { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-box:last-child { border-bottom: 0; }
.f-box h3 { margin: 0 0 8px; font-size: 14px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.fopt:hover .fo-l { color: var(--accent-d); }
.fo-l { flex: 1; }
.fopt em { color: #98a2b3; font-size: 12px; font-style: normal; }
.check, .radio { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border: 2px solid #c3cad5; background: #fff; }
.check { border-radius: 5px; }
.radio { border-radius: 50%; }
.fopt.on .fo-l { font-weight: 700; }
.fopt.on .check { border-color: var(--accent); background: var(--accent); }
.fopt.on .check::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.fopt.on .radio { border-color: var(--accent); }
.fopt.on .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.f-price { display: flex; align-items: center; gap: 6px; }
.f-price input { flex: 1; width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--field); border-radius: 6px; }
.f-fitinfo { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--ok-d); font-size: 14px; font-weight: 600; }
.f-fitinfo .i { width: 18px; height: 18px; margin-top: 2px; stroke-width: 3; }
.f-fitinfo.muted { color: var(--muted); font-weight: 400; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #c3cad5; transition: background .15s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 3px solid rgba(11, 99, 206, .55); outline-offset: 2px; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.t-count { color: var(--muted); font-size: 14px; }
.t-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }
.t-sort select { height: 36px; padding: 0 34px 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); }
.filter-toggle { display: none; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; color: var(--muted); text-align: center; }
.empty p { margin: 0; }
.empty-i { width: 48px; height: 48px; color: #c3cad5; }
.empty-sm { padding: 20px 0; color: var(--muted); }
.nf-code { margin: 0; color: #d0d5dd; font-size: 72px; font-weight: 900; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager .on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }

/* ── 商品頁 ───────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin-top: 8px; }
.gallery { position: sticky; top: 12px; align-self: start; }
.g-main { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.g-main img { width: 100%; height: 100%; padding: 12%; object-fit: contain; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.g-thumbs button { width: 72px; height: 72px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.g-thumbs button.on { border-color: var(--accent); }
.pd-brand { color: var(--accent-d); font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.pd-title { margin: 6px 0 8px; font-size: 28px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.pd-note { margin: 6px 0 18px; color: var(--muted); font-size: 13px; }
.fitbox { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid; border-radius: 12px; }
.fitbox > .i { width: 24px; height: 24px; stroke-width: 2.5; }
.fitbox b { display: block; }
.fitbox p { margin: 2px 0 0; font-size: 14px; }
.fitbox a, .fitbox .link { color: inherit; font-weight: 600; text-decoration: underline; }
.fb-yes { border-color: var(--ok-line); background: var(--ok-l); color: var(--ok-d); }
.fb-no { border-color: #f6c9c9; background: var(--red-l); color: #a3231c; }
.fb-uni { border-color: #d3dafb; background: var(--blue-l); color: #34449a; }
.fb-ask { display: block; border-color: var(--line); background: #fff; }
.fb-ask > b { margin-bottom: 10px; }
.fb-ask .vs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fb-ask .vs .btn { grid-column: 1 / -1; }
.pd-form { display: grid; gap: 14px; }
.pd-row { display: flex; align-items: stretch; gap: 10px; }
.pd-add { flex: 1; }
.pd-row .wish-btn { position: static; width: 50px; height: 50px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: #fff; box-shadow: none; }
.qty { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--field); border-radius: var(--radius-sm); background: #fff; }
.qty button { display: grid; place-items: center; width: 42px; height: 48px; border: 0; background: transparent; }
.qty button:hover:not(:disabled) { background: var(--soft); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty button .i { width: 16px; height: 16px; }
.qty input { width: 46px; height: 48px; border: 0; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.qty input:focus { outline: none; background: var(--soft); }
.qty-sm button { width: 34px; height: 38px; }
.qty-sm input { width: 40px; height: 38px; }
.pd-assure { display: grid; gap: 10px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; list-style: none; }
.pd-assure li { display: flex; align-items: center; gap: 10px; }
.pd-assure .i { color: var(--accent-d); }
.pd-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; margin-top: 40px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg); }
.pd-tabs button { padding: 14px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pd-tabs button:hover { border-bottom-color: var(--accent); color: var(--text); }
.pd-sections { display: grid; gap: 16px; padding-top: 16px; }
.pd-sec { scroll-margin-top: 64px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pd-sec h2 { font-size: 20px; }
.pd-sec p { margin: 0 0 10px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.specs div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { flex: none; width: 40%; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.fit-table, .q-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fit-table th, .fit-table td, .q-table th, .q-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.fit-table th, .q-table th { background: var(--soft); color: var(--muted); font-size: 13px; }
.fit-table tbody tr:hover { background: #fafbfc; }

/* ── 購物車、詢價單 ───────────────────────────────── */
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-title { margin: 0 0 12px; font-size: 18px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; }
.cart-lines { padding: 4px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 110px; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cl-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--soft); }
.cl-img img { width: 80%; height: 80%; object-fit: contain; }
.cl-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cl-name { font-weight: 700; }
.cl-name:hover { color: var(--accent-d); }
.cl-meta, .cl-unit { color: var(--muted); font-size: 13px; }
.cl-veh { display: inline-flex; align-items: center; gap: 6px; color: var(--ok-d); font-size: 13px; font-weight: 600; }
.cl-veh .i { width: 16px; height: 16px; }
.cl-acts { display: flex; gap: 16px; margin-top: 2px; font-size: 13px; }
.cl-acts .link { color: var(--muted); font-weight: 500; }
.cl-acts .link:hover { color: var(--text); }
.cl-total { font-size: 16px; font-weight: 800; text-align: right; }
.cart-clear { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0; color: var(--muted); font-weight: 500; }
.cart-clear .i { width: 16px; height: 16px; }
.summary { position: sticky; top: 12px; display: grid; gap: 14px; }
.summary .card-title { margin: 0; }
.sum-rows { display: grid; gap: 8px; margin: 0; font-size: 14px; }
.sum-rows div { display: flex; justify-content: space-between; gap: 12px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 700; }
.sum-ask dd { color: #b54708; }
.summary p { margin: 0; }
.sum-more { color: var(--accent-d); font-size: 14px; font-weight: 600; text-align: center; }
.mini-lines { display: grid; gap: 12px; max-height: 360px; margin: 0; padding: 0 0 12px; overflow: auto; border-bottom: 1px solid var(--line); list-style: none; }
.mini-lines li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.mini-lines img { width: 48px; height: 48px; padding: 4px; border-radius: 8px; background: var(--soft); }
.mini-lines b { display: block; font-weight: 600; }
.mini-lines small { display: block; color: var(--muted); }
.mini-lines span { font-weight: 700; white-space: nowrap; }

.co-form { display: grid; gap: 8px; padding: 24px; }
.co-form fieldset { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; border: 0; }
.co-form legend { margin-bottom: 12px; padding: 0; font-size: 17px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 18px; border: 1px solid var(--field); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(11, 99, 206, .55); outline-offset: 2px; }
.co-vehicles { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent-d); font-size: 14px; font-weight: 600; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 10px; font-size: 14px; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.consent a { color: var(--accent-d); text-decoration: underline; }
.validated .consent input:invalid + span { color: var(--red); }
.co-error { margin-bottom: 8px; padding: 12px 14px; border: 1px solid #f6c9c9; border-radius: 10px; background: var(--red-l); color: #a3231c; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 24px 0 8px; text-align: center; }
.done-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 10px 30px rgba(18, 166, 120, .35); }
.done-icon .i { width: 38px; height: 38px; stroke-width: 3; }
.done-no { font-size: 18px; }
.done-no b { padding: 2px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; }
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.next-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 14px; }
.next-steps .i { color: var(--accent-d); }
.done-acts { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.q-table { background: #fff; }
.q-table small { display: block; color: var(--muted); font-size: 12px; }
.q-table tfoot td { border-bottom: 0; font-weight: 800; }
.q-card { margin-bottom: 12px; padding: 0; }
.q-card summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 20px; cursor: pointer; list-style: none; }
.q-card summary::-webkit-details-marker { display: none; }
.q-card summary b { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.q-card summary span { color: var(--muted); font-size: 14px; }
.q-card .q-sum { margin-left: auto; color: var(--text); font-weight: 800; }
.q-card .table-wrap { padding: 0 20px 16px; }

/* ── 車庫、說明頁 ─────────────────────────────────── */
.g-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.g-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.g-item.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-l); }
.g-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--muted); }
.g-item.on .g-icon { background: var(--accent-l); color: var(--accent-d); }
.g-info { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.g-info b { font-size: 16px; }
.pill { padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.g-acts { display: flex; align-items: center; gap: 8px; }
.prose { padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose h2 { margin-top: 22px; font-size: 18px; }
.prose p, .prose li { color: #344054; }
.prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.contact-cards .card { display: flex; flex-direction: column; gap: 4px; }
.contact-cards .i { color: var(--accent-d); }

/* ── 頁尾、提示 ───────────────────────────────────── */
#site-footer { background: var(--ink); color: #aeb8c7; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.foot-logo { display: inline-block; margin-bottom: 14px; }
.foot-logo img { width: 200px; height: auto; }
.foot-brand p { max-width: 320px; margin: 0; font-size: 14px; }
#site-footer h3 { margin-bottom: 12px; color: #fff; font-size: 15px; }
#site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; font-size: 14px; list-style: none; }
#site-footer a:hover { color: #fff; }
#site-footer .foot-contact { margin-top: 16px; }
.foot-contact li { display: flex; align-items: center; gap: 8px; }
.foot-contact .i { width: 16px; height: 16px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.foot-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: #3ddc97; }
.toast-warn .i { color: var(--amber); }
.toast a { margin-left: 4px; color: var(--cyan); font-weight: 700; white-space: nowrap; }

/* ── 平板 ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .make-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-link { padding: 0 9px; font-size: 14px; }
}

@media (max-width: 960px) {
  .hb-garage .hb-text, .hb-cart .hb-text, .hb-account .hb-text { display: none; }
  .menu-btn { display: inline-grid; }
  .catnav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(86vw, 340px); overflow-y: auto;
    background: #fff; color: var(--text); border: 0; transform: translateX(-100%); transition: transform .25s;
  }
  .menu-open .catnav { transform: none; }
  .menu-open { overflow: hidden; }
  .catnav-in { flex-direction: column; padding: 0; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 16px; background: var(--ink); color: #fff; }
  .cn-link { height: auto; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .cn-item:hover > .cn-link, .cn-link:hover { background: var(--soft); color: inherit; }
  .mega { display: none; }
  .cn-extra { color: var(--accent-d); }
  .cn-item + .cn-extra { margin-left: 0; }
  .drawer-foot { display: grid; gap: 2px; padding: 12px 16px 24px; }
  .drawer-foot a { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
  .drawer-foot .lang-menu { margin-top: 10px; }
  .drawer-foot .lang-btn { width: 100%; justify-content: center; padding: 10px 14px; border-color: var(--line); background: var(--soft); color: var(--text); font-size: 14px; }
  .drawer-foot .lang-list { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; }
  .scrim { position: fixed; inset: 0; z-index: 80; display: block; background: rgba(5, 10, 20, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }

  .hero-in { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .hero-car { display: none; }
  .hero-card { margin-bottom: 36px; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .listing.show-filters .filters { display: block; }
  .filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .specs { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 手機 ─────────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .mainbar-in { flex-wrap: wrap; gap: 8px 6px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
  .menu-btn { margin-left: -8px; }
  .logo { margin-right: auto; gap: 8px; }
  .logo-mark { height: 28px; }
  .logo-word { height: 11px; }
  .search { flex-basis: 100%; order: 5; max-width: none; }
  .search input { height: 42px; }
  .hactions { gap: 0; margin-left: 0; }
  .hbtn { padding: 6px; }
  .hb-wish { display: none; }
  .vs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .vs > .btn { grid-column: 1 / -1; }
  .vs-stacked { grid-template-columns: 1fr; }
  .vbar .vs { flex-basis: 100%; min-width: 0; }
  .vbar-acts { width: 100%; margin-left: 0; }
  .vbar-icon { width: 30px; height: 30px; }
  .vbar-icon .i { width: 18px; height: 18px; }
  .section { padding-top: 32px; }
  .sec-head h2 { font-size: 20px; }
  .cat-grid { grid-template-columns: none; grid-auto-columns: 128px; grid-auto-flow: column; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; }
  .make-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .make-tile { padding: 10px 4px; }
  .make-tile b { font-size: 13px; }
  .steps { padding: 22px; }
  .steps ol { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-body { padding: 10px; }
  .p-now { font-size: 16px; }
  .pcard .btn-sm { padding: 0 8px; font-size: 13px; }
  .list-head h1 { font-size: 22px; }
  .t-sort > span { display: none; }
  .pd-title { font-size: 22px; }
  .price-lg .p-now { font-size: 26px; }
  .pd-sec { padding: 18px; }
  .cart-lines { padding: 0 14px; }
  .cline { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px 12px; }
  .cl-img { grid-row: span 2; align-self: start; }
  .cl-info { grid-column: 2 / 4; }
  .cl-total { font-size: 15px; }
  .co-form { padding: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .g-item { flex-wrap: wrap; }
  .g-acts { justify-content: flex-end; width: 100%; }
  .prose { padding: 20px; }
  .foot-grid { gap: 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .done-acts { flex-direction: column; }
  .toast { bottom: 16px; }
}

/* ── 會員 ─────────────────────────────────────────── */
.notice { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #cfe0f7; border-radius: 10px; background: var(--accent-l); color: #12305d; font-size: 14px; }
.notice a { color: var(--accent-d); font-weight: 700; text-decoration: underline; }
.form-err { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #f6c9c9; border-radius: 8px; background: var(--red-l); color: #a3231c; font-size: 14px; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #c4373b; }

.auth { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 360px); justify-content: center; align-items: start; gap: 32px; padding-top: 32px; }
.auth-single { grid-template-columns: minmax(0, 440px); }
.auth-card { padding: 28px; }
.auth-card h1 { margin-bottom: 18px; font-size: 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-links { margin: 14px 0 0; text-align: center; font-size: 14px; }
.auth-links a, .auth-alt a { color: var(--accent-d); font-weight: 700; }
.auth-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.auth-resend { display: block; margin: 14px auto 0; }
.auth-side { padding: 28px 8px; }
.auth-side h2 { font-size: 18px; }
.auth-perks { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.auth-perks li { display: flex; align-items: flex-start; gap: 10px; }
.auth-perks .i { padding: 3px; border-radius: 50%; background: var(--accent-l); color: var(--accent-d); }

.acct-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.acct-head h1 { margin: 0; }
.acct-head p { margin: 4px 0 0; }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acct-tile { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; transition: border-color .15s, box-shadow .15s; }
.acct-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.acct-tile .i { grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--accent-l); color: var(--accent-d); }
.acct-tile b { font-size: 16px; }
.acct-tile span { color: var(--muted); font-size: 14px; }
.verify-card { margin-bottom: 18px; border-color: #f3dc9b; background: #fffaf0; }
.verify-card p { margin: 0 0 12px; }
.verify-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.verify-form input { width: 160px; height: 42px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm); font: 700 18px var(--font); letter-spacing: 4px; text-align: center; }
.verify-form .form-err { flex-basis: 100%; }
.acct-form { margin-bottom: 18px; }
.acct-form .card-title { margin-top: 6px; }
.acct-form .card-title + .grid2, .acct-form .card-title + .addr-list { margin-top: 4px; }
.acct-form h2.card-title:not(:first-child) { margin-top: 22px; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 600; }
.form-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.addr-list { display: grid; gap: 10px; margin-bottom: 12px; }
.addr-row { display: grid; grid-template-columns: 140px 140px minmax(0, 1fr) 40px; gap: 8px; }
.addr-row input { min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--radius-sm); }
.danger-zone summary { color: #b42318; font-weight: 700; cursor: pointer; }
.danger-zone form { margin-top: 14px; }

.st-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-new { background: #fff6e0; color: #8a5a00; }
.st-quoted { background: var(--accent-l); color: var(--accent-d); }
.st-ordered { background: var(--ok-l); color: var(--ok-d); }
.st-closed { background: var(--soft); color: var(--muted); }
.q-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.q-row { display: grid; gap: 6px; transition: border-color .15s; }
.q-row:hover { border-color: var(--accent); }
.q-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.q-main small { margin-left: auto; color: var(--muted); }
.q-names { margin: 0; overflow: hidden; color: #344054; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.q-nums { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.q-nums b { color: var(--text); }
.q-table tr.muted td { color: #98a2b3; }
.q-table .grand td { font-size: 16px; }
.q-note { color: var(--accent-d) !important; }
.pay-box { margin: 12px 0; padding: 14px 16px; border-radius: 10px; background: var(--soft); }
.pay-box p { margin: 6px 0 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; padding-top: 12px; }
  .auth-card { padding: 20px; }
  .auth-side { padding: 0 4px; }
  .acct-grid { grid-template-columns: 1fr; }
  .addr-row { grid-template-columns: 1fr 1fr 40px; }
  .addr-row input[name="address"] { grid-column: 1 / 3; }
  .addr-row [data-addr-del] { grid-column: 3; grid-row: 1 / span 2; }
}

/* 很窄的手機：只留圖示，避免右上角按鈕被擠到第二行 */
@media (max-width: 350px) {
  .logo-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 加入購物車：數量視窗 */
.add-dlg { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-x: hidden; overflow-y: auto; padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(10, 22, 40, .3); }
.add-dlg::backdrop { background: rgba(10, 18, 30, .45); }
.add-box { position: relative; display: grid; gap: 14px; padding: 22px; }
.add-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); color: var(--text); cursor: pointer; }
.add-x .i { width: 18px; height: 18px; }
.add-head { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; padding-right: 30px; }
.add-head img { width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.add-brand { margin: 0 0 6px; color: var(--cyan, #d16e2b); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.add-name { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.add-price { margin: 0; font-size: 18px; font-weight: 800; }
.add-hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.add-qty { width: max-content; }
.add-sum { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.add-sum b { color: var(--text); font-size: 19px; }
.add-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .add-head { grid-template-columns: 84px 1fr; } .add-head img { width: 84px; height: 84px; } .add-actions .btn { flex: 1; } }

/* 批發合作 */
.ws-head { max-width: 760px; margin-bottom: 20px; }
.ws-head h1 { margin: 0 0 8px; }
.ws-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 24px; }
.ws-side { display: grid; gap: 16px; padding: 22px; }
.ws-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ws-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.ws-points .i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-l); color: var(--accent); }
.ws-done { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 10px auto; padding: 36px 24px; text-align: center; }
.ws-done > .i { width: 46px; height: 46px; color: #12a150; }
.ws-done h2 { margin: 0; }
@media (max-width: 900px) { .ws-layout { grid-template-columns: 1fr; } .ws-side { order: 2; } }

/* 購物車 PDF 預覽 */
.pdf-dlg { width: min(960px, calc(100vw - 32px)); height: calc(100vh - 32px); max-height: none; padding: 0; border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 22, 40, .3); }
.pdf-dlg::backdrop { background: rgba(10, 18, 30, .5); }
.pdf-box { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.pdf-box header { position: relative; padding: 16px 60px 12px 20px; }
.pdf-box h2 { margin: 0 0 4px; font-size: 18px; }
.pdf-box header p { margin: 0; color: var(--muted); font-size: 13.5px; }
.pdf-box iframe { width: 100%; height: 100%; border: 0; background: #e8ecf1; }
.pdf-box footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }

/* 註冊：圖片驗證碼、6 格 Email 驗證碼 */
.field > label { font-size: 14px; font-weight: 700; }
.field .opt { color: var(--muted); font-style: normal; font-weight: 400; font-size: 13px; }
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-row input { flex: 1; min-width: 0; letter-spacing: 2px; }
.cap-img { width: 150px; height: 50px; border: 1px solid var(--line); border-radius: 8px; background: #f3f6fa; cursor: pointer; flex: none; }
.cap-new { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
.cap-new:hover { color: inherit; border-color: currentColor; }
.cap-new svg { width: 18px; height: 18px; }
[data-send-code] { gap: 8px; }
[data-send-code] svg { width: 18px; height: 18px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 360px; }
.field .otp input { width: 100%; min-width: 0; padding: 10px 0; text-align: center; font: 700 22px/1.2 Consolas, ui-monospace, monospace; }
@media (max-width: 420px) { .cap-img { width: 120px; height: 40px; } }

/* 註冊／會員資料：姓名兩格、國碼＋電話 */
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-wide { grid-column: 1 / -1; }
.phone-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; }
.phone-row select { min-width: 0; }
.field-err { color: var(--red); font-size: 12.5px; font-weight: 600; }
.field input[aria-invalid="true"] { border-color: var(--red); }
@media (max-width: 420px) { .phone-row { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); } }
