/* ── 主題色：要換網站配色，改這一段就好 ─────────────── */
:root {
  --ink: #07182b;
  --ink-2: #0a2039;
  --ink-3: #0e2b47;
  --navy: #102d4d;
  --text: #102139;
  --muted: #60748a;
  --line: #dce5ed;
  --field: #cbdce8;
  --bg: #f5f8fa;
  --soft: #edf3f7;
  --tint: #f6f9fc;
  --accent: #087eb8;
  --accent-d: #07598f;
  --accent-l: #e9f6fc;
  --cyan: #20b5e7;
  --sky: #77d9fa;
  --grad: linear-gradient(110deg, #137fbb, #07598f);
  --deep: linear-gradient(105deg, #061b32, #0e416b 75%, #126996);
  /* 綠色只用在「適用、成功」這類狀態 */
  --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 5px 15px rgba(21, 51, 78, .03);
  --shadow-up: 0 12px 28px rgba(21, 51, 78, .08);
  --wrap: 1240px;
  --font: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, 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='%2360748a' 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%; scroll-behavior: smooth; }
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; }
h1, h2 { letter-spacing: -.02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(8, 126, 184, .5); 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: 72px; 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); } }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

/* ── 按鈕與表單 ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--grad); color: #fff; font-weight: 800; white-space: nowrap;
  transition: filter .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn .i { width: 18px; height: 18px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #0b5d8a; filter: none; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--field); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-d); filter: none; }
.btn-line { background: #fff; color: #087cb8; border-color: #0a87bf; }
.btn-line:hover { background: #eaf7fc; filter: none; }
.btn-line .i { width: 16px; height: 16px; margin-left: auto; }
.btn-ghost { background: transparent; color: #9be2ff; border-color: #2d9acb; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); filter: none; }
.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: 700; }
.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: #fafdff;
}
.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(8, 126, 184, .16);
}
.validated .field :invalid { border-color: var(--red); }

/* ── 頁首 ─────────────────────────────────────────── */
.topbar { background: var(--ink); color: #b6cad9; font-size: 12.5px; letter-spacing: .02em; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar-msg { display: flex; align-items: center; gap: 14px; margin: 0; min-width: 0; }
.topbar-msg b { color: #fff; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.topbar-msg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-links { display: flex; flex: none; align-items: center; gap: 18px; }
.topbar-links a:hover { color: #fff; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 12.5px;
}
.lang-btn .i { width: 15px; height: 15px; }
.cur-switch { display: inline-flex; padding: 2px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.cur-switch button { padding: 1px 10px; border: 0; border-radius: 999px; background: transparent; color: #b6cad9; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; }
.cur-switch button:hover { color: #fff; }
.cur-switch button.on { background: var(--cyan); color: #05223a; }

.mainbar { position: relative; z-index: 45; background: #fff; color: var(--text); box-shadow: 0 8px 30px rgba(7, 28, 49, .06); }
.mainbar-in { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.menu-btn { display: none; color: var(--ink-3); }
.logo { display: flex; flex: none; align-items: center; gap: 10px; }
.logo-img { width: auto; height: 42px; }

.search { position: relative; display: flex; flex: 1; max-width: 620px; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--tint); color: var(--text); }
.search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(8, 126, 184, .12); }
.search button { display: grid; place-items: center; width: 56px; border: 0; border-radius: 0 10px 10px 0; background: var(--grad); color: #fff; }
.search button:hover { filter: brightness(1.12); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 18px 44px rgba(7, 28, 49, .16); }
.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: 3px; border-radius: 6px; background: var(--tint); object-fit: contain; }
.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; color: var(--ink-3); }
.hbtn:hover { background: var(--soft); }
.hbtn .i { width: 24px; height: 24px; }
.hb-text { display: flex; flex-direction: column; line-height: 1.25; }
.hb-text small { color: var(--muted); font-size: 12px; }
.hb-text b { max-width: 140px; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hb-cart { margin-left: 6px; padding: 9px 14px; border-radius: 9px; background: var(--navy); color: #fff; }
.hb-cart:hover { background: #0b5d8a; }
.hb-cart .hb-text small { color: #a9c4da; }
.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(--cyan); color: #05223a; font-size: 11px; font-weight: 800;
}
.hb-cart .badge { top: 3px; left: 30px; box-shadow: 0 0 0 2px var(--navy); }

.catnav { position: relative; z-index: 40; background: #fff; color: #17334f; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* 分類太多放不下時可以左右滑；下拉選單的定位是 .catnav，不會被裁掉 */
.catnav-in { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.cn-link { display: flex; align-items: center; height: 46px; padding: 0 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cn-item:hover > .cn-link, .cn-link:hover { color: var(--accent); box-shadow: inset 0 -3px 0 var(--cyan); }
.cn-extra { color: var(--accent); }
.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(--cyan); box-shadow: 0 18px 40px rgba(7, 28, 49, .14);
  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: 2px 32px; }
.mega-list a { padding: 6px 0; font-size: 14.5px; }
.mega-list a:hover { color: var(--accent-d); }
.mega-all { font-weight: 800; color: var(--accent-d); }
.mega-photo { display: flex; flex: none; flex-direction: column; gap: 10px; width: 300px; }
.mega-photo img { width: 100%; aspect-ratio: 3 / 2; border-radius: 12px; object-fit: cover; background: #071c33; }
.mega-photo span { color: var(--muted); font-size: 13px; }
.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: 10px; background: var(--accent-l); color: var(--accent); flex: none; }
.vbar-label { font-weight: 700; }
.vbar .vs { flex: 1; min-width: 300px; }
.vbar.has-v { background: var(--accent-l); border-color: #cde6f4; }
.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: 700; }
.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: var(--tint); }
.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, .vs-labeled .vs-f span { display: block; margin-bottom: 6px; color: #26465d; font-size: 12.5px; font-weight: 700; }
.vs-stacked select { height: 48px; }
.vs-stacked .btn { height: 50px; font-size: 16px; }
.vs-labeled { align-items: end; }

/* ── 首頁：大圖、找零件、大分類 ───────────────────── */
.hero {
  position: relative; color: #fff; background-color: #07172d;
  background-image: linear-gradient(90deg, rgba(7, 24, 44, .97) 0%, rgba(7, 24, 44, .91) 29%, rgba(7, 24, 44, .37) 52%, rgba(7, 24, 44, .04) 76%), url('/img/hero/hero.webp');
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 660px; min-height: 540px; padding: 96px 0 128px; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { margin: 8px 0 20px; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.07; letter-spacing: -.05em; font-weight: 800; text-shadow: 0 3px 22px rgba(0, 0, 0, .4); }
.hero-lead { max-width: 545px; margin: 0; color: #c4d7e5; font-size: 16px; line-height: 1.85; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 7px; color: #e0f0fa; font-size: 14px; font-weight: 600; }
.hero-points .i { width: 16px; height: 16px; color: #31c9f5; stroke-width: 3; }
.hero-explore { display: inline-flex; align-items: center; gap: 11px; margin-top: 30px; padding: 0 0 7px; border: 0; border-bottom: 2px solid #38b9e6; background: none; color: #fff; font-size: 14px; font-weight: 800; transition: gap .2s, color .2s; }
.hero-explore:hover { gap: 16px; color: #8de7ff; }
.hero-explore .i { width: 18px; height: 18px; }

.finder-wrap { position: relative; z-index: 2; margin-top: -64px; }
.finder {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 16px 22px; padding: 24px 26px;
  background: #fff; border: 1px solid #d6e5ec; border-top: 4px solid var(--cyan); border-radius: 16px; box-shadow: 0 24px 65px rgba(0, 0, 0, .2);
}
.finder-title { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-right: 14px; border-right: 1px solid var(--line); }
.finder-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #e8f6fb; color: #087faf; }
.finder-title b { display: block; font-size: 18px; }
.finder-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.finder .vs { grid-template-columns: repeat(3, minmax(0, 1fr)) 180px; gap: 12px; }
.finder .vs select { height: 48px; }
.finder .vs .btn { height: 48px; }
.find-form { position: relative; display: flex; gap: 12px; }
.find-form input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--tint); font-size: 16px; }
.find-form input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(8, 126, 184, .14); }
.find-form .btn { height: 52px; padding: 0 26px; }
.finder-current { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.finder-current a { color: var(--accent-d); font-weight: 800; }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; overflow: hidden; border: 1px solid #e0eaf0; border-radius: 13px; background: #fff; box-shadow: 0 8px 32px rgba(11, 50, 67, .05); }
.highlights > div { display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-right: 1px solid #e0eaf0; }
.highlights > div:last-child { border-right: 0; }
.highlights b { color: #11a2d6; font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.highlights span { display: grid; gap: 2px; }
.highlights strong { color: #11304c; font-size: 14px; }
.highlights small { color: var(--muted); font-size: 12px; }

.section { padding-top: 60px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: 24px; color: var(--ink-3); }
.sec-head-lg { align-items: flex-end; margin-bottom: 26px; }
.sec-head-lg h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
.sec-head-lg .eyebrow { margin-bottom: 6px; }
.sec-sub { max-width: 640px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.sec-more { color: var(--accent-d); font-weight: 800; white-space: nowrap; }

.dept-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dept-tile {
  grid-column: span 3; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  background: #071c33; color: #fff; box-shadow: 0 9px 28px rgba(7, 31, 52, .09); transition: box-shadow .2s, transform .2s;
}
.dept-tile.is-big { grid-column: span 4; }
.dept-grid-even .dept-tile.is-big .dept-label { min-height: 128px; }
.dept-tile:hover { outline: 2px solid #2cbbec; box-shadow: 0 16px 36px rgba(6, 47, 80, .25); }
.dept-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #071c33; }
.dept-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dept-tile:hover .dept-photo img { transform: scale(1.035); }
.dept-label { display: flex; flex: 1; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 120px; padding: 16px 18px 18px; background: linear-gradient(120deg, #071b32, #103452); }
.dept-tile.is-big .dept-label { min-height: 142px; padding: 20px 22px 22px; }
.dept-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dept-copy small { color: #78d7f5; font-size: 10px; letter-spacing: .19em; }
.dept-copy strong { font-size: 20px; line-height: 1.2; }
.dept-tile.is-big .dept-copy strong { font-size: 26px; }
.dept-copy em { display: -webkit-box; overflow: hidden; color: #c5d8e7; font-size: 12px; font-style: normal; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dept-subs { margin-top: 4px; color: #8fcfe9; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; }
.dept-arrow { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(156, 220, 242, .45); border-radius: 50%; color: #e9f9ff; }
.dept-arrow .i { width: 18px; height: 18px; }

.steps { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 32px; padding: 32px; border-radius: 16px; background: var(--deep); color: #fff; }
.steps-head h2 { font-size: 26px; }
.steps-head p { margin: 0; color: #c7ddeb; }
.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, .1); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--cyan); color: #05223a; font-weight: 800; }
.steps li b { display: block; margin-bottom: 4px; }
.steps li p { margin: 0; color: #c7ddeb; 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 #dce9f1; border-radius: 10px; background: #fff; text-align: center;
  box-shadow: 0 2px 9px rgba(19, 61, 91, .03); transition: border-color .15s, color .15s, background .15s;
}
.make-tile:hover, .model-tile:hover, .year-tile:hover { border-color: #0d9ed8; background: #eefaff; 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: 12px 20px; border: 1px solid #dce9f1; border-radius: 10px; background: #fff; color: var(--ink-3); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.brand-chip:hover { border-color: #0d9ed8; 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-up); }
.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; }

/* ── 商品卡片 ─────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e8ef; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.pc-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); }
.pc-img img { width: 100%; height: 100%; padding: 8%; object-fit: contain; transition: transform .25s; }
.pcard:hover .pc-img img { transform: scale(1.03); }
.pc-img.is-sample img, .g-main.is-sample img { padding: 0; object-fit: cover; }
.sample-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(4, 20, 38, .72); color: #cfe6f5; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.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(--navy); 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: 16px 16px 18px; }
.pc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pc-cat { padding: 4px 8px; border-radius: 4px; background: var(--accent-l); color: #0c87c2; font-size: 11.5px; font-weight: 800; }
.pc-brand { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pc-name { display: -webkit-box; min-height: 2.8em; margin-top: 4px; overflow: hidden; color: #172b42; font-size: 16px; font-weight: 800; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-name:hover { color: var(--accent); }
.pc-model { margin: 0; color: #7b8da0; font-size: 12.5px; }
.pc-spec { display: -webkit-box; margin: 2px 0 0; padding-top: 9px; overflow: hidden; border-top: 1px solid #eaf0f5; color: #53687d; font-size: 13px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.p-now { color: #0b74ad; 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); }

.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); }

/* ── 分類頁：大分類橫幅、細項卡片 ─────────────────── */
.dept-banner { position: relative; display: flex; align-items: center; gap: 22px; min-height: 150px; margin: 6px 0 22px; padding: 26px 30px; overflow: hidden; border-radius: 16px; background: var(--deep); color: #fff; }
.dept-bg { position: absolute; top: 0; right: 0; width: 48%; height: 100%; object-fit: cover; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.dept-icon { position: relative; display: grid; flex: none; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 15px; background: rgba(255, 255, 255, .08); color: #39c8f4; }
.dept-icon .i { width: 28px; height: 28px; }
.dept-text { position: relative; flex: 1; min-width: 0; }
.dept-text .eyebrow { margin: 0 0 4px; color: #8dd8f2; font-size: 10.5px; }
.dept-text .eyebrow a:hover { color: #fff; text-decoration: underline; }
.dept-text h1 { margin: 0 0 4px; font-size: 29px; }
.dept-text p { max-width: 560px; margin: 0; color: #c7ddeb; font-size: 14px; }
.dept-total { position: relative; align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: rgba(4, 20, 38, .5); color: #cfe6f5; font-size: 13px; white-space: nowrap; }
.subcat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.subcat-head b { color: #132d46; font-size: 17px; }
.subcat-head span { color: var(--muted); font-size: 13px; }
.subcat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.subcat-card { display: flex; align-items: center; gap: 11px; min-height: 70px; padding: 12px; border: 1px solid #dce9f1; border-radius: 9px; background: #fff; color: #17334f; box-shadow: 0 2px 9px rgba(19, 61, 91, .03); transition: border-color .15s, background .15s; }
.subcat-card:hover, .subcat-card.on { border-color: #0d9ed8; background: #eefaff; box-shadow: 0 6px 16px rgba(11, 132, 189, .08); }
.subcat-card.is-empty:not(.on) { opacity: .62; }
.subcat-i { flex: none; width: 26px; color: rgba(44, 161, 205, .45); font-size: 19px; font-weight: 800; letter-spacing: -.07em; }
.subcat-copy { flex: 1; min-width: 0; }
.subcat-copy b { display: block; font-size: 14px; line-height: 1.25; }
.subcat-copy small { display: block; margin-top: 4px; color: #8ba0af; font-size: 11px; }
.subcat-card .i { width: 16px; height: 16px; color: #86b1c6; }

/* ── 商品頁補充、幣別說明 ─────────────────────────── */
.g-main { background: var(--tint); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-highlights { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.pd-highlights li { display: flex; align-items: flex-start; gap: 8px; color: #36516a; font-size: 14px; }
.pd-highlights .i { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); stroke-width: 3; }
.cur-note { margin: 4px 0 14px; padding: 8px 12px; border-radius: 8px; background: var(--accent-l); color: #0c5f8d; font-size: 12.5px; }
.summary .cur-note { margin: 0; }
.cl-img img, .mini-lines img { object-fit: contain; }

/* ── 頁尾、提示 ───────────────────────────────────── */
#site-footer { background: linear-gradient(105deg, #07182d, #0b2d4e); color: #a6bdd0; }
.foot-cta { border-bottom: 1px solid #244057; }
.foot-cta-in { display: flex; align-items: center; gap: 36px; padding-top: 32px; padding-bottom: 32px; }
.foot-logo { display: inline-flex; flex: none; padding: 8px 14px; border-radius: 10px; background: #eaf3fa; }
.foot-logo img { width: 128px; height: auto; }
.foot-cta-copy { flex: 1; }
.foot-cta-copy strong { color: #fff; font-size: 20px; }
.foot-cta-copy p { margin: 6px 0 0; color: #a6bdd0; font-size: 14px; line-height: 1.6; }
.foot-cta .btn .i { width: 17px; height: 17px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 34px; }
.foot-brand h3 { letter-spacing: .12em; text-transform: uppercase; }
.foot-brand p { max-width: 320px; margin: 0; font-size: 14px; }
#site-footer h3 { margin-bottom: 12px; color: #fff; font-size: 14px; }
#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 #244057; color: #7893a9; font-size: 12.5px; }
.foot-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 20px; }

.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-2); 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(--sky); font-weight: 700; white-space: nowrap; }

/* ── 平板 ─────────────────────────────────────────── */
@media (max-width: 1280px) {
  .cn-link { padding: 0 9px; font-size: 13.5px; }
}

@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)); }
  .cn-link { padding: 0 8px; font-size: 13.5px; }
  .topbar-msg span { display: none; }
}

@media (max-width: 1050px) {
  .finder { grid-template-columns: 180px minmax(0, 1fr); }
  .finder .vs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finder .vs .btn { grid-column: 1 / -1; }
  .dept-tile, .dept-tile.is-big { grid-column: span 4; }
  .subcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hb-garage .hb-text, .hb-cart .hb-text, .hb-account .hb-text { display: none; }
  .hb-cart { padding: 9px 11px; }
  .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; box-shadow: none; }
  .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-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
  .drawer-prefs .lang-btn { flex: 1; justify-content: center; padding: 9px; border-color: var(--line); background: var(--soft); color: var(--text); font-size: 14px; }
  .drawer-prefs .cur-switch { border-color: var(--line); background: var(--soft); }
  .drawer-prefs .cur-switch button { padding: 7px 14px; color: var(--muted); font-size: 13px; }
  .drawer-prefs .cur-switch button.on { background: var(--navy); color: #fff; }
  .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; }

  .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; }
  .catnav-in { padding: 0; }
  .topbar-msg { display: none; }
  .topbar-in { justify-content: flex-end; min-height: 32px; }
  .topbar-links > a { 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-img { height: 26px; }
  .search { flex-basis: 100%; order: 5; max-width: none; }
  .search input { height: 42px; }
  .hactions { gap: 0; margin-left: 0; }
  .hbtn { padding: 6px; }
  .hb-cart { margin-left: 4px; padding: 7px 9px; }
  .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; }

  .hero { background-image: linear-gradient(180deg, #07182c 0%, rgba(7, 24, 44, .92) 38%, rgba(7, 24, 44, .25) 66%, #07182c 100%), url('/img/hero/hero-sm.webp'); background-size: auto, 165% auto; background-position: center, 58% 100%; }
  .hero-copy { min-height: 0; padding: 40px 0 210px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 14px; line-height: 1.7; }
  .hero-points { gap: 8px 14px; margin-top: 18px; }
  .hero-points li { font-size: 12.5px; }
  .hero-explore { margin-top: 20px; font-size: 13px; }
  .finder-wrap { margin-top: -36px; }
  .finder { display: block; padding: 20px; }
  .finder-title { min-height: 0; margin-bottom: 16px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .finder .vs { grid-template-columns: 1fr; gap: 12px; }
  .find-form .btn span { display: none; }
  .find-form .btn { padding: 0 16px; }
  .finder-current { margin-top: 14px; }
  .highlights { grid-template-columns: 1fr; margin-top: 18px; box-shadow: none; }
  .highlights > div { gap: 12px; padding: 11px 16px; border-right: 0; border-bottom: 1px solid #e3edf2; }
  .highlights > div:last-child { border-bottom: 0; }
  .highlights b { font-size: 17px; }
  .highlights span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }

  .section { padding-top: 44px; }
  .sec-head h2 { font-size: 20px; }
  .sec-head-lg h2 { font-size: 27px; }
  .sec-sub { font-size: 14px; }
  .dept-grid { gap: 10px; }
  .dept-tile, .dept-tile.is-big { grid-column: span 6; }
  .dept-tile.is-big:first-child { grid-column: span 12; }
  .dept-grid-even .dept-tile.is-big:first-child { grid-column: span 6; }
  .dept-label, .dept-tile.is-big .dept-label { min-height: 92px; padding: 12px; }
  .dept-copy strong, .dept-tile.is-big .dept-copy strong { font-size: 16px; }
  .dept-tile.is-big:first-child .dept-copy strong { font-size: 21px; }
  .dept-grid-even .dept-tile.is-big:first-child .dept-copy strong { font-size: 16px; }
  .dept-copy em { display: none; }
  .dept-tile.is-big:first-child .dept-copy em { display: -webkit-box; }
  .dept-grid-even .dept-tile.is-big:first-child .dept-copy em { display: none; }
  .dept-copy small, .dept-subs { font-size: 9px; }
  .dept-arrow { width: 28px; height: 28px; }
  .dept-arrow .i { width: 15px; height: 15px; }
  .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 10px 12px; gap: 4px; }
  .pc-name { font-size: 14px; }
  .pc-spec { display: none; }
  .pc-cat { font-size: 10.5px; padding: 3px 6px; }
  .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; }
  .dept-banner { gap: 12px; min-height: 0; padding: 20px; }
  .dept-bg { width: 70%; opacity: .35; }
  .dept-icon { width: 44px; height: 44px; border-radius: 10px; }
  .dept-icon .i { width: 22px; height: 22px; }
  .dept-text h1 { font-size: 22px; }
  .dept-text p { font-size: 13px; }
  .dept-total { display: none; }
  .subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .subcat-card { gap: 7px; min-height: 64px; padding: 9px; }
  .subcat-i { width: 20px; font-size: 15px; }
  .subcat-copy b { font-size: 12.5px; }
  .subcat-copy small { font-size: 10px; }
  .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-cta-in { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
  .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-img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
