/* ==========================================================================
   湛址傑律師事務所 — 全站樣式（V2）
   風格：明亮、親切、務實（對齊客戶現站）。
   淺灰白底 + 純白圓角卡片 + 深藍 #1e3a5f 系 + Noto Sans TC 黑體。
   注意：全站不得引用任何外部資源；此檔只用系統／本機字型名稱。
   ========================================================================== */

:root {
  /* 色彩：深藍為主、淺灰白底、純白卡片 */
  --blue:       #1e3a5f;
  --blue-700:   #16304f;
  --blue-600:   #2a4f78;
  --blue-300:   #9db4cc;
  --blue-100:   #e6edf5;
  --blue-050:   #f2f6fa;
  --gold:       #b98a3c;

  --ink:        #1f2b38;
  --body:       #3d4a58;
  --muted:      #6b7885;
  --muted-soft: #97a2ad;

  --bg:         #f5f6f7;
  --card:       #ffffff;
  --line:       #e5e8ec;
  --line-soft:  #eef1f4;
  --line-strong:#d8dee4;

  /* 狀態色（助手結果）：清楚但不刺眼 */
  --pass:      #1f6b4a;
  --pass-bg:   #e7f3ec;
  --fail:      #a1372d;
  --fail-bg:   #fbeceb;
  --warn:      #8a6413;
  --warn-bg:   #fbf1da;
  --unavail:   #44586d;
  --unavail-bg:#eef1f5;
  --skip:      #6a7280;
  --skip-bg:   #f1f2f3;

  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui,
          -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1140px;
  --measure: 40em;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 70, 0.05);
  --shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.005em;
  color: var(--blue-700);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.05em; }

a { color: var(--blue); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--blue-600); }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(30, 58, 95, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 80;
}
.skip:focus { left: 0; top: 0; color: #fff; }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(20, 40, 70, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand__logo { display: block; height: 54px; width: auto; }

.nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.nav__link:hover { background: var(--blue-050); color: var(--blue-700); }
.nav__link.is-current { background: var(--blue-100); color: var(--blue-700); font-weight: 700; }

/* ---------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--blue-050); transform: translateY(-1px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn--pill { background: var(--blue); color: #fff; border-color: var(--blue);
             padding: 12px 24px; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.btn--pill:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--ghost { border-color: var(--line-strong); color: var(--blue); }
.btn--ghost:hover { border-color: var(--blue); }

/* ---------------------------------------------------------------- banner */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 26rem at 88% -40%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(40rem 22rem at 4% 130%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, #24466f 0%, #1e3a5f 46%, #16304f 100%);
  padding: 46px 0 44px;
}
.page-hero__title {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 12px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}
.crumbs a { color: rgba(255, 255, 255, 0.9); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs__here { color: rgba(255, 255, 255, 0.75); }
.crumbs__sep { color: rgba(255, 255, 255, 0.45); }

/* ---------------------------------------------------------------- blocks */

main { display: block; }

.section { padding: 70px 0; }
.section--tight { padding: 46px 0; }
.section--soft { background: #fff; border-top: 1px solid var(--line-soft);
                 border-bottom: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 16px;
}

.h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.34; margin-bottom: 0.5em; }
.h2 { font-size: clamp(23px, 2.8vw, 31px); margin-bottom: 0.55em; }
.h3 { font-size: 19px; margin-bottom: 0.4em; }

.lede { font-size: 17.5px; line-height: 1.95; color: var(--body); max-width: var(--measure); }
.prose { max-width: var(--measure); color: var(--body); }
.note { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

.head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
  align-items: end;
}
.head--stack { display: block; max-width: var(--measure); }

/* ------------------------------------------------------------------ hero */

.hero { padding: 70px 0 58px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* 資格摘要：白色圓角卡片 */
.credential {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 30px 24px;
}
.credential__head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  margin: 0 0 4px;
  padding-top: 6px;
}
.credential__head:first-child { padding-top: 0; }
.credential__item {
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.credential__item:first-of-type { border-top: 0; }
.credential__term {
  display: block;
  font-size: 12px;
  color: var(--muted-soft);
  margin-bottom: 2px;
}
.credential__desc { font-size: 15.5px; color: var(--blue-700); line-height: 1.65; font-weight: 500; }

/* 「兩岸雙證」圓形標記 */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.08em;
  flex: none;
}
.seal--onnavy { background: #fff; color: var(--blue-700); }

/* ------------------------------------------------------------- blue band */

.band {
  background: linear-gradient(135deg, #24466f, #16304f);
  color: #e9eef4;
  padding: 66px 0;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { background: rgba(255, 255, 255, 0.14); color: #dce7f3; }
.band .prose, .band .lede { color: #ccd8e4; }
.band__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.band__list { list-style: none; margin: 0; padding: 0; }
.band__list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid rgba(233, 238, 244, 0.18);
  color: #d9e2ec;
}
.band__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-300);
}
.band__list li:last-child { border-bottom: 1px solid rgba(233, 238, 244, 0.18); }

/* -------------------------------------------------------- services index */

.svc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.svc__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.svc__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.svc__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 15px;
}
.svc__name { font-size: 17px; font-weight: 700; color: var(--blue-700); margin: 0 0 4px; }
.svc__note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ------------------------------------------------------------ axes / tags */

.axes { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.axes li {
  font-size: 14px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}

/* ------------------------------------------------------- definition list */

.deflist { margin: 0; padding: 0; }
.deflist__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.deflist__row:last-child { border-bottom: 1px solid var(--line); }
.deflist__term { font-size: 16px; font-weight: 700; color: var(--blue-700); margin: 0; }
.deflist__desc { margin: 0; color: var(--body); }
.deflist__desc p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- step list */

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none;
         display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps__no {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.steps__title { font-size: 17px; font-weight: 700; color: var(--blue-700); margin: 0 0 4px; }
.steps__note { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------------- CTA */

.cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 38px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: flex-end; }

/* --------------------------------------------------------- article cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }

.post__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm, 8px);
  background: var(--blue-050);
}
.post__media img { width: 100%; height: 100%; object-fit: cover; display: block;
                   transition: transform 0.35s ease; }
.post:hover .post__media img { transform: scale(1.04); }

.post__title { font-size: 17px; font-weight: 700; color: var(--blue-700);
               line-height: 1.5; margin: 0; }
.post__title a { color: inherit; }
.post__title a:hover { color: var(--blue-600); }
.post__excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}
.post__cat { color: var(--blue-600); font-weight: 700; }

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.list-head__count { font-size: 14px; color: var(--muted); }

.empty-state {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------------ article page */

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 54px);
}
.article__title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; margin: 0 0 14px; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.article__cat { color: var(--blue-600); font-weight: 700; }
.article__figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-050);
  margin: 0 0 34px;
}
.article__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article__body { font-size: 16.5px; line-height: 2.05; color: var(--body); max-width: 46em; }
.article__body h2 {
  font-size: 22px;
  margin: 2em 0 0.7em;
  padding-left: 15px;
  border-left: 4px solid var(--blue);
  color: var(--blue-700);
}
.article__body h3 { font-size: 18.5px; margin: 1.6em 0 0.6em; }
.article__body p { margin: 0 0 1.15em; }
.article__body ul, .article__body ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.article__body li { margin-bottom: 0.55em; }
.article__body strong { color: var(--blue-700); }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article__body blockquote {
  margin: 1.4em 0;
  padding: 4px 20px;
  border-left: 4px solid var(--blue-100);
  color: var(--muted);
}
.article__body > p:first-child { color: var(--muted); font-size: 15px; }

.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}
.postnav a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.postnav a:hover { border-color: var(--blue-300); transform: translateY(-2px); }
.postnav__label { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; }
.postnav__title { margin-top: 5px; font-weight: 600; color: var(--blue-700); line-height: 1.55; }
.postnav__spacer { visibility: hidden; }

.backlink { margin-top: 30px; }

/* ------------------------------------------------------------- assistant */

.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: block; }
.field--wide { grid-column: 1 / -1; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  margin-bottom: 7px;
}
.field__hint { display: block; font-size: 12.5px; color: var(--muted);
               font-weight: 400; letter-spacing: 0; margin-top: 3px; }

input[type="text"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.juris { display: flex; gap: 10px; }
.juris__opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--blue-700);
}
.juris__opt:has(input:checked) { border-color: var(--blue); background: var(--blue-050); font-weight: 700; }
.juris__opt input { accent-color: var(--blue); }

.examples { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.examples__list { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 11px; }
.example {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm, 8px);
  background: var(--blue-050);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--blue-700);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.example:hover { border-color: var(--blue); transform: translateY(-1px); }
.example__hint { display: block; font-size: 11.5px; color: var(--muted); }

.disclaimer {
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue);
  background: var(--blue-050);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  margin: 26px 0 0;
}

/* 助手結果 */

.result { margin-top: 8px; }
.result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 22px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.result__title { font-size: 21px; margin: 0; }
.result__meta { font-size: 13.5px; color: var(--muted); }

.checks { list-style: none; margin: 0 0 32px; padding: 0; }
.checks__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.checks__item:last-child { border-bottom: 1px solid var(--line); }
.checks__name { font-size: 16.5px; font-weight: 700; color: var(--blue-700); }
.checks__reason { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin: 0; }

.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag--PASS        { color: var(--pass);    background: var(--pass-bg); }
.tag--FAIL        { color: var(--fail);    background: var(--fail-bg); }
.tag--WARN        { color: var(--warn);    background: var(--warn-bg); }
.tag--UNAVAILABLE { color: var(--unavail); background: var(--unavail-bg); }
.tag--SKIP        { color: var(--skip);    background: var(--skip-bg); }
.tag--UNKNOWN     { color: var(--unavail); background: var(--unavail-bg); }

.block { margin-bottom: 30px; }
.block__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.quote {
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  white-space: pre-wrap;
  margin: 0;
}

.evidence { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.evidence th, .evidence td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.evidence th { width: 200px; font-weight: 700; color: var(--blue-700); white-space: nowrap; }
.evidence td { font-family: var(--mono); font-size: 12.8px; color: var(--body); word-break: break-all; }

.temporal {
  border: 1px solid var(--line);
  background: var(--blue-050);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.error {
  border: 1px solid #e6c4c0;
  border-left: 4px solid var(--fail);
  background: var(--fail-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  color: #7a2b23;
  font-size: 14.5px;
}
.error__code { display: block; margin-top: 6px; font-family: var(--mono);
               font-size: 12.5px; color: #98453c; }

/* ---------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
}
.panel__title { font-size: 17px; font-weight: 700; color: var(--blue-700); margin: 0 0 6px; }
.panel + .panel { margin-top: 24px; }

.contact-rows { margin: 0; padding: 0; }
.contact-rows__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}
.contact-rows__term { font-size: 13px; color: var(--muted); }
.contact-rows__desc { margin: 0; font-size: 15.5px; color: var(--blue-700); font-weight: 500; }

.price { list-style: none; margin: 0; padding: 0; }
.price__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.price__who { font-size: 14.5px; color: var(--body); }
.price__amount { font-size: 19px; font-weight: 700; color: var(--blue); }
.price__unit { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------- confirm */

.confirm {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pass);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  max-width: 44em;
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: 56px;
  background: var(--blue-700);
  color: #c3d0dd;
  padding: 56px 0 30px;
  font-size: 13.5px;
}
.footer a { color: #dbe4ee; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(219, 228, 238, 0.16);
}
.footer__brand { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.footer__h { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
             color: #9db4cc; margin: 0 0 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #9fb0c1;
}
.footer__disclaimer { max-width: 62em; line-height: 1.85; }

/* ---------------------------------------------------------------- motion */
/* 剋制：淡入與微位移。刻意不用 animation-fill-mode 與延遲，
   確保列印、截圖或動畫未執行時內容一律可見。 */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media print {
  .rise { animation: none; opacity: 1; transform: none; }
  .site-header { position: static; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .hero__grid, .band__grid, .head, .cta, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .card-grid, .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 50px 0 44px; }
  .band { padding: 52px 0; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .site-header__inner { gap: 10px; min-height: 0; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .brand__logo { height: 44px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 2px; }
  .nav__link { padding: 7px 11px; font-size: 14px; }
  .btn--pill { margin-left: auto; padding: 10px 18px; font-size: 14px; }
  .card-grid, .svc { grid-template-columns: 1fr; }
  .tool__grid { grid-template-columns: 1fr; }
  .deflist__row { grid-template-columns: 1fr; gap: 8px; }
  .postnav { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .evidence th { width: 128px; }
  .contact-rows__row { grid-template-columns: 1fr; gap: 4px; }
  .tool, .panel, .cta, .credential { padding: 22px 20px; }
  .article { padding: 22px 18px; }
}
