/* 蝙蝠哥 BatmanCar — 手機優先、深色底 + 蝙蝠黃 */

:root {
  --bg:        #0c0c0e;
  --surface:   #16161a;
  --surface-2: #1e1e24;
  --line:      #2b2b33;
  --text:      #ecedf0;
  --muted:     #9a9ba4;
  --accent:    #ffd200;
  --accent-dk: #c9a600;
  --cyan:      #22d3ee;   /* 取自 Logo 的電路青 */
  --line-green:#06c755;
  --radius:    14px;
  --wrap:      1080px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,14,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: .75rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 50%; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: .4rem .6rem;
  font-size: 1rem; cursor: pointer; line-height: 1;
}
.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: .5rem 0 1rem;
  border-top: 1px solid var(--line);
}
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a { display: block; padding: .7rem .2rem; color: var(--text); font-weight: 600; }
.site-nav a[aria-current] { color: var(--accent); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; margin-left: auto; }
  .site-nav ul { display: flex; gap: 1.4rem; border: 0; padding: 0; }
  .site-nav li + li { border: 0; }
  .site-nav a { padding: .3rem 0; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(760px 300px at 22% -14%, rgba(34,211,238,.14), transparent 68%),
    radial-gradient(900px 320px at 62% -12%, rgba(255,210,0,.16), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-logo {
  width: 118px; height: 118px; margin: 0 0 1.25rem;
  filter: drop-shadow(0 0 26px rgba(34,211,238,.28));
}
@media (min-width: 720px) { .hero-logo { width: 150px; height: 150px; } }
.hero h1 { font-size: clamp(1.85rem, 6vw, 3rem); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
.hero .lead { color: var(--muted); font-size: 1.06rem; margin: 0 0 1.6rem; max-width: 46ch; }
.eyebrow {
  display: inline-block; color: var(--cyan); font-weight: 700;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .72rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn-line  { background: var(--line-green); color: #fff; }
.btn-primary { background: var(--accent); color: #000; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }

/* ---------- Sections ---------- */
section { padding: 2.75rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); margin: 0 0 .4rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.section-sub { color: var(--muted); margin: 0 0 1.6rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
a.card { color: var(--text); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card .icon { font-size: 1.5rem; color: var(--cyan); line-height: 1; }
.card p { color: var(--muted); margin: .35rem 0 0; font-size: .93rem; }
.card .meta { color: var(--accent); font-size: .82rem; font-weight: 700; margin-top: .6rem; }

/* LED 頁：每個車款的影片清單 */
.v-count {
  margin-left: .6rem; font-size: .78rem; font-weight: 600;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem;
}
.v-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.v-list a {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .3rem; border-radius: 8px;
  color: var(--text); font-size: .93rem; line-height: 1.5;
}
.v-list a:hover { background: var(--surface-2); text-decoration: none; }
.v-list .f-ico { width: 15px; height: 15px; opacity: .8; }
.v-list a:hover .f-ico { opacity: 1; }
.v-list span { flex: 1; }
.v-tag {
  flex: none; font-style: normal; font-size: .7rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .05rem .45rem;
}

/* 會離站的卡片（其他服務頁備用） */
.card-ext { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.card-ext .name { font-size: 1.05rem; font-weight: 800; }
.card-ext .ext-note {
  display: inline-flex; align-items: center; gap: .3rem; flex: none;
  color: var(--muted); font-size: .78rem; white-space: nowrap;
}
.card-ext .f-ico { width: 14px; height: 14px; opacity: .82; }
.card-ext:hover .ext-note { color: var(--text); }
.card-ext:hover .f-ico { opacity: 1; }

.model-card .name { font-size: 1.15rem; font-weight: 800; }
.model-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tag {
  font-size: .72rem; padding: .18rem .55rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.tag.on { color: #000; background: var(--accent); border-color: var(--accent); font-weight: 700; }

/* 施工實績頁：每個車款一個區塊（標題 + 標籤 + 代表照片 + 看全部） */
.case-block + .case-block { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin-bottom: .9rem; }
.case-head h2 { margin: 0; }
.case-head .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.case-more { display: inline-block; margin-top: .35rem; font-weight: 700; }

/* ---------- Menu (variants) ---------- */
.variant { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .85rem; overflow: hidden; }
.variant > summary {
  cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: .6rem;
}
.variant > summary::-webkit-details-marker { display: none; }
.variant > summary::after { content: "＋"; margin-left: auto; color: var(--accent); font-weight: 400; }
.variant[open] > summary::after { content: "－"; }
.variant[open] > summary { border-bottom: 1px solid var(--line); }
.variant .body { padding: .35rem 1.15rem 1.15rem; }

.group { padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.group:last-child { border-bottom: 0; padding-bottom: 0; }
.group .g-title { display: flex; align-items: baseline; gap: .5rem; font-weight: 700; }
.group .g-key {
  flex: none; width: 22px; height: 22px; border-radius: 6px; font-size: .78rem;
  background: var(--accent); color: #000; display: grid; place-items: center; font-weight: 800;
}
.group ul { margin: .5rem 0 0; padding-left: 2rem; color: var(--muted); }
.group li { margin: .18rem 0; }
.cross-link { display: inline-flex; align-items: center; gap: .3rem; margin-left: 1.9rem; font-size: .9rem; font-weight: 600; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 1rem 1.15rem; color: var(--muted);
}
.callout strong { color: var(--text); }
.price-badge {
  display: inline-block; background: var(--accent); color: #000;
  font-weight: 800; padding: .3rem .8rem; border-radius: 999px; font-size: .92rem;
}

.effects { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.effects li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.effects li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }

/* ---------- Gallery ---------- */
/* 用 CSS columns 做磚牆排版：這些圖高矮差很多（LINE 對話拼貼常是長圖），
   原本 4:3 裁切會把內容切掉大半，改成保留原始比例完整顯示。 */
.gallery { columns: 2; column-gap: .55rem; }
@media (min-width: 620px) { .gallery { columns: 3; } }
@media (min-width: 980px) { .gallery { columns: 4; } }

.gallery .shot {
  display: block; break-inside: avoid; margin-bottom: .55rem;
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .15s, transform .15s;
}
.gallery .shot:hover, .gallery .shot:focus-visible {
  border-color: var(--accent); transform: translateY(-2px); text-decoration: none;
}
.gallery .shot img { width: 100%; height: auto; display: block; }

/* 放大鏡提示（滑鼠裝置才顯示） */
.gallery .shot::after {
  content: "⤢"; position: absolute; right: .4rem; bottom: .4rem;
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(12,12,14,.72); color: var(--accent);
  display: grid; place-items: center; font-size: .9rem;
  opacity: 0; transition: opacity .15s;
}
@media (hover: hover) { .gallery .shot:hover::after { opacity: 1; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,8,.96); display: grid; }
.lb[hidden] { display: none !important; }
.lb-stage {
  grid-area: 1/1; overflow: auto; display: grid; place-items: center;
  padding: 3.25rem .5rem 3.5rem; overscroll-behavior: contain;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100dvh - 7rem);
  width: auto; height: auto; border-radius: 6px; cursor: pointer;
}
/* 放大到原寸，可捲動細看對話 */
.lb.is-zoomed .lb-stage img { max-width: none; max-height: none; width: 2000px; cursor: zoom-out; }
.lb.is-zoomed .lb-stage { place-items: start; }

.lb-btn {
  position: absolute; z-index: 2; border: 1px solid var(--line);
  background: rgba(22,22,26,.92); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.25rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: .6rem; right: .6rem; }
.lb-prev  { left: .6rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: .6rem; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: .85rem; background: rgba(22,22,26,.92);
  padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line);
}
.lb-hint { display: none; }
@media (hover: hover) and (min-width: 720px) { .lb-hint { display: inline; } }
body.lb-open { overflow: hidden; }

/* ---------- Tables / misc ---------- */
.scroll-x { overflow-x: auto; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq details { padding: 1rem 1.15rem; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q "; color: var(--accent); font-weight: 800; }
.faq p { color: var(--muted); margin: .6rem 0 0; }

.pre-wrap { white-space: pre-wrap; color: var(--muted); margin: 0; font-family: inherit; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 5.5rem; color: var(--muted); font-size: .92rem; }
.site-footer h4 { color: var(--text); margin: 0 0 .5rem; font-size: .95rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
/* 頁尾條列：圖示 + 文字。圖示只負責幫忙掃視，文字才是內容。 */
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.f-list a, .f-plain {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--muted); line-height: 1.5;
}
.f-list a:hover { color: var(--text); text-decoration: none; }
/* 24px：LINE 採用含「LINE」字樣的官方 App 圖示，實測 20/22px 下字樣會糊成
   一團，24px 是能辨識的最小尺寸。四欄共用同一尺寸以維持一致。
   聯絡與社群兩欄共用同一尺寸與間距，四個品牌 Logo 都佔滿同一個
   24x24 的繪圖框，確保視覺大小與對齊一致。 */
.f-ico { width: 24px; height: 24px; flex: none; }
/* 功能圖示跟著文字顏色走 */
.f-ico:not(.is-brand) { color: var(--muted); transition: color .15s; }
.f-list a:hover .f-ico:not(.is-brand) { color: var(--text); }
/* 品牌 Logo 用原廠彩色版，不隨狀態改色（商標規範也要求不得改色）；
   平常稍微壓低彩度融入深色頁尾，滑過才完全鮮明。 */
.f-ico.is-brand { opacity: .92; transition: opacity .15s; border-radius: 6px; }
.f-list a:hover .f-ico.is-brand { opacity: 1; }

.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Floating LINE (mobile) ---------- */
.fab {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  display: flex; gap: .6rem;
}
.fab .btn { flex: 1; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
@media (min-width: 860px) { .fab { display: none; } .site-footer { padding-bottom: 2.5rem; } }

.breadcrumb { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.breadcrumb a { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
