@charset "utf-8";
/* LabTest 檢驗 — 靜態站樣式
   閱讀區 1400px；主選單容器同寬，不做滿版。
   零外部資源（系統字體、無行內樣式），可套嚴格 CSP。 */

/* ============================================================
   1. 設計權杖
   ============================================================ */
:root {
  /* 主色：專業實驗室藍 */
  --navy-900: #071d33;
  --navy-800: #0b2846;
  --navy-700: #0f3057;
  --navy-600: #17457a;
  --navy-500: #235d9f;

  /* 輔色：科技青 */
  --teal-600: #007d88;
  --teal-500: #00a8b5;
  --teal-400: #34c3cd;
  --teal-50:  #e8f7f9;

  /* 強調：認證金 */
  --gold-600: #c8801a;
  --gold-500: #f5a623;
  --gold-50:  #fdf3e0;

  /* 中性 */
  --ink:      #16212e;
  --ink-2:    #3d4c5c;
  --ink-3:    #63707e;
  --line:     #e2e8ef;
  --line-2:   #eef2f6;
  --bg:       #ffffff;
  --bg-soft:  #f6f9fc;
  --bg-deep:  #eef3f8;

  --wrap: 1400px;
  --gutter: 24px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-xs: 0 1px 2px rgba(11, 40, 70, .06);
  --shadow-sm: 0 2px 8px rgba(11, 40, 70, .07);
  --shadow-md: 0 8px 28px rgba(11, 40, 70, .10);
  --shadow-lg: 0 18px 48px rgba(11, 40, 70, .14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang TC", "Hiragino Sans TC", "Noto Sans TC",
          "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;

  --header-h: 84px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ============================================================
   2. 基礎
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* 手機版選單收在視窗右側外，用 clip 夾掉才不會產生水平捲動。
     這裡不能用 overflow:hidden —— 那會讓頁首的 position:sticky 失效。 */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

a {
  color: var(--navy-600);
  text-decoration-color: rgba(35, 93, 159, .35);
  text-underline-offset: .18em;
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
a:hover { color: var(--teal-600); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.32;
  color: var(--navy-800);
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.2rem + .95vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .48vw, 1.45rem); }
h4 { font-size: 1.14rem; }
h5 { font-size: 1.04rem; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.35em; }
li { margin-bottom: .5em; }
li::marker { color: var(--teal-500); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

strong, b { font-weight: 700; color: var(--navy-800); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--navy-700); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================
   3. 版面容器 —— 閱讀區 1400px
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 900px; margin-inline: auto; }

.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); }
.section-tight { padding-block: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }

/* ============================================================
   4. 頁首與主選單（容器同寬，不滿版）
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.16rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.02em; }
.brand-sub { font-size: .73rem; color: var(--ink-3); letter-spacing: .04em; font-weight: 500; }

.nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list > li { position: relative; margin: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .96rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: var(--teal-50); color: var(--navy-700); }
.nav-link[aria-current="page"] { color: var(--navy-700); background: var(--bg-deep); }
.nav-link .caret { width: 9px; height: 9px; flex-shrink: 0; opacity: .55; transition: transform .2s var(--ease); }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 7px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block; padding: 9px 13px; border-radius: 7px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.sub-menu a:hover { background: var(--teal-50); color: var(--navy-700); }
.sub-menu a[aria-current="page"] { background: var(--bg-deep); color: var(--navy-700); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: .86rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--teal-400); background: var(--teal-50); color: var(--navy-700); }
.lang-switch svg { width: 15px; height: 15px; opacity: .6; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 21px; height: 21px; color: var(--navy-700); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============================================================
   5. 按鈕
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 8px; border: 1.5px solid transparent;
  font-size: .97rem; font-weight: 600; line-height: 1.3;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-outline:hover { border-color: var(--teal-400); background: var(--teal-50); color: var(--navy-700); transform: translateY(-2px); }

/* ============================================================
   6. 首頁 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 12%, rgba(0, 168, 181, .22), transparent 62%),
    linear-gradient(152deg, var(--navy-800) 0%, var(--navy-700) 46%, var(--navy-900) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(1000px 560px at 72% 32%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(1000px 560px at 72% 32%, #000 12%, transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
  padding-block: clamp(3.5rem, 2.2rem + 5.5vw, 7rem);
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  color: #d9f4f7; text-transform: uppercase;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }
.hero-lead {
  font-size: clamp(1.02rem, .96rem + .3vw, 1.17rem);
  color: rgba(255, 255, 255, .84); max-width: 54ch; margin-bottom: 2.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; max-height: 520px; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.4rem;
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .17);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 7px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .84rem; font-weight: 600; color: #e6f6f8;
  white-space: nowrap;
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   7. 內頁頁首橫幅
   ============================================================ */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-900) 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/page-title-bg.webp");
  background-size: cover; background-position: center;
  opacity: .15;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 51, .1), rgba(7, 29, 51, .6));
}
.page-hero-inner {
  position: relative; z-index: 1;
  padding-block: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);
}
.page-hero h1 { color: #fff; margin-bottom: .35em; max-width: 26ch; }
.page-hero-sub { color: rgba(255, 255, 255, .8); max-width: 62ch; margin: 0; font-size: 1.04rem; }

.breadcrumb { margin-bottom: 1.1rem; font-size: .87rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; margin: 0; color: rgba(255, 255, 255, .65); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .84); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* ============================================================
   8. 內容排版
   ============================================================ */
.prose { max-width: 78ch; }
.prose > h2 {
  margin-top: 2.6em; padding-top: .2em;
  position: relative;
}
.prose > h2::before {
  content: ""; position: absolute; top: -.55em; left: 0;
  width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 2em; color: var(--navy-700); }
.prose > h4 { margin-top: 1.7em; color: var(--navy-700); }
.prose ul > li::marker { color: var(--teal-500); }
.prose ol > li::marker { color: var(--teal-600); font-weight: 600; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-block: 2rem; }
.prose figure { margin: 2rem 0; }
.prose figcaption { margin-top: .7rem; font-size: .88rem; color: var(--ink-3); text-align: center; }

.lead {
  font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-2); line-height: 1.8;
}

/* 重點清單：把長條列表變成可掃讀的卡片 */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li {
  position: relative; padding-left: 34px; margin-bottom: .85em;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-400);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: .82em;
  width: 7px; height: 4px; border-left: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(-45deg);
}

/* 編號步驟 */
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-list > li {
  position: relative; padding-left: 60px; margin-bottom: 1.6em; counter-increment: step;
}
.step-list > li::before {
  content: counter(step); position: absolute; left: 0; top: .1em;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-700); color: #fff;
  font-weight: 700; font-size: 1.02rem; line-height: 1;
}
.step-list > li > h3, .step-list > li > h4 { margin-top: .2em; margin-bottom: .35em; }

/* ============================================================
   9. 卡片與網格
   ============================================================ */
.grid { display: grid; gap: clamp(18px, 1rem + 1vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 1rem + 1.2vw, 32px);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-400); }
.card h3, .card h4 { margin-bottom: .5em; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: .96rem; }
.card > p + .card-more { margin-top: 1.1rem; }
.card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 1.1rem;
  font-size: .92rem; font-weight: 600; color: var(--navy-600); text-decoration: none;
}
.card-more svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.card-link:hover .card-more svg { transform: translateX(4px); }

.card-icon {
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--teal-50), var(--bg-deep));
  border: 1px solid var(--line);
}
.card-icon svg { width: 25px; height: 25px; color: var(--navy-700); }

/* 文章卡 */
.post-card { overflow: hidden; padding: 0; }
.post-card .post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-deep); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card .post-body { padding: clamp(20px, .9rem + 1vw, 28px); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.14rem; margin-bottom: .5em; }
.post-card h3 a { color: var(--navy-800); text-decoration: none; }
.post-card:hover h3 a { color: var(--navy-600); }
.post-card p { font-size: .93rem; color: var(--ink-2); }

/* 區段標題 */
.section-head { margin-bottom: clamp(2rem, 1.4rem + 1.6vw, 3rem); max-width: 68ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: block; margin-bottom: 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600);
}
.section-head p { color: var(--ink-2); margin-bottom: 0; font-size: 1.03rem; }

/* ============================================================
   10. 認證標章
   ============================================================ */
.accred-list { display: flex; flex-direction: column; gap: 22px; }
.accred {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 1rem + 1.2vw, 32px);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.accred-logo {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 18px; background: var(--bg-soft);
  border: 1px solid var(--line-2); border-radius: var(--radius);
}
.accred-logo img { max-height: 108px; width: auto; object-fit: contain; }
/* 原站沒有標章圖的機構，用圖示代替 */
.accred-logo > svg { width: 52px; height: 52px; color: var(--teal-500); opacity: .45; }
.accred-body > :last-child { margin-bottom: 0; }
.accred-body h3 { font-size: 1.16rem; margin-bottom: .45em; }
.accred-body .accred-role {
  display: inline-block; margin-bottom: .9em; padding: 4px 11px;
  background: var(--teal-50); border-radius: 6px;
  font-size: .82rem; font-weight: 600; color: var(--teal-600);
}
.accred-scope { columns: 2; column-gap: 34px; margin-bottom: 1.1em; }
.accred-scope li { break-inside: avoid; font-size: .94rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.1em; }
.doc-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-soft);
  font-size: .86rem; font-weight: 600; color: var(--navy-600); text-decoration: none;
}
.doc-link:hover { border-color: var(--teal-400); background: var(--teal-50); }
.doc-link svg { width: 14px; height: 14px; opacity: .7; }

/* 本頁目錄 */
.toc {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 2.6rem;
}
.toc h2 { font-size: 1.04rem; margin-bottom: .8em; }
.toc ul { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.toc li { break-inside: avoid; margin-bottom: .45em; }
.toc a { font-size: .93rem; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal-600); text-decoration: underline; }

/* ============================================================
   11. 聯絡資訊
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px; align-items: start;
}
.contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-xs);
}
.contact-item .card-icon { margin-bottom: 16px; }
.contact-item h3 { font-size: 1.04rem; margin-bottom: .4em; }
.contact-item p, .contact-item a { font-size: 1.02rem; color: var(--ink-2); margin-bottom: 0; }
.contact-item a { font-weight: 600; color: var(--navy-600); text-decoration: none; }
.contact-item a:hover { color: var(--teal-600); text-decoration: underline; }
.qr-box { text-align: center; }
.qr-box img { width: 168px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* CTA 區塊 */
.cta {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 380px at 82% 18%, rgba(0, 168, 181, .3), transparent 62%),
    linear-gradient(140deg, var(--navy-700), var(--navy-900));
  padding: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   12. 頁尾
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); margin-top: 0; }
.footer-main {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; text-decoration: none; }
.footer-brand img { width: 46px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .55); }
.site-footer p { font-size: .93rem; line-height: 1.8; }
.site-footer h2 {
  color: #fff; font-size: .88rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2em;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .62em; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .94rem; }
.footer-links a:hover { color: var(--teal-400); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: .95em; font-size: .94rem; line-height: 1.7; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--teal-400); }
.footer-contact a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-contact a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .11);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: .87rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; font-size: .87rem; }

/* ============================================================
   13. 響應式
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 540px; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: inline-flex; order: 3; }
  .header-inner { gap: 14px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 90;
    background: #fff; overflow-y: auto; padding: 20px var(--gutter) 40px;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav[data-open="true"] {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 12px; font-size: 1.02rem; border-radius: 8px; }
  .nav-link .caret { margin-left: auto; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 2px 0 8px 14px; padding: 0 0 0 10px;
    display: none;
  }
  .has-sub[data-open="true"] .sub-menu { display: block; }
  .sub-menu a { padding: 11px 12px; }
  .header-tools { margin-left: auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accred { grid-template-columns: 1fr; gap: 20px; }
  .accred-logo { max-width: 200px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.8; }
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .accred-scope, .toc ul { columns: 1; }
  .brand-sub { display: none; }
  .brand img { width: 44px; }
  .brand-name { font-size: 1.04rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .lang-switch span { display: none; }
  .lang-switch { padding: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .nav, .cta, .skip-link { display: none !important; }
  body { font-size: 12pt; }
  .page-hero { background: none !important; color: #000; }
  .page-hero h1, .page-hero-sub { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
