/* dba.xktu.com — 珠海星銳特斯拉維修中心（單頁）
   視覺完全依 tba-tesla 設計稿：黃 #FFE600 / 紅 #E50012 / 黑邊粗框 / 藥丸按鈕 / 硬陰影 */

/* 自託管 Oswald（僅拉丁，避免 Google Fonts 在國內阻塞） */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/oswald-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/oswald-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yellow: #FFE600;
  --red: #E50012;
  --ink: #111111;
  --paper: #FFFFFF;
  --mist: #F3F3F1;
  --w: 1400px;
  --bd: 2px;      /* 容器边框 */
  --bd-in: 1px;   /* 卡片内部格线 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 40px; }
.en { font-family: "Oswald", "Arial Narrow", sans-serif; letter-spacing: .04em; }

/* ---------- 頂部 ---------- */
.topbar { background: var(--ink); color: var(--paper); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; padding-top: 4px; padding-bottom: 4px; }
.topbar b { color: var(--yellow); font-weight: 500; }
header.nav { position: sticky; top: 0; z-index: 50; background: var(--yellow); border-bottom: var(--bd) solid var(--ink); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
/* TBA 標記：用原 logo 的輪廓做遮罩，顏色隨主題（頭部紅 / 頁腳白） */
.brand-mark {
  display: block; height: 42px; aspect-ratio: 140.36 / 86.83; flex: none;
  background-color: var(--red);
  -webkit-mask: url("/assets/img/tba-mark-v5.svg") no-repeat center / contain;
  mask: url("/assets/img/tba-mark-v5.svg") no-repeat center / contain;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-weight: 900; font-size: 20px; }
.brand-name span { font-size: 11px; font-weight: 700; line-height: 1.45; border: var(--bd-in) solid var(--ink); border-radius: 999px; padding: 2px 10px; align-self: flex-start; margin-top: 4px; white-space: nowrap; }
nav ul { display: flex; gap: 4px; list-style: none; }
nav ul a { display: block; padding: 10px 16px; font-weight: 700; font-size: 15px; border-radius: 999px; transition: background .2s, color .2s; }
nav ul a:hover, nav ul a:focus-visible, nav ul a.on { background: var(--ink); color: var(--yellow); outline: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn.nav-wa { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: var(--paper); border: var(--bd) solid var(--ink); border-radius: 50%;
  font-size: 20px; font-weight: 900; cursor: pointer; color: var(--ink); line-height: 1;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 900; font-size: 16px; padding: 14px 28px; border-radius: 999px;
  border: var(--bd) solid var(--ink); transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.btn-red { background: var(--red); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-wa { background: #25D366; color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }

/* ---------- 首屏 ---------- */
.hero { background: var(--yellow); position: relative; overflow: hidden; border-bottom: var(--bd) solid var(--ink); padding: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-tag { display: inline-block; font-weight: 900; font-size: 14px; border: var(--bd) solid var(--ink); border-radius: 999px; padding: 4px 16px; margin-bottom: 24px; background: var(--paper); }
.hero h1 { font-weight: 900; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.1; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 18px; margin: 24px 0 32px; max-width: 560px; font-weight: 500; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; font-size: 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.hero-meta i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border: var(--bd) solid var(--ink); border-radius: 28px; }
.hero-stamp { position: absolute; left: -36px; bottom: -30px; background: var(--red); color: var(--paper); border: var(--bd) solid var(--ink); border-radius: 20px; padding: 16px 22px; transform: rotate(-4deg); }
.hero-stamp .en { font-size: 46px; line-height: 1; display: block; }
.hero-stamp small { font-weight: 700; font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: var(--paper); width: 100%; margin: 0; padding: 0 max(0px, calc((100% - var(--w)) / 2)); }
.facts div { padding: 28px 40px; border-right: 1px solid #333; }
.facts div:last-child { border-right: 0; }
.facts .en { display: block; color: var(--yellow); font-size: 13px; }
.facts strong { font-size: 30px; font-weight: 900; }

/* ---------- 通用區塊 ---------- */
section { padding: 110px 0; scroll-margin-top: 84px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.sec-head .kicker { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 15px; color: var(--red); letter-spacing: .12em; font-weight: 700; }
.sec-head h2 { font-weight: 900; font-size: 52px; line-height: 1.15; margin-top: 6px; }
.sec-head p { max-width: 460px; font-size: 16px; color: #3a3a3a; }
/* 服務流程：說明文字移到標題下方，與標題左對齊（僅此區塊） */
#process .sec-head { display: block; }
#process .sec-head p { margin-top: 18px; }

/* 維修項目 */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--bd) solid var(--ink); border-radius: 28px; overflow: hidden; }
.svc { padding: 40px 36px; border-right: var(--bd-in) solid var(--ink); border-bottom: var(--bd-in) solid var(--ink); background: var(--paper); transition: background .2s; }
.svc:nth-child(3n) { border-right: 0; }
.svc:nth-child(n+4) { border-bottom: 0; }
.svc .no { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 14px; font-weight: 700; color: var(--red); }
.svc h3 { font-size: 26px; font-weight: 900; margin: 12px 0 10px; }
.svc p { color: #333; font-size: 15px; }
@media (hover: hover) { .svc:hover { background: var(--yellow); } }
.svc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.svc-photos figure { position: relative; border: var(--bd) solid var(--ink); border-radius: 28px; overflow: hidden; }
.svc-photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-photos figcaption { position: absolute; left: 20px; bottom: 20px; background: var(--yellow); border: var(--bd) solid var(--ink); border-radius: 999px; padding: 6px 18px; font-weight: 900; }

/* 案例 */
.cases { background: var(--mist); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case { background: var(--paper); border: var(--bd) solid var(--ink); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.case > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--bd) solid var(--ink); }
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.case-tag { align-self: flex-start; font-size: 13px; font-weight: 900; background: var(--red); color: var(--paper); border-radius: 999px; padding: 2px 12px; }
.case h3 { font-size: 21px; font-weight: 900; line-height: 1.35; }
.case p { font-size: 15px; color: #3a3a3a; }
.case dl { display: flex; gap: 24px; font-size: 13px; margin-top: 6px; padding-top: 14px; border-top: 2px dashed #ccc; }
.case dt { color: #777; }
.case dd { font-weight: 900; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 4px; background: var(--ink); }
.step { position: relative; padding-right: 24px; }
.step .dot { width: 92px; height: 92px; border-radius: 50%; background: var(--yellow); border: var(--bd) solid var(--ink); display: grid; place-items: center; position: relative; z-index: 1; }
.step:last-child .dot { background: var(--red); color: var(--paper); }
.step .dot .en { font-size: 30px; font-weight: 700; }
.step small { display: block; font-family: "Oswald", "Arial Narrow", sans-serif; color: var(--red); font-weight: 700; margin-top: 22px; letter-spacing: .1em; }
.step h3 { font-size: 26px; font-weight: 900; margin: 2px 0 8px; }
.step p { font-size: 15px; color: #333; }

/* 港澳 */
.hkmo { background: var(--red); color: var(--paper); border-top: var(--bd) solid var(--ink); border-bottom: var(--bd) solid var(--ink); }
.hkmo .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.hkmo .kicker { font-family: "Oswald", "Arial Narrow", sans-serif; color: var(--yellow); letter-spacing: .12em; font-weight: 700; }
.hkmo h2 { font-size: 56px; font-weight: 900; line-height: 1.15; margin: 8px 0 20px; }
.hkmo h2 span { color: var(--yellow); }
.hkmo p { font-size: 17px; max-width: 520px; }
.hkmo ul { list-style: none; display: grid; gap: 16px; }
.hkmo li { display: flex; align-items: center; gap: 18px; background: var(--paper); color: var(--ink); border: var(--bd) solid var(--ink); border-radius: 999px; padding: 16px 28px; font-weight: 900; font-size: 19px; }
.hkmo li .en { background: var(--yellow); border: var(--bd) solid var(--ink); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 16px; flex: none; }

/* 關於 */
.about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; }
.about-img img { border: var(--bd) solid var(--ink); border-radius: 28px; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-badge {
  position: absolute; right: -28px; top: -28px; width: 158px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 14px 11px;
  background: var(--yellow); border: var(--bd) solid var(--ink); border-radius: 22px;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(5deg);
}
.about-badge-mark {
  display: block; width: 78px; aspect-ratio: 140.36 / 86.83; background-color: var(--red);
  -webkit-mask: url("/assets/img/tba-mark-v5.svg") no-repeat center / contain;
  mask: url("/assets/img/tba-mark-v5.svg") no-repeat center / contain;
}
.about-badge strong { font-size: 15px; font-weight: 900; line-height: 1.25; text-align: center; letter-spacing: .02em; }
.about-badge em {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: var(--paper); border: var(--bd-in) solid var(--ink); border-radius: 999px;
  padding: 1px 8px; white-space: nowrap;
}
.about h2 { font-size: 52px; font-weight: 900; margin: 6px 0 20px; }
.about p { font-size: 16px; color: #333; margin-bottom: 14px; }
.about .kicker { font-family: "Oswald", "Arial Narrow", sans-serif; color: var(--red); letter-spacing: .12em; font-weight: 700; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; border: var(--bd) solid var(--ink); border-radius: 20px; overflow: hidden; }
.numbers div { padding: 20px 18px; border-right: var(--bd-in) solid var(--ink); background: var(--yellow); }
.numbers div:last-child { border-right: 0; }
.numbers .en { font-size: 40px; font-weight: 700; line-height: 1; display: block; }
.numbers small { font-weight: 700; font-size: 13px; }

/* 聯繫 / CTA */
.contact { background: var(--yellow); border-top: var(--bd) solid var(--ink); padding: 90px 0; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.contact h2 { font-size: 60px; font-weight: 900; line-height: 1.1; }
.contact h2 em { font-style: normal; color: var(--red); }
.contact p { margin: 18px 0 30px; font-size: 17px; font-weight: 500; }
.contact-card { background: var(--paper); border: var(--bd) solid var(--ink); border-radius: 28px; padding: 32px 36px; box-shadow: 6px 6px 0 var(--ink); }
.contact-card dl { display: grid; grid-template-columns: 110px 1fr; row-gap: 16px; align-items: baseline; }
.contact-card dt { font-weight: 700; color: #666; font-size: 14px; }
.contact-card dd { font-weight: 900; font-size: 20px; }
.contact-card dd.big { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 32px; color: var(--red); font-weight: 700; }
.wechat-dd { display: inline-flex; align-items: center; gap: 10px; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; flex: none;
  background: none; border: 0; border-radius: 0;
  color: var(--ink); cursor: pointer; transition: color .15s;
}
.copy-btn svg { width: 19px; height: 19px; }
.copy-btn .i-check { display: none; }
.copy-btn.copied { color: #25D366; }
.copy-btn.copied .i-copy { display: none; }
.copy-btn.copied .i-check { display: block; }
@media (hover: hover) { .copy-btn:hover { color: var(--red); } }

/* 頁腳 */
footer { background: var(--ink); color: #cfcfcf; padding: 64px 0 32px; font-size: 14px; }
footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; }
footer h4 { color: var(--yellow); font-size: 16px; margin-bottom: 14px; font-weight: 900; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer .brand-mark { height: 52px; background-color: var(--red); }
footer .brand { margin-bottom: 18px; }
footer .brand-name strong { color: var(--yellow); font-size: 21px; }
footer .brand-name span { border-color: #4a4a4a; color: #cfcfcf; font-size: 10.5px; margin-top: 5px; }
footer .brand:hover strong { color: var(--paper); }
footer .copy { border-top: 1px solid #333; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #888; }
footer a:hover { color: var(--yellow); }

/* 浮動按鈕 */
.float-call { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-call a { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.float-call a svg { width: 30px; height: 30px; }
.float-call .tel { background: var(--red); color: var(--paper); }
.float-call .wa { background: #25D366; color: #fff; }
.float-call a:hover { transform: translateY(-2px); }
.float-call a { transition: transform .15s; }
.float-call a { position: relative; }
.float-call a::after {
  content: attr(data-tip);
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 3px 3px 0 rgba(17,17,17,.15);
}
.float-call a:hover::after, .float-call a:focus-visible::after {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

/* 圖片放大 */
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(17, 17, 17, .92); display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border: var(--bd) solid var(--yellow); border-radius: 16px; }
.svc-photos img, .case > img, .about-img > img { cursor: zoom-in; }

/* 入場動畫 */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(24px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
  .d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* 滾動錯峰入場（JS 加上 .rv，進入視口後 .in 觸發，播完由 JS 移除類） */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; }
  .rv.in { animation: rvIn .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
  @keyframes rvIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .wrap { padding: 0 24px; }
  nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--yellow); border-bottom: var(--bd) solid var(--ink);
    padding: 14px 24px 22px; z-index: 49;
    transform: translateY(-130%); transition: transform .25s ease;
    max-height: calc(100vh - 84px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  nav ul { flex-direction: column; gap: 8px; }
  nav ul a { padding: 14px 20px; font-size: 18px; background: var(--paper); border: var(--bd-in) solid var(--ink); border-radius: 16px; }
  .btn.nav-wa { display: flex; width: 100%; justify-content: center; margin-top: 12px; font-size: 18px; padding: 14px 20px; border-radius: 16px; }
  .nav-cta { display: none; }
  body.nav-open nav { transform: none; }
  .nav-toggle { display: flex; }
  .hero .wrap, .hkmo .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; }
  .hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .hero-actions .btn { width: 100%; padding: 14px 12px; font-size: 15px; }
  .hero h1 { font-size: 48px; }
  .hero-stamp { left: 12px; bottom: 12px; }
  .services-grid, .case-grid { grid-template-columns: 1fr; }
  .svc { border-right: 0 !important; border-bottom: var(--bd-in) solid var(--ink) !important; }
  .svc:last-child { border-bottom: 0 !important; }
  .svc-photos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps::before { display: none; }
  .step {
    display: grid; grid-template-columns: 62px 1fr; column-gap: 16px; align-items: center;
    padding: 18px 18px 18px; padding-right: 18px;
    background: var(--paper); border: var(--bd) solid var(--ink); border-radius: 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .step + .step { margin-top: 2px; }
  .step .dot { grid-column: 1; grid-row: 1 / span 3; width: 62px; height: 62px; margin-top: 0; }
  .step .dot .en { font-size: 22px; }
  .step small { grid-column: 2; margin-top: 0; font-size: 12px; letter-spacing: .12em; }
  .step h3 { grid-column: 2; font-size: 24px; margin: 0 0 4px; line-height: 1.2; }
  .step p { grid-column: 2; font-size: 15px; margin: 0; }
  /* 數據條：手機不再三段縱排，改回三列並縮小字級，整條只有一行高 */
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div { padding: 18px 10px; text-align: center; border-right: 1px solid #333; border-bottom: 0; }
  .facts div:last-child { border-right: 0; }
  .facts .en { font-size: 9.5px; letter-spacing: .08em; margin-bottom: 5px; }
  .facts strong { font-size: 24px; white-space: nowrap; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head h2, .about h2, .hkmo h2, .contact h2 { font-size: 36px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(2) { border-right: 0; }
  .numbers div:nth-child(-n+2) { border-bottom: var(--bd-in) solid var(--ink); }
  .about-badge { right: 8px; top: -18px; width: 122px; padding: 10px 11px 9px; border-radius: 18px; }
  .about-badge-mark { width: 60px; }
  .about-badge strong { font-size: 12px; }
  .about-badge em { font-size: 9px; padding: 1px 7px; }
  footer .grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar .hide-sm { display: none; }
  section { padding: 72px 0; }
  .contact { padding: 64px 0; }
  .hero .wrap { padding-top: 44px; padding-bottom: 64px; }
  .contact-card { padding: 24px 22px; box-shadow: 4px 4px 0 var(--ink); }
  .contact-card dl { grid-template-columns: 88px 1fr; row-gap: 12px; }
  .contact-card dd { font-size: 17px; }
  .contact-card dd.big { font-size: 26px; }
  .float-call { right: 16px; bottom: 16px; }
  .float-call a { width: 52px; height: 52px; }
  .float-call a svg { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  header.nav .wrap { height: 74px; gap: 12px; }
  nav { max-height: calc(100vh - 74px); }
  .brand-mark { height: 34px; }
  .brand-name strong { font-size: 16px; }
  footer .brand-mark { height: 42px; }
  footer .brand-name strong { font-size: 18px; }
  .brand-name span { font-size: 9.5px; padding: 1px 8px; }
  .hero .hero-actions .btn { padding: 13px 10px; font-size: 14px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 16px; }
  .hero-tag { font-size: 12px; }
  .facts div { padding: 16px 6px; }
  .facts .en { font-size: 9px; letter-spacing: .04em; margin-bottom: 4px; }
  .facts strong { font-size: clamp(14px, 4.2vw, 19px); }
  .sec-head h2, .about h2, .hkmo h2, .contact h2 { font-size: 30px; }
  .svc { padding: 28px 22px; }
  .svc h3 { font-size: 22px; }
  .hkmo li { font-size: 16px; padding: 12px 20px; }
  .step h3 { font-size: 22px; }
  .btn { padding: 12px 22px; font-size: 15px; }
}

/* ---------- 卡片 hover（新粗野主義：上移 + 硬陰影 / 底色變化） ---------- */
.case, .svc-photos figure { position: relative; }
.svc, .case, .svc-photos figure, .contact-card, .hkmo li, .step .dot { transition: transform .15s, box-shadow .15s; }
.svc, .facts div, .numbers div { transition: background .2s, transform .15s, box-shadow .15s; }
.case > img, .svc-photos img { transition: transform .35s ease; }
@media (hover: hover) {
  .svc:hover { background: var(--yellow); box-shadow: inset 0 0 0 3px var(--ink); }
  .case:hover, .svc-photos figure:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }
  .case:hover > img, .svc-photos figure:hover img { transform: scale(1.05); }
  .contact-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
  .hkmo li:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
  .step .dot:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
  .facts div:hover { background: #1d1d1d; }
  .facts div:hover strong { color: var(--yellow); }
  .numbers div:hover { background: var(--paper); }
}

/* ---------- 維修案例實拍走廊（自動輪播） ---------- */
.case-strip { margin-top: 28px; overflow: hidden; }
.case-track { display: flex; width: max-content; padding-block: 14px; animation: strip 90s linear infinite; will-change: transform; }
.strip-set { display: flex; flex: none; }
.strip-set img { flex: 0 0 auto; height: 260px; width: auto; max-width: none; object-fit: contain; display: block; margin-right: 14px; border-radius: 14px; cursor: zoom-in; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.case-strip:hover .case-track, .case-track.is-paused { animation-play-state: paused; }
@media (max-width: 900px) {
  .case-track { padding-block: 10px; }
  .strip-set img { height: 180px; margin-right: 10px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-track { animation: none; }
  .case-strip { overflow-x: auto; }
}

/* ---------- 電池模組圖片輪播 ---------- */
.svc-photos { align-items: start; }
.svc-photos figure > img { aspect-ratio: 4 / 3; }
.batt-carousel { display: flex; flex-direction: column; gap: 12px; }
.batt-stage { position: relative; margin: 0; border: var(--bd) solid var(--ink); border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.batt-stage img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.batt-stage img.is-on { opacity: 1; pointer-events: auto; z-index: 2; cursor: zoom-in; }
.batt-stage:hover img { transform: none; }
.batt-stage figcaption { z-index: 3; }
.bc-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border: var(--bd) solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1; cursor: pointer; padding: 0; }
.bc-btn:active { background: var(--yellow); }
.bc-prev { left: 14px; }
.bc-next { right: 14px; }
.batt-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bc-thumb { margin: 0; padding: 0; border: var(--bd) solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); opacity: .5; cursor: pointer; }
.bc-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bc-thumb.is-on { opacity: 1; box-shadow: 3px 3px 0 var(--ink); }
@media (hover: hover) { .bc-thumb:hover { opacity: 1; } }
@media (max-width: 899px) { .bc-btn { width: 36px; height: 36px; font-size: 18px; } .batt-thumbs { gap: 8px; } }

/* ---------- 右欄服務標籤條（與左欄縮圖條等高對齊） ---------- */
.svc-photos { align-items: stretch; }
.svc-side { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.svc-side figure { flex: 0 0 auto; }
.side-tags { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; border: var(--bd) solid var(--ink); border-radius: 20px; background: var(--mist); padding: 14px 18px; }
.side-tags-label { font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 12px; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.side-tags ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.side-tags li { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 900; background: var(--paper); }

/* 2026-11-23 document revisions */
header.nav .brand-mark { height: 26px; }
header.nav .brand-name strong { font-size: 18px; }
.brand-name strong em { font-style: normal; font-size: 1.55em; line-height: 1.1; }
footer .brand-mark { height: 30px; }
footer .brand-name strong { font-size: 18px; }
.case-grid { align-items: start; }
.case .repair-gallery { gap: 10px; padding: 12px 12px 0; }
.case .batt-stage { border-radius: 16px; }
.case .batt-stage figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: var(--yellow); border: 2px solid var(--ink); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.repair-gallery .batt-thumbs { grid-template-columns: repeat(auto-fit,minmax(38px,1fr)); gap: 6px; }
.repair-gallery .bc-thumb img { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; }
.case p { font-size: 16px; line-height: 1.8; }
.about .wrap { align-items: start; }
.about p { line-height: 1.95; }
.about-img { position: sticky; top: 110px; }
.address-detail { display: flex; align-items: center; gap: 10px; }
.address-detail img { flex: none; object-fit: contain; }
.hkmo .hkmo-promise { margin-top: 18px; font-weight: 700; }
@media(max-width:1100px) { .about-img { position: relative; top: auto; } }
@media(max-width:560px) {
 header.nav .brand { gap: 8px; }
 header.nav .brand-mark { height: 22px; }
 header.nav .brand-name strong { font-size: 15px; }
 .brand-name strong em { font-size: 1.5em; }
 .case .repair-gallery { padding: 10px 10px 0; }
 footer .brand-name strong { font-size: 16px; }
}


/* Matching service galleries */
.svc-photos { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.svc-photos > *, .svc-side > .repair-gallery { min-width: 0; }
.svc-side { height: auto; }
.svc-photos .batt-stage { width: 100%; aspect-ratio: 4 / 3; }
.svc-photos .batt-stage img { aspect-ratio: auto; height: 100%; }
.svc-photos .batt-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 4px; scroll-snap-type: x proximity; }
.svc-photos .bc-thumb { flex: 0 0 calc((100% - 30px) / 4); min-width: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.svc-photos .bc-thumb img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
@media(max-width:1100px) { .svc-photos { grid-template-columns: minmax(0,1fr); } }

/* Keep touch scrolling without displaying a scrollbar. */
.svc-photos .batt-thumbs { scrollbar-width: none; -ms-overflow-style: none; }
.svc-photos .batt-thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }


/* Aligned repair cards */
.case-grid { align-items: stretch; }
.case { min-width: 0; height: 100%; }
.case-media { display: grid; grid-template-rows: auto 48px; gap: 10px; padding: 12px 12px 0; min-width: 0; }
.case .case-media .repair-gallery { display: contents; padding: 0; }
.case-media .batt-stage, .case-media > .case-cover { width: 100%; aspect-ratio: 4 / 3; border: var(--bd) solid var(--ink); border-radius: 16px; overflow: hidden; }
.case-media > .case-cover { height: auto; object-fit: cover; cursor: zoom-in; }
.case-media .batt-thumbs { display: grid; grid-template-columns: repeat(auto-fit,minmax(30px,1fr)); gap: 6px; height: 48px; min-width: 0; }
.case-media .bc-thumb { height: 48px; min-width: 0; }
.case-media .bc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-body { flex: 1; padding: 20px 24px 24px; gap: 12px; }
.case-body h3 { min-height: 2.7em; margin: 0; }
.case-summary { min-height: 7.2em; }
.case-summary p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; line-height: 1.8; margin: 0; }
.case-readmore { align-self: flex-start; margin-top: auto; padding: 0 0 3px; border: 0; border-bottom: 2px solid var(--red); background: none; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.case-dialog { margin: auto; width: min(720px,calc(100vw - 32px)); max-height: 85vh; overflow-y: auto; padding: 36px; border: var(--bd) solid var(--ink); border-radius: 22px; color: var(--ink); background: var(--paper); }
.case-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.case-dialog h2 { font-size: 26px; margin: 0 36px 20px 0; }
.case-dialog p { font-size: 17px; line-height: 1.9; margin: 0 0 18px; }
.case-dialog-close { position: absolute; right: 15px; top: 10px; border: 0; background: none; font-size: 32px; cursor: pointer; }

/* Balanced company overview and complete introduction */
.about > .wrap { display: block; }
.about-overview { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.about .about-img { position: relative; top: auto; }
.about .about-img img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
.about-summary p { font-size: 18px; line-height: 1.9; }
.about-summary .numbers { margin-top: 28px; }
.about-story { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.about-story > div { padding: 24px; border: 1px solid #d5d5d0; border-radius: 18px; background: var(--mist); }
.about-story p { margin: 0; font-size: 16px; line-height: 1.95; }

/* Icons precede each contact label */
.contact-card dl { grid-template-columns: 120px minmax(0,1fr); column-gap: 18px; align-items: start; }
.contact-card dt { display: flex; align-items: center; gap: 9px; min-height: 28px; white-space: nowrap; }
.contact-label-icon { width: 20px; height: 20px; flex: none; color: var(--red); }
.contact-card dd { min-width: 0; overflow-wrap: anywhere; }
.contact-card .address-detail { display: block; }
.copy-btn.copy-text { width: auto; height: auto; font: inherit; font-weight: inherit; text-align: left; }
.copy-btn.copy-text.copied { color: #07873e; }
@media(max-width:1100px) {
 .case-summary { min-height: 0; }
 .case-body h3 { min-height: 0; }
 .about-overview { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .about .about-img img { max-height: 480px; }
 .about-story { grid-template-columns: minmax(0,1fr); gap: 16px; }
}
@media(max-width:560px) {
 .case-dialog { padding: 28px 22px; }
 .case-body { padding: 18px 20px 22px; }
 .about-summary p { font-size: 17px; }
 .about-story > div { padding: 20px; }
 .contact-card dl { grid-template-columns: 102px minmax(0,1fr); gap: 16px 12px; }
 .contact-card dt { gap: 7px; font-size: 13px; }
 .contact-label-icon { width: 18px; height: 18px; }
 .contact-card dd { font-size: 18px; }
 .contact-card dd.big { font-size: 28px; }
}

/* Center labels and values vertically within each contact row. */
.contact-card dl { align-items: center; }
.contact-card dt, .contact-card dd { align-self: center; }
