/* KumoBox [PH] 遠端 Mac 租機官網｜共用樣式（繁中、英文兩頁共用）
   原則：系統字型（不載中文 webfont）、內容先行、動態只在 prefers-reduced-motion: no-preference 內。 */

:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --surface: #141821;
  --line: #242a37;
  --fg: #eef1f6;
  --muted: #9ba4b5;
  --accent: #7cc4ff;
  --online: #5ee0a0;
  --maxw: 1180px;
  --radius: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.75 system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  overflow-x: hidden;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.ph { display: inline-block; margin-left: .35em; padding: 0 .4em; border: 1px dashed #6b5a2a; border-radius: 4px;
  color: #e7c766; font: 600 .7rem/1.5 ui-monospace, Consolas, monospace; vertical-align: middle; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1rem; cursor: pointer; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: #3a4357; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

/* ---------- 導覽 ---------- */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: none; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--fg); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-end { margin-left: 0; }
.lang { color: var(--muted); text-decoration: none; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; padding-inline: 6px; }
.lang:hover { color: var(--fg); }
@media (min-width: 900px) { .nav-links { display: flex; } }
/* 捲動後導覽加底色：CSS scroll-driven，不支援就一直有底色 */
.site-header { background: rgba(10,12,16,.82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header { animation: header-in linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes header-in {
      from { background: rgba(10,12,16,0); border-bottom-color: transparent; backdrop-filter: none; }
      to { background: rgba(10,12,16,.82); border-bottom-color: var(--line); }
    }
  }
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding-block: 28px 56px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1fr; gap: 40px; min-height: calc(100svh - 68px); padding-block: 24px 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 4px 12px 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-size: .875rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px rgba(94,224,160,.15); flex: none; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 0 0 18px; font-weight: 750; }
.hero h1 .soft { color: var(--muted); font-weight: 600; }
.hero h1 .l { display: inline; }
@media (min-width: 560px) { .hero h1 .l { display: block; } }
.lede { color: #c3cad6; font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: .875rem; }

.viewer { position: relative; margin: 0; width: 100%; aspect-ratio: 6 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #172033 0%, #0d1119 55%, #0a0c10 100%); border: 1px solid #1b2130; }
.viewer img, .viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewer img { object-fit: cover; transition: opacity .6s ease; }
.viewer.is-3d img { opacity: 0; }
.viewer canvas { opacity: 0; transition: opacity .6s ease; touch-action: pan-y; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer canvas.ready { opacity: 1; }
.viewer canvas:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
.viewer figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: .8rem; color: var(--muted); pointer-events: none; }
.viewer .viewer-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; }
.viewer .viewer-tools button { min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #33405a;
  background: rgba(10,12,16,.72); color: var(--fg); font: inherit; font-size: .9rem; cursor: pointer; }
.viewer .viewer-tools button:hover { border-color: var(--accent); }

/* ---------- 信任列 ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--bg-2); padding: 20px; }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: .9rem; }

/* ---------- 區塊 ---------- */
.section { padding-block: 80px 16px; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { display: block; color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- 運作方式：sticky 畫面（不劫持捲動） ---------- */
.how { display: grid; gap: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); counter-increment: step; }
.step h3 { margin: 0 0 8px; font-size: 1.3rem; }
.step h3::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font: 600 .85rem/1 ui-monospace, Consolas, monospace; margin-bottom: 10px; }
.step p { margin: 0; color: #c3cad6; }
.screen { border: 1px solid #263045; border-radius: 14px; background: #0b0e14; overflow: hidden; margin-top: 18px; font-size: .9rem; }
.screen-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #1c2333; color: var(--muted); font-size: .78rem; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3246; }
.screen-bar span { margin-left: 8px; }
.screen-body { padding: 14px 16px; overflow-x: auto; }
.screen pre { margin: 0; font: .86rem/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #cfd6e2; white-space: pre; }
.screen .ok { color: var(--online); }
.screen .dim { color: #7f899d; }
.screen .acc { color: var(--accent); }
.screen dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.screen dt { color: var(--muted); }
.screen dd { margin: 0; font-family: ui-monospace, Consolas, monospace; }
@media (min-width: 960px) {
  .how { grid-template-columns: 6fr 5fr; gap: 56px; align-items: start; }
  .how-stage { position: sticky; top: 96px; }
  .js .steps .screen { display: none; }               /* 桌面：畫面集中到左側 sticky 舞台 */
  .steps { gap: 0; }
  .step { min-height: 46svh; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: none; padding: 0 0 0 24px;
    border-left: 2px solid var(--line); opacity: .45; transition: opacity .35s ease, border-color .35s ease; }
  .step.is-active { opacity: 1; border-left-color: var(--accent); }
}
.how-stage { display: none; }
@media (min-width: 960px) { .js .how-stage { display: block; } }
.how-stage .screen { margin: 0; min-height: 300px; font-size: .95rem; }
.how-stage .screen-body { min-height: 260px; }
.how-stage .screen-body > * { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .how-stage .screen-body.swap > * { animation: screen-in .35s ease both; }
  @keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- 用途 ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.card svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
  }
}

/* ---------- 方案 ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.plan.featured { border-color: #3b5c80; background: linear-gradient(180deg, #121c2b, var(--bg-2)); }
.plan .tag { position: absolute; top: -12px; left: 24px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #06101c; font-size: .78rem; font-weight: 700; }
.plan h3 { margin: 0 0 4px; font-size: 1.25rem; }
.plan .for { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.price { margin: 0 0 18px; font-size: 2.1rem; font-weight: 750; letter-spacing: -.02em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; color: #c3cad6; font-size: .97rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 6px; border-left: 2px solid var(--online); border-bottom: 2px solid var(--online); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.fineprint { color: var(--muted); font-size: .875rem; margin-top: 18px; }

/* ---------- 規格表 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
caption { text-align: left; padding: 16px 20px 0; color: var(--muted); font-size: .9rem; caption-side: bottom; padding-bottom: 16px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--fg); background: var(--surface); font-weight: 650; }
tbody th { color: var(--muted); font-weight: 500; width: 26%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 12px; font-weight: 600; font-size: 1.07rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.4rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: #c3cad6; }

/* ---------- 聯絡 ---------- */
.contact { display: grid; gap: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(100% 120% at 0% 0%, #13203a 0%, var(--bg-2) 60%); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 6fr; padding: 48px; } }
.contact h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin: 0 0 12px; }
.contact p { color: #c3cad6; margin: 0 0 12px; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .92rem; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #2b3345; background: #0b0e14; color: var(--fg); font: inherit; font-size: 1rem; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5f697c; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-status { min-height: 1.5em; margin: 0; font-size: .92rem; color: #e7c766; }

/* ---------- 頁尾 ---------- */
.site-footer { margin-top: 96px; padding-block: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: grid; gap: 16px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer p { margin: 0 0 6px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 手機修正（2026-11-30 截圖驗收後加） ---------- */
.btn { white-space: nowrap; }
.how > *, .steps, .step, .screen { min-width: 0; }   /* 防止 <pre> 撐破 grid */
@media (max-width: 559px) {
  .brand .ph { display: none; }
  .site-header .wrap { gap: 12px; }
  .nav-end { gap: 6px; }
}
.plan .tag .ph { color: #3a2a00; border-color: #3a2a00; }
.viewer figcaption { left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; background: linear-gradient(rgba(10,12,16,0), rgba(10,12,16,.88) 55%); }
/* 方案只剩月租＋年租（2026-11-30） */
@media (min-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: 920px; } }
.plan .save { margin: -8px 0 18px; color: var(--online); font-size: .95rem; }
/* 未啟用的步驟用顏色變淡，不用 opacity（opacity 會令對比不足） */
@media (min-width: 960px) {
  .step { opacity: 1; }
  .step:not(.is-active) h3, .step:not(.is-active) p { color: #8a93a5; }
  .step:not(.is-active) .ph { opacity: .8; }
}

/* =====================================================================
   v3（2026-12-01）商業版：首屏字標、數字、服務演示、發光卡、連線地圖、
   用途分頁、情境大圖、機型比較、浮動方案。動態一律在 no-preference 內。
   ===================================================================== */
:root { --ease: cubic-bezier(.2,.7,.15,1); --grad-a: linear-gradient(92deg, #7cc4ff 0%, #5ee0a0 38%, #b8a3ff 72%, #7cc4ff 100%); }
.btn { transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(124,196,255,.18); }
.btn-ghost:hover { transform: translateY(-1px); }

/* ---- 首屏 ---- */
.hero2 { padding-block: clamp(48px, 9vh, 104px) 24px; overflow: hidden; }
.hero2-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero2 .eyebrow { margin-bottom: 22px; }
.wordmark { margin: 0 0 18px; font: 800 clamp(3rem, 11.5vw, 8.6rem)/0.95 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.045em; white-space: nowrap; }
.wordmark span { display: inline-block; }
.wordmark .f { background: var(--grad-a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .cursor { color: var(--online); }
.hero2 h1 { margin: 0 0 18px; font-size: clamp(1.6rem, 3.6vw, 2.75rem); font-weight: 750; line-height: 1.25; }
.grad { background: var(--grad-a); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .lede { max-width: 40em; margin-inline: auto; }
.hero2 .hero-cta { justify-content: center; }
.viewer-wide { aspect-ratio: 16 / 8.2; margin-top: clamp(32px, 6vh, 64px); border-radius: 28px; }
.viewer-wide img { object-fit: cover; object-position: 50% 62%; }
@media (max-width: 759px) { .viewer-wide { aspect-ratio: 4 / 3.4; border-radius: 22px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .wordmark span { opacity: 0; transform: translateY(.28em); }
  .wordmark.play span { animation: wm-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
  .wordmark.play .cursor { animation: wm-in .4s var(--ease) 1.05s forwards, blink 1.05s steps(1) 1.5s infinite; }
  .js .hero2 h1, .js .hero2 .lede, .js .hero2 .hero-cta, .js .hero2 .eyebrow { animation: rise-in 1s var(--ease) both; }
  .js .hero2 .eyebrow { animation-delay: .05s; } .js .hero2 h1 { animation-delay: .55s; } .js .hero2 .lede { animation-delay: .7s; } .js .hero2 .hero-cta { animation-delay: .85s; }
  .js .viewer-wide { animation: rise-in 1.2s var(--ease) .9s both; }
  @keyframes wm-in { to { opacity: 1; transform: none; } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
  @keyframes grad-flow { to { background-position: -300% 0; } }
  @keyframes blink { 50% { opacity: 0; } }
}

/* ---- 重點數字 ---- */
.counters { margin-top: 24px; }
.counters li { padding: 26px 22px; }
.counters b { display: block; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.counters span { font-size: .92rem; }

/* ---- 區塊標題進場（CSS scroll-driven） ---- */
.sample-note { margin-top: 10px !important; font-size: .88rem; color: #7f899d !important; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-head > * { animation: head-in linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
    .reveal-head > :nth-child(2) { animation-range: entry 10% entry 62%; }
    .reveal-head > :nth-child(n+3) { animation-range: entry 15% entry 70%; }
    @keyframes head-in { from { opacity: 0; transform: translateY(28px); } }
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

/* ---- 服務演示 ---- */
.service { padding-bottom: 40px; }
.svc { display: grid; gap: 0; position: relative; }
.svc-stage { position: sticky; top: 72px; z-index: 1; height: 46svh; border-radius: 24px; overflow: hidden; border: 1px solid #1b2130;
  background: radial-gradient(120% 100% at 50% 20%, #17213a 0%, #0d1119 58%, #0a0c10 100%); }
.svc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.svc-stage.is-3d canvas { opacity: 1; }
.svc-stage.is-static { background: url(poster-600.webp) center 60% / cover no-repeat, #0d1119; }
.svc-chip { position: absolute; left: 16px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(10,12,16,.72); border: 1px solid #2b3550; color: var(--fg); font-size: .85rem; backdrop-filter: blur(8px); }
.svc-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px rgba(94,224,160,.16); }
.svc-steps { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.svc-step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding: 28px 4px; }
.svc-step > * { max-width: 30em; }
.svc-n { font: 600 .85rem/1 ui-monospace, Consolas, monospace; color: var(--accent); margin-bottom: 12px; }
.svc-step h3 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.svc-step p { margin: 0; color: #c3cad6; font-size: 1.05rem; }
@media (max-width: 959px) {
  .svc-step { justify-content: flex-end; min-height: 72svh; padding-bottom: 6svh; }
  .svc-step h3, .svc-step p, .svc-step .svc-n { background: rgba(10,12,16,.86); box-shadow: 0 0 0 10px rgba(10,12,16,.86); border-radius: 4px; }
}
@media (min-width: 960px) {
  .svc { grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
  .svc-stage { top: 96px; height: calc(100vh - 128px); max-height: 760px; grid-column: 1; grid-row: 1; }
  .svc-steps { grid-column: 2; grid-row: 1; }
  .svc-step { min-height: 88vh; padding: 0; }
  .svc-step h3, .svc-step p, .svc-step .svc-n { transition: color .5s var(--ease); }
  .svc-step:not(.is-on) h3 { color: #8a93a5; }
  .svc-step:not(.is-on) p { color: #7f899d; }
  .svc-step:not(.is-on) .svc-n { color: #5f8fb8; }
}
@media (min-width: 960px) and (prefers-reduced-motion: reduce) { .svc-step { opacity: 1; } }

/* ---- 發光卡 ---- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glow-card { position: relative; padding: clamp(32px, 6vw, 72px); border-radius: 36px; isolation: isolate;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 0%), rgba(124,196,255,.13), transparent 62%), linear-gradient(180deg, #0f131c, #0b0e14); }
.glow-card::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--ang), #1b2130 0deg, #7cc4ff 50deg, #b8a3ff 110deg, #1b2130 170deg, #1b2130 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glow-card::after { content: ""; position: absolute; inset: 40% 8% -18%; z-index: -2; background: radial-gradient(closest-side, rgba(124,196,255,.16), transparent); filter: blur(40px); }
.glow-card h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); margin: 0 0 16px; max-width: 16em; }
.glow-card > p { color: #c3cad6; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 38em; margin: 0 0 32px; }
.glow-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .glow-points { grid-template-columns: repeat(3, 1fr); } }
.glow-points li { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid #1f2636; }
.glow-points b { display: block; margin-bottom: 4px; } .glow-points span { color: var(--muted); font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .glow-card::before { animation: ang-spin 7s linear infinite; } @keyframes ang-spin { to { --ang: 360deg; } } }

/* ---- 連線地圖 ---- */
.netmap { border-radius: 28px; border: 1px solid #1b2130; background: radial-gradient(80% 90% at 76% 34%, #142038, #0a0c10 72%); overflow: hidden; }
.netmap svg { display: block; width: 100%; height: auto; }
.netmap .routes path { stroke: url(#route); stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.netmap .pulses circle { opacity: 0; filter: drop-shadow(0 0 6px #7cc4ff); }
@media (prefers-reduced-motion: no-preference) {
  .js .netmap .routes path { stroke-dashoffset: var(--len); }
  .js .netmap .cities g, .js .netmap .hub-glow { opacity: 0; }
  .js .netmap .cities g { transform: translateY(6px); transform-box: fill-box; }
  .netmap.play .routes path { animation: draw 1.4s var(--ease) var(--d) forwards; }
  .netmap.play .cities g { animation: city-in .6s var(--ease) var(--d) forwards; }
  .netmap.play .hub-led { animation: led-on .3s .25s forwards; }
  .netmap.play .hub-glow { transform-origin: 760px 180px; animation: glow-in .8s .3s forwards, glow-pulse 2.8s 1.4s ease-in-out infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes city-in { to { opacity: 1; transform: none; } }
  @keyframes led-on { to { fill: #5ee0a0; } }
  @keyframes glow-in { to { opacity: 1; } }
  @keyframes glow-pulse { 50% { transform: scale(1.22); opacity: .65; } }
}

/* ---- 用途分頁 ---- */
.tabs { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.tab-list { position: relative; display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: 1 0 auto; min-height: 56px; padding: 12px 22px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: color .3s var(--ease); white-space: nowrap; }
.tab-list button:hover, .tab-list button[aria-selected="true"] { color: var(--fg); }
.tab-ink { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(124,196,255,.6); transition: transform .45s var(--ease), width .45s var(--ease); }
.tab-panel { display: grid; gap: 24px; padding: clamp(22px, 4vw, 40px); align-items: center; }
@media (min-width: 860px) { .tab-panel { grid-template-columns: 5fr 6fr; } }
.tab-panel h3 { margin: 0 0 10px; font-size: 1.5rem; } .tab-panel p { margin: 0; color: #c3cad6; }
.tab-panel pre { margin: 0; padding: 20px; border-radius: 16px; background: #080a0f; border: 1px solid #1c2333; font: .92rem/1.8 ui-monospace, Consolas, monospace; overflow-x: auto; color: #cfd6e2; }
.tab-panel .dim { color: #7f899d; } .tab-panel .ok { color: var(--online); } .tab-panel .acc { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .tab-panel:not([hidden]) > * { animation: rise-in .5s var(--ease) both; } .tab-panel:not([hidden]) > :last-child { animation-delay: .08s; } }

/* ---- 情境大圖 ---- */
.photo-zoom { position: relative; height: 200vh; margin-top: 72px; }
.photo-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.photo-frame { --k: 0; margin: 0; width: calc(min(1140px, 100% - 40px) + (100% - min(1140px, 100% - 40px)) * var(--k)); height: calc(62vh + 38vh * var(--k));
  border-radius: calc(28px * (1 - var(--k))); overflow: hidden; }
.photo-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: #8a93a5;
  background: repeating-linear-gradient(45deg, #161b25 0 16px, #12161e 16px 32px); border: 1px dashed #3a4357; }
@media (prefers-reduced-motion: reduce) { .photo-zoom { height: auto; } .photo-sticky { position: static; height: 70vh; } }

/* ---- 機型 ---- */
.chips { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.chip-card { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.chip { width: clamp(88px, 12vw, 128px); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 24%; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, #2a2f3a, #0f1218); box-shadow: inset 0 0 0 1px #3a4357, 0 20px 44px rgba(0,0,0,.45); }
.chip::before { content: ""; position: absolute; inset: 9%; border-radius: 18%; border: 1px solid #3a4357; }
.chip span { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; background: linear-gradient(135deg, #e9edf3, #8a93a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip-new { box-shadow: inset 0 0 0 1px #4b5f86, 0 20px 60px rgba(124,196,255,.2); }
.chip-new span { background-image: linear-gradient(135deg, #7cc4ff, #b8a3ff); }
.chip-card h3 { margin: 0 0 4px; font-size: 1.1rem; } .chip-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.switcher { display: grid; gap: 20px; justify-items: center; margin-bottom: 40px; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; min-height: 44px; min-width: 96px; padding: 8px 22px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; transition: color .35s var(--ease); }
.seg button[aria-selected="true"] { color: var(--bg); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--fg); transition: transform .45s var(--ease), width .45s var(--ease); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; width: 100%; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (min-width: 760px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-grid > div { background: var(--bg-2); padding: 24px; text-align: center; }
.spec-grid dt { color: var(--muted); font-size: .9rem; }
.spec-grid dd { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spec-grid .bump { color: var(--accent); transition: color .6s; }

/* ---- 浮動方案按鈕＋對話框 ---- */
.float-plan { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px 10px 22px; border-radius: 999px;
  border: 1px solid #34507a; background: rgba(18,26,40,.86); color: var(--fg); font: inherit; font-weight: 650; cursor: pointer; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.float-plan span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #06101c; font-size: .95rem; }
.float-plan.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.float-plan:hover { border-color: var(--accent); }
.plan-sheet { width: min(520px, calc(100% - 24px)); margin: auto auto 16px; padding: 28px; border: 1px solid #2b3550; border-radius: 28px; background: #121826; color: var(--fg); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.plan-sheet::backdrop { background: rgba(5,7,10,.6); backdrop-filter: blur(4px); }
.plan-sheet h2 { margin: 0 0 14px; font-size: 1.5rem; }
.plan-sheet dl { margin: 0 0 14px; display: grid; gap: 10px; }
.plan-sheet dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: #0d121b; border: 1px solid #1f2738; }
.plan-sheet dt { font-weight: 700; } .plan-sheet dd { margin: 0; color: #c3cad6; }
.plan-sheet > p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.sheet-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-x { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.sheet-x:hover { color: var(--fg); background: rgba(255,255,255,.06); }
@media (prefers-reduced-motion: no-preference) { .plan-sheet[open] { animation: sheet-up .45s var(--ease); } @keyframes sheet-up { from { opacity: 0; transform: translateY(40px); } } }

.wrap.section-head { max-width: var(--maxw); }
.wrap.section-head > * { max-width: 40em; }

/* 漸層流動（重繪成本高）只給桌面滑鼠裝置 */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (min-width: 960px) {
  .wordmark.play .f { animation: wm-in .9s var(--ease) forwards, grad-flow 7s linear 1.6s infinite; animation-delay: calc(var(--i) * 55ms + 120ms), 1.6s; }
  .grad { animation: grad-flow 9s linear infinite; }
}
.tab-panel[hidden] { display: none; }

/* Haoflow Mac 字標 */
.brand-logo { display: block; height: 30px; width: auto; }
@media (max-width: 559px) { .brand-logo { height: 24px; } }

/* ---- v4（2026-12-01）：機型卡＝切換鈕、共通規格、方案置中 ---- */
.model-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.model-pick .chip-card { font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.model-pick .chip-card:hover { border-color: #3a4c6a; transform: translateY(-2px); }
.model-pick .chip-card[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(180deg, #121c2c, var(--bg-2)); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(124,196,255,.12); }
.model-pick .chip-card[aria-selected="false"] .chip { opacity: .55; filter: saturate(.6); }
.model-pick .chip { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.chip-name { font-weight: 700; font-size: 1.1rem; }
.chip-for { color: var(--muted); font-size: .95rem; }
.spec-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 14px 0 32px; }
.common-specs { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 760px) { .common-specs { grid-template-columns: repeat(2, 1fr); } }
.common-specs > div { background: var(--bg-2); padding: 16px 20px; display: flex; gap: 16px; }
.common-specs dt { color: var(--muted); min-width: 5.5em; flex: none; }
.common-specs dd { margin: 0; }

.plans-section .section-head { margin-inline: auto; text-align: center; }
.plans-section .plans { margin-inline: auto; }
.plans-section .fineprint { text-align: center; }
.plans-models { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: -12px auto 36px; padding: 10px 18px; width: fit-content; max-width: 100%;
  border: 1px solid #2b3a55; border-radius: 999px; background: rgba(124,196,255,.06); }
.plans-models span { color: var(--muted); font-size: .95rem; }
.plans-models b { font-weight: 700; }
.plans-models i { color: #4a5670; font-style: normal; }
@media (max-width: 559px) { .plans-models { border-radius: 18px; } }

/* 首屏以下的區塊：進入畫面前跳過版面計算（減少首次載入的長任務）。sticky 的服務演示與情境大圖不用。 */
#uses, #models, #plans, #faq, #contact, .net { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* 依地區顯示價格：地區選單 */
.region-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: -16px auto 36px; }
.region-pick label { color: var(--muted); font-size: .92rem; }
.region-pick select { width: auto; min-height: 44px; padding: 8px 40px 8px 16px; border-radius: 999px; border: 1px solid #2b3a55; background: #0d121b; color: var(--fg); font: inherit; font-size: .95rem; cursor: pointer;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9ba4b5 50%), linear-gradient(135deg, #9ba4b5 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.region-pick select:hover { border-color: var(--accent); }
.service, .photo-zoom, .site-footer, section[aria-labelledby="own-title"] { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
