/* =====================================================================
   tokens.css — 設計規範的固定值（顏色、字級、間距、圓角、陰影）
   全站只能使用這裡定義的變數，元件內不寫死色碼或數值。
   依據：金融創新專區_設計規範草案_v0.1（比照臺銀官網與品牌手冊 2022 v2）
   ===================================================================== */
:root {
  /* 品牌色 */
  --c-red: #9A0036;
  --c-red-light: #D93657;
  --c-purple: #6C1F76;
  --c-purple-dark: #591A4A;
  --c-mustard: #CF7C34;
  --c-mustard-text: #A65A1A;  /* 芥末色用在小字或白字底色時改用這個深一階，對比才達 4.5:1（無障礙標準） */

  /* 漸層：只用線性漸層 */
  --g-red: linear-gradient(90deg, var(--c-red), var(--c-red-light));
  --g-purple: linear-gradient(90deg, var(--c-purple), var(--c-purple-dark));

  /* 文字與背景 */
  --c-ink: #1A1A1A;
  --c-text: #333333;
  --c-body: #666666;
  --c-line: #E5E5E5;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F5F5F7;
  --c-bg-tint: #FCF3F4;
  --c-footer: #4D4D4D;
  --c-footer-head: #F1D8BF;
  --c-footer-link: #DCDEDD;
  --c-white: #FFFFFF;

  /* 字型：使用訪客電腦內建字型，不下載網路字型 */
  --font: "Noto Sans TC", "Microsoft JhengHei", Arial, Helvetica, sans-serif;

  /* 字級（全站只有 7 級）。比照官網：以「中」為準（根字級 16px），切換「小／大」時整體等比例縮放（14px／18px）。
     行高寫成比例，字級變大時行高跟著變大；每一級的字級和行高一定成對使用，不可單獨改其中一個。
     括號內是「中」的實際大小，與官網量測一致 */
  --fs-display: 3rem;      --lh-display: 1.2083;  /* 48／58 開頭區大標 */
  --fs-h2: 1.875rem;       --lh-h2: 1.2;          /* 30／36 區段大標 */
  --fs-h3: 1.25rem;        --lh-h3: 1.6;          /* 20／32 卡片標題、重點句 */
  --fs-h4: 1.125rem;       --lh-h4: 1.5556;       /* 18／28 次標題、按鈕 */
  --fs-body: 1rem;         --lh-body: 1.625;      /* 16／26 內文 */
  --fs-small: .875rem;     --lh-small: 1.5714;    /* 14／22 註記、說明 */
  --fs-tag: max(12px, .75rem); --lh-tag: 1.5;     /* 12／18 標籤、日期（最小 12px） */
  /* 段落最長寬度：官網內文欄寬約 808px，約 50 個中文字；超過這個寬度一行太長，不好閱讀 */
  --measure: 50em;

  /* 間距級距：只用這些值 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 64px;
  --s-9: 80px;

  /* 版面 */
  --max-w: 1216px;
  --gutter: 20px;
  --col-gap: 24px;
  --section-y: var(--s-8);
  --header-h: 80px;  /* 捲動時固定在畫面上方的頁首高度（含下方紅線）：電腦 72＋8 */

  /* 圓角與陰影 */
  --r-card: 12px;
  --r-tag: 4px;
  --r-pill: 999px;
  --shadow: 0 0 16px rgba(154, 0, 54, .12);
  --shadow-lg: 0 0 32px rgba(154, 0, 54, .12);
  --focus: 0 0 0 3px var(--c-white), 0 0 0 5px var(--c-red);

  /* 動態 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .2s;

  /* 最小可點範圍 */
  --hit: 44px;
}

/* 字級切換「小／中／大」：比照官網，改變根字級（預設「中」16px） */
html { font-size: 16px; }
html.text-s { font-size: 14px; }
html.text-l { font-size: 18px; }

/* 手機：字級與間距的調整只在這裡做 */
@media (max-width: 767px) {
  :root {
    --fs-display: 2rem; --lh-display: 1.25;
    --gutter: 16px;
    --col-gap: 16px;
    --section-y: var(--s-7);
    --header-h: 60px;  /* 手機 56＋4 */
  }
}

/* =====================================================================
   base.css — 基本樣式：重設、文字層級、連結、按鈕、標籤、圖示
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 點頁內錨點時，標題不會被頁首和頁內導覽列蓋住 */
  scroll-padding-top: calc(var(--header-h) + 56px + var(--s-4));
}
/* 訪客設定「減少動態」時關掉所有動畫。全站唯一使用 !important 的地方：必須蓋過所有元件的動畫設定 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-body);
  text-align: left;
  background: var(--c-bg);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-wrap: anywhere;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* 中英文切換：<html lang> 決定顯示哪一個語言 */
html[lang="en"] [data-l="zh"],
html[lang="zh-Hant"] [data-l="en"] { display: none; }

/* 標題分段：｜ 標記的片段盡量不在中間斷行 */
.ph { display: inline-block; }

/* ---------- 文字層級（後台只能選層級，不能選字級） ---------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; color: var(--c-ink); text-wrap: balance; }
.t-h2 {
  font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; text-wrap: balance;
  background: var(--g-red); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; color: var(--c-ink); }
.t-h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; color: var(--c-text); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-body); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-body); }
.t-eyebrow { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; color: var(--c-red); }
/* 小標前的符號：比照臺銀官網，漸層紅的四分之一圓 */
.t-eyebrow::before { content: ""; flex: none; width: .75em; height: .75em; border-top-left-radius: 100%; background: linear-gradient(135deg, var(--c-red-light), var(--c-red)); }
.sec--emphasis .t-eyebrow::before { background: var(--c-footer-head); }
.t-display em, .t-h3 em { font-style: normal; color: var(--c-red); }
/* 文字排列規則（比照官網）：
   1. 一律靠左對齊，不置中、不左右對齊撐滿
   2. 字距一律為預設值（不加大字距）；唯一例外是全大寫的英文小標籤
   3. 段落最長 50 個字寬，太長的行不好閱讀
   4. 段與段之間空 16px；標題與下方文字的距離由元件決定，只用間距級距 */
.prose > p + p { margin-top: var(--s-4); }
.prose p, .sec__lead p, .t-body, .t-small { max-width: var(--measure); }
.prose strong { color: var(--c-ink); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 可點的東西：全站只有這幾種長相 ---------- */
/* 1. 文字連結：紅色，滑過出現底線 */
.link { color: var(--c-red); font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* 2. 按鈕：膠囊形 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--hit); padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: 700 var(--fs-h4)/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: filter var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn--primary { background: var(--g-red); color: var(--c-white); }
.btn--primary:hover { filter: brightness(.9); }
.btn--ghost { background: var(--c-white); color: var(--c-text); border-color: var(--c-text); }
.btn--ghost:hover { background: var(--c-bg-soft); }
.btn--small { min-height: 40px; font-size: var(--fs-body); padding: 0 var(--s-4); }

/* 鍵盤選取：所有可點的東西都有清楚外框 */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible + span, summary:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: var(--r-tag);
}
.btn:focus-visible { border-radius: var(--r-pill); }

/* 3. 狀態標籤：圓點＋文字，沒有底色框、沒有外框，不會被當成按鈕。圓點顏色代表狀態 */
.tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--c-text); font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700;
}
.tag::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); }
.tag--soon::before { background: var(--c-mustard); }
.tag--launched::before { background: var(--c-body); }
.tag--poc::before { background: var(--c-purple); }

/* 圖示：線條，跟隨文字顏色 */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--badge {
  box-sizing: content-box; width: 24px; height: 24px; padding: var(--s-3);
  border-radius: 50%; background: var(--c-bg-tint); color: var(--c-red);
}

/* 只給螢幕報讀軟體讀的文字 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: var(--s-2); left: var(--s-2); z-index: 100; width: auto; height: auto; clip: auto; padding: var(--s-2) var(--s-3); background: var(--c-white); color: var(--c-red); }

/* =====================================================================
   layout.css — 網格與區段
   - 內容最寬 1216px；12 欄；只用規範的欄位配置
   - 區段：全站只有一種外框，版型只有「標準」「左右分欄」兩種
   - 底色由產生程式自動交錯（白／淺灰），後台不能選
   ===================================================================== */
.wrap { width: 100%; max-width: calc(var(--max-w) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 12 欄網格（欄間距電腦 24px、手機 16px） ----------
   所有多欄排列都排在同一套 12 欄上，左右邊緣才會上下對齊。只能用以下幾種分法：
   cols-2  左右對半   6＋6
   cols-3  三欄       4＋4＋4
   cols-4  四欄       3＋3＋3＋3
   cols-8-4  主＋側   8＋4
   cols-7-5  主＋側   7＋5
   平板（1023px 以下）三、四欄改兩欄，主＋側改上下；手機（767px 以下）一律單欄 */
.cols { display: grid; gap: var(--col-gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cols > * { grid-column: span var(--span, 12); }
.cols-2 { --span: 6; }
.cols-3 { --span: 4; }
.cols-4 { --span: 3; }
.cols-8-4 > :nth-child(odd) { --span: 8; }
.cols-8-4 > :nth-child(even) { --span: 4; }
.cols-7-5 > :nth-child(odd) { --span: 7; }
.cols-7-5 > :nth-child(even) { --span: 5; }
@media (max-width: 1023px) {
  .cols-3, .cols-4 { --span: 6; }
  .cols-8-4 > *, .cols-7-5 > * { --span: 12; }
}
@media (max-width: 767px) { .cols > * { --span: 12; } }

/* ---------- 區段 ---------- */
.sec { padding: var(--section-y) 0; background: var(--c-bg); }
.sec--soft { background: var(--c-bg-soft); }
.sec__head { display: grid; gap: var(--s-3); max-width: 800px; margin-bottom: var(--s-5); }
.sec__lead { color: var(--c-body); }
.sec__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }

/* 左右分欄：標題與說明在左（5 欄），內容在右（7 欄） */
.sec--split .sec__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: start; }
.sec--split .sec__grid > :first-child { grid-column: span 5; padding-right: var(--s-7); }
.sec--split .sec__grid > .sec__aside { grid-column: span 7; }
.sec--split .sec__grid .sec__head { margin-bottom: 0; }
.sec--split .sec__aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (max-width: 1023px) {
  .sec--split .sec__grid > :first-child, .sec--split .sec__grid > .sec__aside { grid-column: span 12; padding-right: 0; }
  .sec--split .sec__grid { row-gap: var(--s-5); }
}

/* 強調區段：品牌漸層底、白字（每頁最多一個） */
/* 強調區段用官網的紅色漸層（深紅 → 淺紅，同色系，不跨到紫色） */
.sec--emphasis { background: var(--g-red); color: var(--c-white); }
.sec--emphasis .t-h2 { background: none; color: var(--c-white); }
.sec--emphasis .t-eyebrow { color: var(--c-footer-head); }
.sec--emphasis .sec__lead .t-body, .sec--emphasis .sec__body > .prose .t-body { color: var(--c-white); }

/* 左右分欄的右欄只有 7 欄寬：裡面的卡片一律上下排，避免三張卡片擠成很窄的直條 */
.sec--split .sec__aside .cols > * { --span: 12; }


/* =====================================================================
   header.css — 頁首、選單、麵包屑、頁內導覽列
   頁首比照臺銀「個人貸款專區」（cln.bot.com.tw，10/29 量測）：
   - 一列白色 72px：Logo｜專區名稱（紅色粗體 20px）、主選單（18px）、字級與語言
   - 下方一條 8px 漸層紅線，把頁首和內容分開（手機 4px）
   - 整個頁首捲動時固定在畫面上方
   選單規格：
   - 電腦（1280px 以上）：主選單排在專區名稱右邊，滑過展開白色大選單
   - 平板（768～1279px）：選單收進紅色圓形按鈕 → 右側面板，寬 360px
   - 手機（767px 以下）：選單按鈕 → 全螢幕面板
   ===================================================================== */
.hd { position: sticky; top: 0; z-index: 50; background: var(--c-white); border-bottom: 8px solid transparent; border-image: var(--g-red) 1; }
.hd__in { display: flex; align-items: center; gap: var(--s-7); height: 72px; }
.hd__brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: none; }
.hd__logo { width: 120px; height: auto; }
/* 頁首文字用固定大小（和 Logo 一樣不隨「小中大」縮放），避免大字時頁首擠壞 */
.hd__hub { padding-left: var(--s-3); border-left: 1px solid var(--c-text); color: var(--c-red); font-size: 20px; line-height: 32px; font-weight: 700; white-space: nowrap; }

.hd__tools { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
/* 輔助連結 13px（比照官網「網站導覽、關於臺銀」） */
.hd__util { display: inline-flex; align-items: center; min-height: var(--hit); color: var(--c-text); font-size: 13px; line-height: 1; text-decoration: none; white-space: nowrap; }
.hd__util:hover { color: var(--c-red); text-decoration: underline; text-underline-offset: 4px; }
/* 語言：紅框膠囊，顯示可以切換過去的語言 */
.hd__lang {
  min-height: 26px; padding: 0 var(--s-2); border: 1px solid var(--c-red); border-radius: 15px; background: var(--c-white);
  color: var(--c-red); font: 400 12px/24px var(--font); cursor: pointer; white-space: nowrap;
}
.hd__lang:hover { background: var(--c-red); color: var(--c-white); }
.hd__lang:focus-visible { border-radius: 15px; }

/* 字級切換：三個字本身就是小、中、大，目前選的是紅色加底線 */
.fsize { display: inline-flex; align-items: flex-end; gap: var(--s-1); }
.fsize button {
  min-width: 24px; min-height: var(--hit); padding: 0 var(--s-1); border: 0; background: none;
  color: var(--c-text); font-family: var(--font); font-weight: 700; line-height: 1; cursor: pointer;
}
.fsize__s { font-size: 12px; }
.fsize__m { font-size: 14px; }
.fsize__l { font-size: 17px; }
.fsize button:hover { color: var(--c-red); }
.fsize button[aria-pressed="true"] { color: var(--c-red); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* 選單按鈕：紅色圓形（比照個人貸款專區） */
.hd__menu-btn {
  display: none; place-items: center; width: var(--hit); height: var(--hit); padding: 0; border: 0; border-radius: 50%;
  background: var(--c-red); color: var(--c-white); cursor: pointer;
}
.hd__menu-btn:focus-visible { border-radius: 50%; }

/* ---------- 主選單：排在專區名稱右邊 ---------- */
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__item { position: relative; display: flex; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 72px; padding: 0;
  border: 0; background: none; color: var(--c-ink); font: 400 18px/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent; transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--c-red); }
/* 目前所在：紅色粗體＋底部紅線 */
/* 目前所在：紅色粗體（下方已有紅線，不再另外加底線） */
.nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--c-red); font-weight: 700; }
.nav__chev { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__extra { display: none; }

/* 下拉：接在被滑過的選單項目正下方（紅線下面）的白色面板，寬度跟著內容，不留大片空白 */
.nav__sub { position: absolute; left: calc(var(--s-4) * -1); top: calc(100% + 8px); min-width: 280px; background: var(--c-white); border-radius: 0 0 var(--r-card) var(--r-card); box-shadow: 0 16px 32px rgba(154, 0, 54, .12); }
.nav__sub[hidden] { display: none; }
/* 看不見的橋：蓋住選單和下拉之間的紅線（8px），滑鼠往下移到下拉時不會被判定離開而收起 */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.nav__sub-in { padding: var(--s-2); }
/* 下拉內容只有專案清單：不重複分類名稱、不加裝飾線；每一項是一整列可點範圍 */
.nav__col { display: grid; gap: 2px; }

.nav__col-link {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--s-4); border-radius: var(--r-tag); white-space: nowrap;
  color: var(--c-text); font-size: var(--fs-body); line-height: var(--lh-body); text-decoration: none;
}
/* 專案名稱前的圖示（網站地圖 content/site.json 的 icon） */
.nav__col-link { gap: var(--s-3); }
.nav__col-il { flex: none; display: grid; place-items: center; width: 28px; height: 28px; }
.nav__col-il .il { width: 28px; height: 28px; }
.nav__col-link:hover { background: var(--c-bg-tint); color: var(--c-red); }
.nav__col-link[aria-current="page"] { color: var(--c-red); font-weight: 700; }

/* ---------- 平板與手機：選單收進紅色圓形按鈕 ---------- */
@media (max-width: 1279px) {
  .hd__menu-btn { display: grid; }
  .hd__util { display: none; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 49;
    width: 360px; max-width: 100%; padding: var(--s-4) var(--s-5) var(--s-7);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-white); box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    /* 收起時用淡出、不往右推出畫面：推到畫面外的面板會讓手機的頁面可以左右滑動 */
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease); }
  .nav__item { flex-direction: column; }
  .nav__item, .nav > .nav__link { border-bottom: 1px solid var(--c-line); }
  /* 第一層：18px 粗體；第二層：16px、縮排 16px；目前所在頁：紅色粗體＋左側紅線 */
  .nav__link, .nav__trigger { width: 100%; min-height: 48px; justify-content: space-between; font-weight: 700; box-shadow: none; }
  .nav__link[aria-current="page"], .nav__trigger.is-current { box-shadow: none; }
  .nav__sub { position: static; min-width: 0; border-radius: 0; box-shadow: none; }
  .nav__sub::before { display: none; }
  .nav__sub-in { padding: 0 0 var(--s-2); }
  .nav__col { border: 0; padding: 0; }
  .nav__col-link { padding-left: var(--s-4); border-left: 3px solid transparent; border-radius: 0; }
  .nav__col-link[aria-current="page"] { border-left-color: var(--c-red); background: var(--c-bg-tint); text-decoration: none; }
  .nav__extra { display: flex; margin-top: var(--s-5); font-size: var(--fs-body); font-weight: 400; border: 0; }
}
@media (max-width: 767px) {
  .hd { border-bottom-width: 4px; }
  .hd__in { height: 56px; gap: var(--s-3); }
  .fsize { display: none; }
  .hd__logo { width: 96px; }
  .hd__hub { font-size: 16px; line-height: 26px; }
  .nav { width: 100%; }
}
/* 窄螢幕放不下「金融創新專區」字樣時隱藏（英文較長，較早隱藏） */
@media (max-width: 374px) { .hd__hub { display: none; } }
@media (max-width: 479px) { html[lang="en"] .hd__hub { display: none; } }

/* ---------- 麵包屑：每個專案頁都有，格式固定 ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); font-size: var(--fs-small); line-height: var(--lh-small); }
.crumbs a { color: var(--c-body); text-decoration: none; }
.crumbs a:hover { color: var(--c-red); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--c-text); }
.crumbs__sep { color: var(--c-line); }

/* ---------- 頁內導覽列：捲動時固定在頁首下方 ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--c-white); box-shadow: 0 1px 0 var(--c-line); }
.subnav__in { display: flex; gap: var(--s-6); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
/* 「本頁內容」小標：讓使用者知道這一列是本頁的段落導覽，點了不會換頁 */
.subnav__label { flex: none; display: inline-flex; align-items: center; padding-right: var(--s-5); border-right: 1px solid var(--c-line); color: var(--c-body); font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; }
.subnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 56px;
  border-bottom: 3px solid transparent; color: var(--c-text); text-decoration: none; white-space: nowrap;
}
.subnav a:hover { color: var(--c-red); }
.subnav a.is-active { color: var(--c-red); font-weight: 700; border-bottom-color: var(--c-red); }
@media (max-width: 767px) { .subnav__in { gap: var(--s-5); } .subnav a { min-height: 48px; font-size: var(--fs-small); } }

/* 手機上把小連結的可點範圍放大到約 44px 高（外觀不變，只擴大感應區），避免手指點不到或點錯 */
@media (max-width: 767px) {
  .hd__brand, .hd__lang, .crumbs a { position: relative; }
  .hd__brand::after, .hd__lang::after, .crumbs a::after { content: ""; position: absolute; inset: -10px -4px; }
}

/* 電腦：主選單和專區名稱拉開距離，一眼分得出「專區名稱」和「選單」 */
@media (min-width: 1280px) { .nav { margin-left: var(--s-8); } }

/* =====================================================================
   hero.css — 首頁主視覺、專案開頭區（含重點資訊列）、手機底部申請按鈕
   ===================================================================== */
.hero { padding: var(--s-7) 0 var(--s-8); background: var(--c-white); }
/* 開頭區排在 12 欄上：文字 7 欄、圖 5 欄 */
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: center; }
.hero__grid > .hero__text { grid-column: span 7; padding-right: var(--s-6); }
.hero__grid > .hero__art { grid-column: span 5; }
.hero__text { display: grid; gap: var(--s-4); justify-items: start; }
.hero__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__lead { max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__art img { width: 100%; max-width: 440px; margin: 0 auto; }
@media (max-width: 1023px) {
  .hero__grid { row-gap: var(--s-6); }
  .hero__grid > .hero__text, .hero__grid > .hero__art { grid-column: span 12; padding-right: 0; }
  .hero__art img { max-width: 320px; }
}

/* 首頁：時鐘動畫（js/hero.js 讀取以下三個顏色變數） */
.hero--home { --fg: var(--c-ink); --line: var(--c-line); --fg-3: var(--c-body); }
.hero--home .hero__art { aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.hero--home canvas { display: block; width: 100%; height: 100%; }
/* 滑鼠移到時鐘上的說明框（js/hero.js 產生並定位） */
.hero--home .hero__art { position: relative; }
.hero__tip {
  position: absolute; z-index: 2; left: 50%; top: calc(100% + var(--s-3)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2 * var(--s-4)); pointer-events: none;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  background: var(--c-white); box-shadow: var(--shadow-lg); color: var(--c-body);
  font-size: var(--fs-tag); line-height: var(--lh-tag);
}
/* 中文說明不換行（英文較長，仍可換行；手機寬度太窄時兩種語言都可換行） */
@media (min-width: 481px) {
  .hero__tip { max-width: none; }
  .hero__tip [data-l="zh"] { white-space: nowrap; }
  .hero__tip [data-l="en"] { display: block; max-width: 360px; }
}
.hero__tip[hidden] { display: none; }

/* 重點資訊列：3～4 項 */
.facts--1 { --n: 1; } .facts--2 { --n: 2; } .facts--3 { --n: 3; } .facts--4 { --n: 4; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--col-gap); margin-top: var(--s-7); padding: var(--s-5); border-radius: var(--r-card); background: var(--c-bg-soft); }
.facts > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-3); align-items: center; }
.facts dt { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-body); }
.facts dd { color: var(--c-ink); font-weight: 700; }
@media (max-width: 1023px) { .facts { --n: 2; } }
@media (max-width: 767px)  { .facts { --n: 1; } }

/* 手機底部申請按鈕：開頭區的主要按鈕捲出畫面後才出現 */
.m-cta { display: none; }
@media (max-width: 767px) {
  .m-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: block;
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: var(--c-white); box-shadow: 0 -1px 0 var(--c-line);
    transform: translateY(100%); transition: transform var(--dur) var(--ease);
  }
  .m-cta.is-on { transform: none; }
  .m-cta .btn { width: 100%; }
  body.has-m-cta { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* 專案開頭區主視覺：一律裁成圓形（和首頁專案卡片的圓形圖一致） */
.hero__art img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

/* =====================================================================
   cards.css — 卡片類元件
   可點與不可點一眼可分（架構設計第五節）：
   - 說明卡片（不可點）：淺灰底、無陰影、無箭頭、標題黑色
   - 可點卡片：白底＋陰影＋右下角箭頭（站內 →、站外 ↗），滑過浮起、箭頭右移
   區段底色是淺灰時，說明卡片改白底，仍然沒有陰影
   ===================================================================== */

/* ---------- 說明卡片（共用外觀） ---------- */
.info-card { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-card); background: var(--c-bg-soft); }
.sec--soft .info-card { background: var(--c-white); }
.sec--emphasis .info-card { background: rgba(255, 255, 255, .1); color: var(--c-white); }
.sec--emphasis .info-card .t-h3, .sec--emphasis .info-card .t-body { color: var(--c-white); }

/* 圖示卡片組（比照官網卡片）：左邊 64px 紅色漸層圖示，右邊標題與說明 */
.icard { grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s-5); align-items: start; padding: var(--s-6) var(--s-5); }
.icard__il { display: grid; place-items: center; width: 64px; height: 64px; }
.icard__il .il { width: 56px; height: 56px; }
.icard__il .ic { width: 32px; height: 32px; color: var(--c-red); }
.icard__body { display: grid; gap: var(--s-2); }
.icard__n { margin-right: var(--s-2); color: var(--c-red-light); }
@media (max-width: 767px) {
  .icard { grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5) var(--s-4); }
  .icard__il { width: 48px; height: 48px; }
  .icard__il .il { width: 44px; height: 44px; }
}

/* 概念卡片 */
.ccard { gap: var(--s-4); padding: var(--s-7) var(--s-6); }
.ccard__art { border-radius: var(--r-card); background: var(--c-white); padding: var(--s-4); }
.sec--soft .ccard__art { background: var(--c-bg-soft); }
.ccard__art img { width: 100%; max-height: 220px; object-fit: contain; }
.ccard__label { font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; letter-spacing: .12em; color: var(--c-mustard-text); }
.ccard__points { display: grid; gap: var(--s-2); }
.ccard__points li { position: relative; padding-left: var(--s-5); }
.ccard__points li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red-light); }
.ccard__note { padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-small); line-height: var(--lh-small); }
.ccard__note b { color: var(--c-ink); }

/* 重點數字 */
.stat { gap: var(--s-1); }
.stat__v { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-red); }
.sec--emphasis .stat__v { color: var(--c-footer-head); }

/* 獲獎 */
.award { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); }
.award__mark { grid-row: span 3; color: var(--c-mustard); }
.award__year { font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; color: var(--c-red); }

/* ---------- 可點卡片（共用外觀） ---------- */
.go-card {
  position: relative; display: grid; align-content: start; gap: var(--s-3);
  padding: var(--s-5) var(--s-5) calc(var(--s-5) + var(--hit)); border-radius: var(--r-card);
  background: var(--c-white); box-shadow: var(--shadow); color: var(--c-body); text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.go-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.go-card:focus-visible { border-radius: var(--r-card); }
.go-card__arrow {
  position: absolute; right: var(--s-5); bottom: var(--s-5); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--g-red); color: var(--c-white);
  font-size: var(--fs-h4); line-height: 1; transition: transform var(--dur) var(--ease);
}
.go-card:hover .go-card__arrow { transform: translateX(4px); }
.go-card__cta { position: absolute; left: var(--s-5); bottom: var(--s-5); display: flex; align-items: center; min-height: 36px; color: var(--c-red); font-weight: 700; }

/* 專案卡片 */
.pcard { grid-template-columns: minmax(0, 1fr) 160px; column-gap: var(--s-5); min-height: 240px; }
.pcard > :not(.pcard__img):not(.go-card__arrow):not(.go-card__cta) { grid-column: 1; }
.pcard__img { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.pcard__kicker { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-body); }
@media (max-width: 767px) {
  .pcard { grid-template-columns: minmax(0, 1fr) 96px; }
  .pcard__img { width: 96px; height: 96px; grid-row: 1 / span 2; align-self: start; }
}

/* 連結卡片（比照官網卡片）：白底陰影、左邊紅色漸層圖示、下方「立即前往」；整張可點 */
.lcard {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-5); height: 100%;
  padding: var(--s-6) var(--s-5); border-radius: var(--r-card); background: var(--c-white); box-shadow: var(--shadow);
  color: var(--c-body); text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lcard:focus-visible { border-radius: var(--r-card); }
.lcard__il .il { width: 56px; height: 56px; }
.lcard__body { display: grid; align-content: start; justify-items: start; gap: var(--s-2); }
.lcard__title { color: var(--c-ink); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; }
.lcard:hover .lcard__title { color: var(--c-red); }
.lcard__btn { margin-top: var(--s-3); }
.lcards__title { margin-bottom: var(--s-4); }
@media (max-width: 767px) { .lcard { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); } .lcard__il .il { width: 44px; height: 44px; } }

/* ---------- 紅色漸層圖示的尺寸（assets/il/*.svg，比照官網，不加底色圓圈） ---------- */
.il { display: block; }
.facts__il { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; }
.facts__il .il { width: 36px; height: 36px; }
.tl__ic .il { width: 30px; height: 30px; }
.notice__il .il { width: 28px; height: 28px; }
.award__mark .il { width: 48px; height: 48px; }
.chk__il .il { width: 36px; height: 36px; }


/* =====================================================================
   events.css — 活動輪播（比照臺銀官網 personal-banking「活動資訊」，10/29 量測）
   - 卡片：圖片圓角 12px、框比例 5:2；下方標題 20／32 粗體、單行截斷；活動期間 16／26 灰色
   - 卡片沒有底色、沒有陰影；滑過時圖片微微放大、標題變紅
   - 一次顯示：電腦 3 張、平板 2 張、手機 1 張；超過時出現左右箭頭（圓形外框）與圓點
   ===================================================================== */
.ev { --per: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.ev__track {
  display: grid; grid-auto-flow: column; gap: var(--col-gap);
  grid-auto-columns: calc((100% - var(--col-gap) * (var(--per) - 1)) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.ev__track::-webkit-scrollbar { display: none; }
.ev__item { scroll-snap-align: start; min-width: 0; }
/* position: relative：卡片內給報讀軟體的隱藏文字（絕對定位）才不會跑出輪播、把整頁撐寬 */
.ev__card { position: relative; display: grid; gap: var(--s-1); color: inherit; text-decoration: none; }
.ev__pic { display: block; overflow: hidden; border-radius: var(--r-card); background: var(--c-bg-soft); }
/* 活動圖固定 5:2 的框，同一排卡片等高；圖片置中填滿，比例不同時只會裁到左右兩側（活動橫幅請把文字放在中間） */
.ev__img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; object-position: center; transition: transform var(--dur) var(--ease); }
.ev__card:hover .ev__img { transform: scale(1.03); }
.ev__title {
  display: flex; align-items: baseline; gap: var(--s-1); min-width: 0; margin-top: var(--s-4); padding: 0 var(--s-2);
  color: var(--c-ink); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700;
}
.ev__title-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev__ext { flex: none; color: var(--c-red); font-size: var(--fs-body); }
.ev__card:hover .ev__title { color: var(--c-red); }
.ev__period { padding: 0 var(--s-2); color: var(--c-body); font-size: var(--fs-body); line-height: var(--lh-body); }
.ev__card:focus-visible { border-radius: var(--r-card); }

/* 左右箭頭與圓點 */
.ev__ctrl { display: flex; align-items: center; justify-content: center; gap: var(--s-4); }
.ev__ctrl[hidden] { display: none; }
.ev__arrow {
  display: grid; place-items: center; width: var(--hit); height: var(--hit); padding: 0;
  border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-white); color: var(--c-body); cursor: pointer;
}
.ev__arrow--next, .ev__arrow:not([aria-disabled="true"]):hover { border-color: var(--c-red); color: var(--c-red); }
.ev__arrow[aria-disabled="true"] { border-color: var(--c-line); color: var(--c-line); cursor: default; }
.ev__arrow:focus-visible { border-radius: 50%; }
.ev__dots { display: flex; gap: var(--s-1); }
.ev__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.ev__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-line); }
.ev__dots button[aria-current="true"]::before { background: var(--c-red); }
.ev__more { justify-self: center; }

@media (max-width: 1023px) { .ev { --per: 2; } }
@media (max-width: 767px) { .ev { --per: 1; } }

/* =====================================================================
   content.css — 內容類元件：條列、步驟、圖文交錯、時間軸、表格、提示框
   以上都是「不可點」的說明內容
   ===================================================================== */

/* ---------- 條列清單 ---------- */
.list { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-6) var(--s-5); border-radius: var(--r-card); background: var(--c-bg-soft); }
.list__head { display: flex; align-items: center; gap: var(--s-4); }
.list__il { width: 48px; height: 48px; }
.list__il .il { width: 44px; height: 44px; }
.list__note { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
/* 兩個清單並排時等高，註記貼齊卡片底部 */
.list-pair > .list { height: 100%; grid-template-rows: auto auto 1fr; }
.sec--soft .list { background: var(--c-white); }
.list ul { display: grid; gap: var(--s-3); }
.list li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--c-text); }
.list li .ic { color: var(--c-red); margin-top: 1px; }
.list__dot { flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--c-red-light); }

/* ---------- 步驟：電腦橫排、手機直排 ---------- */
.steps { --n: 4; display: grid; gap: var(--col-gap); grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.steps--3 { --n: 3; } .steps--5 { --n: 5; } .steps--6 { --n: 3; }
/* 每一步是說明卡片（不可點）：淺灰底、無陰影、無底線；編號用大字標出順序 */
.steps li { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-card); background: var(--c-bg-soft); }
.sec--soft .steps li { background: var(--c-white); }
.steps__n { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; color: var(--c-red-light); }
.sec__aside .steps, .steps--vertical { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.sec__aside .steps li, .steps--vertical li { grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-4); }
.sec__aside .steps .steps__n { grid-row: span 2; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-4); }
  .steps .steps__n { grid-row: span 2; }
}

/* ---------- 圖文交錯 ---------- */
/* 圖文卡片：圖在上（固定 3:2 框）、文字在下，等寬並排 */
.frow { display: grid; align-content: start; gap: var(--s-4); }
.frow__art { aspect-ratio: 3 / 2; }
.frow__art img { height: 100%; }
.frow__text { display: grid; gap: var(--s-2); }
.frow__label { font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; letter-spacing: .12em; color: var(--c-mustard-text); }
.frow__steps { display: grid; gap: var(--s-2); counter-reset: fs; }
.frow__steps li { display: flex; gap: var(--s-3); counter-increment: fs; color: var(--c-text); }
.frow__steps li::before { content: counter(fs); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-bg-tint); color: var(--c-red); font-size: var(--fs-tag); font-weight: 700; }

/* ---------- 時間軸 ---------- */
.tl { display: grid; gap: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 120px 40px minmax(0, 1fr); column-gap: var(--s-4); padding-bottom: var(--s-6); }
.tl li::before { content: ""; position: absolute; left: calc(120px + var(--s-4) + 19px); top: 40px; bottom: 0; width: 2px; background: var(--c-line); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::before { display: none; }
.tl__d { padding-top: var(--s-2); font-weight: 700; color: var(--c-red); }
.tl__ic { display: grid; place-items: center; width: 40px; height: 40px; background: var(--c-bg); }
.tl__body { display: grid; gap: var(--s-1); padding-top: var(--s-1); }
@media (max-width: 767px) {
  .tl li { grid-template-columns: 40px minmax(0, 1fr); }
  .tl li::before { left: 19px; }
  .tl__d { grid-column: 2; padding-top: 0; }
  .tl__ic { grid-row: 1 / span 2; grid-column: 1; }
  .tl__body { grid-column: 2; }
}

/* ---------- 資料表格：手機改成卡片 ---------- */
.dtable { display: grid; gap: var(--s-3); }
.dtable table { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: var(--r-card); overflow: hidden; }
.dtable th, .dtable td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
/* 表頭：16px 粗體黑字，一眼看出是欄位名稱（UX 回饋：原本小字灰色像備註） */
.dtable th { background: var(--c-bg-tint); color: var(--c-ink); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 700; }
.dtable td:first-child { color: var(--c-ink); font-weight: 700; }
.dtable td { font-variant-numeric: tabular-nums; }
.dtable tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dtable table, .dtable tbody, .dtable tr, .dtable td { display: block; }
  .dtable tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); }
  .dtable td { padding: var(--s-1) var(--s-4); border: 0; }
  .dtable td[data-th]::before { content: attr(data-th); display: block; font-size: var(--fs-tag); line-height: var(--lh-tag); color: var(--c-body); font-weight: 400; }
  .dtable:lang(en) td[data-th-en]::before { content: attr(data-th-en); }
}

/* ---------- 提示框 ---------- */
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-5); border-radius: var(--r-card); background: var(--c-bg-soft); }
.sec--soft .notice { background: var(--c-white); }
.notice__body { display: grid; gap: var(--s-2); }
.notice__body ul { display: grid; gap: var(--s-2); }
.notice--important { background: var(--c-bg-tint); }
.sec--soft .notice--important { background: var(--c-bg-tint); }
.notice--important li { color: var(--c-text); }
.sec--soft .tl__ic { background: var(--c-bg-soft); }
/* 單獨一張清單橫跨整排時，項目分兩欄，避免右半邊大片空白 */
.sec__body > .list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
@media (max-width: 767px) { .sec__body > .list ul { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   可點與不可點（UX 回饋：兩種都是框框，分不出能不能按）
   - 可點：白底＋陰影的卡片，一定有按鈕或箭頭（連結卡片、專案卡片、活動）
   - 不可點的說明內容：不用卡片框，沒有底色、沒有陰影，只用上方一條細灰線分隔
   ===================================================================== */
.info-card, .list, .steps li {
  padding: var(--s-5) 0 0; border-radius: 0; background: none; box-shadow: none;
  border-top: 1px solid var(--c-line);
}
.sec--soft .info-card, .sec--soft .list, .sec--soft .steps li { background: none; }
.sec--emphasis .info-card { background: none; border-top-color: rgba(255, 255, 255, .35); }
.icard { padding: var(--s-5) var(--s-4) 0 0; }
.ccard { padding: var(--s-5) 0 0; }
.ccard__art { background: var(--c-bg-soft); }
.sec--soft .ccard__art { background: var(--c-white); }
.list-pair > .list { height: auto; }
@media (max-width: 767px) { .icard { padding: var(--s-5) 0 0; } }

/* 插畫（概念卡片、圖文交錯）：插畫本身有白底與圓形背景，不再加底色框；圓角裁切，完整顯示不放大 */
.ccard__art, .frow__art, .sec--soft .ccard__art, .sec--soft .frow__art { padding: 0; background: none; overflow: hidden; }
.ccard__art img, .frow__art img { width: 100%; max-height: none; border-radius: var(--r-card); object-fit: contain; }

/* ---------- 架構層（比照前一版的堆疊架構圖） ----------
   每一層：左邊英文標籤、右邊標題與說明；關鍵層用品牌紅色漸層、白字，往左凸出一點 */
.layers { display: grid; gap: var(--s-2); }
.layers__item {
  display: grid; grid-template-columns: 9em minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-5); row-gap: var(--s-1);
  align-items: center; padding: var(--s-5) var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-white);
}
.layers__label { grid-row: span 2; font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; letter-spacing: .18em; color: var(--c-body); }
.layers__title { display: flex; align-items: center; gap: var(--s-2); color: var(--c-ink); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; }
.layers__text { color: var(--c-body); }
.layers__badge { padding: 0 var(--s-2); border-radius: var(--r-tag); background: var(--c-mustard-text); color: var(--c-white); font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; }
.layers__item--key { border: 0; background: var(--g-red); transform: translateX(-12px); box-shadow: 0 12px 28px rgba(154, 0, 54, .2); }
.layers__item--key .layers__label { color: var(--c-footer-head); }
.layers__item--key .layers__title { color: var(--c-white); }
.layers__item--key .layers__text { color: rgba(255, 255, 255, .9); }
@media (max-width: 767px) {
  .layers__item { grid-template-columns: minmax(0, 1fr); padding: var(--s-4); }
  .layers__label { grid-row: auto; }
  .layers__item--key { transform: none; }
}

/* =====================================================================
   interactive.css — 會動的元件：常見問答、資格自我檢查
   可點提示：問答右側 ＋、選項外框
   ===================================================================== */

/* ---------- 常見問答（使用原生 details，不需程式也能展開） ---------- */
/* 參考 J.P. Morgan Kinexys：左右分欄（左邊標題固定、右邊問答）；每題只用細線分隔，不用卡片底色；
   展開時問題變紅色、＋ 變 −。配色、字級依本站規範 */
.faq-wrap { display: grid; gap: var(--s-5); }
.faq { display: grid; }
.faq__group { display: grid; }
.faq__group > .t-h4 { margin: var(--s-6) 0 var(--s-3); }
.faq__group:first-child > .t-h4 { margin-top: 0; }
.faq > .faq__group:first-child .faq__item:first-of-type { border-top: 1px solid var(--c-line); }
.faq__item { position: relative; border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: 72px; padding: var(--s-5) var(--s-2) var(--s-5) 0; cursor: pointer; list-style: none;
  color: var(--c-ink); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700;
  transition: padding-left var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-red); }
.faq__item[open] summary { color: var(--c-red); }
/* 展開符號：細線 ＋，展開時變 − */
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; color: var(--c-text); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--dur) var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item summary:hover .faq__icon, .faq__item[open] .faq__icon { color: var(--c-red); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
/* 答案：黑色、和問題一樣大（18px），不再用灰色小字 */
.faq__a { display: grid; gap: var(--s-2); padding: 0 var(--s-6) var(--s-5) 0; }
.faq__a .t-body { max-width: none; color: var(--c-ink); font-size: var(--fs-h4); line-height: var(--lh-h4); }
.faq__more { justify-self: start; }
.faq__more[hidden], .faq__item.is-folded { display: none; }
/* 左右分欄時，左邊的標題捲動時固定，右邊問答一直有標題陪著 */
.sec--split .sec__grid > :first-child:has(+ .sec__aside .faq-wrap) { position: sticky; top: calc(var(--header-h) + 72px); }
@media (max-width: 1023px) { .sec--split .sec__grid > :first-child:has(+ .sec__aside .faq-wrap) { position: static; } }
@media (max-width: 767px) {
  .faq__item summary { min-height: 64px; padding: var(--s-4) 0; }
  .faq__a { padding: 0 0 var(--s-4); }
}

/* ---------- 資格自我檢查 ---------- */
.chk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: start; }
.chk__qs { grid-column: span 7; }
.chk__result { grid-column: span 5; }
.chk__qs { display: grid; gap: var(--s-4); counter-reset: q; }
.chk__q { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-5); border: 0; border-radius: var(--r-card); background: var(--c-bg-soft); counter-increment: q; }
.sec--soft .chk__q { background: var(--c-white); }
.chk__q legend { float: left; width: 100%; padding: 0; color: var(--c-ink); font-weight: 700; }
.chk__q legend::before { content: counter(q) ". "; color: var(--c-red); }
.chk__hint { clear: both; font-size: var(--fs-small); line-height: var(--lh-small); }
.chk__opts { clear: both; display: flex; gap: var(--s-3); }
.chk__opts label { position: relative; flex: 1; }
.chk__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chk__opt {
  display: flex; align-items: center; justify-content: center; min-height: var(--hit);
  border: 1px solid var(--c-text); border-radius: var(--r-pill); background: var(--c-white);
  color: var(--c-text); font-weight: 700; cursor: pointer;
}
.chk__opts label:hover .chk__opt { background: var(--c-bg-tint); }
.chk__opts input:checked + .chk__opt { border-color: var(--c-red); background: var(--c-red); color: var(--c-white); }
.chk__opts input:focus-visible + .chk__opt { box-shadow: var(--focus); border-radius: var(--r-pill); }
.chk__result { position: sticky; top: calc(var(--header-h) + 72px); display: grid; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-card); background: var(--c-white); box-shadow: var(--shadow-lg); }
.chk__result [data-r][hidden], .chk__reset[hidden] { display: none; }
.chk__state { display: flex; align-items: center; gap: var(--s-3); }
.chk__reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--c-red); font: 700 var(--fs-small)/var(--lh-small) var(--font); cursor: pointer; min-height: var(--hit); }
.chk__reset:hover { text-decoration: underline; }
@media (max-width: 1023px) { .chk__qs, .chk__result { grid-column: span 12; } .chk__result { position: static; } }

/* =====================================================================
   walkthrough.css — 手機流程演練（互動元件，js/walkthrough.js）
   左：步驟清單；右：手機示意畫面。畫面內容由開發者製作（templates/custom/walk-*.html）
   由舊版 walk.css 搬過來，顏色與字級改用 tokens
   ===================================================================== */
.wt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: center; }
.wt > .wt__side { grid-column: span 7; padding-right: var(--s-6); }
.wt > .wt__stage { grid-column: span 5; }
.wt__side { display: grid; align-content: center; }

/* ---------- 左側三個步驟 ---------- */
.wt__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wt__steps button { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 14px 18px; border: 1px solid transparent; border-radius: var(--r-card); background: transparent; color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease); }
.wt__steps button:hover { background: var(--c-bg-soft); }
.wt__steps button:focus-visible { outline: 3px solid var(--c-red-light); outline-offset: 2px; }
.wt__n { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); font-weight: 700; color: var(--c-body); transition: background .25s var(--ease), color .25s var(--ease); }
.wt__steps b { font-size: var(--fs-body); line-height: var(--lh-body); }
.wt__steps small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-body); }
.wt__steps button[aria-current="step"] { background: var(--c-white); border-color: var(--c-line); box-shadow: 0 10px 30px rgba(60, 10, 30, .07); }
.wt__steps button[aria-current="step"] .wt__n { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.wt__steps button.is-done .wt__n { background: var(--c-bg-soft); color: var(--c-red); }
/* 第 2 步是本試辦唯一新增的步驟：金色標示 */
.wt__key button { border-color: color-mix(in srgb, var(--c-mustard) 45%, transparent); background: color-mix(in srgb, var(--c-mustard) 8%, transparent); }
.wt__key small { color: #8A4E14; font-weight: 700; }
.wt__key button[aria-current="step"] { border-color: var(--c-mustard); background: color-mix(in srgb, var(--c-mustard) 10%, var(--c-white)); }
.wt__key button[aria-current="step"] .wt__n { background: var(--c-mustard); border-color: var(--c-mustard); }
.wt__note { margin: 14px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-body); }

/* ---------- 手機外框 ---------- */
.wt__stage { position: relative; display: grid; place-items: center; }
.wt__stage::before { content: ""; position: absolute; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #E7BE94, #CF7C34); opacity: .16; }
.phone { position: relative; z-index: 1; width: 320px; aspect-ratio: 340 / 690; padding: 11px; border-radius: 46px; background: #141014; box-shadow: 0 40px 80px -30px rgba(89, 26, 74, .55), inset 0 0 0 1.5px #3b3036; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; color: #1A1A1A; display: grid; grid-template-rows: auto auto 1fr auto; }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 20px; background: #141014; }
.phone__bar { display: flex; justify-content: space-between; padding: 13px 26px 6px; font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 600; }
.phone__head { display: grid; gap: 10px; padding: 8px 20px 12px; border-bottom: 1px solid #efe6e8; }
.phone__brand { display: flex; align-items: center; justify-content: space-between; }
.phone__brand img { height: 20px; width: auto; }
.phone__brand small { font-size: var(--fs-tag); line-height: var(--lh-tag); color: #6E6668; }
.phone__prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.phone__prog i { height: 4px; border-radius: 2px; background: #efe6e8; transition: background .4s var(--ease); }
.phone__prog i.is-on { background: #9A0036; }
.phone__body { position: relative; overflow: hidden; }
.pscreen { position: absolute; inset: 0; padding: 18px; display: grid; align-content: start; gap: 12px; overflow-y: auto; animation: pin .4s var(--ease); }
.pscreen[hidden] { display: none; }
@keyframes pin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.pscreen h3 { margin: 0; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.pscreen p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: #4A4446; }

/* 畫面 1、2：身分驗證、上傳證件與基本資料（一般欄位） */
.pfield { position: relative; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #FAF6F5; font-size: var(--fs-tag); line-height: var(--lh-tag); color: #6E6668; }
.pfield b { font-size: var(--fs-small); line-height: var(--lh-small); color: #1A1A1A; font-weight: 500; }
.pfield em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px; background: #E6F2EA; color: #2E7D4F; font-style: normal; font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; }
/* 畫面 1：選擇驗證機制（單選） */
.popts { display: grid; gap: 5px; }
.popt { position: relative; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #efe6e8; background: #fff; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 700; color: #1A1A1A; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.popt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.popt .ic { flex: none; width: 18px; height: 18px; color: #9A0036; }
.popt:has(input:checked) { border-color: #9A0036; background: #FBF1F4; }
.popt:has(input:checked)::after { content: "✓"; margin-left: auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #9A0036; color: #fff; font-size: var(--fs-tag); line-height: var(--lh-tag); }
.popt:has(input:focus-visible) { outline: 3px solid #D93657; outline-offset: 2px; }
.pups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pups > span { display: grid; place-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 12px; border: 1.5px solid #2E7D4F; background: #F1F8F3; font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; color: #1A1A1A; text-align: center; }
.pups > span::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2E7D4F; color: #fff; font-size: var(--fs-tag); line-height: var(--lh-tag); }

/* 畫面 2：申請項目；數存兩項灰色固定，黃金存摺一項強調、要勾選 */
.pitem { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #FAF6F5; font-size: var(--fs-small); line-height: var(--lh-small); color: #6E6668; }
.pitem__tick { flex: none; width: 18px; height: 18px; border-radius: 5px; background: #C9BEC1; position: relative; }
.pitem__tick::after, .pgold__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pgold { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 2px solid #CF7C34; background: #FBF2E8; cursor: pointer; animation: pulse 1.8s var(--ease) infinite; }
.pgold input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pgold__box { flex: none; position: relative; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #CF7C34; background: #fff; transition: background .2s var(--ease); }
.pgold__box::after { left: 6px; top: 1px; width: 6px; height: 12px; border-width: 0 3px 3px 0; opacity: 0; }
.pgold__text { display: grid; gap: 2px; }
.pgold b { font-size: var(--fs-small); line-height: var(--lh-small); color: #3a2208; }
.pgold small { font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; color: #B05F1C; }
.pgold input:checked ~ .pgold__box { background: #CF7C34; }
.pgold input:checked ~ .pgold__box::after { opacity: 1; }
.pgold input:focus-visible ~ .pgold__box { outline: 3px solid #D93657; outline-offset: 2px; }
.wt.is-gold .pgold { animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(207, 124, 52, .45); } 60% { box-shadow: 0 0 0 8px rgba(207, 124, 52, 0); } }

/* 畫面 3：開戶完成 */
.pdone { display: flex; justify-content: center; align-items: center; gap: 10px; }
.pdone__mark { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #9A0036; color: #fff; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.pacc { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #D93657, #9A0036); }
.pacc--gold { background: linear-gradient(135deg, #E7BE94, #CF7C34); color: #3a2208; }
.pacc[hidden] { display: none; }
.pacc small { font-size: var(--fs-tag); line-height: var(--lh-tag); opacity: .85; }
.pacc b { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; }
.pacc::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255, 255, 255, .16); }

/* 畫面 4：申請案號與本次申請項目 */
.pcase { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #FAF6F5; text-align: center; }
.pcase small { font-size: var(--fs-tag); line-height: var(--lh-tag); color: #6E6668; }
.pcase b { font-size: var(--fs-body); line-height: var(--lh-body); color: #9A0036; }
.papplied { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.papplied li { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid #efe6e8; font-size: var(--fs-small); line-height: var(--lh-small); }
.papplied li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #9A0036; color: #fff; font-size: var(--fs-tag); line-height: var(--lh-tag); }
.papplied li[hidden] { display: none; }
.papplied li.papplied__gold { position: relative; overflow: hidden; border: 1.5px solid #CF7C34; background: linear-gradient(135deg, #FBF2E8, #F3D9BC); color: #3a2208; animation: gold-in .7s var(--ease) both; }
.papplied li.papplied__gold::before { background: #CF7C34; }
.papplied__gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-100%); animation: shine 1.6s var(--ease) .5s both; }
.papplied__gold b { font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; }
.papplied__gold em { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #CF7C34; color: #fff; font-style: normal; font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; white-space: nowrap; }
@keyframes gold-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(100%); } }

/* 手機底部：上一步／下一步 */
.phone__foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 12px 16px 20px; border-top: 1px solid #efe6e8; }
.phone__foot button { height: 44px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: var(--fs-small); line-height: var(--lh-small); cursor: pointer; }
.phone__foot button:focus-visible { outline: 3px solid #D93657; outline-offset: 2px; }
.pback { padding: 0 16px; background: #F7EAEA; color: #9A0036; }
.pback[aria-disabled="true"] { opacity: .4; cursor: default; }
.pnext { background: #9A0036; color: #fff; }


/* ---------- 平板、手機 ---------- */
@media (max-width: 900px) {
  .wt > .wt__side, .wt > .wt__stage { grid-column: span 12; padding-right: 0; }
  .wt__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .wt__steps button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 12px 6px; row-gap: 6px; }
  .wt__n { grid-row: auto; }
  .wt__steps small { display: none; }
  .wt__steps b { font-size: var(--fs-small); line-height: var(--lh-small); }
  .wt__stage { margin-top: 20px; }
  .phone { width: min(320px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .pscreen, .pgold, .papplied__gold, .papplied__gold::after { animation: none; }
  .phone__prog i, .wt__steps button, .wt__n, .pgold__box { transition: none; }
}

/* 學貸頁演練：5 個步驟的進度條；第 1 步「臺銀就學貸款」用金色標示為重點 */
.phone__prog--5 { grid-template-columns: repeat(5, 1fr); }
.popt--key { border-color: #CF7C34; background: #FBF2E8; }
.popt--key .ic { color: #B05F1C; }
.wt:not(.is-gold) .popt--key { animation: pulse 1.8s var(--ease) infinite; }
.popt--key:has(input:checked) { border-color: #CF7C34; background: #FBF2E8; }
.popt--key:has(input:checked)::after { background: #CF7C34; }
/* 第 4 步有沒有勾選自動扣繳，決定完成畫面顯示的內容 */
.wt .prepay-on { display: none; }
.wt:has([data-repay]:checked) .prepay-on { display: flex; }
.wt:has([data-repay]:checked) .prepay-off { display: none; }
@media (prefers-reduced-motion: reduce) { .wt:not(.is-gold) .popt--key { animation: none; } }
/* 學貸頁：其他驗證方式淡化，凸顯「臺銀就學貸款」（仍可點選，選了就恢復正常顏色） */
.popts:has(.popt--key) .popt:not(.popt--key):not(:has(input:checked)) { color: #A69CA0; background: #FAF8F9; border-color: #F2ECEE; }
.popts:has(.popt--key) .popt:not(.popt--key):not(:has(input:checked)) .ic { color: #C9BFC3; }

/* 學貸驗證方式：入口網帳密／學貸帳號（分段切換） */
.pmethods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #F7EAEA; }
.pmethods label { position: relative; display: grid; place-items: center; padding: 8px 4px; border-radius: 9px; font-size: var(--fs-tag); line-height: var(--lh-tag); font-weight: 700; color: #9A0036; text-align: center; cursor: pointer; }
.pmethods input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pmethods label:has(input:checked) { background: #fff; box-shadow: 0 1px 4px rgba(60, 10, 30, .12); }
.pmethods label:has(input:focus-visible) { outline: 3px solid #D93657; outline-offset: 1px; }
.pform { display: grid; gap: 6px; }
.pform[hidden] { display: none; }
/* 逐字打入：正在打的欄位外框變紅並顯示游標，打完的欄位維持一般樣式 */
.pfield b[data-type] { min-height: 1.3em; }
.pfield:has(b.is-typing) { background: #fff; box-shadow: inset 0 0 0 1.5px #9A0036; }
.pfield b.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #9A0036; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pfield b.is-typing::after { animation: none; } }
/* 驗證畫面欄位較多：縮小間距，讓四個欄位在手機框內放得下 */
.pform .pfield { padding: 7px 12px; gap: 2px; }
.pform .pfield b { font-size: var(--fs-small); line-height: var(--lh-small); }
/* 學貸演練 5 步；選了「臺銀就學貸款」後，其他驗證方式收起，下方展開學貸驗證 */
@media (max-width: 900px) { .wt__steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wt.is-gold .popts:has(.popt--key) .popt:not(.popt--key) { display: none; }
.ploan { display: grid; gap: 8px; }
.ploan[hidden] { display: none; }
/* 學貸驗證畫面上方：已選定的驗證方式（金色，表示這項服務的重點） */
.pchosen { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #CF7C34; background: #FBF2E8; }
.pchosen .ic { flex: none; width: 20px; height: 20px; color: #B05F1C; }
.pchosen > span { display: grid; }
.pchosen small { font-size: var(--fs-tag); line-height: var(--lh-tag); color: #8A4E14; }
.pchosen b { font-size: var(--fs-small); line-height: var(--lh-small); color: #3a2208; }
.pchosen::after { content: "✓"; margin-left: auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #CF7C34; color: #fff; font-size: var(--fs-tag); line-height: var(--lh-tag); }

.wt__apply { margin-top: var(--s-3); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-body); }
.wt__apply a { color: var(--c-red); font-weight: 700; text-decoration: none; }
.wt__apply a:hover { text-decoration: underline; }

/* =====================================================================
   footer.css — 頁尾（比照官網：深灰底、米色分欄標題、漸層紅資訊列）
   ===================================================================== */
.ft { background: var(--c-footer); color: var(--c-footer-link); }
.ft__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); row-gap: var(--s-7); padding-top: var(--s-8); padding-bottom: var(--s-7); }
.ft__main > :first-child { grid-column: span 4; }
.ft__main > :last-child { grid-column: span 8; }
.ft__head { margin-bottom: var(--s-3); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; color: var(--c-footer-head); }
.ft__tel { display: grid; gap: var(--s-3); }
.ft__tel dt { font-size: var(--fs-small); line-height: var(--lh-small); }
.ft__tel dd a { color: var(--c-white); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.ft__tel dd small { display: block; font-size: var(--fs-small); line-height: var(--lh-small); }
.ft__tel dd small a { font-size: inherit; line-height: inherit; font-weight: 400; color: var(--c-footer-link); }
/* 電話號碼的可點範圍加大（手機上要用手指點） */
.ft__tel dd a { display: inline-block; padding-block: var(--s-2); }
.ft__tel dd small a { padding-block: var(--s-3); }
.ft a { color: var(--c-footer-link); }
.ft a:hover { color: var(--c-white); }
.ft__notes { display: grid; gap: var(--s-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.ft__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }
.ft__links a { display: inline-flex; align-items: center; min-height: var(--hit); text-decoration: none; }
.ft__bar { background: var(--g-red); color: var(--c-white); font-size: var(--fs-small); line-height: var(--lh-small); }
.ft__bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-3); padding-bottom: var(--s-3); }
@media (max-width: 767px) { .ft__main > :first-child, .ft__main > :last-child { grid-column: span 12; } .ft__main { padding-top: var(--s-7); } }

/* =====================================================================
   styleguide.css — 樣式指南頁專用（色票）
   ===================================================================== */
.sg-chip { display: block; height: 64px; border-radius: var(--r-tag); box-shadow: inset 0 0 0 1px var(--c-line); }
.sg-chip--c-red { background: var(--c-red); }
.sg-chip--c-red-light { background: var(--c-red-light); }
.sg-chip--c-purple { background: var(--c-purple); }
.sg-chip--c-mustard { background: var(--c-mustard); }
.sg-chip--c-ink { background: var(--c-ink); }
.sg-chip--c-text { background: var(--c-text); }
.sg-chip--c-body { background: var(--c-body); }
.sg-chip--c-line { background: var(--c-line); }
.sg-chip--c-bg-soft { background: var(--c-bg-soft); }
.sg-chip--c-bg-tint { background: var(--c-bg-tint); }
.sg-chip--c-footer { background: var(--c-footer); }
.sg-chip--c-footer-head { background: var(--c-footer-head); }

/* 網格示意 */
.sg-grid { gap: var(--s-3); }
.sg-12 > span { --span: 1; display: grid; place-items: center; height: 32px; border-radius: var(--r-tag); background: var(--c-bg-tint); color: var(--c-red); font-size: var(--fs-tag); line-height: var(--lh-tag); }
.sg-cell { display: block; height: 48px; border-radius: var(--r-tag); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); }
.sg-split > :first-child { --span: 5; }
.sg-split > :last-child { --span: 7; }

/* 插圖圖示一覽 */
.sg-illust .info-card { justify-items: center; }
