/* 昱拓智庫 公開網站樣式
   獨立檔案，不再載入昱拓官網的 styles.css。
   色票與元件規格依 design/stitch-output 的 DESIGN.md 調整：灰字與橘字已加深，
   所有文字對比度在 4.5:1 以上，最小字級 13px。class 一律使用 tt- 前綴。 */

:root {
  --bg: #f8f9ff;
  --soft: #eff4ff;
  --tint: #e5eeff;
  --card: #ffffff;
  --ink: #0b1c30;
  --ink-2: #3f444b;
  --ink-3: #565b63;
  --line: #c4c6ce;
  --line-soft: #d8e0ef;
  --navy: #0a2540;
  --navy-2: #1e3a8a;
  --green: #006c4e;
  --green-bg: #e6f6ef;
  --green-line: #9fd8bf;
  --rust: #b53b0a;
  --rust-bg: #fff3ea;
  --rust-line: #f4c6a4;
  --slate: #475569;
  --slate-bg: #eef1f6;
  --slate-line: #d3d9e4;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", monospace;
}

/* ---------- 基礎 ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.tt-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul, ol, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; text-wrap: balance; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; }

.tt-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .tt-wrap { padding-inline: 24px; } }
@media (min-width: 1100px) { .tt-wrap { padding-inline: 40px; } }

.tt-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tt-skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 4px;
}
.tt-skip:focus { top: 8px; }

.tt-main { min-height: 60vh; }

.tt-i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tt-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 頁首 ---------- */

.tt-header { background: var(--card); border-bottom: 1px solid var(--line-soft); }
.tt-header__bar { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; }

.tt-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--navy); text-decoration: none; }
.tt-brand__mark { position: relative; width: 40px; height: 40px; flex: none; overflow: hidden; }
.tt-brand__mark img { position: absolute; left: -23px; top: -15px; width: 88px; max-width: none; height: auto; }
.tt-brand__name strong { display: block; font-size: 19px; line-height: 1.2; letter-spacing: 0.02em; }
.tt-brand__name small { display: block; font-size: 13px; line-height: 1.3; color: var(--ink-2); }

.tt-hsearch { display: flex; flex: 1 1 auto; max-width: 460px; margin-left: 4px; }
.tt-hsearch input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-right: 0; border-radius: 2px 0 0 2px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
.tt-hsearch button {
  display: grid; place-items: center; width: 44px; height: 42px;
  border: 1px solid var(--navy); border-radius: 0 2px 2px 0; background: var(--navy); color: #fff; cursor: pointer;
}
.tt-hsearch button:hover { background: var(--navy-2); border-color: var(--navy-2); }

.tt-nav { display: flex; gap: 4px; margin-left: auto; }
.tt-nav a {
  padding: 8px 12px; border-bottom: 2px solid transparent;
  color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none;
}
.tt-nav a:hover { color: var(--navy); }
.tt-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- 按鈕、標籤 ---------- */

.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 4px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.tt-btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-btn--primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.tt-btn--ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.tt-btn--ghost:hover { background: var(--soft); border-color: var(--navy); }
.tt-btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.tt-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tt-btn--block { width: 100%; }

.tt-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-2); font-weight: 700; text-decoration: none; }
.tt-link:hover { text-decoration: underline; }

.tt-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 13px; font-weight: 700; line-height: 22px; white-space: nowrap;
}
.tt-chip--open { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.tt-chip--upcoming { color: var(--navy); background: var(--tint); border-color: #b9cdf2; }
.tt-chip--closed { color: var(--slate); background: var(--slate-bg); border-color: var(--slate-line); }
.tt-chip--unknown { color: var(--ink-2); background: #fff; border-color: var(--line); }
.tt-chip--urgent { color: var(--rust); background: var(--rust-bg); border-color: var(--rust-line); }

.tt-tag { display: inline-block; padding: 1px 8px; border-radius: 2px; background: var(--tint); color: var(--navy); font-size: 13px; font-weight: 600; line-height: 22px; }
.tt-tag--plain { background: #fff; border: 1px solid var(--line-soft); color: var(--ink-2); font-weight: 500; }

.tt-eyebrow { margin-bottom: 8px; color: var(--green); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.tt-lead { margin-top: 10px; max-width: 46em; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tt-empty { padding: 32px 16px; text-align: center; color: var(--ink-2); background: var(--card); border: 1px dashed var(--line); border-radius: 4px; }
.tt-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* ---------- 頁首區塊（首頁、各頁標題） ---------- */

.tt-pagehead { padding: 36px 0 30px; background: var(--card); border-bottom: 1px solid var(--line-soft); }
.tt-pagehead h1 { font-size: 32px; }

.tt-hero { padding: 48px 0 40px; background: var(--card); border-bottom: 1px solid var(--line-soft); }
.tt-hero h1 { font-size: 40px; line-height: 1.25; }

.tt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--bg); }
.tt-kpis > div { padding: 16px 20px; border-left: 1px solid var(--line-soft); }
.tt-kpis > div:first-child { border-left: 0; }
.tt-kpis dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.tt-kpis dd { margin-top: 4px; font-family: var(--mono); font-size: 32px; font-weight: 700; line-height: 1.2; }
.tt-kpis dd small { margin-left: 6px; color: var(--ink-3); font-family: var(--font); font-size: 14px; font-weight: 500; }
.tt-kpis .is-open dd { color: var(--green); }
.tt-kpis .is-urgent dd { color: var(--rust); }

.tt-section { padding: 40px 0; }
.tt-section--soft { background: var(--soft); border-block: 1px solid var(--line-soft); }
.tt-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.tt-section__head h2 { font-size: 24px; }

.tt-steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tt-steps3 li { padding: 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px; }
.tt-steps3 .no { color: var(--green); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.tt-steps3 h3 { margin: 4px 0 6px; font-size: 18px; }
.tt-steps3 p { color: var(--ink-2); font-size: 15px; }

.tt-panel { padding: 24px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px; }
.tt-consult { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.tt-consult h2 { font-size: 26px; margin-bottom: 10px; }
.tt-consult p { color: var(--ink-2); }

/* ---------- 補助案清單（一案一列） ---------- */

.tt-rows { display: grid; gap: 12px; }

.tt-row {
  position: relative; display: grid; align-items: center; gap: 12px 28px;
  grid-template-columns: minmax(0, 1fr) 430px 132px;
  padding: 20px 24px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px;
}
.tt-row:hover { border-color: var(--navy-2); }
.tt-row--urgent { border-left: 4px solid var(--rust); padding-left: 21px; }
.tt-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.tt-row__title { font-size: 19px; line-height: 1.45; }
.tt-row__title a { color: var(--ink); text-decoration: none; }
.tt-row__title a:hover { color: var(--navy-2); text-decoration: underline; }
.tt-row__summary {
  margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tt-row__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.tt-row__meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-2); font-weight: 600; text-decoration: none; }
.tt-row__meta a:hover { text-decoration: underline; }

.tt-row__metrics { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
.tt-metric dt { color: var(--ink-3); font-size: 13px; font-weight: 600; line-height: 1.4; }
.tt-metric dd { margin-top: 3px; font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.tt-metric--amount dd { font-family: var(--mono); font-size: 18px; }
.tt-count { display: block; color: var(--navy); font-family: var(--mono); font-size: 18px; line-height: 1.4; }
.tt-count.is-urgent { color: var(--rust); }
.tt-date { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.tt-row__act .tt-btn { width: 100%; }

/* ---------- 篩選、分頁 ---------- */

.tt-filter { display: grid; gap: 14px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px; }
.tt-filter__search { display: flex; gap: 8px; }
.tt-filter__search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--soft); color: var(--ink); font: inherit; font-size: 15px;
}
.tt-filter__row { display: flex; align-items: flex-start; gap: 8px 12px; }
.tt-filter__label { flex: 0 0 64px; padding-top: 5px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  color: var(--ink); font-size: 14px; text-decoration: none;
}
.tt-fchip span { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.tt-fchip:hover { border-color: var(--navy); background: var(--soft); }
.tt-fchip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-fchip.is-active span { color: #cfe0f5; }

.tt-results { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 20px 0 12px; color: var(--ink-2); font-size: 14px; }
.tt-results strong { font-family: var(--mono); color: var(--ink); }

.tt-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tt-pager ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-pager li > a,
.tt-pager li > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  color: var(--ink); font-family: var(--mono); font-size: 14px; text-decoration: none;
}
.tt-pager li > a:hover { border-color: var(--navy); background: var(--soft); }
.tt-pager li > span[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-pager li > span.gap { border-color: transparent; background: transparent; }
.tt-pager .tt-btn { min-height: 38px; padding: 0 14px; font-size: 14px; }

.tt-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px; padding: 24px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 4px; }
.tt-cta-band h2 { font-size: 20px; }
.tt-cta-band p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

/* ---------- 補助案詳情 ---------- */

.tt-dhead { padding: 20px 0 32px; background: var(--card); border-bottom: 1px solid var(--line-soft); }
.tt-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; color: var(--ink-3); font-size: 13px; }
.tt-crumb a { color: var(--ink-2); }
.tt-dhead__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.tt-dhead__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tt-dhead h1 { margin: 12px 0 10px; font-size: 32px; }
.tt-dhead .tt-lead { margin-top: 0; }

.tt-dfacts { display: grid; gap: 10px; }
.tt-fact { padding: 14px 16px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 4px; }
.tt-fact__k { display: block; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tt-fact__v { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.tt-fact__v.tt-num { font-size: 22px; }
.tt-fact__v.is-urgent { color: var(--rust); }
.tt-fact__sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.tt-fact__sub a { color: var(--navy-2); font-weight: 600; }

.tt-anchors { background: var(--card); border-bottom: 1px solid var(--line-soft); }
.tt-anchors__in { display: flex; gap: 4px; overflow-x: auto; }
.tt-anchors a {
  padding: 13px 14px; border-bottom: 2px solid transparent; white-space: nowrap;
  color: var(--ink-2); font-size: 15px; font-weight: 700; text-decoration: none;
}
.tt-anchors a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.tt-dlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 32px; align-items: start; }
.tt-dmain { display: grid; gap: 20px; }
.tt-sec { padding: 24px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px; scroll-margin-top: 16px; }
.tt-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tt-sec__no { padding: 1px 8px; border-radius: 2px; background: var(--navy); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 22px; }
.tt-sec h2 { font-size: 22px; }

.tt-check { display: grid; gap: 10px; }
.tt-check li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 2px; }
.tt-check .tt-i { width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 2px; background: var(--green); color: #fff; stroke-width: 3; }

.tt-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tt-stage { padding: 16px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 2px; }
.tt-stage__no { color: var(--green); font-size: 13px; font-weight: 700; }
.tt-stage h3 { margin: 2px 0 6px; font-size: 17px; }
.tt-stage__amt { margin-bottom: 6px; font-family: var(--mono); font-size: 20px; font-weight: 700; }
.tt-stage p { color: var(--ink-2); font-size: 15px; }

.tt-timeline li { position: relative; padding: 0 0 22px 48px; }
.tt-timeline li:last-child { padding-bottom: 0; }
.tt-timeline li::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line-soft); }
.tt-timeline li:last-child::before { display: none; }
.tt-timeline__dot {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 2px; background: var(--navy); color: #fff; font-family: var(--mono); font-size: 14px; font-weight: 700;
}
.tt-timeline h3 { padding-top: 3px; font-size: 17px; }
.tt-timeline p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

.tt-faqs { border: 1px solid var(--line-soft); border-radius: 2px; }
.tt-faqs details + details { border-top: 1px solid var(--line-soft); }
.tt-faqs summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.tt-faqs summary::-webkit-details-marker { display: none; }
.tt-faqs summary::after { content: "+"; color: var(--navy-2); font-family: var(--mono); font-size: 20px; line-height: 1.3; }
.tt-faqs details[open] summary::after { content: "−"; }
.tt-faqs p { padding: 0 16px 16px; color: var(--ink-2); }

.tt-aside { position: sticky; top: 16px; display: grid; gap: 16px; }
.tt-acard { padding: 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px; }
.tt-acard h2 { margin-bottom: 10px; font-size: 17px; }
.tt-acard p { color: var(--ink-2); font-size: 15px; }
.tt-acard .tt-btn { margin-top: 14px; }
.tt-acard__meta { margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.tt-related { display: grid; gap: 10px; }
.tt-related a { display: block; padding: 12px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 2px; color: var(--ink); text-decoration: none; }
.tt-related a:hover { border-color: var(--navy-2); }
.tt-related strong { display: block; font-size: 15px; line-height: 1.5; }
.tt-related span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.tt-detail__foot { padding-block: 24px 8px; }
.tt-disclaimer { padding: 16px 18px; background: var(--soft); border: 1px solid var(--line-soft); border-radius: 2px; color: var(--ink-2); font-size: 14px; }

/* ---------- 表單 ---------- */

.tt-form { display: grid; gap: 20px; }
.tt-form__title { font-size: 20px; }
.tt-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tt-form__grid > label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.tt-form__grid b { color: var(--rust); }
.tt-form__full { grid-column: 1 / -1; }
.tt-form input[type="text"],
.tt-form input[type="email"],
.tt-form input[type="tel"],
.tt-form select,
.tt-form textarea {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 400;
}
.tt-form textarea { resize: vertical; }
.tt-form input[readonly] { background: var(--soft); color: var(--ink-2); }
.tt-form input:focus,
.tt-form select:focus,
.tt-form textarea:focus { border-color: var(--navy-2); outline: 2px solid var(--navy-2); outline-offset: 0; }
.tt-form__precheck { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 2px; background: var(--bg); }
.tt-form__precheck summary { cursor: pointer; color: var(--navy); font-size: 14px; font-weight: 700; }
.tt-form__precheck .tt-form__grid { margin-top: 14px; }
.tt-form__status { color: var(--green); font-size: 14px; font-weight: 600; }
.tt-form__status:empty { display: none; }
.tt-form__status.is-error { color: var(--rust); }
.tt-form__note { color: var(--ink-3); font-size: 13px; }
.tt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.tt-precheck { display: grid; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.tt-q { display: grid; gap: 10px; min-width: 0; border: 0; }
.tt-q legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.tt-q__no { padding: 1px 8px; border-radius: 2px; background: var(--navy); color: #fff; font-family: var(--mono); font-size: 13px; line-height: 22px; }
.tt-q__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tt-q__opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tt-opt { position: relative; display: block; }
.tt-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tt-opt span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--soft); font-size: 15px; font-weight: 700;
}
.tt-opt input:hover + span { border-color: var(--navy); }
.tt-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-opt input:checked + span::after { content: "✓"; font-weight: 700; }
.tt-opt input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }

.tt-form-success {
  display: grid; justify-items: start; gap: 8px; padding: 24px;
  background: var(--green-bg); border: 1px solid var(--green-line); border-radius: 4px;
}
.tt-form-success h3 { font-size: 20px; }
.tt-form-success p { color: var(--ink-2); }
.tt-form-success__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; background: var(--green); color: #fff; font-weight: 700; }

/* ---------- 內文頁（關於、預約資格預檢、404） ---------- */

.tt-about,
.tt-contact { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 32px; align-items: start; }
.tt-prose h2 { margin: 28px 0 10px; font-size: 22px; }
.tt-prose h2:first-child { margin-top: 0; }
.tt-prose p,
.tt-prose li { color: var(--ink-2); }
.tt-prose ul { display: grid; gap: 6px; padding-left: 1.3em; list-style: disc; }
.tt-defs { display: grid; gap: 12px; }
.tt-defs dt { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tt-defs dd { margin-top: 2px; color: var(--ink); }
.tt-defs a { color: var(--navy-2); font-weight: 600; }
.tt-list { display: grid; gap: 8px; padding-left: 1.4em; color: var(--ink-2); list-style: decimal; }
.tt-contact__side h2 { margin-bottom: 12px; font-size: 18px; }

/* ---------- 頁尾 ---------- */

.tt-footer { margin-top: 24px; background: var(--soft); border-top: 1px solid var(--line-soft); color: var(--ink-2); font-size: 15px; }
.tt-footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.4fr 1.4fr; gap: 32px; padding-block: 36px; }
.tt-footer h3 { margin-bottom: 10px; color: var(--ink); font-size: 14px; letter-spacing: 0.04em; }
.tt-footer__col { display: grid; align-content: start; gap: 6px; font-style: normal; }
.tt-footer a { color: var(--ink-2); text-decoration: none; }
.tt-footer a:hover { color: var(--navy); text-decoration: underline; }
.tt-footer__name { color: var(--ink); font-size: 18px; }
.tt-footer__legal { padding-block: 14px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13px; }

/* ---------- 平板與手機 ---------- */

@media (max-width: 1099px) {
  .tt-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .tt-row--urgent { padding-left: 15px; }
  .tt-row__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; background: var(--soft); border-radius: 2px; }
  .tt-row__act .tt-btn { width: auto; }
}

@media (max-width: 1023px) {
  .tt-dhead__grid,
  .tt-dlayout,
  .tt-about,
  .tt-contact,
  .tt-consult { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tt-dfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-aside { position: static; }
  .tt-header__bar { flex-wrap: wrap; }
  .tt-hsearch { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
}

@media (max-width: 899px) {
  .tt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-steps3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .tt-header__bar { flex-wrap: wrap; gap: 4px 12px; padding-block: 10px 0; }
  .tt-brand { flex: 1; }
  .tt-hsearch { display: none; }
  .tt-nav { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; padding: 0 12px; border-top: 1px solid var(--line-soft); }
  .tt-nav a { padding: 11px 10px; }
  .tt-header__cta { min-height: 40px; padding: 0 14px; font-size: 14px; }

  .tt-hero { padding: 32px 0 28px; }
  .tt-hero h1 { font-size: 32px; }
  .tt-pagehead { padding: 28px 0 24px; }
  .tt-pagehead h1,
  .tt-dhead h1 { font-size: 26px; }
  .tt-lead { font-size: 16px; }
  .tt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-kpis > div:nth-child(3) { border-left: 0; }
  .tt-kpis > div:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .tt-kpis dd { font-size: 28px; }
  .tt-section { padding: 28px 0; }
  .tt-section__head h2 { font-size: 21px; }
  .tt-actions .tt-btn { flex: 1 1 100%; }
  .tt-row__act .tt-btn { width: 100%; }
  .tt-row__title { font-size: 18px; }
  .tt-filter { padding: 14px; }
  .tt-filter__row { flex-direction: column; gap: 4px; }
  .tt-filter__label { padding-top: 0; flex: none; }
  .tt-dfacts { grid-template-columns: minmax(0, 1fr); }
  .tt-sec { padding: 18px; }
  .tt-sec h2 { font-size: 20px; }
  .tt-panel { padding: 18px; }
  .tt-form__grid { grid-template-columns: minmax(0, 1fr); }
  .tt-q__opts,
  .tt-q__opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-consult h2 { font-size: 22px; }
  .tt-cta-band { padding: 18px; }
  .tt-cta-band .tt-btn { width: 100%; }
  .tt-pager { justify-content: center; }
}

@media (max-width: 559px) {
  .tt-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tt-brand__name small { display: none; }
  .tt-q__opts { grid-template-columns: minmax(0, 1fr); }
  .tt-q__opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tt-btn { transition: none; }
}

/* 純前端版：篩選時隱藏卡片 */
.tt-row[hidden]{display:none !important}
