/* ============================================================
   ATTRAK Brand Site — Design System (Light)
   Palette: brand cyan C70M15Y0 (#1E9CD7 / deep #0E7AB2) + K100 black
   Style direction: clean light base, dark text, single accent,
   real photography, marquee trust elements (ref: lightweight.run)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F3F7FB;
  --surface: #FFFFFF;
  --raised: #F8FAFD;
  --ink: #0B1524;                       /* K100 brand black */
  --border: rgba(13, 30, 50, 0.10);
  --border-strong: rgba(13, 30, 50, 0.16);

  --brand: #1E9CD7;
  --brand-deep: #0E7AB2;
  --brand-bright: #0E7AB2;              /* accent-on-light alias */
  --brand-soft: rgba(30, 156, 215, 0.10);
  --blue: #2E7FFF;
  --blue-soft: rgba(46, 127, 255, 0.10);

  --text: #101828;
  --text-soft: #3D4A5C;
  --text-muted: #64748B;

  --shadow-sm: 0 2px 8px rgba(15, 40, 70, 0.05);
  --shadow-md: 0 12px 28px rgba(15, 40, 70, 0.09);

  --font-display: "Archivo", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-body: "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", -apple-system, "Segoe UI", system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(30, 156, 215, 0.25); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "palt"; /* CJK proportional metrics — tighter, more editorial */
  letter-spacing: 0.015em;
}

.h-display {
  font-size: clamp(2.2rem, 5.5vw, 3.7rem);
  letter-spacing: 0.01em;
  font-weight: 800;
  color: var(--ink);
}
.h-display .accent { color: var(--brand-deep); }

.h-section { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 14px 0 16px; }

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-soft);
  max-width: 46em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-brand {
  background: var(--brand-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(14, 122, 178, 0.22);
}
.btn-brand:hover { transform: translateY(-2px); background: var(--ink); box-shadow: 0 8px 20px rgba(11, 21, 36, 0.25); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: var(--bg);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* Partner CTA — deliberately a different (warm) accent so it reads as a distinct destination, not a peer of the main brand CTA */
.btn-partner {
  background: #D97706;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(217, 154, 6, 0.22);
}
.btn-partner:hover { transform: translateY(-2px); background: #B45309; box-shadow: 0 8px 18px rgba(217, 154, 6, 0.3); }

/* 導覽列兩顆 CTA（體驗據點／經銷夥伴專區）縮為 btn-sm 的 0.9x（原尺寸與 4/5 的中間值） */
.header-cta, .header-partner { padding: 8px 18px; font-size: 0.81rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo::after { content: "."; color: var(--brand); }
.logo img { height: 32px; width: auto; display: block; }
.logo:has(img)::after { content: none; }
.footer-brand .logo-mark { height: 40px; width: auto; margin-bottom: 6px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(13, 30, 50, 0.05); }
.nav-links a.active { color: var(--brand-deep); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.lang-btn svg { width: 13px; height: 13px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.lang-wrap.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu button.active { color: var(--brand-deep); background: var(--brand-soft); font-weight: 700; }

/* Hamburger */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mobile-menu a {
  padding: 15px 8px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.mobile-menu a.active { color: var(--brand-deep); }
.mobile-menu .btn { margin-top: 22px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 11vh, 120px)) 0 clamp(56px, 9vh, 100px);
  overflow: hidden;
  background: linear-gradient(180deg, #F5F9FC 0%, #FFFFFF 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 80% 12%, rgba(30, 156, 215, 0.10), transparent 65%),
    radial-gradient(55% 60% at 8% 85%, rgba(30, 156, 215, 0.06), transparent 65%);
}
.hero .lede { margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}
.chip svg { width: 15px; height: 15px; stroke: var(--brand-deep); flex-shrink: 0; }

/* ---------- Sections ---------- */

.section { padding: clamp(60px, 9vh, 110px) 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(34px, 5vh, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
/* centered eyebrows get symmetric lines on both sides (left-aligned ones keep a single leading line) */
.eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  display: none;
}
.section-head.center .eyebrow::after { display: inline-block; }

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 156, 215, 0.45);
  box-shadow: var(--shadow-md);
}
.product-card:hover::after { opacity: 1; }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(30, 156, 215, 0.30);
  margin-bottom: 22px;
}
.card-icon svg { width: 30px; height: 30px; stroke: var(--brand-deep); }
.product-card.blue .card-icon { background: var(--blue-soft); border-color: rgba(46, 127, 255, 0.30); }
.product-card.blue .card-icon svg { stroke: var(--blue); }

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.product-card.blue .card-tag { color: var(--blue); }
.product-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.product-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.product-card:hover .card-link::after { transform: translateX(5px); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding: clamp(44px, 7vh, 80px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
/* reverse = 圖左文右（order:-1 把視覺欄提到前面；舊值 order:2 是無效的歷史 bug，圖永遠在右） */
.feature-row.reverse .feature-visual { order: -1; }
.feature-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 16px; }
.feature-copy p { color: var(--text-soft); }
.feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--brand);
}
.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--raised);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.feature-visual svg { width: 62%; height: auto; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-visual.contain { padding: 20px; }
.feature-visual.contain img { object-fit: contain; }
.feature-visual.blend {
  background: var(--bg-soft);
  border-color: transparent;
  box-shadow: none;
  padding: 6px;
}
.feature-visual .photo-hint {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(13, 30, 50, 0.25);
  text-transform: uppercase;
}

/* ---------- Highlight band ---------- */

.band {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 156, 215, 0.25);
  background:
    radial-gradient(70% 120% at 15% 0%, rgba(30, 156, 215, 0.10), transparent 55%),
    radial-gradient(70% 120% at 90% 100%, rgba(30, 156, 215, 0.06), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.band p { color: var(--text-soft); max-width: 42em; margin: 0 auto; }
.band .band-trust { margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}
.point-list { display: grid; gap: 16px; }
.point {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.point-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(30, 156, 215, 0.30);
}
.point-icon svg { width: 20px; height: 20px; stroke: var(--brand-deep); }
.point h3 { font-size: 1.02rem; margin-bottom: 4px; }
.point p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Three-step capability flow ---------- */

.capability-flow {
  list-style: none; /* 這是 <ol>；全域 reset 只關了 ul 的項目符號 */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: capability-step;
}
.capability-step {
  position: relative;
  min-height: 238px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(30, 156, 215, 0.10), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.capability-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 58px;
  right: -23px;
  width: 23px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(30, 156, 215, 0.18));
}
.capability-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.capability-number {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand-deep);
}
.capability-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 156, 215, 0.28);
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.capability-icon svg { width: 28px; height: 28px; }
.capability-copy h3 { font-size: 1.35rem; margin-bottom: 10px; }
.capability-copy p { color: var(--text-muted); font-size: 0.96rem; }
/* 三步驟與三產品角色的語彙回扣（沿用 home.trio.cN.tag，箭頭由 CSS 提供） */
.capability-role {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}
.capability-role::before { content: "→ "; }


/* ---------- Locations ---------- */

.hq-card {
  background: var(--surface);
  border: 1px solid rgba(30, 156, 215, 0.30);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}
.hq-info h3 { font-size: 1.3rem; margin-bottom: 18px; }
.hq-rows { display: grid; gap: 14px; }
.hq-row { display: flex; gap: 14px; align-items: flex-start; }
.hq-row svg { width: 19px; height: 19px; stroke: var(--brand-deep); flex-shrink: 0; margin-top: 5px; }
.hq-row .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); display: block; }
.hq-row .value { color: var(--text); }
.hq-row .value a:hover { color: var(--brand-deep); }
.hq-note {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid rgba(30, 156, 215, 0.30);
  color: var(--text-soft);
  font-size: 0.9rem;
}
.hq-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hq-map {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 18px;
  background: var(--raised);
}
.hq-map iframe { display: block; width: 100%; height: 220px; border: 0; }
.loc-note { margin-top: 26px; color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Smart-bike 專用元件 ---------- */

/* 六格總覽：卡片圖窗改 4:3 自適應（與特寫照同比例，完整顯示不裁切；
   覆蓋 .card-img 預設的固定 190px 高橫扁窗口） */
.ov-grid .card-img { height: auto; aspect-ratio: 4 / 3; }

/* 車表中樞的「不需要懂訓練，也能有效練」膠囊句（Banner 1 語彙） */
.bridge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.bridge-capsule svg { width: 16px; height: 16px; flex-shrink: 0; }

/* 五模式的「新手起點 → 進階熟練」進程軸 */
.mode-axis {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mode-axis-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(30, 156, 215, 0.15), var(--brand));
  position: relative;
}
.mode-axis-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--brand);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ---------- Brand manifesto (brand.html) ----------
   品牌理念頁專用版型。四個界線分明的純文字區塊（核心價值 hero／01 使命／
   02 願景／03 歷程），節奏統一：編號 → 標籤 → 同字級 h2 → 窄欄內文。
   無圖、無 icon；區塊以大留白 + 白/淺灰交替 + 細分隔線切開。
   僅 brand.html 使用這些 class，不影響其他頁面。 */

/* 區塊節奏：加大垂直留白，白與 --bg-soft 交替；.brand-divide 補上細分隔線 */
.brand-section { padding: clamp(84px, 12vh, 144px) 0; }
.brand-divide { border-top: 1px solid var(--border); }

/* Hero（核心價值）：全頁最大字級的置中宣言 */
.brand-hero { padding: calc(var(--header-h) + clamp(96px, 16vh, 168px)) 0 clamp(88px, 13vh, 148px); }
.brand-hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.brand-hero .eyebrow::after { display: inline-block; }
.brand-hero h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
/* 宣言下的品牌色細線：收束標題與內文，取代單調留白 */
.brand-hero-rule {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}
.brand-lede {
  margin: 28px auto 0;
  max-width: 660px;
  font-size: clamp(1.08rem, 1.8vw, 1.26rem);
  line-height: 1.95;
  color: var(--text-soft);
}

/* 品牌篇章（故事／使命／願景共用）：編輯式不對稱雙欄。
   左固定欄＝幽靈編號＋標籤＋標題；右寬欄＝內文，首段放大為 lead。
   取代原本三段置中，建立雜誌式閱讀節奏。 */
.brand-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}
.brand-chapter-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.brand-chapter-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--brand);
  opacity: 0.26;
}
.brand-chapter-aside .eyebrow { margin-top: 18px; }
.brand-chapter-title {
  margin-top: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-chapter-main { max-width: 42em; }
.brand-chapter-main p {
  font-size: clamp(1.02rem, 1.4vw, 1.1rem);
  line-height: 1.98;
  color: var(--text-soft);
}
.brand-chapter-main p + p { margin-top: 1.35em; }
/* 篇章 lead（首段）：放大、深色、左側品牌色標線 */
.brand-chapter-main .brand-chapter-lead {
  padding-left: clamp(18px, 2vw, 26px);
  border-left: 3px solid var(--brand);
  font-size: clamp(1.16rem, 1.9vw, 1.4rem);
  line-height: 1.7;
  font-weight: 500;
  color: var(--text);
}
@media (max-width: 860px) {
  .brand-chapter { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 32px); }
  .brand-chapter-aside { position: static; }
  .brand-chapter-index { font-size: 2.5rem; }
}

/* 顧問卡：無 icon 的結構化名片——置中標籤、雙欄校系（中央細線分隔）、註腳 */
.adv-strip {
  max-width: 760px;
  margin: clamp(52px, 8vh, 80px) auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(30px, 5vw, 44px) clamp(24px, 5vw, 52px);
  text-align: center;
}
.adv-strip .adv-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.adv-orgs { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0; }
.adv-orgs > div { padding: 2px 18px; }
.adv-orgs > div + div { border-left: 1px solid var(--border); }
.adv-orgs strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.22rem);
  color: var(--ink);
}
.adv-orgs span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 0.95rem; }
.adv-strip > p {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 里程碑：連續時間軸主脊（漸層＝起點到現在的進程），節點落在脊線上；
   日期大字（Archivo 品牌色）＋事件說明。最後一個節點填實＝「現在」。 */
.brand-tl { position: relative; max-width: 720px; margin: 0 auto; }
.brand-tl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(30, 156, 215, 0.18), var(--brand));
}
.brand-tl-item {
  position: relative;
  padding: 0 0 clamp(30px, 4.5vh, 48px) clamp(34px, 4vw, 46px);
}
.brand-tl-item:last-child { padding-bottom: 0; }
.brand-tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px var(--bg);
  z-index: 1;
}
.brand-tl-item:last-child::before { background: var(--brand); }
.brand-tl-date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--brand-deep);
  font-feature-settings: "tnum";
}
.brand-tl-item > p {
  margin-top: 6px;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--text-soft);
}

/* 展會紀實：四張實拍卡的精緻化（hover 浮起＋圖片微放大）。
   僅新增 scope 選擇器，不改動共用的 .photo-card 規則。 */
.brand-expo-grid .photo-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.brand-expo-grid .photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.brand-expo-grid .photo-card img { transition: transform 0.55s var(--ease); }
.brand-expo-grid .photo-card:hover img { transform: scale(1.05); }
.brand-expo-grid .photo-card figcaption { line-height: 1.65; }

@media (max-width: 640px) {
  .adv-orgs { margin: 22px 0; gap: 18px; }
  .adv-orgs > div { padding: 0; }
  .adv-orgs > div + div { border-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
}

/* ---------- Booking modal (locations page) ---------- */

button.btn { border: none; cursor: pointer; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 21, 36, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 30px 28px;
}
.modal h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; color: var(--text-soft); }
.modal input {
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
}
.modal input:focus { outline: none; border-color: var(--brand); }
.modal .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-msg { font-size: 0.88rem; padding: 10px 14px; border-radius: 10px; }
.form-msg.ok { background: rgba(22, 163, 74, 0.08); color: #15803D; border: 1px solid rgba(22, 163, 74, 0.25); }
.form-msg.err { background: rgba(220, 38, 38, 0.07); color: #B91C1C; border: 1px solid rgba(220, 38, 38, 0.25); }
.modal-alt { font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.modal-alt a { color: var(--brand-deep); font-weight: 600; }

/* ---------- Power pedal page (power-pedal.html) ----------
   深色全寬 banner 是刻意的單頁例外（產品攝影語境，比照 smart-bike .tech-panel 前例）；
   .pedal-specbar 重現原站「規格懸浮視窗」：捲動時吸附在 header 下方 */

.pedal-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 760px);
  padding: calc(var(--header-h) + clamp(48px, 9vh, 96px)) 0 clamp(56px, 10vh, 110px);
  background: #06090F;
  overflow: hidden;
}
.pedal-hero-bg { position: absolute; inset: 0; }
.pedal-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.pedal-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 14, 0.88) 0%, rgba(4, 8, 14, 0.45) 46%, rgba(4, 8, 14, 0.05) 75%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.25) 0%, transparent 40%, rgba(4, 8, 14, 0.8) 100%);
}
.pedal-hero .container { position: relative; z-index: 1; }
.pedal-hero-copy { max-width: 640px; }
.pedal-hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.pedal-hero-title {
  margin-top: 20px;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 1.08;
  color: #FFFFFF;
}
.pedal-hero-title .accent { color: var(--brand); }
.pedal-hero-lede {
  margin: 26px 0 34px;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}

/* 「世界第一」主張：介紹區的主標題 */
.pedal-claim {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  color: var(--brand-deep);
}

/* 規格懸浮列（sticky） */
.pedal-specbar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.pedal-specbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.pedal-specbar-logo { height: 26px; width: auto; flex-shrink: 0; }
/* 產品名置於懸浮列中段的空白區：Archivo 大字＋品牌色短線，與 eyebrow 同一設計語彙 */
.pedal-specbar-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.pedal-specbar-name::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.pedal-specbar-stats { display: flex; align-items: center; gap: clamp(20px, 4.5vw, 60px); }
.pedal-stat .label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pedal-stat .value {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.pedal-stat .value small { margin-left: 2px; font-size: 0.72rem; font-weight: 600; color: var(--text-soft); }

/* 收緊功能區的縱向節奏（使用者反饋原版過於鬆散） */
body[data-page="pedal"] .feature-row { padding: clamp(30px, 5vh, 54px) 0; }

/* 深色 hero 上方的 header 維持白色，與其他頁的頂列一致 */
body[data-page="pedal"] .site-header {
  background: #FFFFFF;
  border-bottom-color: var(--border);
}

/* 五大功能標題加大（僅功能區，響應式 clamp） */
.pedal-features .feature-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 18px; }

/* 頁尾信任區：純文字三欄（取代原本三張 icon 卡片） */
.pedal-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.pedal-trust-item::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  margin-bottom: 16px;
}
.pedal-trust-item h3 { font-size: 1.18rem; margin-bottom: 10px; }
.pedal-trust-item p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Footer (K100 black anchor) ---------- */

.site-footer {
  background: var(--ink);
  color: #C6CFDC;
  padding: clamp(46px, 7vh, 70px) 0 34px;
  margin-top: clamp(50px, 8vh, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 38px;
  margin-bottom: 44px;
}
.footer-brand p { color: #8A96A8; font-size: 0.9rem; margin-top: 14px; max-width: 30em; }
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A96A8;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: #C6CFDC; font-size: 0.92rem; }
.footer-col a:hover { color: #6FD9FF; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  color: #8A96A8;
  font-size: 0.82rem;
}

/* footer 右下角社群連結（E-mail / FB / IG / LINE） */
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: #6FD9FF; border-color: #6FD9FF; }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Hero split / media ---------- */

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  position: relative;
}
/* 首頁 hero 圖片放大：圖片欄比重加大（其他頁維持 1.05fr 1fr） */
body[data-page="home"] .hero-split { grid-template-columns: 1fr 1.18fr; }
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media.contain { background: radial-gradient(70% 70% at 50% 45%, rgba(30, 156, 215, 0.07), transparent 70%), var(--surface); padding: 18px; }
.hero-media.contain img { object-fit: contain; max-height: 420px; }

/* 產品圖廊（smart-bike hero）：主圖＋縮圖切換，使用者可控 */
.hero-gallery { display: flex; flex-direction: column; gap: 12px; }
.hero-gallery .hero-media { aspect-ratio: 4 / 3; }
.hero-gallery .hero-media img { transition: opacity 0.25s var(--ease); }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.gallery-thumb.active { border-color: var(--brand); }

/* 體驗據點 hero：實拍直式照，用接近正方（1:1）框收斂高度、避免佔太多滾動範圍 */
body[data-page="locations"] .hero-media { aspect-ratio: 1 / 1; }
body[data-page="locations"] .hero-media img { object-position: center 35%; }
.hero .h-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--brand-deep);
  margin-top: 14px;
}

/* ---------- Card image header ---------- */

.card-img {
  margin: -34px -30px 22px;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card-img img.audience-card-img { object-position: center 22%; }
.product-card:hover .card-img img { transform: scale(1.04); }

/* ---------- Review cards ---------- */

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-head { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brand-deep);
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: var(--ink); }
.review-stars { color: #F5A623; font-size: 0.85rem; letter-spacing: 2px; }
.review-card p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- Dealer directory (full contact cards) ---------- */

.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.dealer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.dealer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dealer-head { display: flex; align-items: center; gap: 12px; }
.dealer-logo {
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
  flex-shrink: 0;
}
.dealer-head h3 { font-size: 1.05rem; }
.dealer-rows { display: grid; gap: 9px; }
.dealer-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.87rem; color: var(--text-soft); }
.dealer-row svg { width: 16px; height: 16px; stroke: var(--brand-deep); flex-shrink: 0; margin-top: 2px; }
.dealer-row a { color: var(--text-soft); }
.dealer-row a:hover { color: var(--brand-deep); }
.dealer-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.btn-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--bg-soft); }

/* Official-brand social buttons (colored, not the neutral .btn-icon style) — used only for
   ATTRAK's own follow links, since a plain white/mono glyph reads as unfinished for these */
.social-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social-icon.fb { background: #1877F2; }
.social-icon.ig { background: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5 100%); }

/* ---------- Marquee (infinite scroll, trust elements) ---------- */

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-speed, 32s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* logo marquee */
.partner-strip .marquee-group img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  opacity: 0.8;
  filter: grayscale(0.6);
  transition: opacity 0.25s, filter 0.25s;
}
.partner-strip .marquee-group img:hover { opacity: 1; filter: none; }

/* review marquee */
.reviews-marquee { --marquee-speed: 46s; padding: 6px 0 14px; }
.reviews-marquee .marquee-group { align-items: stretch; gap: 22px; padding-right: 22px; }
.reviews-marquee .review-card { width: min(380px, 82vw); flex-shrink: 0; }

/* ---------- Spec table (grouped, denser) ---------- */

.spec-group + .spec-group { margin-top: 20px; }
.spec-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.spec-table {
  columns: 2;
  column-gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 4px 22px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  break-inside: avoid;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .s-label { color: var(--text-muted); flex-shrink: 0; }
.spec-row .s-value { color: var(--text); text-align: right; font-weight: 500; }

@media (max-width: 640px) {
  .spec-table { columns: 1; }
}

/* ---------- Product contents band (photo strip) ---------- */

.contents-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.contents-band-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: 4px;
}
.contents-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; text-align: center; flex-shrink: 0; }
.contents-item .thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.contents-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.contents-item .thumb.img-slot { min-height: 0; padding: 4px; font-size: 0.5rem; }
.contents-item span.label { font-size: 0.76rem; color: var(--text-soft); line-height: 1.3; }

@media (max-width: 640px) {
  .contents-band { padding: 18px; gap: 16px 18px; }
  .contents-band-title { width: 100%; }
  .contents-item { width: 78px; }
  .contents-item .thumb { width: 64px; height: 64px; }
}

/* 內容物＋尺寸左右分欄（省空間）：左＝內容物 3×2 grid，右＝尺寸圖 */
.box-dim-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.box-dim-split .contents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; justify-items: center; }
.box-dim-split .contents-grid .contents-item { width: 100%; max-width: 120px; }
@media (max-width: 820px) {
  .box-dim-split { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Photo cards ---------- */

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption { padding: 14px 18px; font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Badges ---------- */

.badge-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid rgba(30, 156, 215, 0.30);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.badge-card .medal {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(30, 156, 215, 0.35);
}
.badge-card .medal svg { width: 22px; height: 22px; stroke: var(--brand-deep); }
.badge-card .org { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 3px; }
.badge-card .title { font-weight: 700; color: var(--ink); }

/* ---------- Mode cards ---------- */

.mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.mode-card:hover { transform: translateY(-5px); border-color: rgba(30, 156, 215, 0.45); box-shadow: var(--shadow-md); }
.mode-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.mode-card .mode-body { padding: 16px 16px 20px; }
.mode-card .mode-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-deep);
}
.mode-card h3 { font-size: 1rem; margin: 5px 0 8px; }
.mode-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Q-cards ---------- */

.q-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}
.q-card::before {
  content: "?";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  background: var(--brand-deep);
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: rgba(30, 156, 215, 0.45); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid rgba(30, 156, 215, 0.35);
}
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand-deep); }
.faq .faq-a {
  padding: 0 22px 20px 66px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Inline list ---------- */

.inline-list { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-list li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--text-soft);
}
.inline-list li::before { content: "✓ "; color: var(--brand-deep); }

/* ---------- AI Coach app mock ----------
   Lightweight CSS reproduction of the training-app UI (coach message +
   live data tiles). Swap for real app screenshots when available. */

.app-mock {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: grid;
  gap: 16px;
  max-width: 460px;
}
.app-coach { display: flex; gap: 12px; align-items: flex-start; }
.app-coach-avatar {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--ink);
}
.app-coach-avatar svg { width: 26px; height: 26px; stroke: #FFFFFF; }
.app-coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-coach-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.app-coach p {
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px;
  line-height: 1.6;
}
/* AI 教練訊息彈出動畫：app-mock 進入視窗（.reveal → .visible）後，
   訊息泡泡像聊天訊息一樣彈出，數據卡再接續浮現 */
.app-mock .app-coach {
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transform-origin: 18% 100%;
  transition: opacity 0.4s ease 0.35s, transform 0.55s cubic-bezier(0.34, 1.4, 0.4, 1) 0.35s;
}
.app-mock.visible .app-coach { opacity: 1; transform: none; }
.app-mock .app-stats {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease 0.75s, transform 0.45s var(--ease) 0.75s;
}
.app-mock.visible .app-stats { opacity: 1; transform: none; }
.app-mock .app-progress {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 1s, transform 0.45s var(--ease) 1s;
}
.app-mock.visible .app-progress { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .app-mock .app-coach,
  .app-mock .app-stats,
  .app-mock .app-progress { opacity: 1; transform: none; transition: none; }
}

.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-stat {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}
.as-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.as-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}
.as-value small { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); margin-left: 3px; }
.app-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
}
.app-progress .as-value { font-size: 1.1rem; }
.app-bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(13, 30, 50, 0.10);
  overflow: hidden;
}
.app-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

/* Review avatar tones (one per reviewer,初始字母圓形) */
.review-avatar.av2 { background: #2E7FFF; }
.review-avatar.av3 { background: #0F766E; }
.review-avatar.av4 { background: #B45309; }
.review-avatar.av5 { background: #6D28D9; }

/* ---------- Tech panel (dark accent card for the ATTRAK Resistance deep-dive) ----------
   Deliberate, scoped exception to the site's light theme: one "under the hood"
   spec panel per the brand's own reference art, not a return to the retired
   dark/neon skin. Keep this treatment to this single feature — don't reuse site-wide. */

.tech-panel {
  background: radial-gradient(120% 140% at 15% -10%, rgba(56,189,248,0.14), transparent 55%), linear-gradient(180deg, #0B1120, #060911);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  box-shadow: 0 20px 50px rgba(5, 10, 20, 0.35);
}
.tech-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7DD3FC;
}
.tech-eyebrow svg { width: 16px; height: 16px; stroke: #7DD3FC; }
.tech-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  color: #FFFFFF;
  margin-top: 14px;
  letter-spacing: 0.01em;
}
.tech-title .reg { font-size: 0.5em; vertical-align: super; color: #38BDF8; }
.tech-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: rgba(255,255,255,0.92);
  margin-top: 10px;
}
.tech-subtitle .accent {
  background: linear-gradient(90deg, #38BDF8, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tech-panel p.tech-body {
  margin-top: 16px;
  max-width: 62em;
  color: rgba(255,255,255,0.68);
  font-size: 0.98rem;
}
.tech-chart-wrap { margin-top: clamp(28px, 5vw, 44px); max-width: 940px; }
.tech-chart-wrap svg { width: 100%; height: auto; display: block; }
.tech-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.tech-chart-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.tech-chart-sub { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.tech-chart-legend { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tech-chart-legend .key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}
.tech-chart-legend .swatch { width: 20px; height: 0; border-top: 2.5px solid; display: inline-block; flex-shrink: 0; }
.tech-chart-legend .swatch.attrak { border-color: #38BDF8; }
.tech-chart-legend .swatch.baseline { border-color: #F0A93E; border-top-style: dashed; }
.tech-chart-legend .attrak-label { color: #7DD3FC; }
.tech-chart-legend .baseline-label { color: #F0A93E; font-weight: 500; }
.tech-chart-note { margin-top: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.4); }

@media (max-width: 640px) {
  .tech-chart-head { flex-direction: column; }
  .tech-chart-legend { align-items: flex-start; }
}

/* ---------- Bike-computer radiate diagram ----------
   Center computer photo with 5 training-mode thumbnails bursting outward,
   echoing the mode grid below. Pure CSS, driven by the existing .reveal/
   .visible IntersectionObserver toggle — no extra JS. */

.radiate {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.radiate-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radiate-lines line {
  stroke: rgba(30, 156, 215, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.radiate.visible .radiate-lines line { stroke-dashoffset: 0; }

.radiate-center {
  position: absolute;
  left: 50%; top: 50%;
  width: 52%; height: 52%;
  transform: translate(-50%, -50%);
  border-radius: 22%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
/* 中心圖為去背 PNG 轉 WebP：改完整顯示（contain）並留內距，車表浮在卡片上不裁切 */
.radiate-center img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }

.radiate-node {
  position: absolute;
  left: 50%; top: 50%;
  width: 17%; height: 17%;
  transform: translate(-50%, -50%) scale(0.35);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: left 0.9s var(--ease), top 0.9s var(--ease), transform 0.9s var(--ease), opacity 0.7s var(--ease);
  transition-delay: var(--d, 0s);
  z-index: 3;
}
.radiate-node img { width: 100%; height: 100%; object-fit: cover; }
.radiate.visible .radiate-node {
  left: var(--nx);
  top: var(--ny);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .radiate-node, .radiate-lines line { transition: none !important; }
}

/* ---------- Reserved image slots ----------
   Placeholder boxes for real-scene .webp photos to be shot / selected.
   Replace each <div class="img-slot">…</div> with:
   <img src="assets/xxx.webp" alt="…" loading="lazy">
   (keep the parent wrapper; data-size shows the recommended export size) */

.img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.img-slot::after {
  content: attr(data-size);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
}
.card-img .img-slot {
  height: 100%;
  min-height: 0;
  border: none;
  border-bottom: 1.5px dashed var(--border-strong);
  border-radius: 0;
}

/* Band with photo background (for final CTA once a real photo exists):
   <div class="band has-photo" style="--band-img:url('assets/xxx.webp')"> */
.band.has-photo {
  background-image:
    linear-gradient(rgba(11, 21, 36, 0.62), rgba(11, 21, 36, 0.62)),
    var(--band-img);
  background-size: cover;
  background-position: center;
  border-color: rgba(11, 21, 36, 0.4);
}
.band.has-photo h2 { color: #FFFFFF; }
.band.has-photo p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
  * { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Header collapses early: full zh nav (7 links) + language + partner + CTA
   needs ~1200px; en strings ("Dual-Domain Trainer"…) are even wider */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* Tablet */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .product-card:last-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .step:not(:last-child)::after {
    top: auto; right: auto; bottom: -22px; left: 34px;
    width: 1px; height: 22px;
    background: linear-gradient(180deg, var(--brand), transparent);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pedal-specbar-name { display: none; }
  .split { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .pedal-trust { grid-template-columns: 1fr; gap: 34px; }
  /* capability 三步卡：平板起改單欄直向堆疊，接續線轉為垂直 */
  .capability-flow { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 18px; }
  .capability-step { min-height: 0; }
  .capability-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -19px;
    left: 52px;
    width: 2px;
    height: 19px;
    background: linear-gradient(180deg, var(--brand), rgba(30, 156, 215, 0.18));
  }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .capability-step { padding: 24px; }
  .capability-step-top { margin-bottom: 22px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .product-card:last-child { grid-column: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .adv-orgs { grid-template-columns: 1fr; }
  .pedal-specbar-logo { display: none; }
  .pedal-specbar-stats { width: 100%; justify-content: space-between; gap: 10px; }
  .pedal-stat .value { font-size: 0.96rem; }
  .pedal-trust { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .lang-btn .lang-label { display: none; }
  .lang-btn { padding: 8px 11px; }
  .header-cta, .header-partner { display: none; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .partner-strip .marquee-group img { height: 40px; }
  .card-img { height: 160px; }
  .faq .faq-a { padding-left: 22px; }
}
