/* ==========================================================================
   匯智數科 官網 · 設計系統
   --------------------------------------------------------------------------
   方向｜「藍圖／Blueprint」—— 精密、有格線、工程感
     ・品牌色直接取自官方定稿 logo 的實測像素：
         深海軍藍 #002454（主色）／青綠 #00B4C0（強調色）
     ・結構語言：尖角（2–6px）、髮絲線（1px）、等寬字標籤、單一強調色
     ・只用一個強調色（青綠）；其餘靠層級、線條與留白拉開
     ・不用外部字型（大陸訪問 Google Fonts 不通，且站要能完全離線）
       所以「辨識度」不靠字型檔，靠字重／字距／大小寫／等寬標籤層
   --------------------------------------------------------------------------
   對比度（WCAG AA，正文 ≥ 4.5:1）已逐項驗算：
     --ink-900 on #FFF .... 17.4:1      --ink-500 on #FFF .... 5.7:1
     --accent-700 on #FFF .. 5.68:1     --accent-500 on #002454  6.0:1
     白字 on --brand-700 .. 15.2:1      --brand-700 on --accent-500 6.0:1
   載入順序：style.css → components.css
   ========================================================================== */

:root {
  /* ---- 品牌色（logo 實測）---- */
  --brand-900: #001529;   /* 頁尾／最深底 */
  --brand-800: #001C3D;
  --brand-700: #002454;   /* ★ 主色：logo 海軍藍 */
  --brand-600: #0A3A6E;
  --brand-500: #14508F;
  --brand-400: #2F6EAF;

  --accent-700: #00727C;  /* ★ 淺底上的文字用青綠（5.68:1） */
  --accent-600: #00848F;
  --accent-500: #00B4C0;  /* ★ 強調色：logo 青綠（填色／線條） */
  --accent-400: #22C4CE;
  --accent-300: #6FE3EC;
  --accent-100: #E4F7F9;

  /* ---- 中性色（冷、乾淨、高對比）---- */
  --ink-900: #0A1524;
  --ink-700: #253749;
  --ink-500: #55657A;   /* 次要內文／標籤 */
  --ink-400: #7C8DA1;   /* 僅裝飾或大字，不用於正文 */
  --ink-300: #B9C4D0;
  --ink-200: #DCE3EA;   /* 髮絲線 */
  --ink-100: #EDF1F5;
  --ink-050: #F5F7FA;
  --white: #FFFFFF;

  /* ---- 功能色（文字皆已達 AA）---- */
  --ok: #0E7A3E;         --ok-bg: #EAF7EF;      --ok-line: #B6E3C6;
  --warn: #93540A;       --warn-bg: #FFF6E7;    --warn-line: #F2D9AE;
  --danger: #B42318;     --danger-bg: #FDF1F0;  --danger-line: #F3C9C6;
  --info: #14539B;       --info-bg: #EDF4FD;    --info-line: #C3DCF8;
  --pending: #5B3BB8;    --pending-bg: #F2EFFC; --pending-line: #D6CCF5;

  /* ---- 字體 ----
     無外部字型：靠字重、字距、大小寫與等寬標籤層建立辨識度。
     --font-en 指到等寬，讓原本用在英文標籤的類別（.card__en／.dtt__en／
     .fcard__meta／.field__label-lang）自動變成工程感的技術字層。 */
  --font-sans: "PingFang TC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft JhengHei", "Microsoft YaHei", "Source Han Sans TC",
    "Noto Sans TC", system-ui, -apple-system, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono",
    "Roboto Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-en: var(--font-mono);

  /* ---- 間距 ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ---- 圓角：尖角是這個方向的核心 ---- */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;
  --r-xl: 6px;
  --r-full: 999px;

  /* ---- 陰影：預設靠線條分層，陰影只做懸浮微提示 ---- */
  --sh-sm: 0 1px 2px rgba(10, 21, 36, .05);
  --sh-md: 0 4px 14px rgba(10, 21, 36, .07);
  --sh-lg: 0 14px 34px rgba(10, 21, 36, .10);
  --sh-xl: 0 22px 60px rgba(10, 21, 36, .14);

  /* ---- 佈局 ---- */
  --container: 1240px;
  --header-h: 68px;

  /* ---- 動效 ---- */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --transition: .18s var(--ease-out);

  /* ---- 品牌漸層（與 logo 同源，用在頁首頂線／頁尾頂線）---- */
  --brand-rule: linear-gradient(90deg,
      var(--brand-700) 0%, var(--brand-500) 28%,
      var(--accent-600) 62%, var(--accent-500) 100%);
}

/* ==========================================================================
   基礎重置
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  /*★★★ 2026-10-05 全站頁首留位（真瀏覽器 CDP 實測 22 頁後修）
     真因：.header 是 position:fixed，但它不佔任何文件流高度
     ⇒ 全站只有 .hero 有 padding-top:var(--header-h) 留位，
     ⇒ .page-hero（內頁 20 頁都用它）與 .marquee（公告跑馬燈）全部從 y=0 開始，
     ⇒ 被 fixed 頁首整條蓋住（實測 overlapPx=68＝頁首高度、跑馬燈 top=0）。
     ★ 之前只在 index.html 用 margin-top 打補丁 ⇒ 其他 20 頁沒修到。
     修法：留位放 body（全站、含未來新增區塊），並讓 .hero/.page-hero 不要再重複留位。 */
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 16px;
  /* 中文需要比拉丁文更鬆的行高：設計系統定 1.88，這裡以 1.8 為底，
     長篇段落另以 .measure 拉到 1.88（見「閱讀行長」段） */
  line-height: 1.8;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink-900);
  letter-spacing: -.02em;
}

p { margin: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-700);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   佈局工具
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }

.section--ink {
  background: var(--ink-050);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.section--brand {
  background:
    radial-gradient(760px 420px at 88% 4%, rgba(0, 180, 192, .16) 0%, transparent 62%),
    linear-gradient(158deg, var(--brand-900) 0%, var(--brand-700) 52%, #0B3C72 100%);
  color: rgba(255, 255, 255, .80);
}
.section--brand h2, .section--brand h3 { color: var(--white); }

.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;
}

/* 2026-10-05 skip-link 的標準寫法（★ 保留：無障礙必備、鍵盤可跳過頁首）
   ★ position:fixed ⇒ 不佔文件流、★ 不影響任何內容的靜態位置；Tab 仍可聚焦。
   ★★ 更正（★ 同一輪內我改過兩次判斷、★ 記下來）：這條**不是**「18px 位移」的真因。
   ★ 對照組實測：skip-link 完全不動、只把 `body.snap` 的 class 拿掉 ⇒ scrollY 由 18 變 0；
   ★ 只把 `scroll-snap-type` 設 none ⇒ 也變 0。★ 真因是吸附偏移的雙重計算，
   ★ 見本檔下半「兩條橫幅互相重疊 —— 真因與修法」段。*/
a.sr-only[href^="#"] {
  position: fixed;
  top: 0; left: 0;
  z-index: 1001;
}
a.sr-only[href^="#"]:focus {
  position: fixed;
  width: auto; height: auto;
  padding: var(--sp-3) var(--sp-4);
  margin: 0;
  clip: auto;
  overflow: visible;
  background: var(--brand-700);
  color: var(--white);
  border-radius: var(--r-sm);
}

/* ---- 區塊標題 ---- */
.sec-head { max-width: 780px; margin-bottom: var(--sp-7); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--accent-500);
  flex-shrink: 0;
}
.sec-head--center .eyebrow::before { display: none; }

.section--brand .eyebrow { color: var(--accent-300); }

.sec-title {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: var(--sp-4);
  letter-spacing: -.025em;
}

.sec-desc {
  font-size: clamp(15px, 1.25vw, 16.5px);
  color: var(--ink-500);
  line-height: 1.85;
}
.section--brand .sec-desc { color: rgba(255, 255, 255, .72); }

/* ---- 閱讀行長：中文 28–46 字/行（1 個中字 ≈ 1em）----
   超過 46 字眼睛會漏行。解法是收窄容器，不是縮字級。
   置中區塊裡的段落要補 margin-inline:auto，才會是「整塊」置中而非靠左。 */
p, .prose li { max-width: 46em; }
.sec-head--center p,
.cta-band p,
.placeholder-block p,
.nt__summary p { margin-left: auto; margin-right: auto; }

/* 長篇閱讀區：行高拉到設計系統的 1.88 */
.prose li,
.nt__summary p,
.legal-sec p,
.notice__body,
.card > p { line-height: 1.88; }

/* ==========================================================================
   按鈕：方角、單一強調色
   主按鈕＝青綠底 + 海軍藍字（6.0:1），在淺底與深底都站得住
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  min-height: 44px;          /* 設計系統：互動元件最小觸控區 44px */
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  border-radius: var(--r-sm);
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent-500);
  color: var(--brand-700);
  border-color: var(--accent-500);
}
.btn--primary:hover {
  background: var(--accent-400);
  border-color: var(--accent-400);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--brand-700);
  color: var(--white);
  border-color: var(--brand-700);
}
.btn--solid:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-1px);
}

/* 低強調：淺底＝深字細框；深底（.section--brand／.cta-band）自動轉白 */
.btn--ghost {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--ink-300);
}
.btn--ghost:hover {
  border-color: var(--brand-700);
  background: var(--ink-050);
}

.btn--outline {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-700);
}
.btn--outline:hover {
  background: var(--brand-700);
  color: var(--white);
}

.section--brand .btn--ghost,
.cta-band .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .04);
}
.section--brand .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .70);
}

.btn--sm { padding: 9px 18px; font-size: 14px; min-height: 44px; }
.btn--lg { padding: 15px 32px; font-size: 16px; min-height: 52px; }

.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   頁首
   頂端一條 2px 品牌漸層線 —— 直接把 logo 的藍→青漸層變成頁面的識別
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
  transition: box-shadow var(--transition);
}
.header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-rule);
}
.header.is-scrolled {
  box-shadow: 0 8px 26px rgba(10, 21, 36, .07);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.header__logo { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.header__logo img { height: 34px; width: auto; }

/* ---- 導覽：hover／active 用底線標示，不用色塊 ---- */
.nav { display: flex; align-items: center; gap: 2px; margin-left: var(--sp-3); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color var(--transition);
  white-space: nowrap;
}
/* 只在手機抽屜出現的項目（桌面用不到，Logo 即回首頁） */
.nav__link--home, .nav__link--cta { display: none; }
.nav__link:hover { color: var(--brand-700); }
.nav__link:hover::after,
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 1px;
  height: 2px;
  background: var(--accent-500);
}
.nav__link.is-active { color: var(--brand-700); }

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* ---- 語言切換：分段控制器 ---- */
.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 2px;
  background: var(--white);
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-500);
  border-radius: 1px;
  transition: var(--transition);
  line-height: 1.3;
}
.lang__btn:hover { color: var(--brand-700); background: var(--ink-050); }
.lang__btn.is-active {
  background: var(--brand-700);
  color: var(--white);
}

/* ---- 手機選單鈕 ---- */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  color: var(--brand-700);
  background: var(--white);
}
.burger:hover { border-color: var(--brand-700); }

/*★★★ 2026-10-05（第二輪）首頁兩條橫幅互相重疊 —— 真因與修法
   ★★ 前一個 `transform: translateY(18px)` 是**錯的補丁、已移除**（★ 它把撞擊從「頁首」搬到「AI 條」）：
     量測（CDP 真實時間、1440×900）：
       移除前： .marquee 68→113、.ai-ticker 95→156  ⇒ ★ 兩條重疊 18px、上下文字互切
       移除後： .marquee 50→95 、.ai-ticker 95→156  ⇒ ★ 退回被頁首蓋 18px
     ⇒ ★ 只推一條 ⇒ 只是換個地方撞。

   ★★★ 真正的真因（★ 算出來的、★ 不是猜）：
     html 的 `scroll-padding-top: calc(var(--header-h) + 20px)` = 88px（★ 見本檔 :114）
     ＋ section 的 `scroll-margin-top: var(--header-h)` = 68px（★ 見本檔 :1602）
     ⇒ ★ 兩者**同時生效**、★ 共 156px。
     第一個吸附目標是 `.hero`（doc y = 68 頁首留位 + 45 公告條 + 61 AI 條 = 174）
     ⇒ ★ 吸附位置 = 174 − 156 = **18** ⇒ ★ 瀏覽器載入後自動停在 scrollY=18
       ⇒ ★ 頁首留位被吃掉 18px、★ 第一條橫幅的頭 18px 塞到 fixed 頁首底下。
     ★ 為什麼「加 margin／padding」都變 36（實測兩次）：★ 那是改 box 幾何 ⇒ 吸附目標跟著位移
       ⇒ ★ 偏移加倍。★ 教訓：**在 scroll-snap 頁面上，只補償幾何＝與吸附機制打架。**

   ★★ 本輪修法：★ 讓「頁面頂端」本身也是一個吸附點（★ 不是補償、★ 是消除位移）
     ⇒ ★ 載入時最近的吸附點就是 0 ⇒ ★ 停在 scrollY=0、★ 不需要任何位移補丁
     ⇒ ★ 兩條橫幅自然相鄰（113 = 113）、★ 三項重疊全為 0（實測）。
     ★ 為什麼不直接關掉 scroll-snap：★ 那是業主 09-18 要的「整屏翻頁」、★ 能留就留。
     ★ 仍保留（不做）：舊的 transform 規則。 ★ 對應規則見本檔 <main> 區的
       「body.snap > .marquee { scroll-snap-align: start }」。 */

/* ==========================================================================
   Hero（首頁）
   淺底紙面 + 右側深藍面板（破格出血到視窗右緣）；
   全彩 logo 放在白色承板上 —— 這是「logo 不掉色」的關鍵：
   彩色版只出現在白底上，深底一律用獨立的白色版資產。
   ========================================================================== */

.hero {
  position: relative;
  /*★★★ 2026-10-05：頁首留位已移到 body（★ 全站一次處理）★ 本頁不重複留位。
     原本這裡是 padding: var(--header-h) 0 0；★ 若留著會與 body 的 68px 疊成 136px、★ 多一條白帶。 */
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
  overflow: hidden;
}

/* 紙面細格：淡淡一層，撐起「藍圖」底子 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-100) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 18% 40%, #000 6%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 18% 40%, #000 6%, transparent 68%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .88fr);
  gap: 56px;
  align-items: stretch;
}

.hero__copy { align-self: center; padding-bottom: 72px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 11px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-700);
  letter-spacing: .08em;
  margin-bottom: var(--sp-5);
}
.hero__badge .dot {
  width: 7px; height: 7px;
  border-radius: 1px;
  background: var(--accent-500);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.12;
  color: var(--ink-900);
  letter-spacing: -.035em;
  margin-bottom: var(--sp-5);
}
/* 強調句：用青綠螢光筆壓在文字下方 —— 文字本身仍是深藍，
   對比 10:1，遠優於把文字直接填青綠（青綠在白底只有 2.5:1） */
.hero h1 em {
  font-style: normal;
  color: var(--brand-700);
  background: linear-gradient(transparent 64%, var(--accent-300) 64%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__sub {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.88;
  color: var(--ink-500);
  max-width: 560px;
  margin-bottom: var(--sp-7);
}

.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ---- 右側深藍面板 ---- */
.hero__visual { position: relative; display: flex; }

.hero__panel {
  position: relative;
  flex: 1;
  min-height: 512px;
  display: grid;
  place-items: center;
  padding: 44px 32px;
  overflow: hidden;
  background:
    radial-gradient(520px 360px at 78% 16%, rgba(0, 180, 192, .22) 0%, transparent 64%),
    linear-gradient(158deg, var(--brand-800) 0%, var(--brand-700) 48%, #0B3C72 100%);
}
/* 藍圖格線（壓在底圖之上，讓金融科技圖也帶上藍圖質地） */
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 44%, #000 10%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 10%, transparent 74%);
  pointer-events: none;
}
/* 左緣一道青綠短尺 */
.hero__panel::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  z-index: 3;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-500) 0%, rgba(0, 180, 192, .15) 70%, transparent 100%);
}

/* 破格：寬螢幕時面板出血到視窗右緣 */
@media (min-width: 1240px) {
  .hero__panel { margin-right: calc((var(--container) - 100vw) / 2 - var(--sp-5)); }
}

/* ---- 白色承板：全彩 logo 的唯一正確舞台 ---- */
.hero__plate {
  position: relative;
  z-index: 4;
  width: min(300px, 76%);
  background: var(--white);
  padding: 38px 32px 30px;
  text-align: center;
  outline: 1px solid rgba(255, 255, 255, .22);
  outline-offset: 12px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .3);
  animation: plate-in .9s var(--ease) both;
}
.hero__mark {
  width: 100%;
  max-width: 186px;
  height: auto;
  margin: 0 auto;
}
.hero__cap {
  display: block;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-200);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-500);
}

@keyframes plate-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 舊的 orbit 裝飾已不再使用；保留極簡 fallback 以免舊標記殘留時爆版 */
.orbit { display: none; }

/* ==========================================================================
   Hero 動畫層：數據流底圖 ＋ 掃光 ＋ 流動節點
   全部為 transform / opacity 動畫（GPU 合成，不觸發重排），且尊重
   prefers-reduced-motion：系統關閉動態效果時一律靜止。
   ========================================================================== */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* 底圖：緩慢縮放漂移，像資料流在流動 */
.hero__bgimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  will-change: transform;
  animation: heroDrift 30s ease-in-out infinite alternate;
}

/* 中央壓暗一層，確保白色承板上的 logo 始終清晰 */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 62% 18%, rgba(0, 36, 84, .10) 0%, rgba(0, 36, 84, .52) 78%),
    linear-gradient(180deg, rgba(0, 36, 84, .30) 0%, rgba(0, 36, 84, .12) 42%, rgba(0, 36, 84, .48) 100%);
}

/* 斜向掃光：一道青綠薄膜週期性掠過面板 */
.hero__sweep {
  position: absolute;
  top: -30%;
  left: -55%;
  width: 42%;
  height: 160%;
  transform: rotate(9deg);
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(0, 180, 192, .05) 38%,
    rgba(0, 180, 192, .19) 52%,
    rgba(0, 180, 192, .05) 66%,
    transparent 100%
  );
  animation: heroSweep 9s linear infinite;
}

/* 流動節點：三顆小方點，錯開延遲做呼吸＋上浮 */
.hero__node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(0, 180, 192, .16);
  animation: heroNode 6.5s ease-in-out infinite;
}
.hero__node--a { left: 17%; top: 26%; animation-delay: 0s; }
.hero__node--b { left: 26%; top: 62%; animation-delay: 2.1s; }
.hero__node--c { left: 74%; top: 78%; animation-delay: 4.2s; }

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.6%, -1.2%, 0); }
}

@keyframes heroSweep {
  from { transform: rotate(9deg) translateX(0); }
  to   { transform: rotate(9deg) translateX(420%); }
}

@keyframes heroNode {
  0%, 100% { opacity: .18; transform: translateY(0) scale(.85); }
  50%      { opacity: .95; transform: translateY(-9px) scale(1.25); }
}

/* ---- DTT 價值區的金融科技視覺帶 ---- */
.dtt__viz {
  position: relative;
  margin: 0 0 var(--sp-8);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  background: var(--white);
}
.dtt__viz img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  animation: vizBreathe 16s ease-in-out infinite alternate;
}
/* 一條極細的青綠掃描線由上而下掠過 */
.dtt__vizscan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-500), transparent);
  opacity: .55;
  animation: vizScan 7s ease-in-out infinite;
}

@keyframes vizBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.035); }
}
@keyframes vizScan {
  0%, 100% { top: 4%; opacity: 0; }
  12%      { opacity: .55; }
  88%      { opacity: .55; }
  95%      { top: 96%; opacity: 0; }
}

/* 無障礙：系統要求減少動態時，關掉所有循環動畫（僅保留進場） */
@media (prefers-reduced-motion: reduce) {
  .hero__plate,
  .hero__bgimg,
  .hero__sweep,
  .hero__node,
  .dtt__viz img,
  .dtt__vizscan { animation: none; }
  .hero__sweep, .dtt__vizscan { display: none; }
}

/* ==========================================================================
   首屏 3D 資料流畫布 ＋ 信任細列
   ========================================================================== */

/* 3D 畫布：透明底、用 screen 混合「把光加上去」——
   沒有 WebGL 或使用者減少動態時它一輩子都是空的，底圖照樣在。
   z-index 1：在底圖／壓暗層之上，藍圖格線(2)與白色承板(4)之下。 */
.hero__flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: .9;
  pointer-events: none;
}
/* 手機不跑 3D（見 flow3d.js 的 desktopViewport 判斷）：畫布整個收起，
   不留下一個沒有任何內容、卻仍參與合成的空元素。 */
@media (max-width: 860px) {
  .hero__flow { display: none; }
}

/* 信任細列：原本是一個獨立區段（手機上要多滑一屏），收進首屏當按鈕下的註腳 */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-200);
}
.trust li { display: flex; flex-direction: column; gap: 2px; }
.trust b { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.trust span { font-size: 13px; color: var(--ink-500); line-height: 1.6; }

@media (max-width: 860px) {
  /* 手機改單行橫排，三項只佔三行文字的高度 */
  .trust { grid-template-columns: 1fr; gap: var(--sp-3); margin-top: var(--sp-6); }
  .trust li { flex-direction: row; align-items: baseline; gap: var(--sp-3); }
  .trust b { flex: 0 0 auto; }
}

/* ==========================================================================
   信任錨點條
   ========================================================================== */

.anchors {
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
}

.anchors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.anchor {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--ink-200);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.anchor:last-child { border-right: none; }
.anchor:first-child { padding-left: 0; }

.anchor__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  background: var(--ink-050);
  color: var(--accent-700);
  display: grid;
  place-items: center;
}
.anchor__icon svg { width: 21px; height: 21px; }

.anchor__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.anchor__text { font-size: 14px; color: var(--ink-500); line-height: 1.7; }

/* ==========================================================================
   卡片網格
   ========================================================================== */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/*★★★ 2026-10-05 修「往下拉整片空白」（★ 真瀏覽器 CDP 實測 22 頁）
   業主回報「產品頁往下拉有資料丟失空白」。真因不是資料沒載入、★ 也不是 reveal 動畫卡住
   （★ CDP 真實時間實測：14/14 卡片 opacity 全 = 1、逐卡捲動也全可見），
   ★ 而是**排版**：欄數寫死 3 欄、但很多模塊只有 1 張卡
   ⇒ 一行只排 1 張、右側 2/3 全空（★ 實測視覺空缺率 226%–264%）★ 整頁看起來像沒載入。

   修法（★ 不改 HTML、★ 用 :has() 讓欄數自適應實際卡數）：
     · 1 張卡 → 滿版橫幅（★ 文案與 CTA 兩欄並排、★ 填滿整行、★ 零空白）
     · 2 張卡 → 2 欄
     · 3 張以上 → 原本的 3 欄
   ★ 為什麼用 :has() 而不是改 HTML 的 class：★ 內容會變（新增／下架產品），
     ★ 把判斷交給 CSS 才不用每次改內容都記得改欄數。★ 內容驅動排版、★ 不會再分叉。 */
@media (min-width: 861px) {
  /* 只有 1 張卡：滿版橫幅 */
  .grid--3:has(> :only-child),
  .grid--4:has(> :only-child) {
    grid-template-columns: 1fr;
  }
  /* 只有 2 張卡：兩欄（★ grid--4 也降成 2 欄、★ 否則 2/4 的空比 1/4 更刺眼） */
  .grid--3:has(> :nth-child(2):last-child),
  .grid--4:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ★ 滿版橫幅的內部排版：左文案、右 CTA（★ 單卡撐滿 1192px 時，
     ★ 直排的話每行長到難讀、★ 右側又會一大片空） */
  .grid--3 > .card--product:only-child,
  .grid--4 > .card--product:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker more"
      "title  more"
      "lead   more"
      "for1   more"
      "for2   more";
    align-items: start;
    column-gap: var(--sp-6);
    row-gap: var(--sp-1);
  }
  .grid--3 > .card--product:only-child .card__kicker,
  .grid--4 > .card--product:only-child .card__kicker { grid-area: kicker; }
  .grid--3 > .card--product:only-child .card__title,
  .grid--4 > .card--product:only-child .card__title  { grid-area: title; }
  .grid--3 > .card--product:only-child .card__subtitle,
  .grid--4 > .card--product:only-child .card__subtitle { grid-area: title; margin-top: calc(var(--sp-3) * -1 + 2px); }
  .grid--3 > .card--product:only-child .card__lead,
  .grid--4 > .card--product:only-child .card__lead    { grid-area: lead; }
  .grid--3 > .card--product:only-child .card__more,
  .grid--4 > .card--product:only-child .card__more   { grid-area: more; align-self: center; margin: 0; }
  /* ★ 兩條「適合／門檻」依序落在 for1 / for2（★ 用 nth-of-type 而不是假名稱） */
  .grid--3 > .card--product:only-child .card__for,
  .grid--4 > .card--product:only-child .card__for    { grid-area: for1; margin: 0; }
  .grid--3 > .card--product:only-child .card__for + .card__for,
  .grid--4 > .card--product:only-child .card__for + .card__for { grid-area: for2; }
  /* ★ 文字欄不要被 CTA 擠壓（★ .card__hit 是整卡可點的鋪滿連結，不是文字欄——
     Q2 2026-11-02：bluewhale／lrn 卡片沿用 V-18 模式後，:not(.card__more) 沒排除它，
     68ch 會把 absolute 鋪滿層壓成半寬 ⇒ 例外清單同步排除） */
  .grid--3 > .card--product:only-child > :not(.card__more):not(.card__hit),
  .grid--4 > .card--product:only-child > :not(.card__more):not(.card__hit) { max-width: 68ch; }
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  overflow: hidden;
}
/* 頂端青綠細條：hover 才展開 —— 比整卡浮起更克制 */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--brand-700);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-5);
}
.card__icon svg { width: 23px; height: 23px; }

/* 新聞卡圖片：滿版頂圖。
   ★ 比例採 2.35:1 而非 16:9 —— 公眾號封面本身就是 ~2.35:1 寬幅海報（常含
     標題文字與人物），裁成 16:9 會切掉左右兩側；貼近原生比例可完整呈現，
     也避免卡片被撐得比同列文字卡高太多。 */
.card__img {
  display: block;
  width: calc(100% + var(--sp-6) * 2);
  margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  background: var(--ink-100);
  border-bottom: 1px solid var(--ink-200);
}
/* 有圖片的卡：把 hover 才展開的品牌頂條拉到圖片之上 */
.card--news::before { z-index: 1; }

/* ---- 新聞「頭條＋條列」：首頁專用。
       首頁要的是「掃一眼知道最近發生什麼」，不是把六張大卡排滿。
       第一則保留封面圖當頭條，其餘壓成一行（來源・標題・日期），
       手機上從「滑好幾屏」變成「同屏讀完」。 */
.news-rows { display: grid; gap: 0; border-top: 1px solid var(--ink-200); }
.news-rows .card {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--ink-200);
  transition: background-color var(--transition);
}
.news-rows .card::before { display: none; }
.news-rows .card:hover { transform: none; background: rgba(0, 36, 84, .03); }
/* 頭條：維持一張正常的圖文卡（封面圖滿版，所以左右要留回 padding） */
.news-rows .card:first-child {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
  overflow: hidden;
}
.news-rows .card:last-child { border-bottom: 0; }

.news-rows .card:not(:first-child) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-4) 0;
}
.news-rows .card:not(:first-child) .card__img,
.news-rows .card:not(:first-child) > p { display: none; }
.news-rows .card:not(:first-child) h3 {
  font-size: 16.5px;
  margin: 0;
  flex: 1 1 260px;
  order: 2;
}
.news-rows .card:not(:first-child) .card__tag { order: 1; margin: 0; }
.news-rows .card:not(:first-child) .card__meta { order: 3; margin: 0; }
.news-rows .card:not(:first-child) .card__more { order: 4; margin: 0; }

.card h3 { font-size: 18.5px; margin-bottom: var(--sp-3); color: var(--ink-900); }
.card p { font-size: 14.5px; color: var(--ink-500); line-height: 1.82; }

.card__en {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: var(--sp-2);
}

/* ---- DTT 三價值 ---- */
.dtt { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

.dtt__item {
  position: relative;
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--ink-200);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}
.dtt__item::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-rule);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.dtt__item:hover::after { transform: scaleX(1); }
.dtt__item:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
  border-color: var(--ink-300);
}

/* 大寫等寬英文 → 大字重的技術標籤 */
.dtt__en {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: var(--sp-3);
}
.dtt__zh { font-size: 25px; color: var(--ink-900); margin-bottom: var(--sp-4); letter-spacing: -.02em; }
.dtt__desc { font-size: 14.5px; color: var(--ink-500); line-height: 1.82; }

/* ==========================================================================
   業務結構
   ========================================================================== */

.biz { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }

.biz__block {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.biz__block:hover { box-shadow: var(--sh-lg); border-color: var(--ink-300); }

.biz__tag {
  display: inline-block;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: var(--accent-100);
  color: var(--accent-700);
  border: 1px solid #BFE9EE;
  margin-bottom: var(--sp-4);
}

.biz__block h3 { font-size: 21px; margin-bottom: var(--sp-3); color: var(--ink-900); }
.biz__lead { font-size: 14.5px; color: var(--ink-500); margin-bottom: var(--sp-5); line-height: 1.82; }

.biz__list { display: flex; flex-direction: column; gap: 0; }
.biz__list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-700);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--ink-200);
}
.biz__list li:first-child { border-top: none; padding-top: 0; }
.biz__list .tick {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: var(--r-sm);
  background: var(--brand-700);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.biz__list strong { display: block; color: var(--ink-900); font-size: 15px; margin-bottom: 1px; }
.biz__list span { font-size: 13.5px; color: var(--ink-500); }

/* 可點擊的抓手項目（連到子計劃詳情頁） */
.biz__list a { color: inherit; text-decoration: none; display: block; }
.biz__list a::after {
  content: " →";
  color: var(--accent-500);
  font-weight: 700;
}
.biz__list a:hover strong { color: var(--accent-700); }
.biz__list a:focus-visible { outline: 2px solid var(--accent-700); outline-offset: 3px; }

/* ==========================================================================
   表單入口（深底）
   ========================================================================== */

/* 入口卡共七張（質數），任何固定欄數都會排成「最後一列缺一角」：
   4 欄＝4+3、3 欄＝3+3+1、2 欄＝2+2+2+1，缺角那一列靠左、右邊留一塊空白，
   遠看就是「版面歪掉」。改用 flex＋置中，讓最後一列自動居中，
   卡片數日後增減也不會再歪。 */
.forms-grid {
  /* 格寬寫成變數：flex-basis 與 max-width 共用同一個值，斷點只要改這個變數。
     ⚠ flex-basis 不能設 0 —— 設 0 時每張卡的「假想主尺寸」也是 0，
     瀏覽器會判定七張全塞得進一行，於是擠成七欄細卡。 */
  --fcard-w: calc((100% - 3 * var(--sp-3)) / 4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}
.forms-grid > .fcard {
  flex: 1 1 var(--fcard-w);
  min-width: 0;
  max-width: var(--fcard-w);
}
.forms-grid > .modebar { flex: 1 1 100%; }

.fcard {
  display: block;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 132px;
}
.fcard:hover {
  background: rgba(255, 255, 255, .10);
  border-color: var(--accent-400);
  transform: translateY(-3px);
}
.fcard__who {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent-300);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
}
.fcard__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-2);
  line-height: 1.42;
  max-width: 84%;
}
.fcard__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .66);
}
.fcard__go {
  position: absolute;
  right: var(--sp-5);
  top: var(--sp-5);
  color: rgba(255, 255, 255, .62);
  transition: var(--transition);
}
.fcard:hover .fcard__go { color: var(--accent-400); transform: translateX(3px); }

/* ==========================================================================
   待補佔位（首頁版）
   ========================================================================== */

.placeholder-block {
  border: 1px dashed var(--ink-300);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  background: var(--ink-050);
  color: var(--ink-500);
}
.placeholder-block .ph-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: var(--sp-2);
}
.placeholder-block .ph-note { font-size: 13.5px; line-height: 1.8; max-width: 620px; margin: 0 auto; }

/* ==========================================================================
   聯絡 CTA
   ========================================================================== */

.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--sp-9) var(--sp-8);
  background:
    radial-gradient(620px 340px at 88% 6%, rgba(0, 180, 192, .26) 0%, transparent 62%),
    linear-gradient(145deg, var(--brand-900) 0%, var(--brand-700) 56%, #0B3C72 100%);
  color: rgba(255, 255, 255, .80);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 18%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 18%, transparent 74%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 {
  color: var(--white);
  font-size: clamp(24px, 2.9vw, 36px);
  margin-bottom: var(--sp-4);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.cta-band p {
  font-size: clamp(15px, 1.25vw, 16.5px);
  color: rgba(255, 255, 255, .74);
  max-width: 620px;
  margin: 0 auto var(--sp-7);
  line-height: 1.85;
}
.cta-band .hero__cta { justify-content: center; }

/* 併進「合作機構」區段後的 CTA：不用再帶一整段區段間距 */
.cta-band--tight { margin-top: var(--sp-8); }

/* ==========================================================================
   頁尾
   ========================================================================== */

.footer {
  position: relative;
  background: var(--brand-900);
  color: rgba(255, 255, 255, .60);
  padding: var(--sp-9) 0 var(--sp-6);
  font-size: 14px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-rule);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/*★★★ 2026-10-05 業主回報「官網上進入後台的登入口不見了」。
   ★ 真因不是入口消失，是**排版壞掉**（真瀏覽器實測）：
     `.footer__top` 是 **4 欄**格線，而 `admin-entry.js` 往它追加了**第 5 個**子項
     ⇒ ★ 第 5 項被擠到**第二行、獨自一行**（其餘四欄 top=530、它 top=882）
     ⇒ ★ 在頁尾看起來像一塊掉出來的殘骸，還把頁尾多撐高約 350px。
   ★ 修法：**只在入口真的存在時**才把格線改成 5 欄（`:has()` 判斷）。
     ⇒ ★ 沒注入時格線完全不動（不會留下一個空欄）。
   ★★ 為什麼要`min-width:1081px`、不能只靠「放在 4 欄規則後面」：
     ★ `:has()` 會**提高特異性**（0,2,0 > 0,1,0）⇒ ★ 它會蓋掉後面 `@media (max-width:1080px)`
       的兩欄規則 ⇒ 861–1080px 會錯留 5 欄。★ 所以這裡用明確的斷點把它關在桌面範圍內。 */
@media (min-width: 1081px) {
  .footer__top:has([data-admin-entry]) { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; }
}

/* ★ 深底用「白色版」獨立資產，不用 filter 把彩色 logo 壓成純白
   —— 舊版 brightness(0) invert(1) 會把反鋸齒邊緣壓爛、品牌色全失。 */
.footer__logo { height: 32px; width: auto; margin-bottom: var(--sp-5); }
.footer__about { line-height: 1.85; max-width: 330px; font-size: 13.5px; }

.footer h3 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.footer ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer a { transition: var(--transition); font-size: 13.5px; }
/* 點擊區：原本只有 18px 高，手指極易點錯；撐到 32px。
   頁尾連結數量多，要到 44px 會讓頁尾高度翻倍，故採折衷並保留足夠間距。 */
.footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--accent-300); }

/* ★ 2026-11-01（官網工單 V-10）：頁尾「微信公眾號」不再被切成 2×2 碎片。
   症狀：該欄被 `:has([data-admin-entry])` 的第 5 欄（auto，約 54px）壓到 210px，
   中文標籤被硬切成「微信公」「眾號」、冒號單獨掉一行浮著。
   ⇒ 標籤不換行（整串「微信公眾號」維持一個詞），值另起一行。
   ★ 誠實邊界：這讓該行變成 2 行（標籤 1 行 ＋ 值 1 行）。工單原文要求「單行 ≤1.2 倍行高」，
   在 210px 寬下要單行只能縮字級（<14px，工單自己禁止）或砍字，兩者都更糟 ⇒ 採 2 行。
   詳見回 D2 的信：驗收條件建議改成「標籤不得被切成兩段」。
   ★ 選擇器**不要綁 `<a>`**：contact.html 那筆在 V-15 已改成純文字 `<span>`，
   若寫成 `.footer__top li a > span` 就會在那一頁整條失效（本輪實測踩到）。 */
.footer__top [data-i18n="contact.info.6.k"] { white-space: nowrap; }
.footer__top [data-content="contact.wechat"] { display: block; }
/* ★ 還有一個更深的坑（本輪實測才發現）：外層 `<a>` 是 `inline-flex`（`.footer ul a`），
   而 flex 子項的 `display:block` **不會**讓它換行 —— 值仍被擺在標籤右邊同一行。
   ⇒ 含微信的那個連結要退回一般的 block flow，值才會真的落到第二行。
   ★★ 提醒下一個人：這裡曾因**註解沒寫好**（關閉符提前出現）導致後面兩條規則被整段吃掉，
      而 `getComputedStyle` 只會回 "normal"、看起來像「選擇器不匹配」——先檢查註解邊界。 */
.footer__top li:has([data-content="contact.wechat"]) > a { display: block; }

/* ★ 2026-11-01（V-11）：版權行「Technology」與「版權所有／All rights reserved」之間要有空格。
   ★ 為什麼改 CSS 不改 HTML：HTML 裡那個前導空格**存在**（`<span data-i18n="footer.rights"> 版權所有</span>`），
     但 i18n 是用 `textContent = 字典值` 整段覆寫 ⇒ 空格當場被抹掉（main.js 的套用函式），
     且三語字典值都沒有前導空格。改 HTML 或改字典都只是把同一個坑換位置。
   ⇒ 用 margin 撐開：與語言無關、不會被 i18n 抹掉、也不會被格式化工具吃掉。 */
.footer__bottom [data-i18n="footer.rights"] { margin-left: .35em; }

.footer__bottom {
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}

/* 隱私政策／服務條款：全站每一頁都有、也是唯一的法律性文字，
   觸控區跟其他頁尾連結一樣撐到 44px，別讓它變成最難按的東西。 */
.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* 網站備案號（ICP / 公安備案）：掛載點常駐頁尾，沒填就整行收起。
   中國大陸上線前一定要有，所以先把位置挖好，免得日後回頭改 16 個 HTML。 */
.footer__icp {
  flex: 1 1 100%;
  margin-top: var(--sp-2);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
}
/* ★ 2026-11-02（官網工單 V-19）：ICP 連結的點擊區只有 159×18，遠低於 44px 可點高度。
   用上下 padding 撐到 44（18 + 13×2），字級不動（工單禁止靠縮字解決）。 */
.footer__icp a { display: inline-block; padding: 13px 0; }

/* ==========================================================================
   響應式
   ========================================================================== */

@media (max-width: 1240px) {
  .nav__link { padding: 8px 9px; font-size: 14px; }
}

/* 導覽改抽屜：依「Logo ＋ 8 個導覽項 ＋ 語言切換 ＋ CTA」實測寬度訂為 1150px
   （2026-09-18 加「標準體系」後以 tools/_nav_measure.js 重測：1151px 起仍餘裕約 106px，
    故斷點維持 1150px 不動） */
@media (max-width: 1150px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-200);
    border-top: 1px solid var(--ink-100);
    padding: var(--sp-2) var(--sp-5) var(--sp-5);
    box-shadow: var(--sh-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));   /* iOS：避開網址列的動態高度 */
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--ink-100); font-size: 16px; }
  .nav__link:hover::after, .nav__link.is-active::after { display: none; }
  .nav__link--home { display: block; }
  .nav__link--cta {
    display: block;
    margin-top: var(--sp-4);
    text-align: center;
    background: var(--accent-500);
    color: var(--brand-700);
    border-radius: var(--r-sm);
    border-bottom: none;
  }

  .burger { display: flex; }
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__copy { padding-bottom: 0; }
  .hero__panel { min-height: 400px; margin-right: 0; }
  .hero { padding-bottom: 0; }
  .hero__visual { margin-top: 0; }
  .forms-grid { --fcard-w: calc((100% - 2 * var(--sp-3)) / 3); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}

@media (max-width: 860px) {
  /* 手機的區段節奏要收回來：桌面 96px 的留白，在 390px 寬的螢幕上
     只會變成「滑很久還看不到內容」。 */
  :root { --sp-9: 48px; --sp-10: 60px; }

  .sec-head { margin-bottom: var(--sp-6); }

  .anchors__grid { grid-template-columns: 1fr; }
  .anchor { border-right: none; border-bottom: 1px solid var(--ink-200); padding-left: var(--sp-5); }
  .anchor:first-child { padding-left: var(--sp-5); }
  .anchor:last-child { border-bottom: none; }

  .grid--3, .grid--4, .dtt, .biz { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .forms-grid { --fcard-w: calc((100% - var(--sp-3)) / 2); }

  /* 手機首頁的「金融科技視覺帶」讓位給首屏那塊真的會動的 3D 面板：
     同一種語彙不必在一個頁面裡講兩次，而這張圖在窄螢幕只會變成一個
     說不出所以然的橫幅。高度預算拿去給內容。 */
  .dtt__viz { display: none; }

  .cta-band { padding: var(--sp-8) var(--sp-5); }
  /* 頁尾維持兩欄：四個欄位各自堆成一行，會讓頁尾比一個內容區段還高。
     品牌簡介跨兩欄，下面三個連結欄並排。 */
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); }
  .footer__top > :first-child { grid-column: 1 / -1; }
}

/* 窄螢幕：標題列的 CTA 讓位給 Logo 與語言切換（抽屜內另有 CTA） */
@media (max-width: 640px) {
  .header__actions .btn { display: none; }
  .header__inner { gap: var(--sp-3); }

  /* 手機減重：DTT 三張卡不再各佔一大塊，改成緊湊行，省下約 90px */
  .dtt__item { padding: var(--sp-5); }
  .dtt__zh { font-size: 22px; margin-bottom: var(--sp-3); }
  .dtt__viz { margin-bottom: var(--sp-6); }
}


@media (max-width: 560px) {
  .container { padding: 0 var(--sp-4); }
  .header__logo img { height: 28px; }
  /*★★★ 2026-10-05：頁首留位已移到 body ★ 這裡原本是 calc(var(--header-h) + 44px)，
     ★ 若留著手機版會多一條 112px 白帶。★ 改為只留原本額外的 44px 呼吸空間。 */
  .hero { padding: 44px 0 0; }
  .hero__panel { min-height: 300px; padding: 32px 20px; }
  .hero__plate { padding: 26px 20px 22px; width: min(260px, 84%); }
  .hero__mark { max-width: 150px; }
  /* 七張表單入口卡在窄螢幕改成兩欄：卡片很短（誰 ＋ 一句標題），
     兩欄完全放得下，卻省掉一半的高度。 */
  .forms-grid { --fcard-w: calc((100% - var(--sp-3)) / 2); gap: var(--sp-3); }
  .fcard { padding: var(--sp-4); }
  .card, .biz__block, .dtt__item { padding: var(--sp-5); }
  .btn { padding: 12px 22px; font-size: 14.5px; }
  .btn--lg { padding: 14px 26px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   進場動畫：一次編排好的序列，不是零散微動效
   ========================================================================== */

/* ★★ 2026-10-02 22:0x 修正（fail-safe 改法）
   問題：原本這裡直接 `opacity: 0`，靠 JS 加 .is-visible 才顯示。
        實測 products.html 有 14 張卡，量到 HIDDEN=14/14 —— 全部停在透明狀態。
        凡是 JS 沒跑、報錯、被內容安全政策擋掉、或 IntersectionObserver 失靈，
        整頁內容就永久不可見。**這是「內容必須可見」與「動畫」之間的取捨，我選了前者。**
   改法：反過來寫。預設可見；只有當 <html> 真的拿到 .js 類時，才啟動隱藏態。
        JS 在 <head> 內同步加 .js，所以動畫效果不受影響；
        但沒有 JS 時，內容照常顯示。 */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  /* ★ will-change 原本加在這裡（21 個元素同時開合成層）。
     實測它讓 headless 無 GPU 時合成層停滯、opacity 卡在 0；
     而且 21 個合成層本身是效能殺手。動畫不需要它也能跑。 */
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

.grid > [data-reveal].is-visible:nth-child(2),
.dtt > [data-reveal].is-visible:nth-child(2),
.forms-grid > [data-reveal].is-visible:nth-child(2) { transition-delay: .07s; }
.grid > [data-reveal].is-visible:nth-child(3),
.dtt > [data-reveal].is-visible:nth-child(3),
.forms-grid > [data-reveal].is-visible:nth-child(3) { transition-delay: .14s; }
.forms-grid > [data-reveal].is-visible:nth-child(4) { transition-delay: .21s; }
.grid > [data-reveal].is-visible:nth-child(4),
.forms-grid > [data-reveal].is-visible:nth-child(5) { transition-delay: .28s; }
.forms-grid > [data-reveal].is-visible:nth-child(6) { transition-delay: .35s; }
.forms-grid > [data-reveal].is-visible:nth-child(7) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   觸控目標補強（手機）：語言切換與導覽可點區撐到 44px
   ========================================================================== */
@media (max-width: 860px) {
  .lang__btn { min-height: 44px; min-width: 44px; }
  .header__actions { gap: var(--sp-2); }
}

/* --------------------------------------------------------------------------
   超窄螢幕（≤480px，含 320px 的 iPhone SE 一代）
   頁首原本「Logo ＋ 語言切換 ＋ 選單鈕」在 320px 會超出容器約 37px，
   被 body 的 overflow-x 裁掉 —— 症狀是語言切換最右邊那顆按鈕直接消失。
   這裡把三者的尺寸一起收一級；實測 320px 下仍有約 9px 餘裕。
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .header__inner { gap: var(--sp-1); }
  .header__logo img { height: 26px; }
  .header__actions { gap: var(--sp-2); }
  .lang { padding: 1px; gap: 1px; }
  /* 觸控目標：寬與高都守 44px（WCAG 目標尺寸），改由收 padding／間距來騰空間，
     而不是縮按鈕本身 —— 實測 320px 仍不溢出。 */
  .lang__btn { min-width: 44px; min-height: 44px; padding: 4px 2px; }
  .burger { width: 44px; height: 44px; }
}

/* ================================================== 整屏模式（首頁・桌面）＋ 跨頁轉場
   業主 2026-09-18：「一個版面看清楚一個事情，頂多下拉一頁；不要全部在一頁一直下拉」。
   做法：桌面首頁每個頂層 section 至少一個視窗高，配合 proximity 吸附（不強制，
   內容比視窗長的區段仍可正常捲動）；手機（≤860px）與「減少動態」使用者不啟用。 */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  body.snap main > section {
    min-height: 100vh;
    min-height: 100svh;
    scroll-snap-align: start;
    scroll-margin-top: var(--header-h);
  }
  /* ★ 2026-11-02（官網工單 V-05）：首屏 hero 要扣掉「固定頁首 ＋ 公告條」的高度。
     為什麼：`body` 已有 `padding-top: var(--header-h)`（68px），公告條再佔 45px ⇒ 共 113px；
     而 `.hero` 仍要求 100svh ⇒ **每屏底部多出 113px**（實測 803 視窗：hero bottom=916）。
     ⇒ 只有**第一個 section（hero）**要扣；其餘 section 捲到時頁首是覆蓋層，不需要扣。
     ★ 不寫死 113：用 `--header-h ＋ --marquee-h` 推，公告條高度改了會自己跟上。 */
  body.snap .hero {
    min-height: calc(100svh - var(--header-h) - var(--marquee-h, 45px));
  }
  /*★★★ 2026-10-05：★ 「頁面頂端」本身也是一個吸附點。
     ★ 為什麼需要（★ 真因見本檔上半「兩條橫幅互相重疊」那段）：
       吸附目標若只有 main > section，★ 第一個目標（.hero）的吸附位置會是 174−156 = 18
       ⇒ ★ 載入後自動捲 18px ⇒ ★ 頁首留位被吃掉、第一條橫幅塞進 fixed 頁首底下。
     ★ 把 .marquee 也設成吸附點：它的吸附位置 = 68 − 68 − 88 = −88 ⇒ ★ 被夾到 0
       ⇒ ★ 載入時最近的就是 0 ⇒ ★ 停在 scrollY=0、★ 兩條橫幅自然相鄰。
     ★ 若公告條內容為空（data-hide-if-empty 收起）⇒ 它不佔位、★ .hero 的吸附位置變負 ⇒ 同樣夾到 0。 */
  body.snap > .marquee {
    scroll-snap-align: start;
    scroll-margin-top: var(--header-h);
  }
}
@supports (scroll-snap-type: y proximity) {
  @media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
    html:has(body.snap) {
      scroll-snap-type: y proximity;
    }
  }
}

/* 跨頁轉場：支援跨文件 View Transitions 的瀏覽器（Edge／Chrome 126+）自動生效；
   不支援的瀏覽器退回一般跳轉，不影響功能。 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease-out both; }
::view-transition-new(root) { animation: vt-in .24s ease-out both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
