/* 木子科技官網共用樣式（mockup-v6 / counter-v6 / contact-v6 共用）。改呢度 = 三頁一齊變。 */

  /*
    木子科技品牌色板（muzi-roadmap/brand/brand-palette.html）
    主題：全頁淺色；只有「四步流程」一幕轉深色（刻意嘅一次轉場）
    重點色：淺底 = 科技藍 #1A56DB；深底 = 亮藍 #6E9BFF
    圓角規則：按鈕 = 全圓；卡片 / 影片 = 24px；輸入框 = 12px
    動態：定鏡場景只喺闊螢幕 + 冇開「減少動態」時啟用（html.pin）；其餘情況係靜態排版
  */
  :root {
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --border-strong: #C8CACC;
    --text: #2E3541;
    --muted: #6B7280;
    --ink: #08101E;
    --accent: #1A56DB;
    --on-accent: #F5F7FA;
    --danger: #B91C1C;
    --line: rgba(8, 16, 30, 0.10);
    --hover: rgba(8, 16, 30, 0.04);
    --font: -apple-system, BlinkMacSystemFont, "Geist", "PingFang TC", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --radius-lg: 24px;
    --radius-input: 12px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --max: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    --pbar-h: 52px;
    --nav-h: 84px;
    /* z-index 層級 */
    --z-pbar: 90;
    --z-nav: 100;
    --z-menu: 200;
  }
  :lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "Geist", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
  /* 深色一幕：喺區塊內重新定義同一組變數 */
  .flow {
    --bg: #08101E; --surface: #16213A; --border-strong: #2E3541; --text: #C8CACC; --muted: #8C8E98;
    --ink: #F5F7FA; --accent: #6E9BFF; --on-accent: #08101E; --line: rgba(200, 202, 204, 0.12); --hover: rgba(200, 202, 204, 0.05);
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; color-scheme: light; scroll-padding-top: calc(var(--pbar-h) + 16px); }
  a, button, select, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(26, 86, 219, 0.12); }
  section[id] { scroll-margin-top: var(--pbar-h); }
  body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  }
  img, video { display: block; max-width: 100%; }
  a { color: inherit; }
  h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
  p { text-wrap: pretty; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
  .nw { white-space: nowrap; }

  .skip-link {
    position: absolute; left: 16px; top: -48px; z-index: var(--z-menu);
    background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
    font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
  }
  .skip-link:focus { top: 12px; }

  /* ── 按鈕 ── */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px; border-radius: 999px;
    font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
    cursor: pointer; border: 1px solid transparent;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, var(--ink)); }
  .btn-ghost { border-color: rgba(8, 16, 30, 0.22); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--ink); background: var(--hover); }
  .btn i { font-size: 18px; }
  .btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
  .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

  /* ── 主導航（跟頁面捲走）── */
  .nav { position: relative; z-index: var(--z-nav); border-bottom: 1px solid var(--line); background: var(--bg); }
  .nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .nav-logo { display: flex; }
  .nav-logo img { height: 56px; width: auto; } /* muzi-logo-nav.svg = 官方橫版 logo 切走四邊留白，圖案冇改 */
  .nav-links { display: flex; align-items: center; gap: 28px; }
  .nav-link, .dd-trigger {
    font: 400 15px/1 var(--font); color: var(--text); text-decoration: none;
    background: none; border: 0; cursor: pointer; padding: 8px 0; transition: color .2s var(--ease);
  }
  .nav-link:hover, .dd-trigger:hover { color: var(--accent); }
  .dd { position: relative; }
  .dd-trigger { display: inline-flex; align-items: center; gap: 4px; }
  .dd-trigger i { font-size: 13px; transition: transform .2s var(--ease); }
  .dd.open .dd-trigger i { transform: rotate(180deg); }
  .dd-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; min-width: 230px;
    transform: translate(-50%, -6px); opacity: 0; visibility: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px;
    box-shadow: 0 24px 48px rgba(8, 16, 30, 0.14);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .dd.open .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dd-menu a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-size: 15px; transition: background-color .2s var(--ease), color .2s var(--ease); }
  .dd-menu a:hover { background: var(--hover); color: var(--ink); }
  .dd-menu a[aria-current="page"] { color: var(--accent); }
  .nav-right { display: flex; align-items: center; gap: 16px; }
  .lang { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
  .lang button {
    font: 500 13px/1 var(--font); color: var(--muted); background: none; border: 0;
    border-radius: 999px; padding: 8px 11px; cursor: pointer; min-width: 44px;
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .lang button:hover { color: var(--ink); }
  .lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

  .m-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-menu); background: var(--bg);
    padding: 24px max(var(--gutter), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .m-menu.open { opacity: 1; visibility: visible; transform: none; }
  .m-menu .m-label { font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
  .m-menu a.m-link { font-size: 20px; color: var(--ink); text-decoration: none; padding: 12px 0; }
  .m-menu a.m-link[aria-current="page"] { color: var(--accent); }
  .m-menu hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
  .m-menu .lang { align-self: flex-start; margin: 16px 0; }

  /* ── 產品列：捲過開場後由頂部滑入 ── */
  .pbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-pbar); height: var(--pbar-h);
    background: rgba(245, 247, 250, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
  }
  .pbar.show { transform: none; visibility: visible; }
  .pbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .pbar-name { font-weight: 600; color: var(--ink); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .pbar-links { display: flex; align-items: center; gap: 22px; }
  .pbar-links a.t { font-size: 14px; text-decoration: none; color: var(--text); transition: color .2s var(--ease); }
  .pbar-links a.t:hover { color: var(--accent); }

  /* ── 開場（預設 = 靜態排版；html.pin = 定鏡場景）── */
  .hero-scene { position: relative; }
  .hero-pin { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); overflow: clip; }
  .hero-copy { padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
  .hero-badge { font-size: 14px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 18px; font-weight: 500; }
  .hero h1, .hero-copy h1 { font-size: clamp(34px, 8.4vw, 52px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px; }
  .hero-copy h1:lang(en) { font-size: clamp(30px, 7.2vw, 44px); }
  .hero-sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 32em; margin-bottom: 30px; }
  .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-machine { position: relative; display: flex; justify-content: center; margin-top: 36px; }
  .hero-machine::before { /* 光暈 */
    content: ""; position: absolute; inset: -4% -40% 2%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(26, 86, 219, 0.16), rgba(26, 86, 219, 0.05) 55%, transparent 75%);
  }
  .hero-machine::after { /* 地面陰影 */
    content: ""; position: absolute; left: 6%; right: 6%; bottom: -1.5%; height: 7%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(8, 16, 30, 0.30), transparent);
  }
  .hero-machine img { position: relative; z-index: 1; height: min(62vh, 500px); width: auto; filter: drop-shadow(0 18px 28px rgba(8, 16, 30, 0.18)); }
  .callouts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 40px; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
  .callout .num {
    font-family: "Geist", var(--font); font-weight: 500; color: var(--ink);
    font-size: clamp(34px, 3.8vw, 58px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 10px;
  }
  .callout .num small { font-size: .45em; letter-spacing: 0; }
  .callout p { font-size: 15px; color: var(--muted); line-height: 1.5; }
  .callout p b { display: block; color: var(--text); font-weight: 500; }

  @media (prefers-reduced-motion: no-preference) {
    .js .hero-machine img { animation: machine-in 1.4s var(--ease) both; }
    @keyframes machine-in { from { opacity: 0; transform: translateY(40px) scale(0.94); } to { opacity: 1; transform: none; } }
  }

  /* 定鏡模式 */
  .pin .hero-scene { height: 290vh; }
  .pin .hero-pin {
    position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 0;
    --mh: min(78vh, 760px); --mw: calc(var(--mh) * 0.498); --shift: min(25vw, 330px);
  }
  .pin .hero-copy {
    position: absolute; left: var(--edge); top: 50%; width: min(620px, 46%); padding: 0;
    opacity: calc(1 - var(--copy, 0)); transform: translateY(calc(-50% - var(--copy, 0) * 70px));
  }
  .pin .hero-copy h1 { font-size: clamp(38px, 4.6vw, 68px); }
  .pin .hero-copy h1:lang(en) { font-size: clamp(32px, 3.7vw, 54px); }
  .pin .hero-machine {
    position: absolute; left: 50%; top: 50%; margin: 0; height: var(--mh);
    transform: translate(calc(-50% + (1 - var(--e1, 0)) * var(--shift)), -50%) scale(calc(0.92 + var(--e1, 0) * 0.12));
    will-change: transform;
  }
  .pin .hero-machine img { height: 100%; }
  .pin .callouts { display: block; margin: 0; padding: 0; }
  .pin .callout {
    position: absolute; width: min(320px, calc(50% - var(--mw) / 2 - 40px - var(--gutter)));
    opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 28px));
  }
  .pin .callout.c1, .pin .callout.c2 { right: calc(50% + var(--mw) / 2 + 40px); text-align: right; }
  .pin .callout.c3, .pin .callout.c4 { left: calc(50% + var(--mw) / 2 + 40px); }
  .pin .callout.c1 { top: 22%; --c: var(--c1, 0); }
  .pin .callout.c2 { top: 58%; --c: var(--c2, 0); }
  .pin .callout.c3 { top: 30%; --c: var(--c3, 0); }
  .pin .callout.c4 { top: 66%; --c: var(--c4, 0); }
  .pin .callout .num { font-size: clamp(36px, 4.2vw, 66px); }

  /* ── 通用區塊 ── */
  .section { padding: clamp(56px, 7vw, 104px) 0; }
  .section h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.12; letter-spacing: -0.025em; }
  .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 38em; }

  /* ── 行業挑戰 ── */
  .problems-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 52px); }
  .problems-head .lead { margin-top: 16px; }
  .problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .problem { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 34px); box-shadow: inset 0 0 0 1px var(--line); }
  .problem i { font-size: 28px; color: var(--accent); }
  .problem h3 { font-size: clamp(20px, 1.9vw, 24px); letter-spacing: -0.01em; margin: 14px 0 8px; }
  .problem p { color: var(--muted); font-size: 16px; }

  /* ── 四步流程：深色一幕 ── */
  .flow { background: var(--bg); color: var(--text); border-radius: 40px; margin: 0 clamp(0px, 1.2vw, 16px); }
  .flow-pin { padding: clamp(56px, 7vw, 96px) 0; }
  .flow-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .flow h2, .viewer h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -0.025em; }
  .flow-head .lead { margin-top: 16px; font-size: 16px; color: var(--muted); }
  .steps { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
  .step-btn {
    position: relative; width: 100%; text-align: left; cursor: pointer;
    background: transparent; border: 1px solid transparent; border-radius: 18px;
    padding: 15px 22px 15px 28px; color: inherit; font: inherit;
    transition: background-color .4s var(--ease), border-color .4s var(--ease);
  }
  .step-btn:hover { background: var(--hover); }
  .step-btn[aria-selected="true"] { background: var(--surface); border-color: var(--line); }
  .step-btn .st { display: block; font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: var(--muted); transition: color .4s var(--ease); }
  .step-btn[aria-selected="true"] .st { color: var(--ink); }
  .step-btn .sd { color: var(--muted); font-size: 16px; margin-top: 6px; display: none; }
  .step-btn[aria-selected="true"] .sd { display: block; }
  .step-btn .bar { position: absolute; left: 12px; top: 15px; bottom: 15px; width: 2px; border-radius: 2px; overflow: hidden; }
  .step-btn[aria-selected="true"] .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -24px rgba(2, 6, 14, 0.7); width: 100%; max-width: 560px; justify-self: center; }
  .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
  .stage video.active { opacity: 1; transform: none; }
  .stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(200, 202, 204, 0.14); }
  .stage-toggle {
    position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(8, 16, 30, 0.64); color: #F5F7FA; font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .2s var(--ease);
  }
  .stage-toggle:hover { background: rgba(8, 16, 30, 0.85); }

  .pin .flow-scene { height: 340vh; }
  .pin .flow-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: var(--pbar-h) 0 0; display: flex; align-items: center; }
  .pin .flow-pin > .wrap { width: 100%; }
  .pin .flow-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  .pin .stage { order: 2; max-width: min(560px, 68vh); }

  /* ── 效益：逐行亮起 ── */
  .benefits h2 { max-width: 16em; margin-bottom: clamp(24px, 3vw, 44px); }
  .benefit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 5vw, 80px); align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line); }
  .benefit h3 { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.025em; line-height: 1.15; }
  .benefit p { font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }

  /* ── 產品規格 ── */
  .specs h2 { margin-bottom: clamp(24px, 3vw, 40px); }
  .bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); gap: 14px; }
  .cell { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: inset 0 0 0 1px var(--line); }
  .cell.wide { grid-column: span 2; }
  .cell-tint { background: linear-gradient(160deg, rgba(26, 86, 219, 0.10) 0%, transparent 70%), var(--surface); }
  .cell .big { font-family: "Geist", var(--font); font-weight: 500; color: var(--ink); font-size: clamp(64px, 8vw, 116px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 14px; }
  .cell i { font-size: 28px; color: var(--accent); margin-bottom: auto; }
  .cell h3 { font-size: 20px; letter-spacing: -0.01em; margin: 18px 0 8px; }
  /* 電腦版：滑鼠移到邊一格，嗰格放大浮起，其餘輕微退後（用獨立 scale 屬性，唔會同進場動畫嘅 transform 撞）*/
  @media (hover: hover) and (pointer: fine) {
    .bento .cell { transition: scale .45s var(--ease), box-shadow .45s var(--ease); }
    .js .bento .cell.reveal {
      transition: opacity .9s var(--ease), transform .9s var(--ease), scale .45s var(--ease), box-shadow .45s var(--ease);
      transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
    }
    .bento:hover .cell:not(:hover) { scale: 0.98; }
    .bento .cell:hover { scale: 1.045; z-index: 1; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -22px rgba(8, 16, 30, 0.30); }
  }
  .cell p { color: var(--muted); font-size: 16px; max-width: 34em; }

  /* ── 適用對象：橫向卡片列 ── */
  .audience .head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
  .car-btns { display: flex; gap: 8px; }
  .car-btn {
    width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(8, 16, 30, 0.07); color: var(--ink); font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s var(--ease), opacity .2s var(--ease);
  }
  .car-btn:hover { background: rgba(8, 16, 30, 0.14); }
  .car-btn[disabled] { opacity: 0.35; cursor: default; }
  .aud-track {
    list-style: none; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px var(--edge) 8px; scroll-padding-inline: var(--edge); scrollbar-width: none;
  }
  .aud-track::-webkit-scrollbar { display: none; }
  .aud { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; min-height: 250px; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
  .aud i { font-size: 30px; color: var(--accent); margin-bottom: auto; }
  .aud h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.01em; margin: 28px 0 10px; }
  .aud p { color: var(--muted); font-size: 16px; }

  /* ── 聯絡 ── */
  .contact .lead { margin: 14px 0 clamp(28px, 3.5vw, 40px); }
  .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .field label { font-size: 14px; font-weight: 500; }
  .input {
    width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-input);
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font: 400 16px/1.5 var(--font);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .input::placeholder { color: var(--muted); }
  .input:hover { border-color: #8C8E98; }
  .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.18); }
  .input[aria-invalid="true"] { border-color: var(--danger); }
  select.input { appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
  select.input option { background: var(--surface); color: var(--ink); }
  textarea.input { resize: vertical; min-height: 120px; }
  .field-error { font-size: 14px; color: var(--danger); display: none; }
  .field-error.show { display: block; }
  .form-actions { display: flex; flex-direction: column; gap: 12px; }
  .form-actions .btn { width: 100%; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .spin { display: inline-block; animation: spin 0.9s linear infinite; }
  .form-status { font-size: 15px; display: none; padding: 14px 16px; border-radius: var(--radius-input); }
  .form-status.ok { display: flex; gap: 10px; align-items: center; background: rgba(26, 86, 219, 0.08); color: var(--ink); }
  .form-status.err { display: flex; gap: 10px; align-items: center; background: rgba(185, 28, 28, 0.08); color: var(--danger); }
  .form-status i { font-size: 20px; flex-shrink: 0; }
  .aside-block { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .aside-block + .aside-block { margin-top: 14px; }
  .aside-block h3, .aside-block h2.h3 { font-size: 20px; line-height: 1.4; letter-spacing: 0; margin-bottom: 18px; }
  .c-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
  .c-row > div { min-width: 0; overflow-wrap: anywhere; }
  .c-row i { font-size: 22px; color: var(--accent); flex-shrink: 0; }
  .c-row small { display: block; font-size: 13px; color: var(--muted); }
  .c-row a { text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .2s var(--ease); }
  .c-row a:hover { color: var(--accent); }
  .aside-block p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

  .footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
  .footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

  /* ── 進場動畫（只用 transform / opacity）── */
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
    .js .reveal.in { opacity: 1; transform: none; }
    .js .reveal.pop { transform: translateY(28px) scale(0.96); }
    .js .reveal.pop.in { transform: none; }
    .js .benefit { opacity: 0.2; transition: opacity .8s var(--ease); }
    .js .benefit.lit { opacity: 1; }
    .js .benefit h3 { transform: translateX(-14px); transition: transform .9s var(--ease); }
    .js .benefit.lit h3 { transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  }

  /* ── 響應式 ── */
  @media (max-width: 1024px) {
    .nav-links, .nav-right { display: none; }
    .burger { display: inline-flex; }
    .pbar-links a.t { display: none; }
  }
  @media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .benefit { grid-template-columns: 1fr; gap: 10px; }
    .flow { border-radius: 28px; }
  }
  @media (max-width: 560px) {
    .problem-grid, .bento { grid-template-columns: 1fr; }
    .cell.wide { grid-column: auto; }
    .hero-btns .btn { flex: 1 1 100%; }
    .aside-block { padding: 24px; }
    .car-btns { display: none; }
  }

  /* ═════════ 以下係計數器頁 / 聯絡頁用到嘅額外樣式 ═════════ */

  /* 橫向機器（計數器）嘅開場：機器喺上，數字一行排喺下面 */
  .land .hero-machine img { height: auto; width: min(88vw, 520px); }
  .land .hero-machine::before { inset: -18% -12% -6%; }
  .land .hero-machine::after { left: 8%; right: 8%; bottom: 1%; height: 12%; }
  .pin .hero-pin.land { --mh: min(50vh, 500px, 37vw); --mw: calc(var(--mh) / 0.8125); --shift: min(24vw, 320px); }
  .pin .land .hero-copy { width: min(580px, 42%); }
  .pin .land .hero-copy h1 { font-size: clamp(32px, 3.6vw, 52px); }
  .pin .land .hero-copy h1:lang(en) { font-size: clamp(30px, 3.2vw, 46px); }
  .pin .land .hero-machine { top: 43%; }
  .pin .land .hero-machine img { width: auto; height: 100%; }
  .pin .land .callouts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: absolute; left: 50%;
    top: calc(43% + var(--mh) / 2 + 36px); width: min(900px, 88%); transform: translateX(-50%);
  }
  .pin .land .callout { position: static; width: auto; text-align: center; }

  /* 3D 檢視器（淺色定鏡場景，沿用 flow-scene / flow-pin / steps / stage）*/
  .viewer .flow-pin { padding: clamp(52px, 6vw, 84px) 0; }
  .viewer .stage { aspect-ratio: 4 / 3; max-width: 720px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 32px 64px -30px rgba(8, 16, 30, 0.24); }
  .viewer .stage::after { display: none; }
  .viewer .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
  .viewer .stage canvas:active { cursor: grabbing; }
  .viewer .stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
  .viewer-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 15px; pointer-events: none; }
  .viewer-hint { margin-top: 14px; font-size: 14px; color: var(--muted); }
  .dot {
    position: absolute; z-index: 2; width: 30px; height: 30px; border-radius: 999px; border: 2px solid #FFFFFF; cursor: pointer;
    background: var(--accent); color: var(--on-accent); font: 600 13px/1 var(--font);
    transform: translate(-50%, -50%); box-shadow: 0 6px 16px rgba(8, 16, 30, 0.25);
    transition: scale .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
  }
  .dot::after { content: ""; position: absolute; inset: -9px; border-radius: inherit; } /* 觸控範圍放大到 44px 以上 */
  .dot:hover, .dot.on { scale: 1.2; }
  .dot.on { background: var(--ink); }
  .pin .viewer .flow-scene { height: 460vh; }
  .pin .viewer .flow-pin { padding: var(--pbar-h) 0 0; }
  .pin .viewer .stage { max-width: min(720px, 88vh); }

  /* 深色一幕（冇定鏡）嘅內距 + 四步橫排 */
  .flow-pad { padding: clamp(56px, 7vw, 96px) 0; }
  .flow-pad .lead { margin-top: 16px; color: var(--muted); }
  .how-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(32px, 4vw, 56px); counter-reset: how; }
  .how { border-top: 1px solid var(--line); padding-top: 22px; counter-increment: how; }
  .how::before { content: counter(how); display: block; font-family: "Geist", var(--font); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 18px; }
  .how h3 { font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -0.01em; margin-bottom: 8px; }
  .how p { color: var(--muted); font-size: 16px; }

  /* 規格格仔（key + 大字 value）*/
  .specs .lead { margin: -8px 0 clamp(24px, 3vw, 40px); }
  .bento.kv { grid-auto-rows: minmax(150px, auto); }
  .cell .k { font-size: 14px; color: var(--muted); margin-bottom: auto; }
  .cell .v { font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin-top: 22px; font-variant-numeric: tabular-nums; text-wrap: balance; }

  /* 聯絡頁頁首 */
  .page-head { padding: clamp(44px, 6vw, 88px) 0 0; }
  .page-head h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.025em; }
  .page-head .lead { margin-top: 16px; }
  .page-head + .section { padding-top: clamp(28px, 3.5vw, 44px); }
  .aside-block h3 + p, .aside-block h2.h3 + p { margin-top: -8px; }

  @media (max-width: 860px) {
    .how-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .how-grid { grid-template-columns: 1fr; }
  }

  /* 計數器規格 8 格 + 特色卡第 5 張橫跨 */
  .bento.kv4 { grid-template-columns: repeat(4, 1fr); }
  .bento.kv4 .cell .v { font-size: clamp(19px, 1.75vw, 25px); }
  .cell .n { font-size: 14px; color: var(--muted); margin-top: 6px; }
  .problem-grid .wide { grid-column: 1 / -1; }
  .pin .land .callout .num { font-size: clamp(32px, 3.5vw, 50px); }
  @media (max-width: 1024px) { .bento.kv4 { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .bento.kv4 { grid-template-columns: 1fr; } }
