/* =============================================================
   海略科技 Hailve Technology — 設計系統
   航海圖 / 船橋精密感：深海藍為主、羅盤青點綴、黃銅刻度
   自成一格、無框架、無 CDN、無 build
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* 色彩 */
  --ink:    #0C2A44;   /* 深海墨藍 */
  --ink-2:  #0f3355;   /* 稍亮的深藍（區塊漸層用） */
  --hull:   #14567F;   /* 船身藍 · 主品牌色 */
  --hull-2: #1c6a99;
  --teal:   #2E9DAB;   /* 羅盤青 · 點綴/連結 */
  --teal-2: #46b5c2;
  --brass:  #C08A3E;   /* 黃銅 · 唯一暖色訊號 */
  --brass-2:#d6a256;

  --paper:  #F3F6F8;   /* 海圖白 · 頁底 */
  --paper-2:#e8eef2;
  --card:   #ffffff;
  --line:   #d8e0e6;   /* 分隔線 */
  --line-soft: #e6ecf0;

  --ink-text: #16222e; /* 主文字（深） */
  --slate:  #55606b;   /* 次要文字 */
  --slate-2:#606b76;   /* 更淡（符合 WCAG AA 對比） */
  --on-dark:#eef4f7;   /* 深底上的文字 */
  --on-dark-soft: #a9c1d0;

  /* 字體 */
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC",
               "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, "Times New Roman", serif;
  --font-label: "Space Grotesk", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* 尺度 */
  --maxw: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* 陰影 */
  --shadow-sm: 0 1px 2px rgba(12,42,68,.06), 0 2px 8px rgba(12,42,68,.05);
  --shadow-md: 0 6px 24px rgba(12,42,68,.09), 0 2px 6px rgba(12,42,68,.06);
  --shadow-lg: 0 20px 50px rgba(12,42,68,.16);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink-text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--hull); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:target { scroll-margin-top: 92px; }

/* 鍵盤可見焦點 */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color:#fff; }

/* ---------- 版面容器 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: var(--paper-2); }

/* ---------- 儀表標籤 eyebrow ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--hull);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brass);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--teal-2); }

/* ---------- 標題排版 ---------- */
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.18; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.25; color: var(--ink); letter-spacing: .02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.4; color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--slate); line-height: 1.75; max-width: 62ch; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

p + p { margin-top: 1rem; }
strong { font-weight: 700; color: var(--ink); }
.section--dark strong { color: #fff; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 500; font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--hull));
  color: #fff;
  box-shadow: 0 8px 20px rgba(20,86,127,.28);
}
.btn--primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20,86,127,.36); }
.btn--ghost {
  background: transparent; color: var(--hull);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.section--dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.section--dark .btn--ghost:hover { color:#fff; border-color: var(--teal-2); }
.btn--light { background:#fff; color: var(--hull); }
.btn--light:hover { color: var(--hull); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* 文字連結箭頭 */
.arrow-link {
  font-weight: 500; display: inline-flex; align-items: center; gap: .4rem;
  color: var(--hull);
}
.arrow-link svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.section--dark .arrow-link { color: var(--teal-2); }

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,246,248,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(243,246,248,.94); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.28rem; letter-spacing: .04em; line-height: 1; }
.brand-sub { display:block; font-family: var(--font-label); font-size: .58rem; letter-spacing: .28em; color: var(--slate-2); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a.navlink {
  padding: .55rem .85rem; border-radius: 8px; color: var(--ink-text);
  font-size: .98rem; font-weight: 500; position: relative;
}
.nav a.navlink:hover { color: var(--hull); background: rgba(20,86,127,.06); }
.nav a.navlink[aria-current="page"] { color: var(--hull); }
.nav a.navlink[aria-current="page"]::after {
  content:""; position:absolute; left:.85rem; right:.85rem; bottom:.28rem; height:2px;
  background: var(--brass); border-radius: 2px;
}
/* nav 內的 CTA 僅在手機選單顯示；桌機用 header-cta 的那顆 */
.nav > .btn { display: none; }
.header-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.4px) translateX(1px); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a.navlink { padding: .85rem .6rem; font-size: 1.05rem; border-radius: 8px; }
  .nav a.navlink[aria-current="page"]::after { display: none; }
  .nav a.navlink[aria-current="page"] { background: rgba(20,86,127,.07); }
  .nav > .btn { display: flex; margin-top: .7rem; justify-content: center; }
  .header-cta .btn:not(.nav-toggle) { display: none; }
}
/* 無 JS 後援：直接顯示導覽 */
.no-js .nav { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; }
.no-js .nav-toggle { display: none; }

/* =============================================================
   Hero — 招牌區
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(46,157,171,.30), transparent 55%),
    linear-gradient(168deg, #0e3b5f 0%, var(--ink) 42%, #08213a 100%);
  background-color: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(4rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem);
}
/* 海圖格線 */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,175,200,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,175,200,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 100% at 30% 20%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.hero h1 { color: #fff; }
.hero .tagline {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem); line-height: 1.12; color: #fff;
  letter-spacing: .06em;
}
.hero .tagline .sp { display:inline-block; width: .5em; }
.hero-eyebrow { color: var(--teal-2); }
.hero .lead { color: var(--on-dark-soft); margin-top: 1.5rem; max-width: 46ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.5rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .12em; color: var(--on-dark-soft);
}
.hero-meta b { color: #fff; font-weight: 500; }
.hero-meta .tick { color: var(--brass-2); }

/* 船舵招牌圖 */
.helm-stage { position: relative; display: flex; justify-content: center; align-items: center; }
.helm-stage img { width: min(400px, 90%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.helm-ring {
  position: absolute; inset: 0; margin: auto;
  width: min(430px, 96%); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(120,175,200,.28);
}
.helm-ring::after {
  content:""; position:absolute; inset:-22px; border-radius:50%;
  border: 1px solid rgba(120,175,200,.14);
}
.helm-spin { animation: helm-rotate 90s linear infinite; }
@keyframes helm-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .helm-spin { animation: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .helm-stage { order: -1; }
  .helm-stage img { width: min(280px, 62%); }
  .helm-ring { width: min(320px, 74%); }
}

/* =============================================================
   卡片與網格
   ============================================================= */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--slate); font-size: .98rem; }

/* 服務卡的儀表徽標 */
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(46,157,171,.14), rgba(20,86,127,.12));
  color: var(--hull); border: 1px solid rgba(20,86,127,.14);
}
.card-icon svg { width: 26px; height: 26px; }
.card .card-tag {
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate-2);
}

/* 帶編號的卡（服務詳解 / 沿革） */
.card-num {
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .1em;
  color: var(--brass); font-weight: 500;
}

/* 特色列表 */
.ticks { display: grid; gap: .6rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--slate); font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(46,157,171,.16);
}
.section--dark .ticks li { color: var(--on-dark-soft); }

/* =============================================================
   服務詳解區塊（左右交錯）
   ============================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split .visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--on-dark);
}
.split .visual::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(120,175,200,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,175,200,.10) 1px, transparent 1px);
  background-size: 34px 34px;
}
.split .visual .glyph { position: relative; z-index:1; text-align:center; padding: 2rem; }
.split .visual .glyph svg { width: 76px; height: 76px; color: var(--teal-2); margin: 0 auto .9rem; }
.split .visual .glyph .k {
  font-family: var(--font-label); letter-spacing: .2em; text-transform: uppercase;
  font-size: .78rem; color: var(--on-dark-soft);
}
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .split.reverse .visual { order: -1; }
}

/* =============================================================
   biz-bear 產品區
   ============================================================= */
.product {
  background: linear-gradient(150deg, #0e3357, var(--ink));
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  color: var(--on-dark); box-shadow: var(--shadow-lg);
}
.product::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(90% 120% at 90% 0%, rgba(46,157,171,.28), transparent 60%);
}
.product-inner { position: relative; z-index:1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; padding: clamp(2rem, 4vw, 3.2rem); align-items: center; }
.product .badge {
  display:inline-flex; align-items:center; gap:.5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  padding: .35rem .8rem; border-radius: 999px; font-size: .82rem;
  font-family: var(--font-label); letter-spacing: .1em; color: #fff; margin-bottom: 1.1rem;
}
.product h2 { color: #fff; }
.product .feat { display:grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; margin: 1.5rem 0; }
.product-visual {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.6rem; text-align:center;
}
.product-visual .big { font-family: var(--font-serif); font-size: clamp(2rem,5vw,2.8rem); color:#fff; line-height:1.1; }
.product-visual .big span { color: var(--teal-2); }
@media (max-width: 820px) { .product-inner { grid-template-columns: 1fr; gap: 1.6rem; } .product .feat { grid-template-columns: 1fr; } }

/* =============================================================
   信任訊號 / 統計
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat .n { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--hull); line-height: 1; }
.section--dark .stat .n { color: var(--teal-2); }
.stat .l { font-size: .9rem; color: var(--slate); margin-top: .5rem; }
.section--dark .stat .l { color: var(--on-dark-soft); }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   CTA 帶狀
   ============================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--hull), var(--ink));
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(80% 120% at 50% -20%, rgba(46,157,171,.3), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-soft); max-width: 52ch; margin-inline: auto; margin-top: .8rem; }
.cta-band .btn-row { justify-content: center; }

/* =============================================================
   頁面頂部 banner（內頁用）
   ============================================================= */
.pagehead {
  background:
    radial-gradient(110% 120% at 90% -20%, rgba(46,157,171,.22), transparent 55%),
    linear-gradient(165deg, var(--ink-2), var(--ink));
  color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem) clamp(2.4rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.pagehead::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(120,175,200,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,175,200,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(100% 100% at 20% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 100% at 20% 0%, #000 30%, transparent 80%);
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 { color:#fff; }
.pagehead .lead { color: var(--on-dark-soft); margin-top: 1rem; }

/* 麵包屑 */
.crumbs { font-family: var(--font-label); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 1.2rem; }
.crumbs a { color: var(--on-dark-soft); }
.crumbs a:hover { color:#fff; }
.crumbs span { color: var(--teal-2); }

/* =============================================================
   內文區塊（法律頁 / 文章）
   ============================================================= */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2.6rem; margin-bottom: .8rem; scroll-margin-top: 92px; }
.prose h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.1rem; margin-top: 1.6rem; margin-bottom: .5rem; color: var(--ink); }
.prose p, .prose li { color: var(--slate); }
.prose ul { list-style: none; margin: .8rem 0; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content:""; position:absolute; left:.2rem; top:.65em; width:6px; height:6px; border-radius:50%; background: var(--teal); }
.prose ol { padding-left: 1.3rem; display: grid; gap: .55rem; color: var(--slate); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-family: var(--font-label); font-size: .8rem; letter-spacing: .06em; color: var(--slate-2); margin-bottom: 2rem; }

/* 法律頁側邊目錄 */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .92rem; }
.toc .eyebrow { margin-bottom: .8rem; }
.toc ul { display: grid; gap: .2rem; }
.toc a { display: block; padding: .4rem .6rem; border-radius: 6px; color: var(--slate); border-left: 2px solid var(--line); }
.toc a:hover { color: var(--hull); background: var(--paper-2); border-left-color: var(--teal); }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; } .toc { display:none; } }

/* =============================================================
   聯絡資訊
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ci {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; background: var(--paper-2); color: var(--hull);
  border: 1px solid var(--line-soft);
}
.contact-item .ci svg { width: 22px; height: 22px; }
.contact-item .k { font-family: var(--font-label); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); }
.contact-item .v { font-size: 1.05rem; color: var(--ink-text); font-weight: 500; }
.contact-item .v a { color: var(--ink-text); }
.contact-item .v a:hover { color: var(--teal); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 320px; background: var(--paper-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* 表單 */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-text); margin-bottom: .4rem; }
.field label .req { color: var(--brass); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  background: #fff; color: var(--ink-text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,157,171,.16); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--slate-2); margin-top: .6rem; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-top: clamp(3rem,6vw,4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .fb-head { display:flex; align-items:center; gap:.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand .fb-name { font-family: var(--font-serif); font-size: 1.35rem; color:#fff; letter-spacing:.04em; }
.footer-brand .fb-sub { font-family: var(--font-label); font-size: .6rem; letter-spacing: .26em; color: var(--on-dark-soft); text-transform: uppercase; }
.footer-brand p { font-size: .95rem; max-width: 30ch; }
.footer-col .footer-h { font-family: var(--font-label); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 1.1rem; font-weight: 500; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--on-dark); font-size: .96rem; }
.footer-col a:hover { color: var(--teal-2); }
.footer-nap { font-size: .92rem; display: grid; gap: .55rem; }
.footer-nap .row { display:flex; gap:.6rem; }
.footer-nap .row .lbl { color: var(--on-dark-soft); flex:0 0 3.2em; }
.footer-nap a { color: var(--on-dark); }
.footer-nap a:hover { color: var(--teal-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-block: 1.6rem; font-size: .85rem; color: var(--on-dark-soft);
}
.footer-bottom .legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--on-dark-soft); }
.footer-bottom a:hover { color: var(--teal-2); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } .footer-brand { grid-column: 1; } }

/* =============================================================
   雜項
   ============================================================= */
.divider-coord {
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .14em;
  color: var(--slate-2); text-transform: uppercase; display: flex; align-items: center; gap: 1rem;
}
.divider-coord::before, .divider-coord::after { content:""; height:1px; background: var(--line); flex:1; }

.notice {
  border-left: 3px solid var(--brass); background: rgba(192,138,62,.07);
  padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; font-size: .95rem; color: var(--slate);
  margin: 1.4rem 0;
}
.notice strong { color: var(--ink); }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.center { text-align: center; }
/* 預設一律顯示；僅在 JS 確認可運作時才隱藏並播進場動畫（避免區塊空白） */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
