/* =========================================================
   C&B雷射 網站樣式（黑黃科技風）
   想改顏色：改下面 :root 裡的 --y（主色黃）、--bg（底色黑）就好
   ========================================================= */
:root {
  --y: #ffc400;          /* 主色：雷射黃 */
  --y2: #ffd84d;         /* 滑鼠移上去的亮黃 */
  --y-glow: rgba(255, 196, 0, .45);
  --bg: #09090b;         /* 底色：黑 */
  --bg2: #0e0e11;
  --panel: #141418;      /* 卡片底色 */
  --panel2: #1b1b20;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .18);
  --text: #e8e8ed;
  --muted: #a4a4ae;
  --dim: #74747e;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --cut: 14px;           /* 切角大小 */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.8;
  color: var(--text); background: var(--bg); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--y); color: #000; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
iframe { max-width: 100%; }
a { color: var(--y); text-underline-offset: 3px; }
a:hover { color: var(--y2); }
h1, h2, h3, h4, h5, h6 { color: #fff; line-height: 1.3; margin: 0 0 .6em; font-weight: 900; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
cite { font-style: normal; color: var(--y); }
.y { color: var(--y); }
hr, .hr { border: 0; height: 2px; width: 64px; margin: 10px 0 24px; background: var(--y); box-shadow: 0 0 12px var(--y-glow); }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: var(--y); color: #000; padding: 8px 12px; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-justify { text-align: justify; }

/* 共用小零件 ------------------------------------------------ */
.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.ico-lg { width: 30px; height: 30px; }
.kicker {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--y); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; line-height: 1.4;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--y); box-shadow: 0 0 10px var(--y-glow); flex: none; }
.ta-center .kicker, .kicker.c { justify-content: center; }
.hz { height: 8px; background: repeating-linear-gradient(-45deg, var(--y) 0 12px, #0a0a0a 12px 24px); }
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
}
/* 四個角的 HUD 框線 */
.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: -8px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--y), var(--y)) top left / 22px 2px, linear-gradient(var(--y), var(--y)) top left / 2px 22px,
    linear-gradient(var(--y), var(--y)) top right / 22px 2px, linear-gradient(var(--y), var(--y)) top right / 2px 22px,
    linear-gradient(var(--y), var(--y)) bottom left / 22px 2px, linear-gradient(var(--y), var(--y)) bottom left / 2px 22px,
    linear-gradient(var(--y), var(--y)) bottom right / 22px 2px, linear-gradient(var(--y), var(--y)) bottom right / 2px 22px;
  background-repeat: no-repeat;
}
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

/* 按鈕 ------------------------------------------------------ */
.btn {
  --c: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--y); color: #0a0a0a; font-weight: 800; letter-spacing: .04em; line-height: 1.3;
  text-decoration: none; padding: .95em 1.7em; border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--y2); color: #000; transform: translateY(-2px); }
.btn .ico { stroke-width: 2.4; }
.btn-sm { --c: 9px; padding: .62em 1.2em; font-size: 15px; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #19d867; color: #fff; }
.btn-ghost, .btn-navy, .btn-dark { background: var(--panel2); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover, .btn-navy:hover, .btn-dark:hover { background: #26262d; color: var(--y); }
.btn-black { background: #0a0a0a; color: var(--y); }
.btn-black:hover { background: #000; color: var(--y2); }
.btn-wrap { margin: 0 0 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; color: var(--y); }
.arrow-link .ico { transition: transform .2s; }
.arrow-link:hover .ico { transform: translateX(4px); }

/* 最上方聯絡列 -------------------------------------------- */
.topbar { background: #000; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.topbar .wrap { display: flex; gap: 26px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a, .topbar span { color: #cfcfd6; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.topbar a:hover { color: var(--y); }
.topbar .ico { color: var(--y); width: 14px; height: 14px; }
.topbar .tb-social { margin-left: auto; display: flex; gap: 20px; }

/* 頁首 ------------------------------------------------------ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, .84); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap, .topbar .wrap { max-width: 1380px; }
.hdr-in { display: flex; align-items: center; gap: 22px; min-height: 74px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { height: 46px; width: auto; }
.logo-t { display: flex; flex-direction: column; line-height: 1.25; }
.logo-t b { color: #fff; font-size: 19px; letter-spacing: .06em; }
.logo-t small { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; }
.logo:hover .logo-t b { color: var(--y); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a:not(.btn) {
  display: block; position: relative; padding: 8px 8px; text-decoration: none;
  color: #d2d2d9; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px;
  background: var(--y); box-shadow: 0 0 10px var(--y-glow); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--y); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-btn { display: none; }

@media (max-width: 1299px) {
  .nav-btn {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: var(--y); color: #000; border: 0; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  }
  .nav {
    display: none; position: absolute; left: -24px; right: -24px; top: 100%;
    background: #0b0b0d; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 8px 24px 24px; box-shadow: 0 24px 40px rgba(0, 0, 0, .6);
    max-height: calc(100vh - 74px); overflow: auto;
  }
  .nav-open .nav { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { align-self: flex-start; margin-top: 18px; }
}
@media (max-width: 767px) {
  .topbar { display: none; }
  .hdr-in { min-height: 64px; }
  .logo img { height: 38px; }
  .logo-t b { font-size: 16px; }
  .logo-t small { font-size: 10px; letter-spacing: .08em; }
  .nav { max-height: calc(100vh - 64px); }
}

/* 內頁標題 -------------------------------------------------- */
.banner { position: relative; overflow: hidden; background: #050506; padding: 92px 0 76px; }
.banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .97) 0%, rgba(5, 5, 6, .86) 45%, rgba(5, 5, 6, .5) 100%),
    url("/wp-content/uploads/2022/01/cbbg.webp") center / cover no-repeat;
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.banner .wrap { position: relative; z-index: 1; }
.banner h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin: 0; max-width: 20em; }
.banner .sub { color: var(--y); font-weight: 700; margin: .8em 0 0; max-width: 40em; }
.banner .meta { color: var(--muted); font-family: var(--mono); font-size: 13.5px; margin: 1em 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.banner .meta span { display: inline-flex; gap: 7px; align-items: center; }
.banner .meta .ico { color: var(--y); }
.banner + .hz, .page-hz { position: relative; z-index: 1; }
.crumbs { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; margin-bottom: 18px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--y); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--y); }
.crumbs [aria-current] { color: #fff; }

/* 內容區（舊網站的版面轉過來） ---------------------------- */
.sec { padding: 40px 0; position: relative; }
.sec:first-child { padding-top: 72px; }
.sec:last-child { padding-bottom: 88px; }
.row { display: flex; gap: 36px; align-items: flex-start; }
.col { flex: var(--g, 1) 1 0; min-width: 0; }
.col.mid { align-self: center; }
.col > :last-child { margin-bottom: 0; }
.inner { margin-bottom: 24px; }
.inner:last-child { margin-bottom: 0; }
.alt { background: var(--bg2); }
@media (max-width: 767px) {
  .row { flex-direction: column; gap: 22px; align-items: stretch; }
  .sec { padding: 28px 0; }
  .sec:first-child { padding-top: 44px; }
  .sec:last-child { padding-bottom: 56px; }
}

.txt { margin-bottom: 22px; color: #d0d0d7; }
.txt > :last-child { margin-bottom: 0; }
.txt ul, .txt ol { padding-left: 1.4em; }
.txt li::marker { color: var(--y); }
.txt img { margin: 10px 0; }
.txt strong { color: #fff; }
.tbl { overflow-x: auto; margin-bottom: 22px; }
.tbl table { border-collapse: collapse; width: 100%; }
.tbl td, .tbl th { border: 1px solid var(--line2); padding: 8px 12px; }
.tbl th { background: var(--panel2); color: #fff; }
.h { margin-bottom: 22px; }

figure.img { margin: 0 0 22px; }
figure.img img { border: 1px solid var(--line); }
figure.img.ta-center img { margin: 0 auto; }
figure.img.ta-right img { margin-left: auto; }
a.zoom { display: block; cursor: zoom-in; overflow: hidden; }
a.zoom img { transition: transform .4s, filter .4s; }
a.zoom:hover img { transform: scale(1.03); }

.ttl { margin-bottom: 26px; }
.ttl-h { margin: 0; }
.ttl-h + .ttl-d { margin-top: .9em; }
.ttl-d { color: var(--muted); margin: 0; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 22px; border: 1px solid var(--line2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.check { list-style: none; padding: 0; margin: 0 0 22px; }
.check li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; font-weight: 700; color: #fff; }
.check .ico { color: var(--y); margin-top: .35em; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 22px; }
.gallery img, .strip img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, calc((100% - 7 * 10px) / 8)); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-bottom: 22px; }
.strip a { scroll-snap-align: start; }

/* 卡片 */
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column;
  color: var(--text); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 0; height: 0; z-index: 2;
  border-top: 16px solid var(--y); border-right: 16px solid transparent; opacity: 0; transition: opacity .25s;
}
.card:hover { border-color: rgba(255, 196, 0, .55); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.card:hover::before { opacity: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-bottom: 22px; }
.pc-img { display: block; overflow: hidden; background: #000; }
.pc-img img { aspect-ratio: 600 / 443; object-fit: cover; width: 100%; filter: saturate(.85) brightness(.88); transition: transform .5s, filter .4s; }
.card:hover .pc-img img { transform: scale(1.05); filter: none; }
.pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pc-date { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--y); margin: 0 0 8px; }
.pc-body h3 { font-size: 1.12rem; margin: 0 0 10px; line-height: 1.5; }
.pc-body h3 a { text-decoration: none; color: #fff; }
.pc-body h3 a:hover { color: var(--y); }
.pc-ex { color: var(--muted); font-size: 15px; flex: 1; }
.more { font-weight: 800; text-decoration: none; color: var(--y); align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }

/* 圖示方塊（大黃蜂頁、營業項目） */
.iconbox {
  display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  padding: 26px 22px; height: 100%; margin-bottom: 22px; color: var(--text); transition: border-color .25s;
}
.iconbox:hover { border-color: rgba(255, 196, 0, .55); }
.iconbox h3 { margin: 0; font-size: 1.08rem; }
.iconbox .ib-txt { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.ib-ico { width: 54px; height: 54px; display: grid; place-items: center; color: var(--y); border: 1px solid rgba(255, 196, 0, .5); background: rgba(255, 196, 0, .06); flex: none; }

/* 代工廠商 */
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 32px; }
.vendor-img { overflow: hidden; }
.vendor-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s; }
.vendor:hover .vendor-img img { transform: scale(1.05); }
.vendor-noimg { aspect-ratio: 4 / 3; background: #050506 url("/wp-content/uploads/2021/12/CB-LOGO.webp") center / 42% no-repeat; }
.vendor-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.vendor-body h3 { margin: 0 0 10px; }
.vendor-body p { font-size: 15px; color: var(--muted); flex: 1; }
.vendor-body .btn { align-self: flex-start; }

/* 聯絡資訊卡 */
.info-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--y); padding: 28px; margin-bottom: 22px; }
.info-card h2 { font-size: 1.3rem; }
.info-card p { margin: 0; color: #d0d0d7; }

/* 聯絡我們：三個大按鈕 */
.ct-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.ct-tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 26px 24px;
  background: var(--panel); border: 1px solid var(--line); color: #fff; text-decoration: none; transition: border-color .25s, background .25s, transform .25s;
}
.ct-tile .ico { width: 30px; height: 30px; color: var(--y); margin-bottom: 10px; }
.ct-tile small { font-family: var(--mono); color: var(--y); letter-spacing: .2em; font-size: 12px; }
.ct-tile b { font-size: 1.25rem; word-break: break-all; }
.ct-tile span { color: var(--muted); font-size: 14.5px; }
.ct-tile:hover { border-color: var(--y); background: #19190f; color: #fff; transform: translateY(-3px); }
.ct-tile.primary { background: var(--y); border-color: var(--y); color: #000; }
.ct-tile.primary .ico, .ct-tile.primary small { color: #000; }
.ct-tile.primary span { color: #3b3200; }
.ct-tile.primary:hover { background: var(--y2); color: #000; }
.ct-addr { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); padding: 18px 22px; border: 1px dashed var(--line2); }
.ct-addr .ico { color: var(--y); margin-top: .35em; }
.ct-note { color: var(--muted); margin: 18px 0 0; font-size: 15px; }
@media (max-width: 860px) { .ct-tiles { grid-template-columns: 1fr; } }

/* 文章 ------------------------------------------------------ */
.article { max-width: 920px; margin: 0 auto; padding: 56px 24px 24px; }
.article .row { margin-bottom: 22px; }
.post-nav { max-width: 920px; margin: 8px auto 48px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: #fff; font-weight: 700; line-height: 1.5; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--y); color: var(--y); }
.post-nav small { display: block; font-family: var(--mono); color: var(--y); font-weight: 400; font-size: 12px; letter-spacing: .12em; margin-bottom: 4px; }
.post-nav .next { text-align: right; grid-column: 2; }
.back-list { text-align: center; margin: 0 0 64px; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

/* 404 */
.notfound { text-align: center; padding: 96px 24px; }
.notfound .big { font-family: var(--mono); font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; margin: 0 0 10px; color: transparent; -webkit-text-stroke: 2px var(--y); text-shadow: 0 0 40px rgba(255, 196, 0, .25); }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 32px 0 0; }

/* 每頁底部的黃色聯絡區 ---------------------------------- */
.cta {
  position: relative; overflow: hidden; color: #0a0a0a; padding: 64px 0;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 14px), var(--y);
}
.cta-in { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; position: relative; }
.cta .kicker { color: #0a0a0a; }
.cta .kicker::before { background: #0a0a0a; box-shadow: none; }
.cta h2 { color: #0a0a0a; margin: 0 0 .3em; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.cta p { margin: 0; color: #2a2400; font-weight: 700; }
.cta .btn-line { box-shadow: none; }

/* 頁尾 ------------------------------------------------------ */
.ftr { background: #050506; color: var(--muted); font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.ftr .logo { margin-bottom: 20px; }
.ftr-h { font-family: var(--mono); color: var(--y); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 11px; display: flex; gap: 10px; align-items: flex-start; }
.ftr li .ico { margin-top: .35em; color: var(--y); }
.ftr a { color: #dcdce2; text-decoration: none; }
.ftr a:hover { color: var(--y); }
.ftr-links { columns: 2; column-gap: 24px; }
.ftr-links li { break-inside: avoid; }
.ftr-bottom { border-top: 1px solid var(--line); padding: 18px 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--dim); }
.ftr-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr; gap: 36px; } }

/* 手機底部聯絡按鈕 ---------------------------------------- */
.mcta { display: none; }
@media (max-width: 767px) {
  .mcta { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-top: 2px solid var(--y); background: #000; }
  .mcta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); font-size: 12.5px; font-weight: 800; text-decoration: none; color: #fff; line-height: 1.3; }
  .mcta a:nth-child(1) { background: var(--y); color: #000; }
  .mcta a:nth-child(2) { background: #06c755; }
  .mcta a:nth-child(3) { background: #111; }
  .mcta .ico { width: 22px; height: 22px; }
  body { padding-bottom: 62px; }
}

/* 圖片放大 */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; border: 1px solid var(--line2); }
.lb-close { position: fixed; top: 10px; right: 14px; font-size: 40px; color: var(--y); background: none; border: 0; cursor: pointer; line-height: 1; padding: 4px 10px; }

/* =========================================================
   首頁
   ========================================================= */
.home-sec { padding: 104px 0; position: relative; }
.home-sec.tight { padding: 72px 0; }
.home-sec.dark2 { background: var(--bg2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--muted); max-width: 34em; margin: 0; }
@media (max-width: 767px) { .home-sec { padding: 64px 0; } .sec-head { margin-bottom: 32px; } }

/* 主視覺 */
.hero { position: relative; overflow: hidden; background: #050506; padding: 88px 0 0; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(255, 196, 0, .14), transparent 60%),
    linear-gradient(90deg, #050506 30%, rgba(5, 5, 6, .55) 100%),
    url("/wp-content/uploads/2022/01/cbbg.webp") center / cover no-repeat;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); line-height: 1.1; margin: 0 0 22px; letter-spacing: .02em; }
.hero h1 .y { display: block; text-shadow: 0 0 34px rgba(255, 196, 0, .35); }
.hero h1 small { display: block; font-size: .42em; color: #fff; letter-spacing: .08em; margin-top: 18px; font-weight: 800; }
.hero-lead { color: #c9c9d1; font-size: 1.08rem; max-width: 32em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hud { position: relative; }
.hud-img { position: relative; overflow: hidden; }
.hud-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: contrast(1.05) saturate(1.05); }
.hud-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 6, .7)), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px);
}
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--y) 20%, #fff 50%, var(--y) 80%, transparent);
  box-shadow: 0 0 18px 3px var(--y-glow); animation: scan 4.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(var(--scan-h, 420px)); opacity: 0; } }
.tag {
  position: absolute; z-index: 4; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; line-height: 1.35;
  color: #fff; background: rgba(5, 5, 6, .82); border: 1px solid rgba(255, 196, 0, .6); padding: 7px 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tag b { display: block; color: var(--y); font-size: 15px; letter-spacing: .04em; }
.tag-1 { top: 18px; left: -18px; }
.tag-2 { top: 42%; right: -18px; }
.tag-3 { bottom: 22px; left: 24px; }
.stats { position: relative; margin-top: 88px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); background: rgba(5, 5, 6, .6); }
.stat { padding: 28px 26px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--mono); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color: #fff; line-height: 1.05; }
.stat b i { font-style: normal; color: var(--y); }
.stat small { display: block; color: var(--muted); letter-spacing: .1em; margin-top: 8px; font-size: 14px; }
@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .tag-1 { left: 10px; } .tag-2 { right: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* 三大理由 */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 34px 30px 30px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s, transform .25s; }
.why-card:hover { border-color: rgba(255, 196, 0, .6); transform: translateY(-4px); }
.why-num { font-family: var(--mono); font-size: 76px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 196, 0, .55); margin-bottom: 22px; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.why-card p { color: var(--muted); flex: 1; }
.why-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .35s; box-shadow: 0 0 14px var(--y-glow); }
.why-card:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* 大黃蜂介紹 + 影片 */
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.slogan { font-size: 1.15rem; font-weight: 800; color: var(--y); margin: 0 0 18px; letter-spacing: .06em; }
.bullets { list-style: none; padding: 0; margin: 0 0 30px; }
.bullets li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: #fff; font-weight: 700; }
.bullets li::before { content: ""; width: 8px; height: 8px; background: var(--y); box-shadow: 0 0 10px var(--y-glow); flex: none; transform: rotate(45deg); }
@media (max-width: 960px) { .intro { grid-template-columns: 1fr; gap: 40px; } }

/* 營業項目 */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-item { position: relative; padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s, color .3s; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.svc-item .n { font-family: var(--mono); font-size: 12.5px; letter-spacing: .2em; color: var(--dim); }
.svc-item .ico { width: 40px; height: 40px; color: var(--y); stroke-width: 1.6; }
.svc-item h3 { margin: 0; font-size: 1.3rem; }
.svc-item:hover { background: var(--y); }
.svc-item:hover h3, .svc-item:hover .ico, .svc-item:hover .n { color: #000; }
@media (max-width: 900px) { .svc { grid-template-columns: repeat(2, 1fr); } .svc-item { min-height: 170px; padding: 26px 22px; } }
@media (max-width: 520px) { .svc-item { min-height: 150px; padding: 20px 16px; gap: 18px; } .svc-item h3 { font-size: 1.02rem; } .svc-item .ico { width: 32px; height: 32px; } }

/* 評估流程 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--y), rgba(255, 196, 0, .12)); box-shadow: 0 0 12px var(--y-glow); }
.steps li { counter-increment: s; position: relative; padding-top: 80px; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.5; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 56px; height: 56px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 18px; font-weight: 800; color: #000; background: var(--y);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.steps li small { display: block; font-family: var(--mono); color: var(--dim); font-size: 11.5px; letter-spacing: .2em; font-weight: 400; margin-bottom: 6px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--y), rgba(255, 196, 0, .12)); }
  .steps li { padding: 14px 0 26px 80px; min-height: 80px; }
  .steps li::before { top: 4px; }
}

/* 裝機實例 */
.installs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.inst { position: relative; overflow: hidden; display: block; text-decoration: none; background: #000; }
.inst img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.35) brightness(.8); transition: transform .6s, filter .4s; }
.inst:hover img { transform: scale(1.06); filter: none; }
.inst-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9)); color: #fff; font-weight: 800; line-height: 1.4; }
.inst-cap small { display: block; font-family: var(--mono); color: var(--y); font-size: 11.5px; letter-spacing: .16em; font-weight: 400; margin-bottom: 4px; }
@media (max-width: 900px) { .installs { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* 客戶作品 跑馬燈 */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: mq 160s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { width: 220px; flex: none; }
.marquee img { width: 220px; height: 220px; object-fit: cover; border: 1px solid var(--line); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .marquee a, .marquee img { width: 160px; height: 160px; } }

/* 捲動時浮現（有開 JavaScript 才會有效果） */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
