/* =========================================================
   PYC Chain — 長者友善、手機優先的樣式
   色系取自 Logo：品牌橘 #EE6E00 + 黑
   ========================================================= */
:root {
  --orange: #EE6E00;        /* Logo 橘：按鈕底色、色塊 */
  --orange-hover: #FF8A26;
  --orange-text: #A84B00;   /* 白底上的橘色文字（對比 5.7:1） */
  --orange-on-dark: #FF8A26;/* 深底上的橘色文字（對比 7.4:1） */
  --orange-soft: #FFF1E5;
  --ink: #1A1A1A;
  --ink-2: #4A4540;
  --bg: #FFFFFF;
  --bg-soft: #F6F4F1;
  --line: #DDD6CF;
  --dark: #1A1A1A;
  --dark-2: #2A2724;
  --on-dark: #F2EFEB;
  --on-dark-2: #C9C3BC;
  --ok: #1E7B3A;
  --err: #B3261E;
  --radius: 12px;
  --tap: 52px;               /* 最小點擊高度 */
  --shadow: 0 2px 6px rgba(26,26,26,.06), 0 8px 24px rgba(26,26,26,.08);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* 字級切換（由頁首 A / A+ / A++ 控制） */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }   /* 18px */
html[data-font="large"]  { font-size: 125%; }    /* 20px */
html[data-font="xlarge"] { font-size: 137.5%; }  /* 22px */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.75;
  color: var(--ink); background: var(--bg); letter-spacing: .01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 2rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.btn-primary:focus-visible, .action-call:focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.ico { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap); padding: .55em 1.4em; border-radius: var(--radius);
  font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-line { background: #06C755; color: #0A0A0A; border-color: #06C755; }
.btn-line:hover { background: #22d76c; color: #0A0A0A; }
.btn-lg { min-height: 60px; font-size: 1.05rem; padding: .6em 1.6em; }

/* ---------- 頂部工具列 ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: .9rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; flex-wrap: wrap; }
.topbar-phone { color: var(--orange-on-dark); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }
.topbar-phone:hover { color: #fff; }
.topbar-tools { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.font-switch { display: flex; align-items: center; gap: .3rem; }
.font-label { color: var(--on-dark-2); margin-right: .2rem; }
.font-switch button {
  min-width: 44px; min-height: 40px; border-radius: 8px; border: 1px solid #55504a;
  background: transparent; color: var(--on-dark); font-weight: 800; line-height: 1;
}
.font-switch button:nth-of-type(2) { font-size: 1.1em; }
.font-switch button:nth-of-type(3) { font-size: 1.25em; }
.font-switch button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lang-switch {
  color: var(--on-dark); text-decoration: none; font-weight: 700; border: 1px solid #55504a;
  border-radius: 8px; padding: .3em .9em; min-height: 40px; display: inline-flex; align-items: center;
}
.lang-switch:hover { border-color: var(--orange); color: var(--orange-on-dark); }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 4px solid var(--orange); box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.logo { display: block; flex: none; padding: 8px 0; }
.logo img { height: 46px; width: auto; }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: .4em;
  min-height: var(--tap); padding: 0 1rem; border-radius: var(--radius);
  background: var(--ink); color: #fff; border: 0; font-weight: 800;
}
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

.site-nav { margin-left: auto; }
.nav-search { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .2em; min-height: var(--tap);
  padding: 0 .9rem; color: var(--ink); text-decoration: none; font-weight: 800;
  background: none; border: 0; border-radius: 10px; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--orange-soft); color: var(--ink); }
.nav-link .caret { width: 1.1em; height: 1.1em; transition: transform .2s; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-cta { background: var(--orange); margin-left: .5rem; }
.nav-cta:hover { background: var(--orange-hover); }

.sub {
  list-style: none; margin: 0; padding: .5rem; display: none;
  position: absolute; top: 100%; left: 0; min-width: 260px; margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.sub-wide { min-width: 520px; columns: 2; column-gap: .5rem; }
.sub li { break-inside: avoid; }
.sub a {
  display: flex; align-items: center; min-height: 48px; padding: .3rem .8rem;
  color: var(--ink); text-decoration: none; border-radius: 8px; font-weight: 600;
}
.sub a:hover { background: var(--orange-soft); }
.has-sub.is-open > .sub { display: block; }

/* ---------- 首頁輪播 ---------- */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero-track { position: relative; height: clamp(220px, 42vw, 580px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.hero-controls button {
  min-width: 48px; min-height: 48px; border-radius: 999px; border: 0;
  background: rgba(26,26,26,.72); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.hero-controls button:hover { background: var(--orange); color: var(--ink); }
.hero-pause { padding: 0 1.1rem; font-weight: 700; font-size: .9rem; }
.hero-dots { display: flex; gap: .2rem; background: rgba(26,26,26,.72); border-radius: 999px; padding: 0 .4rem; }
.hero-dots .hero-dot { min-width: 36px; min-height: 48px; background: transparent; position: relative; }
.hero-dots .hero-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff; opacity: .55;
}
.hero-dots .hero-dot[aria-current="true"]::after { background: var(--orange); opacity: 1; width: 24px; margin-left: -12px; border-radius: 6px; }
.hero-dots .hero-dot:hover { background: transparent; }

/* ---------- 搜尋 ---------- */
.quick-search { background: var(--bg-soft); padding: 28px 0; border-bottom: 1px solid var(--line); }
.search-form { display: flex; gap: .6rem; width: 100%; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 1.1rem; font-size: 1.05rem;
  border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.search-form input[type="search"]::placeholder { color: #77706a; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238,110,0,.25); }
.search-form .btn { min-height: 60px; }

/* ---------- 區塊標題 ---------- */
.section { padding: 56px 0; }
.section-head { margin-bottom: 2rem; }
.eyebrow {
  display: inline-block; font-style: italic; font-weight: 900; letter-spacing: .25em;
  color: var(--orange-text); font-size: .85rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); position: relative; padding-bottom: .5rem; margin: 0; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px;
  background: var(--orange); transform: skewX(-24deg); transform-origin: left;
}

/* ---------- 產品系列 ---------- */
.series-grid, .product-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.series-card, .product-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.series-card:hover, .product-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.series-img, .product-img { display: block; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.series-img img, .product-img img { width: 100%; height: 100%; object-fit: contain; }
.series-name, .product-name {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1rem; min-height: 64px; font-weight: 800; line-height: 1.35;
  border-top: 2px solid var(--line);
}
.series-card:hover .series-name { background: var(--orange); border-top-color: var(--orange); }
.series-name .ico { color: var(--orange-text); }
.series-card:hover .series-name .ico { color: var(--ink); }

.series-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: .3em 1.1em;
  border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700;
}
.chip:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* ---------- 聯絡橫幅 ---------- */
.cta-band { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 280px;
  background: var(--orange); transform: skewX(-24deg); opacity: .9;
}
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-in p { font-size: 1.15rem; font-weight: 700; margin: 0; max-width: 34em; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; background: rgba(26,26,26,.5); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- 內頁標題 ---------- */
.page-hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: 8%; top: 0; bottom: 0; width: 120px;
  background: var(--orange); transform: skewX(-24deg); box-shadow: 40px 0 0 rgba(238,110,0,.35);
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 36px; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 0; max-width: 80%; overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .92rem; color: var(--on-dark-2); margin-bottom: .6rem; }
.crumbs a { color: var(--orange-on-dark); min-height: 40px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: #fff; }

/* ---------- 內頁版面 ---------- */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.layout-single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.side { position: sticky; top: 104px; }
.side-box { border: 2px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.side-box summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 1.1rem; font-weight: 900; font-size: 1.05rem;
  background: var(--ink); color: #fff;
}
.side-box summary::-webkit-details-marker { display: none; }
.side-box summary::after { content: "＋"; color: var(--orange-on-dark); font-size: 1.2rem; }
.side-box[open] summary::after { content: "－"; }
.side-list { list-style: none; margin: 0; padding: .4rem; max-height: 70vh; overflow: auto; }
.side-list a {
  display: flex; align-items: center; min-height: 50px; padding: .3rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35;
  border-left: 5px solid transparent;
}
.side-list a:hover { background: var(--orange-soft); }
.side-list a[aria-current="page"] { background: var(--orange-soft); border-left-color: var(--orange); font-weight: 800; }

.content { min-width: 0; }
.content > .search-form { margin-bottom: 1.25rem; }
.result-count { font-weight: 800; font-size: 1.05rem; margin-bottom: 1.25rem; }
.empty { background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem; }
.link-list { padding-left: 1.2em; }
.link-list li { margin: .4em 0; }
.lead { font-size: 1.12rem; max-width: 46em; }

/* 後台編輯的內文 */
.prose { overflow-wrap: anywhere; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55em .8em; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose iframe { max-width: 100%; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.pager a {
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; min-height: var(--tap);
  border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.pager a:hover { border-color: var(--orange); }
.pager span { color: var(--orange-text); font-weight: 700; font-size: .9rem; }
.pager-next { text-align: right; }

/* ---------- 產品明細 ---------- */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; margin-bottom: 2.5rem; }
.gallery-main { display: block; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; }
.thumb { padding: 0; border: 3px solid var(--line); border-radius: 10px; background: var(--bg-soft); overflow: hidden; min-height: var(--tap); }
.thumb img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; }
.thumb[aria-current="true"] { border-color: var(--orange); }
.product-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.block-title {
  font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 .8rem;
}
.block-title::before { content: ""; width: 14px; height: 1.1em; background: var(--orange); transform: skewX(-20deg); flex: none; }
.features { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .8rem; }
.features li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.features img { width: 64px; height: 64px; object-fit: contain; }
.product-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.spec-block { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 2px solid var(--line); }

/* ---------- 表單 ---------- */
.msg-form { background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem; }
.msg-subject { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; margin-bottom: .35rem; }
.req { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--err); border-radius: 6px; padding: .05em .5em; margin-left: .3em; vertical-align: middle; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: .6rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #8a837c; border-radius: 10px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238,110,0,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-error { background: #FDECEA; color: var(--err); border: 2px solid var(--err); }

/* ---------- 感謝頁 ---------- */
.thanks { padding: 2rem 0; }
.thanks-ico { width: 96px; height: 96px; margin: 0 auto 1rem; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1.5rem; }
.thanks .cta-actions { justify-content: center; }

/* ---------- 聯絡頁 ---------- */
.contact-cards { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; min-height: 96px; height: 100%; border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: #fff;
}
.contact-card:hover { border-color: var(--orange); color: var(--ink); }
.contact-card .ico { grid-row: 1 / 3; width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.contact-card .label { font-size: .88rem; color: var(--ink-2); font-weight: 700; }
.contact-card strong { font-size: 1.08rem; overflow-wrap: anywhere; line-height: 1.4; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-layout .form-grid { grid-template-columns: 1fr; }
.map { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); background: var(--bg-soft); }
.map iframe { display: block; width: 100%; height: 520px; border: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); margin-top: 0; border-top: 6px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; padding-top: 48px; padding-bottom: 40px; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 10px; }
.footer-logo img { height: 40px; width: auto; }
.footer-name { margin-top: 1rem; font-weight: 700; color: var(--on-dark-2); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.footer-contact li { display: flex; gap: .9rem; align-items: flex-start; }
.footer-contact .ico { color: var(--orange-on-dark); margin-top: .2em; }
.footer-contact .label { display: block; font-size: .85rem; color: var(--on-dark-2); }
.footer-contact a { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--orange-on-dark); text-decoration: underline; }
.footer-bottom { background: #111; }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 64px; font-size: .9rem; color: var(--on-dark-2); }
.footer-bottom p { margin: 0; }
.to-top { color: var(--orange-on-dark); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- 手機底部快捷列 ---------- */
.action-bar { display: none; }

/* =========================================================
   平板與手機
   ========================================================= */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 132px);
    background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 20px 120px; margin: 0; border-top: 1px solid var(--line); z-index: 99;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { display: block; }
  .nav-search { display: block; margin-bottom: 1rem; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 64px; padding: 0 .4rem; font-size: 1.1rem; border-radius: 0; }
  .nav-cta { margin: 1rem 0 0; justify-content: center; border-radius: var(--radius); }
  .sub, .sub-wide { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; columns: 1; padding: 0 0 .6rem .6rem; background: transparent; }
  .sub a { min-height: 54px; font-size: 1.02rem; border-left: 3px solid var(--line); border-radius: 0; padding-left: 1rem; }

  .action-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--dark); border-top: 3px solid var(--orange);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 68px; color: #fff; text-decoration: none; font-weight: 800; font-size: .85rem; line-height: 1.2;
  }
  .action-bar .ico { width: 28px; height: 28px; }
  .action-bar a:active { background: #333; }
  .action-call { background: var(--orange); color: var(--ink) !important; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .layout { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; }
  .side-list { max-height: none; }
  .product-top { grid-template-columns: 1fr; gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .map iframe { height: 340px; }

  /* 聊天機器人避開底部快捷列 */
  #bicycle-cluster-container, .bicycle-cluster-chatbot-container { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-in { min-height: 52px; }
  .topbar-phone { display: none; }            /* 底部快捷列已有「打電話」 */
  .topbar-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .font-label { display: none; }
  .header-in { min-height: 68px; gap: .75rem; }
  .logo img { height: 36px; }
  .menu-btn-label { display: none; }
  .menu-btn { padding: 0 .9rem; min-width: var(--tap); justify-content: center; }
  .section { padding: 36px 0; }
  .series-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .series-name, .product-name { padding: .6rem .7rem; font-size: .92rem; min-height: 60px; }
  .series-name .ico { display: none; }
  .search-form .btn span { display: none; }
  .search-form .btn { padding: 0 1rem; min-width: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .msg-form { padding: 1.1rem; }
  .btn-block-sm { width: 100%; }
  .product-actions .btn { flex: 1 1 auto; }
  .cta-band::before { width: 120px; right: -50px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .page-hero::after { width: 60px; right: -10px; }
  .page-hero h1 { max-width: 88%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .hero-prev, .hero-next { display: none !important; }
}

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

@media print {
  .topbar, .site-header, .action-bar, .site-footer, .hero-controls, .side, .msg-form { display: none !important; }
  body { padding: 0; font-size: 12pt; }
}

/* =========================================================
   自行車風格元件 + 產品即時搜尋
   ========================================================= */
:root { --steel: #8C8781; --steel-dark: #5E5953; }

/* 鏈條紋分隔線（以 CSS 漸層畫出鏈節） */
.chain-rule {
  height: 16px; background-color: var(--dark);
  background-image:
    radial-gradient(ellipse 10px 5px at 50% 50%, transparent 4px, var(--steel) 4.5px, var(--steel) 7px, transparent 7.5px),
    linear-gradient(var(--dark), var(--dark));
  background-size: 26px 16px, 100% 100%;
  background-repeat: repeat-x;
  border-bottom: 3px solid var(--orange);
}

/* 搜尋頁頁首：深色＋旋轉齒盤 */
.search-hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.search-hero .wrap { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 30px; }
.search-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-style: italic; letter-spacing: .01em; margin: 0 0 1rem; }
.search-hero .search-form { max-width: 780px; }
.search-hero .search-form input[type="search"] { border-color: #fff; min-height: 64px; font-size: 1.1rem; }
.search-hero .search-form .btn { min-height: 64px; }
.live-hint { margin: .6rem 0 0; color: var(--on-dark-2); font-size: .9rem; }
.chainring {
  position: absolute; right: -90px; top: 50%; width: 380px; height: 380px; margin-top: -190px;
  fill: var(--orange); opacity: .28; animation: spin 60s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 版面：左篩選、右結果 */
.finder-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.filter-panel { position: sticky; top: 104px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-panel > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 1.1rem; font-weight: 900; font-size: 1.05rem; cursor: pointer;
  background: var(--ink); color: #fff; border-radius: 10px 10px 0 0;
}
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.filter-badge { background: var(--orange); color: var(--ink); border-radius: 999px; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.filter-body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: 1.4rem; max-height: calc(100vh - 190px); overflow: auto; }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend { font-weight: 900; margin-bottom: .6rem; padding: 0; display: flex; align-items: center; gap: .5rem; }
.filter-group legend::before { content: ""; width: 12px; height: 1em; background: var(--orange); transform: skewX(-20deg); }

/* 變速數：飛輪側面造型，越右邊齒片越大 */
.cassette { display: grid; grid-template-columns: repeat(var(--cogs), minmax(0, 1fr)); gap: 4px; align-items: end; height: 120px; }
.cog { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; text-decoration: none; color: var(--ink); border-radius: 8px; padding-top: 4px; }
.cog-bar {
  width: 100%; max-width: 30px; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: repeating-linear-gradient(180deg, var(--steel) 0 5px, var(--steel-dark) 5px 7px);
  transition: background .15s, transform .15s;
}
.cog-label { font-weight: 800; font-size: .78rem; line-height: 1.2; white-space: nowrap; }
.cog:hover .cog-bar { transform: translateY(-3px); }
.cog[aria-pressed="true"] .cog-bar { background: repeating-linear-gradient(180deg, var(--orange) 0 5px, #B85400 5px 7px); }
.cog[aria-pressed="true"] .cog-label { color: var(--orange-text); }

.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fchip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .2rem .9rem;
  border: 2px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.3;
}
.fchip:hover { border-color: var(--orange); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.n { font-size: .78rem; font-weight: 700; color: var(--ink-2); background: var(--bg-soft); border-radius: 999px; padding: 0 .45rem; min-width: 1.6em; text-align: center; }
.fchip[aria-pressed="true"] .n { background: rgba(255,255,255,.55); color: var(--ink); }

.feat-list { display: grid; gap: .4rem; }
.feat {
  display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; align-items: center; gap: .55rem;
  min-height: 54px; padding: .3rem .5rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.25;
}
.feat:hover { background: var(--orange-soft); color: var(--ink); }
.feat img { width: 40px; height: 40px; object-fit: contain; }
.feat .check { width: 26px; height: 26px; border: 2px solid var(--steel-dark); border-radius: 6px; background: #fff; position: relative; }
.feat[aria-pressed="true"] .check { background: var(--orange); border-color: var(--orange); }
.feat[aria-pressed="true"] .check::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* 結果列：碼表風格的數字 */
.results { min-width: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.odometer { display: inline-flex; align-items: baseline; gap: .5rem; margin: 0; background: var(--dark); color: #fff; border-radius: 10px; padding: .35rem 1rem; }
.odo-label, .odo-unit { font-size: .9rem; color: var(--on-dark-2); font-weight: 700; }
.odo-num { font-size: 1.9rem; font-weight: 900; font-style: italic; color: var(--orange-on-dark); font-variant-numeric: tabular-nums; letter-spacing: .04em; line-height: 1.2; }
.btn-sm { min-height: 48px; padding: .3em 1.1em; font-size: .95rem; }
.pages-found { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }

/* 產品卡片：號碼布標籤＋滑過時底部變成鏈條 */
.product-card { position: relative; }
.bib {
  position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--orange); color: var(--ink);
  font-weight: 900; font-style: italic; font-size: .85rem; padding: .05rem .6rem; border-radius: 4px; transform: skewX(-10deg);
  box-shadow: 0 2px 0 var(--ink);
}
.product-name { position: relative; }
.product-card .product-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; opacity: 0; transition: opacity .2s;
  background: radial-gradient(ellipse 6px 3px at 50% 50%, transparent 2.5px, var(--orange) 3px, var(--orange) 4.5px, transparent 5px) 0 0 / 15px 8px repeat-x;
}
.product-card:hover .product-name::after, .product-card:focus-visible .product-name::after { opacity: 1; }
.product-item[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .finder-layout { grid-template-columns: 1fr; gap: 20px; }
  .filter-panel { position: static; }
  .filter-panel:not([open]) > summary { border-radius: 10px; }
  .filter-panel > summary::after { content: "＋"; color: var(--orange-on-dark); font-size: 1.2rem; margin-left: .6rem; }
  .filter-panel[open] > summary::after { content: "－"; }
  .filter-panel > summary { justify-content: flex-start; gap: .6rem; }
  .filter-panel > summary > span:first-child { margin-right: auto; }
  .filter-body { max-height: none; }
}
@media (max-width: 640px) {
  .chainring { width: 240px; height: 240px; margin-top: -120px; right: -100px; }
  .cassette { height: 104px; }
  .odo-num { font-size: 1.6rem; }
}

/* 手機：篩選面板底部的「顯示結果」按鈕 */
.show-results { display: none; }
@media (max-width: 1080px) {
  .show-results {
    display: flex; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 2;
    width: 100%; margin-top: .4rem; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  }
}
.results, #message, #products { scroll-margin-top: 110px; }

/* 頁首：搜尋下拉與語言切換 */
.nav-link .ico { width: 1.15em; height: 1.15em; margin-right: .25em; }
.nav-link .caret { margin-right: 0; margin-left: .1em; }
.sub-search { left: auto; right: 0; width: 420px; min-width: 0; padding: .8rem; }
.sub-search .search-form input[type="search"], .sub-search .search-form .btn { min-height: 54px; }
.has-sub.is-open > .sub-search { display: block; }
.nav-lang { border: 2px solid var(--ink); margin-left: .4rem; }
.nav-lang:hover { background: var(--ink); color: #fff; }
@media (max-width: 1080px) {
  .nav-search-item { display: none; }
  .nav-lang { border: 0; margin: 0; justify-content: flex-start; }
}

/* 下層選單：在按鈕與選單之間加一段看不見的「橋」，滑鼠移下去不會中斷 */
.has-sub > .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sub a { min-height: 54px; font-size: 1rem; }
.sub a:focus-visible { outline-offset: -3px; }
@media (max-width: 1080px) { .has-sub > .sub::before { display: none; } .sub { margin-top: 0; } }

/* =========================================================
   2026 型錄風格（此段覆蓋前面的設定）
   白底、頁緣橘色漸層、粗斜體橘色大標、膠囊分區標題、毛玻璃卡片、速數色
   ========================================================= */
:root {
  --bg-soft: #F3F3F6;          /* 型錄毛玻璃卡片的冷灰 */
  --line: #E2E1E6;
  --peach: #F9A266;            /* 型錄頁緣的橘色漸層 */
  --text-2: #4B4B52;
  --frost: linear-gradient(180deg, #F8F8FA 0%, #ECECF1 100%);
  --latin: "Jost", "Futura", "Century Gothic", var(--font);
  /* 速數色：與產品包裝盒相同 */
  --sp-1: #6B3A8E;   --sp-1-on: #FFFFFF;
  --sp-678: #3F7524; --sp-678-on: #FFFFFF;
  --sp-9: #EE6E00;   --sp-9-on: #1A1A1A;
  --sp-10: #6B6B70;  --sp-10-on: #FFFFFF;
  --sp-11: #C0161E;  --sp-11-on: #FFFFFF;
  --sp-12: #0B4A7E;  --sp-12-on: #FFFFFF;
  --sp-e: #6E58C9;   --sp-e-on: #FFFFFF;
  --sp-bmx: #2B2B30; --sp-bmx-on: #FFFFFF;
  --sp-wax: #2E9E4F; --sp-wax-on: #FFFFFF;
  --sp-pyc: #EE6E00; --sp-pyc-on: #1A1A1A;
}

/* ---------- 共用：大標、膠囊標題、橘色細線 ---------- */
.headline {
  font-family: var(--latin); font-style: italic; font-weight: 800; color: var(--orange);
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.12; text-wrap: balance;
}
:lang(zh-Hant) .headline { font-family: var(--font); font-style: normal; font-weight: 900; text-transform: none; }
.tab-title {
  display: inline-flex; align-items: center; min-height: 44px; padding: .3em 1.6em; border-radius: 999px;
  font-family: var(--latin); font-weight: 400; text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; color: #3A3A40;
  background:
    radial-gradient(50% 160% at 0% 50%, rgba(238,110,0,.32), transparent 70%),
    radial-gradient(50% 160% at 100% 50%, rgba(238,110,0,.5), transparent 70%),
    #fff;
  box-shadow: 0 6px 18px rgba(26,26,26,.08), inset 0 1px 0 #fff;
  border: 1px solid rgba(26,26,26,.05);
}
.chain-rule {
  height: 3px; border: 0; background: linear-gradient(90deg, var(--orange) 0%, rgba(238,110,0,.25) 60%, rgba(238,110,0,0) 100%);
  background-size: auto; background-repeat: no-repeat;
}

/* ---------- 頂部工具列與頁首：改為淺色 ---------- */
.topbar { background: #F4F4F6; color: var(--text-2); border-bottom: 1px solid var(--line); }
.topbar-phone { color: var(--orange-text); }
.topbar-phone:hover { color: var(--ink); }
.font-label { color: var(--text-2); }
.font-switch button { border-color: #C9C8CF; color: var(--ink); background: #fff; }
.font-switch button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.site-header { border-bottom: 0; box-shadow: 0 6px 20px rgba(26,26,26,.06); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), rgba(238,110,0,.15) 70%, transparent);
}
.nav-link { font-family: var(--latin); font-weight: 600; letter-spacing: .02em; }
:lang(zh-Hant) .nav-link { font-family: var(--font); font-weight: 800; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: #FFF1E5; }
.nav-lang { border-radius: 999px; }
.sub { border-top: 0; border-radius: 16px; box-shadow: 0 16px 40px rgba(26,26,26,.14); }
.sub::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange), transparent); }

/* ---------- 按鈕：型錄的圓角膠囊 ---------- */
.btn { border-radius: 999px; font-family: var(--latin); letter-spacing: .02em; }
:lang(zh-Hant) .btn { font-family: var(--font); }
.btn-primary { box-shadow: 0 8px 20px -10px rgba(238,110,0,.9); }
.search-form input[type="search"] { border-radius: 999px; padding: 0 1.4rem; border-color: #3A3A40; }

/* ---------- 首頁 ---------- */
.quick-search { background: #fff; border-bottom: 0; position: relative; overflow: hidden; }
.quick-search::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 140px; background: linear-gradient(90deg, var(--peach), rgba(249,162,102,0)); pointer-events: none; }
.quick-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.tagline { margin: 0; font-family: var(--latin); font-weight: 400; letter-spacing: .12em; color: var(--orange-text); line-height: 1.45; font-size: 1.05rem; }
.section-head { display: grid; gap: .9rem; justify-items: start; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); padding: 0; margin: 0; }
.section-head h2::after { display: none; }

/* 系列卡片：毛玻璃＋速數色光暈 */
.series-card {
  border: 1px solid rgba(26,26,26,.06); border-radius: 22px; background: var(--frost);
  box-shadow: 0 10px 24px -14px rgba(26,26,26,.25);
}
.series-card:hover { border-color: rgba(26,26,26,.08); transform: translateY(-3px); box-shadow: 0 18px 34px -16px var(--sc, var(--orange)); }
.series-img { background: #fff; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; }
.series-name {
  border-top: 0; font-family: var(--latin); font-style: italic; font-weight: 800; letter-spacing: .01em; position: relative; padding-left: 1.5rem;
}
:lang(zh-Hant) .series-name { font-family: var(--font); font-style: normal; }
.series-name::before { content: ""; position: absolute; left: .7rem; top: 22%; bottom: 22%; width: 5px; border-radius: 3px; background: var(--sc, var(--orange)); }
.series-card:hover .series-name { background: transparent; }
.series-name .ico { color: var(--sc, var(--orange-text)); }
.series-card:hover .series-name .ico { color: var(--sc, var(--orange-text)); transform: translateX(3px); }
.chip { border-radius: 999px; border-width: 1px; border-color: #B9B8C0; background: #fff; box-shadow: 0 4px 12px -8px rgba(26,26,26,.3); }

/* 聯絡橫幅：淺色＋橘色漸層 */
.cta-band { background: linear-gradient(90deg, #fff 0%, #fff 45%, #FFE2CC 100%); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band::before { display: none; }
.cta-in p { margin-top: .9rem; color: var(--text-2); font-style: italic; }
.cta-band .btn-ghost { color: var(--ink); border-color: var(--ink); background: #fff; }
.cta-band .btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- 內頁標題：白底、左側橘色漸層、右側淡色鏈節 ---------- */
.page-hero { background: #fff; color: var(--ink); }
.page-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 160px;
  background: linear-gradient(90deg, var(--peach), rgba(249,162,102,0)); pointer-events: none;
}
.page-hero::after {
  right: 4%; top: 50%; bottom: auto; width: 300px; height: 300px; margin-top: -150px; transform: none; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23E7E6EC' stroke-width='16'%3E%3Crect x='20' y='60' width='110' height='56' rx='28' transform='rotate(-35 75 88)'/%3E%3Crect x='70' y='84' width='110' height='56' rx='28' transform='rotate(-35 125 112)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.page-hero .wrap { padding-top: 34px; padding-bottom: 38px; }
.page-hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); }
.crumbs { color: var(--text-2); }
.crumbs a { color: var(--orange-text); }
.crumbs a:hover { color: var(--ink); }

/* ---------- 區塊標籤：型錄的小標（DESCRIPTION、COLOR…） ---------- */
.block-title {
  font-family: var(--latin); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: #55555C;
  position: relative; padding-left: 1rem;
}
:lang(zh-Hant) .block-title { font-family: var(--font); letter-spacing: .08em; font-weight: 800; }
.block-title::before {
  content: ""; position: absolute; left: 0; top: -.35em; bottom: -.35em; width: 6px; height: auto; transform: none;
  border-radius: 6px; background: var(--sc, var(--orange)); filter: blur(1.5px); opacity: .9;
}

/* ---------- 側欄與篩選面板：淺色膠囊標題 ---------- */
.side-box, .filter-panel { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px -18px rgba(26,26,26,.35); overflow: hidden; }
.side-box summary, .filter-panel > summary {
  background:
    radial-gradient(40% 180% at 0% 50%, rgba(238,110,0,.28), transparent 70%),
    linear-gradient(180deg, #fff, #F4F4F6);
  color: #2E2E33; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--latin); font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
}
:lang(zh-Hant) .side-box summary, :lang(zh-Hant) .filter-panel > summary { font-family: var(--font); letter-spacing: .06em; font-weight: 800; }
.side-box summary::after, .filter-panel > summary::after { color: var(--orange-text); }
.filter-panel:not([open]) > summary { border-bottom: 0; }
.side-list a[aria-current="page"] { background: #FFF1E5; border-left-color: var(--orange); }

/* ---------- 產品卡片：速數膠囊 ---------- */
.product-card { border: 1px solid rgba(26,26,26,.07); border-radius: 22px; background: var(--frost); box-shadow: 0 10px 24px -16px rgba(26,26,26,.3); }
.product-card:hover { border-color: rgba(26,26,26,.1); box-shadow: 0 18px 34px -16px var(--sc, var(--orange)); }
.product-img { background: #fff; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; }
.product-name { border-top: 0; font-family: var(--latin); font-style: italic; font-weight: 800; }
:lang(zh-Hant) .product-name { font-family: var(--font); font-style: normal; }
.product-card .product-name::after { display: none; }
.sp-tag {
  position: absolute; left: 18px; top: 18px; z-index: 1; display: inline-flex; align-items: baseline; gap: .25em;
  background: var(--sc, var(--orange)); color: var(--sc-on, #1A1A1A); border-radius: 999px; padding: .1em .8em;
  font-family: var(--latin); font-style: italic; font-weight: 800; font-size: 1rem; line-height: 1.5;
  box-shadow: inset 0 6px 10px rgba(255,255,255,.28), 0 6px 14px -6px var(--sc, var(--orange));
}
.sp-tag small { font-size: .62em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }

/* ---------- 產品明細：型錄的型號列與直排大字 ---------- */
.product-page { position: relative; overflow: hidden; }
.product-page::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 200px; pointer-events: none;
  background: linear-gradient(270deg, color-mix(in srgb, var(--sc, var(--orange)) 22%, transparent), transparent);
}
.side-word {
  position: absolute; left: 6px; top: 40px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--latin); font-weight: 300; font-size: 7rem; letter-spacing: .25em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #D7D6DD; pointer-events: none; user-select: none;
}
.product-page .wrap { position: relative; }
.model-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.speed-of {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 56px; padding: .2rem 1rem .2rem 1.1rem; border-radius: 999px;
  background: #fff; box-shadow: 0 6px 16px rgba(26,26,26,.1); border: 1px solid rgba(26,26,26,.05);
}
.speed-of small { font-family: var(--latin); font-style: italic; font-weight: 600; font-size: .68rem; line-height: 1.15; color: #3A3A40; }
.speed-of b { font-family: var(--latin); font-style: italic; font-weight: 800; font-size: 2rem; line-height: 1; }
.model-pill {
  margin: 0; min-height: 56px; display: inline-flex; align-items: center; padding: .1rem 1.6rem; border-radius: 999px;
  font-family: var(--latin); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: .02em;
  background: var(--sc, var(--orange)); color: var(--sc-on, #1A1A1A);
  box-shadow: inset 0 12px 16px rgba(255,255,255,.3), 0 12px 26px -10px var(--sc, var(--orange));
}
.product-title { font-size: 1.15rem; font-weight: 700; color: var(--text-2); margin: .4rem 0 0; }
.gallery-main, .thumb { border-color: var(--line); border-radius: 20px; background: #fff; }
.thumb { border-radius: 14px; }
.thumb[aria-current="true"] { border-color: var(--sc, var(--orange)); }
.features li { font-family: var(--latin); font-weight: 600; letter-spacing: .03em; color: #3A3A40; }
.spec-block { border-top: 1px solid var(--line); }
.msg-form { background: var(--frost); border-radius: 22px; border: 1px solid rgba(26,26,26,.05); }
.field input, .field textarea { border-radius: 14px; border-color: #8E8D95; }

/* ---------- 搜尋頁 ---------- */
.search-hero { background: #fff; color: var(--ink); }
.search-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 180px; background: linear-gradient(90deg, var(--peach), rgba(249,162,102,0)); pointer-events: none; }
.search-hero .wrap { display: grid; gap: .8rem; justify-items: start; }
.search-hero h1 { font-style: italic; margin: 0; }
.search-hero .search-form { width: 100%; }
.search-hero .search-form input[type="search"] { border-color: #3A3A40; }
.live-hint { color: var(--text-2); font-style: italic; }
.chainring { fill: var(--orange); opacity: .1; }
.cog-bar { background: var(--sc, var(--steel)); opacity: .35; border-radius: 8px 8px 4px 4px; box-shadow: inset 0 6px 8px rgba(255,255,255,.35); }
.cog:hover .cog-bar { opacity: .6; }
.cog[aria-pressed="true"] .cog-bar { background: var(--sc, var(--orange)); opacity: 1; box-shadow: inset 0 6px 8px rgba(255,255,255,.35), 0 8px 16px -6px var(--sc, var(--orange)); }
.cog-label { font-family: var(--latin); font-style: italic; }
.cog[aria-pressed="true"] .cog-label { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sc, var(--orange)); text-underline-offset: 4px; }
.filter-group legend { font-family: var(--latin); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #55555C; font-size: .95rem; }
:lang(zh-Hant) .filter-group legend { font-family: var(--font); font-weight: 800; letter-spacing: .06em; }
.filter-group legend::before { transform: none; width: 6px; border-radius: 6px; filter: blur(1px); }
.fchip { border-width: 1px; border-color: #B9B8C0; background: #fff; }
.odometer { background: var(--frost); color: var(--ink); border: 1px solid rgba(26,26,26,.06); border-radius: 999px; padding: .3rem 1.3rem; }
.odo-label, .odo-unit { color: var(--text-2); }
.odo-num { color: var(--orange-text); font-family: var(--latin); }

/* ---------- 頁尾：白底、右側橘色漸層、MADE IN TAIWAN ---------- */
.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 220px; background: linear-gradient(270deg, var(--peach), rgba(249,162,102,0)); pointer-events: none; }
.footer-grid { position: relative; grid-template-columns: 1fr 1.4fr; align-items: start; }
.footer-logo { background: transparent; padding: 0; }
.footer-logo img { height: 46px; }
.footer-tagline { margin: 1.1rem 0 0; font-family: var(--latin); letter-spacing: .12em; color: var(--orange-text); line-height: 1.5; }
.footer-name { margin: 0 0 .3rem; font-family: var(--latin); font-style: italic; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
:lang(zh-Hant) .footer-name { font-family: var(--font); font-style: normal; text-transform: none; }
.footer-addr { margin: 0 0 .9rem; font-style: italic; }
.footer-addr a { color: var(--text-2); text-decoration: none; }
.footer-addr a:hover { color: var(--orange-text); text-decoration: underline; }
.footer-contact { gap: .6rem; }
.footer-contact li { align-items: center; }
.footer-contact .ico { color: var(--orange-text); margin-top: 0; }
.footer-contact a { color: var(--ink); font-style: italic; font-size: 1.1rem; }
.footer-contact a:hover { color: var(--orange-text); }
.footer-bottom { background: transparent; border-top: 1px solid var(--line); position: relative; }
.footer-bottom-in { color: var(--text-2); }
.made-in { display: flex; align-items: center; gap: .9rem; margin: 0; font-family: var(--latin); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; flex: 1 1 420px; }
.made-in .rule { flex: 0 1 140px; height: 1px; background: #8E8D95; }
.copy { font-size: .85rem; }
.to-top { color: var(--orange-text); }

/* ---------- 手機底部快捷列：淺色 ---------- */
@media (max-width: 1080px) {
  .action-bar { background: rgba(255,255,255,.97); border-top: 0; box-shadow: 0 -6px 20px rgba(26,26,26,.12); backdrop-filter: blur(8px); }
  .action-bar a { color: var(--ink); }
  .action-bar a:active { background: #F3F3F6; }
  .action-call { background: var(--orange); }
  .side-word { display: none; }
  .product-page::before { width: 90px; }
}
@media (max-width: 640px) {
  .quick-in { grid-template-columns: 1fr; gap: 1rem; padding-top: 22px; padding-bottom: 22px; }
  .tagline { font-size: .9rem; }
  .page-hero::after { width: 160px; height: 160px; margin-top: -80px; right: -30px; opacity: .8; }
  .page-hero::before, .search-hero::before, .quick-search::before { width: 70px; }
  .site-footer::before { width: 90px; }
  .footer-grid { grid-template-columns: 1fr; }
  .made-in { flex-basis: 100%; font-size: .78rem; gap: .6rem; }
  .made-in .rule { flex-basis: 40px; }
  .speed-of b { font-size: 1.6rem; }
  .sp-tag { left: 14px; top: 14px; font-size: .9rem; }
}

/* 直排大字只在寬螢幕、左側留白足夠時顯示，避免壓到側欄 */
.side-word { display: none; }
@media (min-width: 1440px) {
  .side-word { display: block; font-size: 5rem; left: calc((100vw - 1240px) / 2 - 96px); }
}
/* 搜尋框在窄螢幕不超出畫面 */
.search-hero .wrap { grid-template-columns: minmax(0, 1fr); }
.search-form { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .quick-in { grid-template-columns: minmax(0, 1fr); }
  .search-form .btn { min-width: 56px; padding: 0; }
}

/* 首頁輪播：依圖片原始比例完整顯示（Banner 內含文字，不可裁切） */
.hero-track { display: grid; height: auto; }
.hero-slide { position: relative; inset: auto; grid-area: 1 / 1; }
.hero-slide img { width: 100%; height: auto; object-fit: contain; }
.hero-slide:not(.is-active) { pointer-events: none; }
.hero-controls { bottom: 12px; }
@media (max-width: 640px) {
  /* 手機上控制鈕移到圖片下方，不遮住 Banner 文字 */
  .hero-controls { position: static; padding: 10px 0; background: var(--bg-soft); }
  .hero-controls button { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .hero-dots { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .hero-dots .hero-dot::after { background: #8E8D95; }
}
@media (max-width: 640px) { .hero-dots .hero-dot { background: transparent; box-shadow: none; } }

/* =========================================================
   Banner 高度控制（桌機／平板）
   - 高度上限：螢幕高度的 62%，最高 600px，下方內容能在第一屏露出
   - 圖片完整顯示不裁切；左右空白以同一張圖模糊放大填滿
   - 手機維持依原比例全寬顯示（手機上原圖本來就不高）
   ========================================================= */
.hero-fill { display: none; }
@media (min-width: 641px) {
  .hero-track { display: block; position: relative; height: min(62vh, 600px); min-height: 300px; background: #1A1A1A; }
  .hero-slide { position: absolute; inset: 0; overflow: hidden; }
  .hero-fill {
    display: block; position: absolute; inset: -40px; background-size: cover; background-position: center;
    filter: blur(28px) brightness(.72) saturate(1.1); transform: scale(1.08);
  }
  .hero-slide .hero-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
}

/* =========================================================
   Banner 高度（最終版，覆蓋上方設定）
   - 高度依螢幕「寬度」計算：寬度的 36%，介於 280～500px
     （不用螢幕高度 vh：大螢幕或整頁截圖時 vh 會過大）
   - 圖片填滿寬度、上下置中裁切；Banner 文字放在畫面中段即可完整顯示
   ========================================================= */
.hero-track { display: block; position: relative; height: clamp(280px, 36vw, 500px); min-height: 0; background: #1A1A1A; }
.hero-slide { position: absolute; inset: 0; overflow: hidden; grid-area: auto; }
.hero-fill { display: none !important; }
.hero-slide .hero-img, .hero-slide img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
@media (max-width: 640px) {
  .hero-track { height: auto; aspect-ratio: 4 / 3; max-height: 320px; }
}

/* =========================================================
   聯絡我們頁（page.php 預設頁）
   桌機：左欄 聯絡資訊＋地圖、右欄 表單；手機：資訊 → 表單 → 地圖
   ========================================================= */
.contact-lead { font-style: italic; color: var(--text-2); font-size: 1.15rem; margin-bottom: 2rem; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 40px; align-items: start;
  grid-template-areas: "info form" "map form";
}
.contact-info { grid-area: info; display: grid; gap: 1rem; justify-items: start; }
.contact-form-wrap { grid-area: form; display: grid; gap: 1rem; justify-items: start; }
.contact-form-wrap .msg-form { width: 100%; }
.contact-map { grid-area: map; display: grid; gap: .8rem; }
.contact-cards { width: 100%; margin: 0; grid-template-columns: 1fr; gap: .8rem; }
.contact-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; gap: 1rem;
  min-height: 88px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--frost);
  box-shadow: 0 10px 22px -18px rgba(26,26,26,.4);
}
.contact-card:hover { border-color: var(--orange); box-shadow: 0 14px 26px -16px rgba(238,110,0,.6); }
.contact-card .ico { grid-row: auto; width: 52px; height: 52px; padding: 13px; box-shadow: inset 0 6px 8px rgba(255,255,255,.35); }
.cc-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cc-text .label { font-family: var(--latin); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #66666D; }
:lang(zh-Hant) .cc-text .label { font-family: var(--font); letter-spacing: .06em; }
.cc-text strong { font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere; }
.cc-go { font-size: 1.8rem; line-height: 1; color: var(--orange-text); transition: transform .15s; }
.contact-card:hover .cc-go { transform: translateX(3px); }
.contact-map .map { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 10px 22px -18px rgba(26,26,26,.4); }
.contact-map .map iframe { height: 340px; }
.map-btn { justify-self: start; }
/* 表單在右欄：名稱／電話、信箱／驗證題 兩兩並排，留言佔整列，縮短表單長度 */
.contact-form-wrap .form-grid { grid-template-columns: 1fr 1fr; }
.contact-form-wrap .msg-form { padding: 1.6rem; }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "form" "map"; }
}
@media (max-width: 640px) {
  .contact-form-wrap .form-grid { grid-template-columns: 1fr; }
  .contact-map .map iframe { height: 280px; }
  .map-btn { justify-self: stretch; }
  .contact-card { min-height: 80px; padding: .9rem 1rem; }
}

/* =========================================================
   Banner：保留 Banner 文字區（圖片高度約 20%～70%）不被裁切
   - 高度為螢幕寬度的 40%（280～560px），可顯示原圖約 54% 的高度
   - 對焦點設在 38%，顯示範圍約為原圖的 18%～71%
   ========================================================= */
.hero-track { height: clamp(280px, 40vw, 560px); }
.hero-slide .hero-img, .hero-slide img { object-position: center 38%; }
@media (max-width: 640px) { .hero-track { height: auto; aspect-ratio: 4 / 3; max-height: none; } }
/* 寬螢幕（≥1400px）高度已到上限，顯示比例變小，對焦點往上移，確保 Banner 上方標題不被切到 */
.hero-track { height: clamp(280px, 40vw, 600px); }
@media (min-width: 1400px) { .hero-slide .hero-img, .hero-slide img { object-position: center 33%; } }
/* 超寬螢幕（≥1920px）：高度改依寬度等比例放大（1920 時 600px、2560 時 800px），避免顯示範圍過窄切到文字 */
@media (min-width: 1920px) { .hero-track { height: 31.25vw; } }
/* 標籤長短不同時，輸入框仍對齊同一水平線 */
.contact-form-wrap .form-grid { align-items: end; }

/* =========================================================
   讀取動畫：齒盤轉動、鏈條同步前進（齒盤 32 齒轉一圈 = 鏈條前進 32 節）
   ========================================================= */
.page-loader { display: none; }
.js .page-loader {
  display: flex; position: fixed; inset: 0; z-index: 2000; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(249,162,102,.18), transparent 70%),
    rgba(255,255,255,.96);
  opacity: 0; animation: loader-in .2s ease .25s forwards;   /* 0.25 秒內載完就不出現 */
}
.js.loaded .page-loader { animation: none; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.js.leaving .page-loader { animation: loader-in .2s ease .15s forwards; pointer-events: auto; }
.page-loader[hidden] { display: none !important; }
@keyframes loader-in { to { opacity: 1; } }
.loader-stage { position: relative; width: 280px; height: 150px; }
.loader-ring {
  position: absolute; left: 50%; top: 0; width: 128px; height: 128px; margin-left: -64px;
  fill: var(--orange); animation: spin 3.2s linear infinite;
  filter: drop-shadow(0 8px 14px rgba(238,110,0,.35));
}
.loader-chain {
  position: absolute; left: 0; right: 0; top: 119px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18' width='36' height='18'%3E%3Crect x='-18' y='4' width='24' height='10' rx='5' fill='%23A8A39D'/%3E%3Crect x='18' y='4' width='24' height='10' rx='5' fill='%23A8A39D'/%3E%3Crect x='0' y='2.5' width='24' height='13' rx='6.5' fill='%234A4540'/%3E%3Ccircle cx='3' cy='9' r='3' fill='%23EE6E00'/%3E%3Ccircle cx='21' cy='9' r='3' fill='%23EE6E00'/%3E%3C/svg%3E") 0 0 / 36px 18px repeat-x;
  animation: chain-run .2s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
@keyframes chain-run { to { background-position: -36px 0; } }
.loader-text { margin: 0; font-family: var(--latin); font-style: italic; font-weight: 800; letter-spacing: .14em; color: var(--orange-text); text-transform: uppercase; }
:lang(zh-Hant) .loader-text { font-family: var(--font); letter-spacing: .2em; }
@media (prefers-reduced-motion: reduce) {
  .loader-ring, .loader-chain { animation: none !important; }
}

/* =========================================================
   燈箱：一般頁面內文圖片、產品主圖點擊放大
   ========================================================= */
.zoomable { position: relative; display: inline-block; max-width: 100%; padding: 0; margin: 1em 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; line-height: 0; }
.zoomable img { margin: 0; }
.zoomable::after, .gallery-main::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .15s;
}
.gallery-main { position: relative; cursor: zoom-in; }
.zoomable:hover::after, .gallery-main:hover::after { transform: scale(1.08); }
.zoom-hint { display: block; margin: -.4em 0 1em; font-size: .85rem; color: var(--text-2); font-style: italic; }

.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(20,19,18,.97); color: #fff; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 12px 16px; }
.lb-count { font-family: var(--latin); font-weight: 600; letter-spacing: .1em; color: #D8D4CF; }
.lb-tools { display: flex; gap: .6rem; }
.lb-btn {
  min-width: 56px; min-height: 56px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.lb-btn:hover { background: var(--orange); border-color: var(--orange); color: #1A1A1A; }
.lb-btn .ico { width: 1.5em; height: 1.5em; }
.lb-close { background: var(--orange); border-color: var(--orange); color: #1A1A1A; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 94vw; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; user-select: none; }
.lightbox.is-zoomed .lb-stage { overflow: auto; display: block; touch-action: auto; cursor: zoom-out; }
.lightbox.is-zoomed .lb-stage img { max-width: none; max-height: none; width: auto; margin: 0 auto; }
.lb-stage img { cursor: zoom-in; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { margin: 0; padding: 10px 16px 16px; text-align: center; color: #E9E5E0; min-height: 1.5em; }
@media (max-width: 640px) {
  .lb-nav { top: auto; bottom: 8px; transform: none; }
  .lb-stage { padding-bottom: 72px; }
  .lb-btn .lb-label { display: none; }
}

/* =========================================================
   內頁標題字縮小（長標題也不會佔太多版面）
   ========================================================= */
.page-hero .wrap { padding-top: 26px; padding-bottom: 30px; }
.page-hero h1 { font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.25; max-width: 75%; }
.page-hero::after { width: 220px; height: 220px; margin-top: -110px; }
@media (max-width: 640px) { .page-hero h1 { font-size: 1.3rem; max-width: 85%; } }

/* =========================================================
   後台表格（一般頁面、產品規格）
   - 覆蓋後台貼上的固定寬度、邊框、底色
   - 「項目：內容」兩欄表：左欄灰底粗體標籤、右欄內容，列與列之間細線
   ========================================================= */
.prose .table-wrap {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -20px rgba(26,26,26,.45);
}
.prose .table-wrap table {
  display: table; width: 100% !important; min-width: 0; height: auto !important; margin: 0; border: 0 !important;
  border-collapse: collapse; font-size: 1rem; background: transparent !important;
}
.prose .table-wrap th, .prose .table-wrap td {
  width: auto !important; height: auto !important; padding: .85em 1.1em !important; border: 0 !important;
  border-bottom: 1px solid var(--line) !important; vertical-align: middle !important; text-align: left; line-height: 1.55;
  background: transparent !important;
}
.prose .table-wrap tr:last-child > th, .prose .table-wrap tr:last-child > td { border-bottom: 0 !important; }
.prose .table-wrap td p, .prose .table-wrap th p { margin: 0 !important; }
.prose .table-wrap td p + p, .prose .table-wrap th p + p { margin-top: .4em !important; }
/* 多欄表：第一列當表頭 */
.prose .table-wrap:not(.table-kv) tr:first-child > * { background: var(--bg-soft) !important; font-weight: 800; }
.prose .table-wrap:not(.table-kv) table { min-width: 560px; }
/* 兩欄規格表 */
.prose .table-kv { max-width: 760px; }
.prose .table-kv tr > :first-child {
  width: 34% !important; background: linear-gradient(90deg, #F6F5F8, #F0EFF3) !important; font-weight: 800; color: var(--ink);
  border-right: 1px solid var(--line) !important; white-space: nowrap;
}
.prose .table-kv tr > :first-child::before {
  content: ""; display: inline-block; width: 5px; height: 1em; margin-right: .6em; vertical-align: -.1em;
  border-radius: 3px; background: var(--orange); transform: skewX(-12deg);
}
.prose .table-kv tr > :nth-child(2) { font-weight: 600; }
.prose .table-kv tr:hover > * { background-color: #FFF8F1 !important; }
@media (max-width: 640px) {
  .prose .table-kv tr > :first-child { white-space: normal; width: 40% !important; }
  .prose .table-wrap th, .prose .table-wrap td { padding: .75em .85em !important; }
}
/* 標籤前的橘色小斜條改為絕對定位（後台常把文字包在 <p> 裡，避免斜條自成一行） */
.prose .table-kv tr > :first-child { position: relative; padding-left: 1.7em !important; }
.prose .table-kv tr > :first-child::before { position: absolute; left: .85em; top: 50%; margin: -.5em 0 0; }

/* =========================================================
   搜尋頁優化（第 1～6 項）
   ========================================================= */
/* 4. 精簡標題區 */
.search-hero-compact .wrap { padding-top: 18px; padding-bottom: 22px; gap: .6rem; }
.hero-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; }
.search-hero-compact h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.search-hero-compact .live-hint { margin: 0; font-size: .88rem; }
.search-hero-compact .search-form input[type="search"], .search-hero-compact .search-form .btn { min-height: 56px; }
.search-hero-compact .chainring { width: 260px; height: 260px; margin-top: -130px; right: -70px; }
.finder.section { padding-top: 28px; }

/* 1. 篩選面板：不再有內部捲軸，分組可收合，不固定在畫面上 */
.finder-layout { grid-template-columns: 320px minmax(0, 1fr); }
.filter-panel { position: static; }
.filter-body { max-height: none; overflow: visible; gap: 0; padding: .3rem 1.1rem 1rem; }
.fgroup { border-bottom: 1px solid var(--line); padding: .2rem 0 1rem; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 52px; font-family: var(--latin); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #44444B; font-size: .95rem;
}
:lang(zh-Hant) .fgroup > summary { font-family: var(--font); font-weight: 800; letter-spacing: .06em; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::before { content: ""; width: 6px; height: 1.1em; border-radius: 6px; background: var(--orange); filter: blur(1px); margin-right: .5rem; flex: none; }
.fgroup > summary::after { content: "－"; margin-left: auto; color: var(--orange-text); font-size: 1.1rem; }
.fgroup:not([open]) > summary::after { content: "＋"; }

/* 2. 產品特性：一般大小寫、圖示縮小、數字固定靠右 */
.feat { grid-template-columns: 24px 32px minmax(0, 1fr) 2.4em; gap: .6rem; min-height: 50px; font-size: .92rem; font-weight: 600; line-height: 1.3; padding: .25rem .4rem; }
.feat img { width: 32px; height: 32px; }
.feat .check { width: 24px; height: 24px; }
.feat[aria-pressed="true"] .check::after { left: 6px; top: 1px; }
.feat .n { justify-self: end; }
.js .feat-list:not(.expanded) .feat-more:not([aria-pressed="true"]) { display: none; }
.feat-toggle {
  margin-top: .5rem; min-height: 48px; width: 100%; border-radius: 999px; border: 1px dashed #A9A8B0; background: #fff;
  color: var(--orange-text); font: inherit; font-weight: 800;
}
.feat-toggle:hover { border-color: var(--orange); background: #FFF7F0; }
html:not(.js) .feat-toggle { display: none; }

/* 3. 已套用條件的膠囊 */
.results-bar { justify-content: flex-start; }
.active-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 260px; }
.active-pills:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--orange); background: #FFF3E8; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.pill span { font-size: 1.25rem; line-height: 1; color: var(--orange-text); }
.pill:hover { background: var(--orange); color: var(--ink); }
.pill:hover span { color: var(--ink); }
.results-bar .clear-all { margin-left: auto; }

/* 5. 產品卡片：系列、特色圖示、查看詳情／我要詢價 */
.product-card { display: flex; flex-direction: column; height: 100%; padding-bottom: .9rem; }
.product-main { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); position: relative; }
.product-main:hover .product-name { color: var(--orange-text); }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: 0 1rem; margin-top: -.3rem; }
.product-series { font-size: .85rem; color: var(--text-2); font-weight: 600; }
.product-feats { display: inline-flex; align-items: center; gap: .3rem; }
.product-feats img { width: 26px; height: 26px; object-fit: contain; }
.product-feats .more { font-size: .78rem; font-weight: 800; color: var(--text-2); }
.product-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .8rem 1rem 0; margin-top: auto; }
.product-actions-row .btn { min-height: 46px; padding: .2em .6em; font-size: .9rem; }

/* 6. 鏈條照片是橫長圖：圖片框改為 4:3 */
.product-img { aspect-ratio: 4 / 3; }
.product-img img { object-fit: contain; padding: 6%; }

@media (max-width: 1080px) {
  .finder-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .search-hero-compact .live-hint { display: none; }
  .product-actions-row { grid-template-columns: 1fr; }
  .product-meta { padding: 0 .7rem; }
  .product-actions-row { padding: .6rem .7rem 0; }
  .results-bar .clear-all { margin-left: 0; }
}
@media (max-width: 640px) {
  /* 結果列：計數與「清除全部」同一行，條件膠囊在下一行 */
  .results-bar { flex-wrap: wrap; gap: .6rem; }
  .results-bar .clear-all { margin-left: auto; order: 2; }
  .active-pills { order: 3; flex-basis: 100%; }
}

/* =========================================================
   右下角客服圖示（Asiabots）縮小
   外掛元素：.iconifier > #frame-launcher-btn > img.imager
   ========================================================= */
.iconifier { width: auto !important; height: auto !important; right: 16px !important; bottom: 20px !important; }
.iconifier #frame-launcher-btn, #frame-launcher-btn { width: 60px !important; height: 60px !important; display: inline-flex !important; align-items: center; justify-content: center; }
.iconifier .imager, #frame-launcher-btn img { width: 60px !important; height: 60px !important; max-width: 60px !important; object-fit: contain; }
@media (max-width: 1080px) {
  .iconifier { bottom: calc(84px + env(safe-area-inset-bottom)) !important; right: 12px !important; }
  .iconifier #frame-launcher-btn, #frame-launcher-btn, .iconifier .imager, #frame-launcher-btn img { width: 48px !important; height: 48px !important; max-width: 48px !important; }
}
/* 比較列出現時，客服圖示往上移，避免重疊 */
body.has-tray .iconifier { bottom: 104px !important; }
@media (max-width: 1080px) { body.has-tray .iconifier { bottom: calc(176px + env(safe-area-inset-bottom)) !important; } }

/* =========================================================
   喜愛清單與比較
   ========================================================= */
html:not(.js) .fav-btn, html:not(.js) .cmp-toggle, html:not(.js) .nav-fav { display: none !important; }

/* 頁首愛心 */
.nav-fav {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: var(--tap); padding: 0 .8rem;
  border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--latin); font-weight: 600; flex: none;
}
:lang(zh-Hant) .nav-fav { font-family: var(--font); font-weight: 800; }
.nav-fav:hover { background: #FFF1E5; color: var(--ink); }
.nav-fav .ico { width: 1.35em; height: 1.35em; color: var(--orange-text); }
.nav-fav-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: var(--latin);
}
.header-in .site-nav { order: 2; }
.header-in .nav-fav { order: 3; }
.header-in .menu-btn { order: 4; }
@media (max-width: 1080px) {
  .header-in .nav-fav { margin-left: auto; }
  .header-in .menu-btn { margin-left: 0; }
  .nav-fav-label { display: none; }
}

/* 卡片上的愛心 */
.product-card { position: relative; }
.fav-btn {
  position: absolute; right: 16px; top: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(26,26,26,.1); background: rgba(255,255,255,.95); color: #8E8D95; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(26,26,26,.12); transition: transform .15s, color .15s;
}
.fav-btn .ico { width: 26px; height: 26px; }
.fav-btn:hover { color: #E0245E; transform: scale(1.06); }
.fav-btn[aria-pressed="true"] { color: #E0245E; }
.fav-btn[aria-pressed="true"] .ico { fill: currentColor; }
/* 產品頁的大按鈕版本 */
.fav-btn-lg { position: static; width: auto; height: auto; min-height: 56px; border-radius: 999px; padding: 0 1.3rem; gap: .5rem; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.fav-btn-lg .ico { color: #E0245E; }
.fav-btn-lg:hover { transform: none; background: #FFF0F4; color: var(--ink); }
.fav-btn-lg[aria-pressed="true"] { background: #FFF0F4; border-color: #E0245E; color: var(--ink); }
.product-actions-2 { margin-top: .7rem; }

/* 比較勾選 */
.cmp-toggle {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin: .5rem 1rem 0; padding: 0 .8rem 0 .5rem; align-self: flex-start;
  border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: .92rem;
}
.cmp-toggle:hover { border-color: var(--line); background: #fff; color: var(--ink); }
.cmp-toggle .box { width: 22px; height: 22px; border: 2px solid #8E8D95; border-radius: 6px; background: #fff; position: relative; flex: none; }
.cmp-toggle[aria-pressed="true"] { color: var(--ink); background: #FFF3E8; border-color: var(--orange); }
.cmp-toggle[aria-pressed="true"] .box { background: var(--orange); border-color: var(--orange); }
.cmp-toggle[aria-pressed="true"] .box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.cmp-toggle-lg { margin: 0; min-height: 56px; padding: 0 1.3rem 0 1rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 1.05rem; }

/* 比較列 */
.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; background: rgba(255,255,255,.98);
  border-top: 3px solid var(--orange); box-shadow: 0 -10px 30px rgba(26,26,26,.15); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tray-in { display: flex; align-items: center; gap: 1rem; min-height: 84px; padding-top: 10px; padding-bottom: 10px; }
.tray-items { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.tray-items li { display: flex; align-items: center; gap: .5rem; background: var(--bg-soft); border-radius: 999px; padding: .25rem .3rem .25rem .3rem; flex: none; max-width: 240px; }
.tray-items img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.tray-items span { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-items button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; line-height: 1; color: var(--text-2); flex: none; }
.tray-items button:hover { background: var(--orange); color: var(--ink); }
.tray-count { font-family: var(--latin); font-weight: 800; font-style: italic; color: var(--orange-text); font-size: 1.2rem; flex: none; }
.tray-actions { display: flex; gap: .5rem; flex: none; }
.btn.is-disabled { opacity: .45; }
body.has-tray { padding-bottom: 96px; }
@media (max-width: 1080px) {
  .compare-tray { bottom: calc(71px + env(safe-area-inset-bottom)); padding-bottom: 0; }
  body.has-tray { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .tray-in { flex-wrap: wrap; gap: .5rem; min-height: 0; }
  .tray-items { flex-basis: 100%; }
  .tray-items li span { max-width: 110px; }
  .tray-actions { margin-left: auto; }
}

/* 提示訊息 */
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 2500; background: var(--ink); color: #fff;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center;
}
@media (max-width: 1080px) { .toast { bottom: calc(190px + env(safe-area-inset-bottom)); } }

/* 喜愛清單／比較頁工具列 */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.list-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.list-note { color: var(--text-2); font-style: italic; font-size: .92rem; margin: 0 0 1.4rem; }
.list-empty { text-align: center; padding: 2.5rem 1.5rem; display: grid; justify-items: center; gap: .6rem; }
.empty-ico { width: 64px; height: 64px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert-info { background: #FFF6EC; border: 1px solid #F3C9A0; color: var(--ink); font-weight: 600; }

/* 開關 */
.switch { display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 52px; height: 30px; border-radius: 999px; background: #C9C8CF; position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--orange); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--orange); outline-offset: 3px; }

/* 比較表 */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 26px -20px rgba(26,26,26,.45); }
.compare-table { width: 100%; min-width: calc(180px + var(--cols) * 220px); border-collapse: separate; border-spacing: 0; font-size: .98rem; }
.compare-table th, .compare-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-table tbody th[scope="row"] {
  position: sticky; left: 0; z-index: 1; width: 200px; background: #F6F5F8; font-weight: 800; border-right: 1px solid var(--line);
}
.compare-table thead th, .compare-table .corner { background: var(--frost); vertical-align: top; }
.compare-table .corner { position: sticky; left: 0; z-index: 2; background: #F6F5F8; border-right: 1px solid var(--line); }
.cmp-head { position: relative; display: grid; gap: .4rem; justify-items: start; }
.cmp-img { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: 14px; overflow: hidden; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.cmp-head .sp-tag { position: static; }
.cmp-name { font-family: var(--latin); font-style: italic; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.cmp-name:hover { color: var(--orange-text); }
.cmp-model { font-size: .88rem; color: var(--text-2); font-weight: 600; }
.cmp-remove { position: absolute; right: 6px; top: 6px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; color: var(--text-2); }
.cmp-remove:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.compare-table .group-row th {
  background: #fff; padding-top: 1.3rem; font-family: var(--latin); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #55555C; font-size: .9rem;
  position: sticky; left: 0;
}
:lang(zh-Hant) .compare-table .group-row th { font-family: var(--font); letter-spacing: .06em; font-weight: 800; }
.compare-table td.center { text-align: center; }
.compare-table .yes { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); align-items: center; justify-content: center; font-weight: 900; }
.compare-table .no { color: #A9A8B0; font-weight: 800; }
.compare-table .feat-ico { width: 26px; height: 26px; vertical-align: middle; margin-right: .5rem; }
.compare-table tbody tr:hover td { background: #FFFAF5; }
.compare-table.diff-only tr[data-diff] td { background: #FFF1E2; }
.compare-table.diff-only tr[data-diff] th[scope="row"] { box-shadow: inset 5px 0 0 var(--orange); }
.compare-table.diff-only tbody tr:not([data-diff]):not(.group-row):not(.actions-row) { opacity: .45; }
.compare-table .actions-row td { display: table-cell; }
.compare-table .actions-row .btn { margin: .2rem .3rem .2rem 0; }
.compare-table tr:last-child > * { border-bottom: 0; }
@media (max-width: 640px) {
  .compare-table { min-width: calc(120px + var(--cols) * 170px); font-size: .92rem; }
  .compare-table tbody th[scope="row"], .compare-table .corner { width: 120px; }
  .cmp-name { font-size: 1.1rem; }
}

/* 詢問多項產品 */
.ask-list { margin-bottom: 1.2rem; padding: 1rem; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.ask-title { margin: 0 0 .6rem; font-weight: 800; }
.ask-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ask-list li { display: flex; align-items: center; gap: .5rem; background: var(--bg-soft); border-radius: 999px; padding: .2rem .9rem .2rem .25rem; font-weight: 700; font-size: .92rem; }
.ask-list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; }
/* 讓表格內的隱藏文字以容器為定位基準，避免撐寬手機畫面 */
.compare-wrap, .prose .table-wrap { position: relative; }
.compare-table { table-layout: fixed; }
.compare-table .corner, .compare-table tbody th[scope="row"] { width: 200px; }
.compare-table .th-in { display: flex; align-items: center; gap: .5rem; }
.compare-table .th-in .feat-ico { margin: 0; flex: none; }
@media (max-width: 640px) { .compare-table .corner, .compare-table tbody th[scope="row"] { width: 120px; } }

/* =========================================================
   比較表：手機版改為「項目名稱一列、各產品數值並排一列」
   不再有固定的左側欄，2～3 項產品不用左右滑動；4 項時才可滑動
   ========================================================= */
@media (max-width: 640px) {
  .compare-table, .compare-table thead, .compare-table tbody { display: block; }
  .compare-table { width: 100%; min-width: calc(var(--cols) * 128px); table-layout: auto; }
  .compare-table tr { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .compare-table th, .compare-table td { display: block; width: auto !important; min-width: 0; padding: .7rem .75rem; overflow-wrap: anywhere; }
  .compare-table .corner { display: none; }
  .compare-table tbody th[scope="row"] {
    grid-column: 1 / -1; position: static; width: auto !important; border-right: 0; padding: .55rem .9rem .4rem;
    background: #F6F5F8; font-size: .85rem; color: #4B4B52; letter-spacing: .02em;
  }
  .compare-table .group-row th { grid-column: 1 / -1; position: static; padding: 1rem .9rem .5rem; }
  .compare-table .actions-row th { display: none; }
  .compare-table thead th + th, .compare-table td + td { border-left: 1px solid var(--line); }
  .compare-table thead th { padding: .7rem .6rem; }
  .cmp-remove { width: 36px; height: 36px; right: 4px; top: 4px; }
  .cmp-name { font-size: 1.05rem; }
  .cmp-model { font-size: .8rem; }
  .compare-table td.center { display: flex; justify-content: center; align-items: center; }
  .compare-table .actions-row td { display: grid; gap: .4rem; }
  .compare-table .actions-row .btn { margin: 0; width: 100%; padding: .2em .4em; }
  .compare-table.diff-only tr[data-diff] th[scope="row"] { box-shadow: inset 5px 0 0 var(--orange); }
  .compare-page .list-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .compare-page .list-actions .btn { width: 100%; padding: .3em .5em; }
}

/* =========================================================
   首頁產品系列：分三組，避免最後一排落單
   變速系列 8 項：桌機一排 8 個／平板 4 個／手機 2 個（都剛好整除）
   特殊系列、快扣與配件：桌機一排 6 個，卡片大小與上方一致
   ========================================================= */
.series-group + .series-group { margin-top: 2.4rem; }
.series-group-title {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.15rem; font-weight: 800; color: var(--ink);
  font-family: var(--latin); font-style: italic; text-transform: uppercase; letter-spacing: .04em;
}
:lang(zh-Hant) .series-group-title { font-family: var(--font); font-style: normal; text-transform: none; }
.series-group-title::before { content: ""; width: 26px; height: 6px; border-radius: 3px; background: var(--orange); transform: skewX(-24deg); }
.series-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.series-group-title .n { font-size: .8rem; font-style: normal; }
.series-group .series-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.series-group-speed .series-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.series-group .series-card { border-radius: 18px; }
.series-group .series-img { margin: 8px 8px 0; border-radius: 12px; }
.series-group .series-name { min-height: 56px; padding: .55rem .6rem .55rem 1.25rem; font-size: .88rem; line-height: 1.3; }
.series-group .series-name::before { left: .55rem; }
.series-group .series-name .ico { width: 1.1em; height: 1.1em; }
/* 沒有圖片的系列：文字圖塊 */
.series-tile {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--latin); font-weight: 800; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: .04em;
  color: var(--ink); background:
    radial-gradient(80% 60% at 50% 40%, rgba(238,110,0,.14), transparent 70%), #fff;
}
.series-tile::after { content: ""; display: block; }
@media (max-width: 1200px) {
  .series-group-speed .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .series-group .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .series-group-speed .series-grid, .series-group .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .series-group .series-name { font-size: .9rem; }
}
/* 第三組只有 3 項：平板以上一排顯示完 */
@media (min-width: 641px) and (max-width: 1200px) { .series-group-acc .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   語言切換：滑鼠移入時改為深底白字（原本淺底白字看不清楚）
   ========================================================= */
.nav-link.nav-lang:hover, .nav-link.nav-lang:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-link.nav-lang:hover .ico, .nav-link.nav-lang:focus-visible .ico { color: #fff; }
@media (max-width: 1080px) {
  .nav-link.nav-lang:hover { background: #FFF1E5; color: var(--ink); }
  .nav-link.nav-lang:hover .ico { color: var(--ink); }
}
/* 調整：卡片放大，長者較好看清楚；每組都剛好排滿，不落單
   變速 8 項 → 一排 4 個（2 排）；特殊 6 項、配件 3 項 → 一排 3 個 */
.series-group-speed .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.series-group-special .series-grid, .series-group-acc .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.series-group .series-name { min-height: 60px; font-size: 1rem; padding: .6rem .9rem .6rem 1.5rem; }
.series-group .series-name::before { left: .75rem; }
.series-group-special .series-img, .series-group-acc .series-img { aspect-ratio: 16 / 9; }
.series-group-special .series-img img, .series-group-acc .series-img img { object-fit: contain; }
@media (max-width: 640px) {
  .series-group-speed .series-grid, .series-group-special .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .series-group-acc .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .series-group-acc .series-img { aspect-ratio: 1 / 1; }
  .series-group .series-name { font-size: .88rem; min-height: 54px; padding: .5rem .5rem .5rem 1.15rem; }
  .series-group .series-name::before { left: .45rem; }
  .series-group-acc .series-name .ico { display: none; }
  .series-tile { font-size: 1.2rem; }
}

/* =========================================================
   產品頁 v2
   ========================================================= */
/* 系列快速切換：一列可左右滑動的膠囊 */
.series-strip {
  display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem 1rem; margin-bottom: 1.4rem;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--line);
}
.series-strip .chip { flex: none; min-height: 44px; font-size: .92rem; white-space: nowrap; }
.series-strip .chip.is-on { background: var(--sc, var(--orange)); border-color: var(--sc, var(--orange)); color: var(--sc-on, var(--ink)); }

/* 上半部：左圖右資訊，各佔一半 */
.product-top-v2 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.product-top-v2 .gallery { position: sticky; top: 110px; }
.product-top-v2 .gallery-main img { aspect-ratio: 4 / 3; padding: 4%; }
.product-top-v2 .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.product-top-v2 .thumb img { aspect-ratio: 4 / 3; object-fit: cover; }
.product-cat { margin: .5rem 0 1.2rem; }
.product-cat a { font-family: var(--latin); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--text-2); text-decoration: none; border-bottom: 2px solid var(--sc, var(--orange)); padding-bottom: 2px; }
.product-cat a:hover { color: var(--ink); }
.product-info .product-title { margin-top: .6rem; }

/* 重點規格卡 */
.fact-card { margin: 0 0 1.4rem; padding: .4rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--frost); }
.fact { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.fact:last-child { border-bottom: 0; }
.fact dt { font-family: var(--latin); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #5A5A61; padding-top: .15em; }
:lang(zh-Hant) .fact dt { font-family: var(--font); letter-spacing: .04em; font-weight: 800; }
.fact dd { margin: 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.swatches, .bike-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem .9rem; }
.swatches li { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 3px 5px rgba(255,255,255,.55); flex: none; }
.sw-silver { background: linear-gradient(135deg, #F2F3F5, #A9ADB4); }
.sw-gold { background: linear-gradient(135deg, #F6DB8A, #C08A1E); }
.sw-black { background: linear-gradient(135deg, #5A5A60, #111114); }
.sw-znt { background: linear-gradient(135deg, #D7DEE2, #7F939E); }
.sw-rainbow { background: conic-gradient(from 30deg, #6E58C9, #2F80ED, #27AE60, #F2C94C, #EE6E00, #E0245E, #6E58C9); }
.sw-blue { background: linear-gradient(135deg, #5C7FB0, #1C3557); }
.sw-brown { background: linear-gradient(135deg, #A9774F, #5A3A22); }
.sw-red { background: linear-gradient(135deg, #E25A5A, #9C1C1C); }
.sw-other { background: #DDD; }
.bike-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .8rem .2rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.bike-chips .ico { width: 1.3em; height: 1.3em; color: var(--sc, var(--orange-text)); }

/* 特色圖示：一排 3 個，名稱一般大小寫 */
.features-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem .6rem; margin: 0 0 1.5rem; }
.features-v2 li { font-size: .85rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.features-v2 img { width: 54px; height: 54px; }

/* 動作區 */
.buy-box { display: grid; gap: .7rem; padding: 1.1rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(26,26,26,.55); }
.buy-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; }
.buy-main .btn { width: 100%; }
.buy-sub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.buy-sub .btn, .buy-sub .fav-btn-lg, .buy-sub .cmp-toggle-lg { width: 100%; min-height: 50px; padding: 0 .6rem; font-size: .92rem; border-width: 1px; border-color: #B9B8C0; justify-content: center; }
.buy-sub .fav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-line { background: #fff; color: var(--ink); border: 1px solid #B9B8C0; }
.sub-line .ico { color: #06C755; fill: #06C755; stroke: none; }
.sub-line:hover { background: #06C755; color: #0A0A0A; border-color: #06C755; }
.sub-line:hover .ico { fill: #0A0A0A; }

/* 說明條列：打勾清單 */
.check-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .55rem; max-width: 760px; }
.check-list li { position: relative; padding-left: 2.1rem; line-height: 1.6; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--sc, var(--orange)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.product-page .spec-block { margin-top: 2rem; padding-top: 1.8rem; }
.product-grid-related { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.inquiry-block .msg-form { max-width: 920px; }

@media (max-width: 1080px) {
  .product-top-v2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-top-v2 .gallery { position: static; }
}
@media (max-width: 640px) {
  .fact { grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: .7rem 0; }
  .fact-card { padding: .2rem 1rem; }
  .buy-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buy-sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buy-sub .sub-line { grid-column: 1 / -1; }
  .features-v2 img { width: 46px; height: 46px; }
  .series-strip { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}
.buy-sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.buy-sub .sub-line { padding: 0 1.1rem; }
@media (max-width: 640px) { .buy-sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* =========================================================
   系列切換：不再需要左右滑動
   ========================================================= */
.series-switch { margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.series-switch > summary { display: none; list-style: none; }
.series-switch > summary::-webkit-details-marker { display: none; }
.series-switch .series-strip { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0; border: 0; }
.series-switch .series-strip .chip { flex: none; }
@media (max-width: 640px) {
  .series-switch { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: #fff; box-shadow: 0 10px 22px -20px rgba(26,26,26,.5); }
  .series-switch > summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .8rem; align-items: center;
    min-height: 64px; padding: .6rem 1rem; cursor: pointer;
  }
  .ss-label { grid-column: 1; font-size: .78rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; }
  .ss-current { grid-column: 1; font-size: 1.05rem; line-height: 1.3; }
  .ss-action {
    grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: .25rem; min-height: 46px; padding: 0 .9rem;
    border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 800; font-size: .92rem;
  }
  .ss-action .caret { width: 1.1em; height: 1.1em; transition: transform .2s; }
  .series-switch[open] .ss-action .caret { transform: rotate(180deg); }
  .series-switch .series-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; padding: .2rem 1rem 1rem; margin: 0; }
  .series-switch .series-strip .chip { justify-content: center; text-align: center; white-space: normal; line-height: 1.25; padding: .35rem .6rem; min-height: 48px; }
}

/* =========================================================
   可左右滑動的區塊：提示文字＋右側漸層，讓使用者知道還有內容
   ========================================================= */
.swipe-hint {
  display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 0 .5rem;
  font-size: .9rem; font-weight: 700; color: var(--orange-text);
}
.swipe-hint[hidden] { display: none; }
.sh-arrow { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #FFF1E5; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; }
.sh-arrow:last-child { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.compare-wrap.is-scrollable, .prose .table-wrap.is-scrollable {
  background:
    linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 40px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(26,26,26,.18), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(26,26,26,.18), transparent) right / 14px 100% no-repeat scroll,
    #fff;
}
@media (prefers-reduced-motion: reduce) { .sh-arrow:last-child { animation: none; } }

/* =========================================================
   智慧搜尋
   ========================================================= */
/* 搜尋結果上方的說明（套件換算、拼字修正、最接近結果） */
.smart-note {
  margin: 0 0 1.1rem; padding: .9rem 1.1rem .9rem 3.2rem; border-radius: 16px; position: relative;
  background: #FFF6EC; border: 1px solid #F3C9A0; font-weight: 600; line-height: 1.6;
}
.smart-note::before {
  content: ""; position: absolute; left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.smart-note p { margin: 0; }
.smart-note p + p { margin-top: .35rem; }
.note-pick {
  display: inline-flex; align-items: center; min-height: 44px; margin: .3rem .3rem 0 0; padding: 0 1.1rem; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; font: inherit; font-weight: 800; cursor: pointer;
}
.note-pick:hover { background: var(--orange); border-color: var(--orange); }
.note-pick[disabled] { opacity: .4; cursor: not-allowed; }
.is-closest .product-grid-search { opacity: .92; }
/* 由查詢自動判斷的速數：飛輪片以虛線框標示 */
.cog.is-auto .cog-bar { background: var(--sc, var(--orange)); opacity: .8; outline: 2px dashed var(--ink); outline-offset: 2px; }
.cog.is-auto .cog-label { color: var(--ink); }

/* 輸入時的建議清單 */
.search-form.has-suggest { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 150; max-height: min(70vh, 520px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 44px -12px rgba(26,26,26,.35); padding: .4rem;
  text-align: left;
}
.suggest[hidden] { display: none; }
.sg-head { margin: .5rem .7rem .2rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.sg-note { margin: .3rem .6rem .4rem; padding: .5rem .8rem; border-radius: 10px; background: #FFF6EC; font-weight: 700; font-size: .92rem; }
.sg-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 58px; padding: .35rem .6rem;
  border-radius: 12px; color: var(--ink); text-decoration: none;
}
.sg-row:hover, .sg-row[aria-selected="true"] { background: #FFF1E5; color: var(--ink); }
.sg-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.sg-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.sg-hint .sg-ico { background: var(--orange); }
.sg-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sg-main strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-main small { color: var(--text-2); font-size: .85rem; }
.sg-go { color: var(--orange-text); font-size: 1.5rem; line-height: 1; }
.sg-all { grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: .3rem; }
.sg-all strong { color: var(--orange-text); }

/* 語音搜尋按鈕 */
.voice-btn {
  flex: none; width: 56px; min-height: 56px; border-radius: 50%; border: 2px solid #3A3A40; background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; align-self: center;
}
.voice-btn .ico { width: 1.5em; height: 1.5em; }
.voice-btn:hover { border-color: var(--orange); color: var(--orange-text); }
.voice-btn.is-listening { background: #E0245E; border-color: #E0245E; color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,36,94,.45); } 50% { box-shadow: 0 0 0 10px rgba(224,36,94,0); } }
.search-hero .voice-btn, .quick-search .voice-btn { width: 60px; min-height: 60px; }
.sub-search .voice-btn, .nav-search .voice-btn { width: 54px; min-height: 54px; }
@media (max-width: 640px) {
  .voice-btn { width: 52px; min-height: 52px; }
  .suggest { position: fixed; left: 12px; right: 12px; top: auto; max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { .voice-btn.is-listening { animation: none; } }
.sub-search { width: 520px; }

/* =========================================================
   手機：聯絡橫幅與頁尾留白
   原因：手機版 .wrap { padding: 0 16px } 會蓋掉區塊上下留白，改用較高權重的選擇器
   ========================================================= */
.cta-band .cta-in { padding-top: 48px; padding-bottom: 52px; }
.site-footer .footer-grid { padding-top: 48px; padding-bottom: 40px; }
.footer-name:empty, .made-in span:empty, .made-in span:empty + .rule { display: none; }
@media (max-width: 640px) {
  .cta-band .cta-in { padding-top: 40px; padding-bottom: 48px; gap: 1.6rem; }
  .cta-band .cta-actions { gap: .9rem; width: 100%; }
  .site-footer .footer-grid { padding-top: 40px; padding-bottom: 32px; gap: 2rem; }
  .footer-tagline { margin-top: .9rem; }
  .footer-contact { gap: 1rem; }
  /* 頁尾底部：一行一項，置中；「回到頂端」改為大按鈕，避免和右下角客服圖示重疊 */
  .footer-bottom-in { flex-direction: column; align-items: stretch; gap: 1rem; padding-top: 24px; padding-bottom: 92px; text-align: center; }
  .made-in { justify-content: center; flex: none; }
  .copy { margin: 0; }
  .to-top {
    justify-content: center; min-height: 52px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink);
    text-decoration: none; font-weight: 800; background: #fff;
  }
}
@media (max-width: 640px) {
  .series-group-acc .series-name { font-size: .8rem; padding-left: 1rem; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  /* 配件只有 3 項：手機改成一列一項的橫向卡片，名稱不會被斷字 */
  .series-group-acc .series-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .series-group-acc .series-card { flex-direction: row; align-items: center; }
  .series-group-acc .series-img { width: 84px; flex: none; aspect-ratio: 1 / 1; margin: 8px; }
  .series-group-acc .series-name { flex: 1; font-size: .98rem; padding: .5rem .9rem .5rem 1.4rem; overflow-wrap: normal; }
  .series-group-acc .series-name .ico { display: inline-block; }
  .series-group-acc .series-tile { font-size: 1.1rem; }
}

/* 留言送出中 */
.btn.is-sending { opacity: .75; cursor: progress; }
.spinner { width: 1.1em; height: 1.1em; border-radius: 50%; border: 3px solid rgba(26,26,26,.25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.cf-turnstile { margin-bottom: 1.1rem; }
/* 開新視窗的連結：標題後加小箭頭圖示 */
.ext-ico { width: .95em; height: .95em; margin-left: .3em; vertical-align: -.1em; color: var(--orange-text); flex: none; }
