/* SynBA 產品頁 v2 —— 依 design/project/SynBA 產品頁 v2.dc.html 實作。
   稿裡是 inline style + style-hover 屬性（設計工具的寫法），這裡轉成真的 CSS；
   視覺輸出要一致，但不照抄原型的結構。 */

:root {
  --bg: #0d1014;
  --bg-2: #0a0d10;
  --surface: #12161b;
  --ink: #e6eaee;
  --ink-2: #c3cbd3;
  --ink-3: #a8b2bc;
  --mute: #8b95a0;
  --c: #5fd4e8;           /* 主強調：cyan */
  --c-hi: #8fe3f1;
  --a: #f0b35a;           /* 次強調：amber，只用在第 5 個子系統與 COP */
  --hair: rgba(230, 234, 238, .08);
  --hair-2: rgba(230, 234, 238, .15);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: 48px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Noto Sans TC', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h6 { margin: 0; font-weight: 600; letter-spacing: -.015em; }
/* ⚠️ <strong> 預設 700，但字體只載到 600 —— 瀏覽器會做假粗體，而且會多拉一份
   Noto Sans TC 700（CJK 字重很重）。明確壓到 600，字重需求與載入的字重對齊。 */
strong, b { font-weight: 600; }
p { margin: 0; }
img { display: block; }
a { color: var(--c); text-decoration: none; }
a:hover { color: var(--c-hi); }
::selection { background: rgba(95, 212, 232, .3); }

:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes dash   { to { stroke-dashoffset: -40 } }
@keyframes pulse  { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes rise   { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes scan   { from { transform: translateY(-100%) } to { transform: translateY(400%) } }

/* 會動的東西一律尊重系統的減少動態偏好 —— 這頁動得不少。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.shell { min-height: 100vh; background: var(--bg); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }

/* ── 導覽列 ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--pad);
  background: rgba(13, 16, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; color: inherit; }
.nav__brand:hover { color: inherit; }
/* 公司標誌。⚠️ 它是**深藍色、不透明白底**的圖，直接放在 #0d1014 的深色
   導覽列上幾乎看不見；把白色去背只會更看不見。所以做成緊貼的白色圓角底板
   —— 品牌色一個像素都不動，對比也有保障。
   文字仍是真的文字不是圖 —— 可選取、可搜尋。 */
.nav__mark {
  width: auto; height: 30px; flex: none;
  background: #fff; border-radius: 4px; padding: 3px 5px;
  box-sizing: content-box;
}
.nav__name { font-weight: 600; font-size: 18px; }
.nav__sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute);
  text-transform: uppercase; overflow: hidden; text-overflow: ellipsis;
}
.nav__links { display: flex; align-items: center; gap: 20px; flex: none; }
.nav__links a { color: var(--ink-2); font-size: 14px; }
.nav__links a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center;
  font-size: 16px; padding: 14px 26px; border-radius: 4px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--c); color: var(--bg); font-weight: 600; }
.btn--primary:hover { background: var(--c-hi); color: var(--bg); }
.btn--ghost { color: var(--ink); border: 1px solid rgba(230, 234, 238, .2); padding: 14px 22px; }
.btn--ghost:hover { border-color: var(--c); color: var(--c); }
/* 檔案大小標在按鈕上：4 MB 的下載在手機上按下去之前就該知道。 */
.btn__note { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.btn--ghost:hover .btn__note { color: var(--c); }
.nav .btn--primary { font-size: 14px; padding: 10px 18px; flex: none; }

/* ── 主視覺 ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(230, 234, 238, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 234, 238, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(95, 212, 232, .14), transparent 70%);
}
.hero__in {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 88px var(--pad) 64px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center;
}
.hero__badges { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--c); background: rgba(95, 212, 232, .1);
  padding: 5px 12px; border-radius: 3px;
}
.rail {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--c); text-transform: uppercase; white-space: nowrap;
}
.rail::before { content: ''; width: 24px; height: 1px; background: var(--c); }
.hero h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.05; margin-bottom: 24px; text-wrap: pretty; }
.hero h1 em { font-style: normal; color: var(--c); }
.hero__lead { font-size: 18px; line-height: 1.7; color: var(--ink-3); max-width: 480px; margin-bottom: 36px; text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(230, 234, 238, .1);
}
.kpi__n { font-family: var(--mono); font-size: 36px; font-weight: 500; line-height: 1; }
.kpi__u { font-family: 'IBM Plex Sans', 'Noto Sans TC', sans-serif; font-size: 14px; color: var(--mute); margin-left: 6px; }
.kpi__d { font-size: 12.5px; color: var(--mute); margin-top: 8px; line-height: 1.5; }

/* 右側模擬畫面 */
.panel {
  background: var(--surface); border: 1px solid rgba(230, 234, 238, .1);
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden;
}
.panel__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--mute);
}
.panel__bar > span { display: flex; gap: 8px; align-items: center; }
.panel__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.panel__shot img { width: 100%; height: 100%; object-fit: cover; }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 16, 20, .1), rgba(13, 16, 20, .35)); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 25%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(95, 212, 232, .08), transparent);
  animation: scan 6s linear infinite;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; animation: pulse 1.6s ease-in-out infinite; }
.dot--c { background: var(--c); box-shadow: 0 0 0 3px rgba(95, 212, 232, .2), 0 0 10px var(--c); }
.dot--a { background: var(--a); box-shadow: 0 0 0 3px rgba(240, 179, 90, .2), 0 0 10px var(--a); }

.spots { position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; display: flex; align-items: center; gap: 8px; transform: translateY(-50%); animation: rise .7s both cubic-bezier(.2, .7, .2, 1); }
.spot__line { width: 16px; height: 1px; background: rgba(230, 234, 238, .6); }
.spot__box {
  background: rgba(13, 16, 20, .88); border: 1px solid rgba(95, 212, 232, .33);
  backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 3px;
  font-size: 12px; line-height: 1.3; white-space: nowrap;
}
.spot--a .spot__box { border-color: rgba(240, 179, 90, .33); }
.spot__l { display: block; font-size: 10px; letter-spacing: .08em; color: var(--mute); font-family: var(--mono); }
.spot__v { font-size: 15px; font-family: var(--mono); }
.spot--a .spot__v { color: var(--a); }

.tape { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tape__cell { background: var(--surface); border: 1px solid var(--hair); border-radius: 6px; padding: 12px 14px; }
.tape__l { font-size: 11px; letter-spacing: .06em; color: var(--mute); display: flex; align-items: center; gap: 6px; font-family: var(--mono); }
.tape__v { font-size: 24px; font-weight: 500; line-height: 1.1; margin-top: 6px; font-family: var(--mono); }
.tape__cell--a .tape__v { color: var(--a); }
.tape__u { font-size: 11px; margin-left: 4px; color: var(--mute); }

/* ── 跑馬燈 ───────────────────────────────────────── */
.ticker { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 0; overflow: hidden; background: var(--bg-2); }
.ticker__row {
  display: flex; gap: 48px; white-space: nowrap; width: max-content;
  animation: ticker 50s linear infinite;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-2);
}
.ticker__item { display: flex; align-items: center; gap: 48px; }
.ticker__sep { font-size: 8px; color: var(--c); }
.ticker__sep--a { color: var(--a); }

/* ── 區塊共用 ─────────────────────────────────────── */
main.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sec { padding: 90px 0 60px; }
.sec--arch { padding: 110px 0 60px; }
.sec--aud { padding: 80px 0 40px; }
.sec--screens { padding: 90px 0 40px; }
.sec--subs { padding: 70px 0 60px; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--c); text-transform: uppercase; margin-bottom: 14px; }
.eyebrow--a { color: var(--a); }
.sec h2 { font-size: 40px; line-height: 1.12; text-wrap: pretty; }
.sec__aside { font-size: 14px; color: var(--mute); max-width: 320px; line-height: 1.7; }
.sec__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--mute); text-transform: uppercase; }
.sec__note { margin-top: 28px; font-size: 14px; color: var(--mute); max-width: 760px; line-height: 1.7; }

/* ── § 01 架構圖 ──────────────────────────────────── */
.topo { background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; padding: 32px 24px; }
.topo svg { width: 100%; height: auto; display: block; font-family: inherit; }

/* ── § 02 適用對象 ────────────────────────────────── */
.aud {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
  border-radius: 8px; overflow: hidden;
}
.aud__cell { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: background .2s; }
.aud__cell:hover { background: var(--surface); }
.aud__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--c); text-transform: uppercase; }
.aud__cell h3 { font-size: 20px; line-height: 1.35; }
.aud__cell p { font-size: 14px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }

/* ── § 03 功能模組 ────────────────────────────────── */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.mod {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 8px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s;
}
.mod:hover { border-color: rgba(95, 212, 232, .5); }
.mod__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.mod__n { color: var(--c); }
.mod__en { color: var(--mute); }
.mod h3 { font-size: 22px; line-height: 1.3; margin-top: 6px; }
.mod p { font-size: 14px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }

/* ── § 04 實機畫面 ────────────────────────────────── */
.screens { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.screens figure { margin: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
/* ⚠️ HTML 的 width/height 屬性會變成 presentational hint（height:750px），
   壓過 aspect-ratio —— 必須顯式寫 height:auto 才輪得到比例生效。
   屬性留著是為了避免版面位移（CLS）。 */
.screens img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
/* 橫跨兩列時圖片要補滿剩餘高度，否則右欄比較高就會在左下留一塊黑。
   ⚠️ 圖外面多包了一層 .zoom 按鈕，撐高的責任要一路傳下去 ——
   只設 img 的話中間那層 button 不會長高，黑塊會回來。 */
.screens__lead { grid-row: span 2; display: flex; flex-direction: column; }
.screens__lead .zoom { flex: 1 1 auto; min-height: 0; display: flex; }
.screens__lead .zoom img { flex: 1 1 auto; min-height: 0; }
.screens__lead figcaption { padding: 20px 24px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.screens__id { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--c); padding-top: 5px; }
.screens__lead strong { color: var(--ink); font-size: 17px; display: block; margin-bottom: 4px; }
.screens__side figcaption { padding: 16px 20px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.screens__side .screens__id { display: block; margin-bottom: 4px; padding-top: 0; }

/* ── § 05 子系統 ──────────────────────────────────── */
.subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.subs figure { margin: 0; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.subs__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--hair); }
.subs__bar strong { font-size: 17px; }
.subs__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--c); border: 1px solid rgba(95, 212, 232, .4); padding: 3px 8px; border-radius: 3px; }
.subs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.subs figcaption { padding: 16px 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

/* ── 可放大的圖與燈箱 ─────────────────────────────── */
/* button 的預設外觀要全部清掉，它在版面上必須就是一張圖。 */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; color: inherit; font: inherit; }
.zoom::after {
  content: '⤢'; position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(13, 16, 20, .78); border: 1px solid var(--hair); border-radius: 4px;
  color: var(--c); font-size: 14px; line-height: 1;
  opacity: 0; transition: opacity .2s;
}
/* 觸控裝置沒有 hover，提示要一直在，否則那張圖看起來就不能點。 */
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: 1; } }
.zoom:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }

.lb { max-width: min(1400px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface); color: var(--ink); overflow: hidden; }
.lb::backdrop { background: rgba(5, 7, 9, .86); }
.lb__img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #05070a; }
.lb__cap { margin: 0; padding: 16px 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); border-top: 1px solid var(--hair); }
.lb__x { position: absolute; top: 8px; right: 8px; margin: 0; }
.lb__x button { width: 34px; height: 34px; border: 1px solid var(--hair); border-radius: 4px; background: rgba(13, 16, 20, .88); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.lb__x button:hover { color: var(--c); border-color: var(--c); }

/* ── § 06 協定表 ──────────────────────────────────── */
.proto { background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.proto__row { display: grid; grid-template-columns: 60px 180px minmax(0, 1.2fr) minmax(0, 2fr) 100px; gap: 16px; align-items: start; }
.proto__head {
  padding: 12px 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--hair);
}
.proto__head > :last-child { text-align: right; }
.proto__body { padding: 22px 24px; border-bottom: 1px solid rgba(230, 234, 238, .06); transition: background .2s; }
.proto__body:last-child { border-bottom: 0; }
.proto__body:hover { background: rgba(95, 212, 232, .04); }
.proto__i { font-family: var(--mono); color: var(--mute); padding-top: 4px; }
.proto__name { font-size: 19px; line-height: 1.3; }
.proto__dev { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.proto__note { font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.proto__ok { display: flex; justify-content: flex-end; }
.proto__ok span {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--c);
  background: rgba(95, 212, 232, .1); padding: 4px 10px; border-radius: 3px;
}
.proto__ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.proto__link { margin-top: 20px; font-size: 14px; color: var(--mute); }

/* ── § 07 導入流程 ────────────────────────────────── */
.rail-line { position: relative; height: 14px; }
.rail-line__bg { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--hair-2); }
.rail-line__fill { position: absolute; left: 0; top: 6px; height: 1px; background: var(--c); box-shadow: 0 0 8px var(--c); width: 20%; transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.rail-line__pip { position: absolute; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(230, 234, 238, .3); transition: all .5s; }
.rail-line__pip.on { background: var(--c); border-color: var(--c); box-shadow: 0 0 10px var(--c); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps__n { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--c); margin-bottom: 10px; }
.steps h3 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; text-wrap: pretty; }
.steps p { font-size: 13.5px; line-height: 1.7; color: var(--ink-3); text-wrap: pretty; }

/* ── § 08 FAQ ─────────────────────────────────────── */
.faq { padding: 90px 0 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 60px; }
.faq__aside { position: sticky; top: 100px; align-self: start; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--hair-2); }
.faq details { border-bottom: 1px solid var(--hair); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 500; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--c); }
.faq__plus { font-size: 26px; font-weight: 300; color: var(--c); transition: transform .3s; line-height: 1; }
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq dd, .faq details p { margin: 14px 0 0 72px; font-size: 15px; line-height: 1.8; color: var(--ink-3); max-width: 640px; text-wrap: pretty; }

/* ── § 09 收尾 ────────────────────────────────────── */
.close {
  margin: 60px 0 0; padding: 72px 56px;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  border: 1px solid rgba(95, 212, 232, .25); border-radius: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
  align-items: start; position: relative; overflow: hidden;
}
.close__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 10% 100%, rgba(95, 212, 232, .12), transparent 70%); }
.close__l { position: relative; }
.close h2 { font-size: 48px; line-height: 1.08; margin-bottom: 32px; text-wrap: pretty; }
.close__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; }
/* ⚠️ grid 只能套在 CHK 那三列。註腳也是 <li>，吃到 64px 的第一欄會被擠成
   一行一個字（實作時踩過）—— 它在稿裡本來就是普通 block。 */
.checks__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid rgba(230, 234, 238, .1); font-size: 17px; line-height: 1.55; }
.checks__item:last-of-type { border-bottom: 1px solid rgba(230, 234, 238, .1); }
.checks__id { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--c); padding-top: 7px; }
.checks__foot { display: block; padding: 16px 0 0 80px; font-size: 14px; color: var(--mute); line-height: 1.7; }

/* ── 頁尾 ─────────────────────────────────────────── */
.foot {
  padding: 48px 0 40px; display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); font-family: var(--mono);
}
.foot strong { color: var(--ink); font-family: 'IBM Plex Sans', 'Noto Sans TC', sans-serif; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--c); }

/* ── 斷點 ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__lead { max-width: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close { grid-template-columns: 1fr; gap: 36px; padding: 56px 36px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__aside { position: static; }
}
@media (max-width: 900px) {
  :root { --pad: 28px; }
  .screens { grid-template-columns: 1fr; }
  .screens__lead { grid-row: auto; }
  /* 協定表在窄螢幕改成堆疊卡，不要讓五欄 grid 撐出水平捲軸 */
  .proto__head { display: none; }
  .proto__row { grid-template-columns: auto 1fr; gap: 6px 14px; }
  .proto__name { grid-column: 2; }
  .proto__dev, .proto__note { grid-column: 1 / -1; }
  .proto__ok { grid-column: 1 / -1; justify-content: flex-start; margin-top: 4px; }
}
@media (max-width: 720px) {
  /* ⚠️ 分頁之後不能再把連結整排藏掉 —— 一頁式時那只是錨點，
     現在它是唯一的導覽。改成第二行、可橫向捲的列。 */
  .nav { padding: 10px var(--pad) 0; gap: 12px; flex-wrap: wrap; }
  .nav__sub { display: none; }
  .nav__links { order: 3; width: 100%; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; border-top: 1px solid var(--hair); margin-top: 10px; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a:not(.btn) { padding: 11px 14px; white-space: nowrap; }
  .nav__links a:not(.btn):first-child { padding-left: 0; }
  .nav__links a[aria-current="page"]::after { margin-top: 9px; }

  .hero__in { padding: 56px var(--pad) 48px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .kpis { grid-template-columns: 1fr; gap: 18px; }
  .tape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec, .sec--arch, .sec--aud, .sec--screens, .sec--subs, .faq { padding: 56px 0 36px; }
  .sec h2 { font-size: 28px; }
  .close h2 { font-size: 32px; }
  .steps { grid-template-columns: 1fr; }
  .faq summary { grid-template-columns: 44px minmax(0, 1fr) auto; font-size: 16px; gap: 12px; }
  .faq dd, .faq details p { margin-left: 56px; }
  .checks__item { grid-template-columns: 1fr; gap: 6px; font-size: 16px; }
  .checks__id { padding-top: 0; }
  .checks__foot { padding-left: 0; }
  .topo { overflow-x: auto; }
  .topo svg { min-width: 680px; }
}

/* ── 分頁化之後新增的 ─────────────────────────────── */

/* 導覽列標出目前頁。分頁之後這裡是真的導覽，不是頁內錨點。 */
.nav__links a[aria-current="page"] { color: var(--c); }
.nav__links a[aria-current="page"]::after {
  content: ''; display: block; height: 1px; margin-top: 4px;
  background: var(--c); box-shadow: 0 0 8px var(--c);
}

/* 子頁的頁首：稿裡是區塊標題，拆頁之後升格成 h1。 */
.pagehead {
  display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap;
  padding: 72px 0 8px;
}
.pagehead h1 { font-size: 40px; line-height: 1.12; text-wrap: pretty; }

/* 頁首之後的第一段不必再留一大塊上緣留白。 */
.sec--first { padding-top: 28px; }

/* 上一頁／下一頁 —— 一頁式靠捲動，分頁要自己接住讀者。 */
.pager {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair);
}
.pager a { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.pager a:hover { color: var(--c); }
.pager span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); }
.pager strong { font-size: 17px; font-weight: 500; }
.pager__next { text-align: right; align-items: flex-end; }

/* /faq/ 上沒有左側那欄了，清單自己撐滿。 */
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--hair-2); }
.faq__list details { border-bottom: 1px solid var(--hair); padding: 20px 0; }
.faq__list summary {
  cursor: pointer; list-style: none;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 500; line-height: 1.4;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list details[open] .faq__plus { transform: rotate(45deg); }
.faq__list p { margin: 14px 0 0 72px; font-size: 15px; line-height: 1.8; color: var(--ink-3); max-width: 720px; text-wrap: pretty; }

@media (max-width: 720px) {
  .pagehead { padding: 44px 0 4px; }
  .pagehead h1 { font-size: 28px; }
  .pager strong { font-size: 15px; }
  .faq__list summary { grid-template-columns: 44px minmax(0, 1fr) auto; font-size: 16px; gap: 12px; }
  .faq__list p { margin-left: 56px; }
}

/* ── /features/：授權模組與功能頁兩層 ─────────────── */

.modgroups { display: flex; flex-direction: column; gap: 40px; }
.modgroup__h {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--c);
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--hair);
}
.modgroup__n {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  border: 1px solid var(--hair-2); border-radius: 3px; padding: 1px 7px;
}
.modlist { list-style: none; margin: 0; padding: 0; }
.modlist li {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--hair);
}
.modlist li:last-child { border-bottom: 0; }
.modlist strong { font-size: 17px; font-weight: 500; line-height: 1.4; }
.modlist span { font-size: 14px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }
/* 唯一標 safetyCritical 的是聯動控制 —— 不動作會出人命，值得標出來 */
.modlist__crit {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; font-weight: 400;
  color: var(--a); border: 1px solid rgba(240, 179, 90, .45); border-radius: 3px; padding: 1px 6px;
}

.pagegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.pagegrid__col { background: var(--surface); padding: 24px; }
.pagegrid__h {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 15px; font-weight: 500; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--hair);
}
.pagegrid__h span { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.pagegrid__list { list-style: none; margin: 0; padding: 0; }
.pagegrid__list li { font-size: 14px; line-height: 1.5; padding: 7px 0; color: var(--ink-2); }
.pagegrid__list li::before { content: '·'; color: var(--c); margin-right: 8px; }

@media (max-width: 720px) {
  .modlist li { grid-template-columns: 1fr; gap: 6px; }
  .modgroups { gap: 32px; }
}
