/* CAVITV 官網：深色、品牌漸層（桃紅 #FF2D55 → 橘 #FF9500，跟 App 圖示一樣） */
:root {
  --bg: #0a0c11;
  --bg-2: #0e1118;
  --panel: #131722;
  --panel-2: #191e2a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f5f9;
  --muted: #a6aebd;
  --dim: #788194;
  --b1: #ff2d55;
  --b2: #ff9500;
  --grad: linear-gradient(120deg, var(--b1), var(--b2));
  --ok: #34d399;
  --warn: #fbbf24;
  --r: 20px;
  --wrap: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 var(--font);
  letter-spacing: .01em;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: #ffb38a; text-underline-offset: 3px; }
a:hover { color: #ffd0b5; }
:focus-visible { outline: 3px solid #ffb38a; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic-lg { width: 26px; height: 26px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border: 0; border-radius: 999px;
  font: 700 16px/1.2 var(--font); color: #fff; text-decoration: none; cursor: pointer;
  background: var(--grad);
  box-shadow: 0 12px 32px -10px rgba(255, 70, 60, .7), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(255, 70, 60, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 15px 30px 15px 22px; gap: 14px; text-align: left; }
.btn-lg b { display: block; font-size: 18px; }
.btn-lg small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; opacity: .92; }
.btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* ---------- 上方導覽 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 12, 17, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
}

/* ---------- 主視覺 ---------- */
.hero { position: relative; padding-top: 88px; text-align: center; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 1500px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(40% 36% at 50% 40%, rgba(255, 64, 70, .22), transparent 70%),
    radial-gradient(30% 30% at 76% 24%, rgba(255, 149, 0, .14), transparent 70%),
    radial-gradient(28% 30% at 22% 30%, rgba(255, 45, 85, .12), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: #ffc9ad; font-size: 14px; letter-spacing: .08em;
}
.eyebrow .ic { color: var(--b2); width: 14px; height: 14px; }
.hero h1 { margin: 22px auto 20px; font-size: clamp(38px, 6.6vw, 78px); line-height: 1.16; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 34px 0 22px; }
.ios-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 10px 16px;
  border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde3a4; font-size: 15px;
}
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; color: var(--muted); font-size: 14.5px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--ok); }

.hero-art { position: relative; max-width: 1240px; margin: 48px auto 0; padding: 0 12px; }
.hero-art svg { display: block; width: 100%; height: auto; border-radius: 28px 28px 0 0; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hz-gear { fill: #34d399; font: 800 15px var(--font); }
.hz-small { fill: rgba(255, 255, 255, .85); font: 600 11px var(--font); }
.hz-url { fill: #8f97a8; font: 500 11px var(--font); }
.hz-chip { fill: #b7f5da; font: 700 11px var(--font); }
.hz-time { fill: rgba(255, 255, 255, .9); font: 600 12px var(--font); }
.park-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px auto 0; color: var(--dim); font-size: 14px;
}
.park-note .ic { color: var(--ok); }

/* ---------- 區塊共用 ---------- */
section { scroll-margin-top: 72px; }
.sec { padding: 104px 0; }
.sec-tight { padding: 48px 0 0; }
.sec-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head p:last-child { color: var(--muted); font-size: 17px; }
.kicker { color: #ff8f66; font-weight: 700; font-size: 13.5px; letter-spacing: .14em; }
h2 { margin: 10px 0 16px; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
.fine { margin-top: 14px; color: var(--dim); font-size: 14px; }
.note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 36px; padding: 16px 20px;
  border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.note .ic { margin-top: 4px; color: var(--b2); }

/* 捲到才出現（main.js 只對還沒捲到的元素加 .pre，第一屏不會閃） */
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }

/* ---------- 亮點 ---------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hl {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px;
  border-radius: var(--r); background: linear-gradient(180deg, var(--panel), rgba(19, 23, 34, .4)); border: 1px solid var(--line);
}
.hl b { font-size: 17px; margin-top: 10px; }
.hl > span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hl-ic, .card-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 70, 60, .8);
}
.hl-ic .ic, .card-ic .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .highlights { gap: 10px; } .hl { padding: 18px 16px; } }

/* ---------- 功能大圖 ---------- */
.spot { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.spot.rev .spot-art { order: 2; }
.spot h3 { margin: 10px 0 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.spot-copy > p:not(.kicker):not(.fine) { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.65; }
.ticks .ic { margin-top: 3px; color: var(--ok); }
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .spot.rev .spot-art { order: 0; }
}

/* 螢幕外框（mockup）：字級跟著外框寬度縮放 */
.device {
  container-type: inline-size;
  position: relative; padding: 10px; border-radius: 24px;
  background: linear-gradient(180deg, #252a35, #0b0d12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 80px -36px rgba(0, 0, 0, .9), 0 30px 120px -50px rgba(255, 80, 60, .55);
}
.screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 15px; background: #0d1016;
  font-size: clamp(7px, 2.05cqi, 13px); line-height: 1.35; color: #e8ebf1;
}
.scene { background-color: #2b1540; background-position: center; background-size: cover; }
.scene-sunset { background-image: url(scene-sunset.svg); }
.scene-ocean { background-image: url(scene-ocean.svg); }
.scene-city { background-image: url(scene-city.svg); }
.m-ic { width: 1.7em; height: 1.7em; flex: none; color: #c9cfdb; }

/* 1 中控首頁 */
.m-bar { display: flex; align-items: center; gap: .9em; padding: .8em 1.1em; background: #12151d; border-bottom: 1px solid var(--line); }
.m-url { flex: 1; display: flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 99px; background: #1f2430; color: #8f97a8; white-space: nowrap; overflow: hidden; }
.m-ic-s { width: 1.3em; height: 1.3em; color: #8f97a8; }
.m-star { color: #ffb020; }
.m-chip { padding: .25em .9em; border-radius: 99px; background: #163d2c; color: #b7f5da; font-weight: 700; box-shadow: inset 0 0 0 1px #34d399; }
.m-home { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.6em; padding: 1.3em 1.5em; min-height: 0; }
.m-h { margin: 0 0 .6em; font-weight: 700; color: #fff; }
.m-h:not(:first-child) { margin-top: 1.2em; }
.m-favs { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.m-favs span { display: flex; align-items: center; gap: .55em; padding: .45em .6em; border-radius: .7em; background: #171b25; white-space: nowrap; overflow: hidden; }
.m-favs i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; font-style: normal; font-weight: 800; color: #fff; flex: none; }
.c1 { background: #e85d3f; } .c2 { background: #3f7be8; } .c3 { background: #8b5cf6; } .c4 { background: #16a37a; }
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.m-tiles span {
  display: grid; place-items: center; aspect-ratio: 1.35; border-radius: .7em;
  font-weight: 800; font-size: .92em; color: #fff; text-align: center; white-space: nowrap;
}
.t-yt { background: #ff0033; } .t-dy { background: #111; box-shadow: inset 0 0 0 1px #333; } .t-tt { background: #111; box-shadow: inset 0 0 0 1px #333; }
.t-bl { background: #fb7299; } .t-ani { background: #0fa5c8; } .t-tw { background: #9146ff; } .t-line { background: #06c755; } .t-kk { background: #09cef6; }
.m-recent { display: grid; gap: .65em; }
.m-recent span { display: grid; grid-template-columns: 6.4em 1fr; grid-template-rows: auto auto; column-gap: .7em; align-items: center; }
.m-recent i { grid-row: span 2; aspect-ratio: 16 / 9; border-radius: .5em; }
.m-recent b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: end; }
.m-recent small { color: #8f97a8; font-size: .85em; align-self: start; }

/* 2 儀表 */
.cl-stage { container-type: inline-size; position: relative; aspect-ratio: 100 / 82; }
.device-wide { border-radius: 40px 40px 26px 26px; }
.screen-wide { aspect-ratio: 2.35; border-radius: 32px 32px 18px 18px; }
.cl-gear {
  position: absolute; left: 3.2%; top: 9%; padding: .2em .65em; border-radius: .5em;
  background: rgba(0, 0, 0, .55); color: var(--ok); font-weight: 800; font-size: 1.5em; box-shadow: inset 0 0 0 2px var(--ok);
}
.cl-tag { position: absolute; right: 4%; top: 10%; padding: .3em .9em; border-radius: 99px; background: rgba(0, 0, 0, .5); font-weight: 700; color: #b7f5da; }
.cl-prog { position: absolute; left: 6%; right: 6%; bottom: 10%; height: .35em; border-radius: 9px; background: rgba(255, 255, 255, .25); }
.cl-prog i { display: block; width: 46%; height: 100%; border-radius: inherit; background: var(--grad); }
.panel {
  position: absolute; right: 2cqi; top: 34cqi; width: 54cqi;
  padding: 1.2em 1.3em; border-radius: 18px;
  background: rgba(20, 24, 34, .94); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: clamp(8px, 2.15cqi, 13.5px); line-height: 1.3;
}
.p-title { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.2em; margin-bottom: .5em; }
.p-title .m-ic { width: 1.4em; height: 1.4em; color: var(--b2); }
.p-title em { margin-left: auto; font-style: normal; font-size: .75em; color: #b7f5da; background: #163d2c; padding: .2em .7em; border-radius: 99px; }
.p-label { color: #8f97a8; font-size: .85em; margin: .8em 0 .35em; }
.p-row { display: flex; gap: .4em; }
.p-row span { flex: 1; display: grid; place-items: center; padding: .55em .2em; border-radius: .6em; background: #222838; white-space: nowrap; font-weight: 600; }
.p-row.seg span.on { background: var(--grad); color: #fff; }
.p-row .p-play { flex: 0 0 2.8em; }
.p-play .m-ic { width: 1.3em; height: 1.3em; color: #fff; }
.p-status { margin-top: .9em; color: #8f97a8; font-size: .85em; }

/* 3 本地影片 */
.player { justify-content: space-between; }
.pl-top { display: flex; justify-content: space-between; padding: 1.2em 1.4em 2.4em; background: linear-gradient(rgba(0, 0, 0, .55), transparent); font-weight: 600; }
.pl-bottom { padding: 2.6em 1.4em 1.2em; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.pl-prog { position: relative; height: .3em; border-radius: 9px; background: rgba(255, 255, 255, .3); margin-bottom: 2.2em; }
.pl-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; border-radius: inherit; background: var(--grad); }
.pl-prog span { position: absolute; top: .9em; font-size: .9em; font-weight: 600; }
.pl-prog span:last-child { right: 0; }
.pl-ctl { display: flex; align-items: center; gap: .55em; flex-wrap: wrap; }
.pl-btn { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.pl-btn .m-ic { width: 1.25em; height: 1.25em; color: #fff; }
.pl-main { width: 3.2em; height: 3.2em; background: #fff; }
.pl-main .m-ic { color: #111; }
.pl-chip { padding: .5em .9em; border-radius: 99px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-weight: 600; white-space: nowrap; }

/* 4 注音鍵盤 */
.kb { background: linear-gradient(#141821, #0d1016); padding: 1.2em; gap: .7em; }
.kb-field { padding: .7em 1em; border-radius: .7em; background: #1f2430; font-size: 1.25em; font-weight: 600; display: flex; align-items: center; gap: .25em; }
.kb-field u { text-decoration-color: var(--b2); text-decoration-thickness: 2px; text-underline-offset: 4px; color: #ffcfb3; }
.caret { display: inline-block; width: 2px; height: 1.2em; background: var(--b2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kb-cand { display: flex; gap: .4em; }
.kb-cand > * { padding: .45em 1.1em; border-radius: .6em; background: #1a1f2a; font-size: 1.1em; }
.kb-cand b { background: var(--grad); color: #fff; }
.kb-keys { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: .35em; }
.kb-keys span, .kb-row span { display: grid; place-items: center; border-radius: .5em; background: #232937; font-size: 1.2em; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
.kb-row { display: flex; gap: .35em; height: 2.6em; }
.kb-row span { flex: 1; font-size: 1em; font-weight: 600; }
.kb-row .kb-space { flex: 3; }
.kb-row .kb-go { background: var(--grad); color: #fff; }

/* ---------- 更多功能卡片 ---------- */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  padding: 26px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), rgba(19, 23, 34, .55)); border: 1px solid var(--line);
}
.card h3 { margin: 16px 0 8px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.card-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.card-wide .card-body { padding: 22px 26px 26px; }
.card-art { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-art img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 640; object-fit: cover; }
.mini-cl {
  position: absolute; right: 4%; bottom: 8%; width: 40%; aspect-ratio: 2.35; border-radius: 18px;
  border: 5px solid #0b0d12; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}
.mini-cl span { position: absolute; left: 8%; bottom: 10%; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; color: #b7f5da; }
@media (max-width: 900px) {
  .more { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) { .more { grid-template-columns: 1fr; } }

/* ---------- 安裝步驟 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { display: flex; flex-direction: column; }
.step h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); font-size: 15px; font-weight: 800; flex: none; }
.phone {
  container-type: inline-size;
  padding: 8px; border-radius: 28px; aspect-ratio: 9 / 15;
  background: linear-gradient(180deg, #252a35, #0b0d12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 50px -24px rgba(0, 0, 0, .9);
}
.phone-car { aspect-ratio: 9 / 15; }
.ph-screen {
  position: relative; height: 100%; border-radius: 21px; overflow: hidden;
  background: linear-gradient(180deg, #1a1e28, #10131a);
  display: flex; flex-direction: column; justify-content: center; padding: 8cqi;
  font-size: clamp(7px, 7cqi, 14px); line-height: 1.4;
}
.ph-t { font-weight: 800; font-size: 1.12em; }
.ph-d { color: #b8bfcc; margin-top: .5em; font-size: .92em; word-break: break-all; }
.ph-btns { display: flex; justify-content: flex-end; gap: .4em; margin-top: 1.1em; }
.ph-btns span { padding: .45em .8em; border-radius: 99px; color: #9aa3b4; font-weight: 700; font-size: .9em; }
.ph-btns .hl-btn { background: var(--grad); color: #fff; }
.ph-sheet, .ph-dialog { padding: 1.1em 1em; border-radius: 1em; background: #262c39; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .7); }
.ph-sheet { margin-top: auto; }
.ph-dialog { text-align: center; }
.ph-dialog img { display: block; margin: 0 auto .5em; border-radius: 9px; }
.ph-dialog .ph-btns { justify-content: center; }
.ph-left { text-align: left; }
.ph-left .ph-btns { justify-content: flex-end; }
.ph-head { font-weight: 800; font-size: 1.05em; margin: 0 0 1em; align-self: flex-start; }
.ph-screen:has(.ph-head) { justify-content: flex-start; padding-top: 14cqi; }
.ph-app { display: flex; align-items: center; gap: .6em; margin-bottom: 1.2em; color: #c9cfdb; }
.ph-app img { border-radius: 7px; }
.ph-toggle { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .9em 1em; border-radius: .9em; background: #262c39; font-weight: 600; font-size: .92em; }
.sw { position: relative; width: 2.6em; height: 1.5em; border-radius: 99px; background: var(--ok); flex: none; }
.sw::after { content: ""; position: absolute; right: .2em; top: .2em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; }
.ph-aa { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 9cqi; padding: 12cqi; background: radial-gradient(80% 60% at 50% 40%, #1f2533, #0d1016); }
.aa-app { aspect-ratio: 1; border-radius: 50%; background: #2a3141; }
.aa-me { display: grid; place-items: center; background: transparent; box-shadow: 0 0 0 3px rgba(255, 149, 0, .7), 0 0 30px rgba(255, 90, 60, .6); }
.aa-me img { width: 100%; height: 100%; border-radius: 50%; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 120px 1fr; column-gap: 18px; align-items: start; }
  .step .phone { grid-row: span 2; }
  .step h3 { margin-top: 0; }
}

/* ---------- 安全性 ---------- */
.verify { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.v-card {
  position: relative; padding: 28px; border-radius: var(--r);
  background: linear-gradient(180deg, #151b26, #10141c); border: 1px solid rgba(52, 211, 153, .22);
}
.v-card .card-ic { background: linear-gradient(120deg, #10b981, #34d399); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .8); }
.v-card h3 { margin: 16px 0 8px; font-size: 20px; }
.v-card > p:not(.v-label) { color: var(--muted); font-size: 15px; }
.v-label { margin: 18px 0 8px; color: var(--dim); font-size: 13px; letter-spacing: .04em; }
.fp {
  display: block; padding: 14px 16px; border-radius: 12px;
  background: #0a0d13; border: 1px solid var(--line-2);
  color: #b7f5da; font-size: 14.5px; line-height: 1.7; letter-spacing: .06em; word-spacing: .2em; overflow-wrap: anywhere;
}
.copy {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255, 255, 255, .04);
  color: var(--text); font: 600 14px var(--font); cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, .09); }
.copy.done { border-color: var(--ok); color: var(--ok); }
.how { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.how summary { cursor: pointer; color: #ffb38a; font-weight: 600; }
.how p { margin-top: 10px; }
.how code { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: #0a0d13; color: #e8ebf1; font-size: 13px; overflow-wrap: anywhere; }
.v-card .btn { margin-top: 18px; }

.sec-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
/* 格線裡的東西可以縮到比內容窄（權限表自己橫向捲），不然手機上整頁會被撐寬 */
.highlights > *, .spot > *, .more > *, .steps > *, .verify > *, .sec-grid > *, .shield-grid > *, .dl > * { min-width: 0; }
.block { padding: 28px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.block-h { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.block-h .ic { color: var(--b2); }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.perm { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.perm th, .perm td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.perm thead th { background: #0f131b; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.perm tbody th { white-space: nowrap; font-weight: 700; }
.perm td { color: var(--muted); }
.perm td:last-child { white-space: nowrap; }
.perm tr:last-child > * { border-bottom: 0; }
/* 手機：權限表改成一列一張卡，不用左右滑 */
@media (max-width: 600px) {
  .perm { min-width: 0; }
  .perm thead { display: none; }
  .perm, .perm tbody, .perm tr, .perm th, .perm td { display: block; }
  .perm tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .perm tr:last-child { border-bottom: 0; }
  .perm th, .perm td, .perm tr:last-child > * { padding: 0; border: 0; }
  .perm td { margin-top: 4px; }
  .perm td:last-child { white-space: normal; color: var(--dim); font-size: 13.5px; }
  .perm td:last-child::before { content: "什麼時候問："; }
}
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.promise li { display: flex; gap: 14px; }
.promise .ic { width: 22px; height: 22px; margin-top: 3px; color: var(--ok); }
.promise b { display: block; font-size: 16px; }
.promise span { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.shield-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.dots { margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; line-height: 1.7; }
.dots li + li { margin-top: 6px; }
.dots li::marker { color: var(--ok); }
.card-warn { border-color: rgba(251, 191, 36, .3); background: linear-gradient(180deg, #1c1912, #13110c); }
.card-warn .card-ic { background: linear-gradient(120deg, #f59e0b, #fbbf24); box-shadow: 0 10px 24px -10px rgba(245, 158, 11, .8); }
.card-warn b { color: #fde3a4; }
@media (max-width: 960px) {
  .sec-grid, .shield-grid { grid-template-columns: 1fr; }
}

/* ---------- 常見問題 ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 56px 18px 22px; font-weight: 700; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq details[open] { border-color: var(--line-2); }

/* ---------- 下載卡 ---------- */
.dl {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 52px;
  border-radius: 30px; overflow: hidden;
  background: radial-gradient(70% 90% at 0% 0%, rgba(255, 45, 85, .22), transparent 60%), radial-gradient(70% 90% at 100% 100%, rgba(255, 149, 0, .18), transparent 60%), var(--panel);
  border: 1px solid rgba(255, 140, 90, .3);
}
.dl-main { display: flex; flex-direction: column; align-items: flex-start; }
.dl-icon { border-radius: 24px; box-shadow: 0 20px 40px -14px rgba(255, 70, 60, .7); }
.dl h2 { margin: 22px 0 6px; }
.dl-meta { color: var(--muted); margin-bottom: 26px; }
.dl-notes { align-self: center; padding: 26px; border-radius: 20px; background: rgba(10, 12, 17, .55); border: 1px solid var(--line); }
.dl-notes h3 { font-size: 18px; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }

/* ---------- 行車安全 ---------- */
.safety { margin-bottom: 72px; padding: 24px 28px; border-radius: 18px; background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .35); }
.safety h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; color: #fde3a4; }
.safety p { color: #d9cfb5; font-size: 15px; }

/* ---------- 頁尾 ---------- */
.foot { border-top: 1px solid var(--line); background: #08090d; padding: 44px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-brand p { margin-top: 8px; color: var(--dim); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.8; }
.legal p + p { margin-top: 8px; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.lost img { border-radius: 22px; }
.lost h1 { font-size: 30px; }
.lost p { color: var(--muted); margin-bottom: 10px; }

/* ---------- 少動畫 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.pre { opacity: 1; transform: none; }
  .btn, .reveal.in { transition: none; }
  .caret { animation: none; }
}
