/* ============================================================
   騏翔社福協會 官方網站  site-v4
   設計概念：「一條陪你走的路」
   —— 以虛線路徑與站點節點串起 認識 → 服務 → 足跡 → 可查證 → 下一步，
   黑體記錄專業事實，楷體是路上的手寫批註，照片作相紙印樣。
   ============================================================ */

/* ---------- 基礎變數 ---------- */
:root {
  --cream: #faf6ee;        /* 全站底色：暖米白 */
  --cream-2: #f2ecdc;      /* 頁尾 */
  --ink: #1d3138;          /* 主要文字 */
  --ink-soft: #43585f;     /* 次要文字 */
  --teal: #0e6672;         /* 品牌青 - 文字安全 */
  --teal-deep: #0a4f5a;
  --teal-line: #93c6cb;    /* 虛線路徑（裝飾） */
  --band-teal: #e7f2f1;    /* 服務區底 */
  --coral-text: #b8395a;   /* 品牌粉 - 文字安全 */
  --coral-bright: #ef7d95; /* 品牌粉 - 裝飾 */
  --coral-band: #fbecef;   /* 得獎帶底 */
  --dark: #113f49;         /* 登記區底 */
  --on-dark: #f0f8f7;
  --on-dark-soft: #b7d6d8;
  --wenkai: "LXGW WenKai TC", "Noto Sans TC", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  /* 手帳紙：米白底鋪散落的單色手繪圖案（浮水印感） */
  background-color: var(--cream);
  background-image: url("assets/bg-doodle.webp");
  background-size: 560px auto;
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 760px) {
  body { background-size: 430px auto; }
}

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

::selection { background: #f9cdd9; color: var(--ink); }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.wenkai { font-family: var(--wenkai); }

a { color: var(--teal); }

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

/* ---------- 跳轉連結 ---------- */
.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top .15s;
}
.skip:focus { top: 0; }

/* ---------- 頁首 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(29, 49, 56, .14);
}
/* 雙色細帶：呼應 logo 的青與粉；支援 scroll-driven 的瀏覽器升級為閱讀進度條 */
.site-head::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0 55%, var(--coral-bright) 55% 100%);
}
@supports (animation-timeline: scroll()) {
  .site-head::before { background: rgba(147, 198, 203, .32); }
  .site-head::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--coral-bright));
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: read-progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}
@keyframes read-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.head-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { border-radius: 8px; }
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .03em;
  margin-top: 3px;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  border-radius: 6px;
  transition: color .15s;
}
.site-nav a:hover { color: var(--coral-text); }
.head-tel {
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  transition: color .15s;
}
.head-tel:hover { color: var(--coral-text); }
.head-tel .wenkai {
  font-size: .85rem;
  font-weight: 400;
  margin-right: 7px;
  color: var(--ink-soft);
}
.lang {
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--teal);
  color: var(--teal);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.lang:hover { background: rgba(14, 102, 114, .09); }

@media (max-width: 999px) {
  .head-in { gap: 8px 16px; }
  .site-nav {
    order: 3;
    margin-left: 0;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; width: max-content; }
  .site-nav a { padding: 6px 8px; font-size: .9rem; white-space: nowrap; }
  .head-tel { margin-left: auto; }
}
@media (max-width: 719px) {
  .head-tel { display: none; }
  .brand-name small { display: none; }
  .lang { margin-left: auto; }
}

/* 英文版導覽：字距較長，提早換到獨立列避免擠壓斷行 */
html[lang="en"] .site-nav a { padding: 8px 9px; }
@media (max-width: 1099px) and (min-width: 1000px) {
  html[lang="en"] .head-in { gap: 8px 16px; }
  html[lang="en"] .site-nav {
    order: 3;
    margin-left: 0;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 2px;
  }
  html[lang="en"] .site-nav::-webkit-scrollbar { display: none; }
  html[lang="en"] .site-nav ul { flex-wrap: nowrap; width: max-content; }
  html[lang="en"] .head-tel { margin-left: auto; }
}

/* ---------- 站牌（各區共用的路徑節點） ---------- */
.station {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-size: 1.08rem;
  color: var(--teal);
  letter-spacing: .14em;
}
.station .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral-bright);
  flex: none;
}

/* ---------- 開場 ---------- */
.hero { padding: clamp(44px, 7vw, 88px) 0 0; }
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr .95fr; }
}
.kicker {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 1.04rem;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 0 0 24px;
  font-weight: 900;
  font-size: clamp(1.75rem, 1rem + 2.9vw, 3rem);
  line-height: 1.32;
  letter-spacing: .01em;
}
/* 手繪波浪底線：呼應活動現場的手繪橫幅 */
.markline {
  font-style: normal;
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 20 2, 42 11, 62 6 S 102 3, 118 8' fill='none' stroke='%23ef7d95' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / 100% .38em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead {
  margin: 0;
  max-width: 30em;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem);
  line-height: 2.05;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 按鈕：手繪感的不規則圓角，像手帳裡框出來的行動 */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 235px 20px 225px 22px / 22px 225px 20px 235px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .15s, color .15s, transform .2s, box-shadow .2s, border-radius .2s;
}
.btn:hover { border-radius: 22px 215px 20px 235px / 235px 22px 215px 20px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14, 102, 114, .16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.btn-line {
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn-line:hover { background: rgba(14, 102, 114, .09); }

/* 相紙印樣：白框 + 手寫圖說 */
.print {
  margin: 0;
  position: relative;
  background: #fff;
  padding: 12px 12px 10px;
  border-radius: 5px;
  box-shadow: 0 14px 34px rgba(17, 49, 56, .13), 0 3px 8px rgba(17, 49, 56, .08);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}
/* 紙膠帶：把相紙貼在手帳上 */
.print::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 94px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(147, 198, 203, .82);
  z-index: 1;
}
.trail-item:nth-child(even) .print::before {
  transform: translateX(-50%) rotate(2.5deg);
  background: rgba(239, 125, 149, .78);
}
.print:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 20px 44px rgba(17, 49, 56, .17), 0 5px 12px rgba(17, 49, 56, .1);
}
.print img { border-radius: 2px; width: 100%; }
.print figcaption {
  padding-top: 10px;
  font-size: .93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-photo { transform: rotate(.8deg); }

/* 路徑起點：一小段虛線往下走 */
.path-start {
  width: 2px;
  height: clamp(56px, 8vw, 92px);
  margin: 26px 0 0 5px;
  background: repeating-linear-gradient(to bottom, var(--teal-line) 0 7px, transparent 7px 15px);
}

/* 虛線路徑緩慢向前流動：路陪著走（可視範圍外由 script 暫停） */
@media (prefers-reduced-motion: no-preference) {
  @keyframes path-flow {
    to { background-position: 0 15px; }
  }
  .path-start { animation: path-flow 1.4s linear infinite; }
  .trail::before {
    animation: path-flow 1.4s linear infinite;
    animation-play-state: paused;
  }
  .trail.in-view::before { animation-play-state: running; }
}

/* 開場入場動畫 */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes rise-photo {
    from { opacity: 0; transform: rotate(.8deg) translateY(16px); }
    to   { opacity: 1; transform: rotate(.8deg); }
  }
  .hero-copy > * { animation: rise .55s cubic-bezier(.16, 1, .3, 1) backwards; }
  .hero-copy > *:nth-child(2) { animation-delay: .07s; }
  .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .hero-copy > *:nth-child(4) { animation-delay: .21s; }
  .hero-photo { animation: rise-photo .6s .16s cubic-bezier(.16, 1, .3, 1) backwards; }
}

/* ---------- 浮水印：印章與貼紙素材（multiply 融入紙面） ---------- */
.about .wrap,
.service .wrap,
.footprints .wrap,
.contact .wrap {
  position: relative;
}
.wm {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
}
.wm-about {
  width: 150px;
  top: -10px;
  right: clamp(20px, 4vw, 32px);
  opacity: .3;
  transform: rotate(10deg);
}
.wm-service {
  width: 175px;
  top: -48px;
  right: clamp(20px, 4vw, 32px);
  opacity: .26;
  transform: rotate(5deg);
}
.wm-fp {
  width: 225px;
  top: -24px;
  right: 4%;
  opacity: .34;
  transform: rotate(7deg);
}
.wm-contact {
  width: 180px;
  bottom: -44px;
  right: 6px;
  opacity: .28;
  transform: rotate(-6deg);
}
@media (max-width: 760px) {
  .wm { display: none; }
}

/* ---------- 宜蘭風景帶（在地的明信片） ---------- */
.scene {
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 2px dashed rgba(147, 198, 203, .55);
  border-bottom: 2px dashed rgba(147, 198, 203, .55);
}
.scene img {
  width: 100%;
  height: clamp(150px, 24vw, 260px);
  object-fit: cover;
  object-position: center 62%;
  display: block;
}

/* ---------- 認識協會 ---------- */
.about { padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 10vw, 128px); }
.about-grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 7fr 5fr; }
}
.about h2,
.footprints h2,
.registry h2 {
  margin: 0 0 20px;
  font-weight: 900;
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.15rem);
  line-height: 1.45;
  letter-spacing: .01em;
}
.about .lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 2.1;
}
.mission {
  margin-top: 40px;
  background: #fff;
  border-top: 2px dashed var(--coral-bright);
  border-radius: 10px;
  padding: 26px 30px 28px;
  box-shadow: 0 8px 26px rgba(17, 49, 56, .07);
}
.mission-label {
  margin: 0;
  color: var(--teal);
  font-size: 1.05rem;
  letter-spacing: .12em;
}
.mission-label span {
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .08em;
  margin-left: 12px;
}
.mission-text {
  margin: 10px 0 0;
  line-height: 2.15;
  font-size: 1.03rem;
}
.hl {
  font-weight: 700;
  background: linear-gradient(transparent 64%, #fbd8e1 64%);
  padding: 0 1px;
}
.pull {
  margin: 0;
  padding: 0;
  align-self: center;
}
@media (max-width: 959px) {
  .pull { margin-top: 22px; }
}
.pull p {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.95;
  color: var(--teal-deep);
}

/* ---------- 目前承辦服務 ---------- */
.service {
  background-color: var(--band-teal);
  background-image: radial-gradient(rgba(14, 102, 114, .14) 1.1px, transparent 1.5px);
  background-size: 24px 24px;
  padding: clamp(72px, 9vw, 112px) 0;
}
.service-head {
  display: grid;
  gap: 20px 72px;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 58px);
}
@media (min-width: 960px) {
  .service-head { grid-template-columns: 1.05fr 1fr; }
}
.service h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.05rem);
  line-height: 1.5;
}
.service .year {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--coral-text);
  letter-spacing: .16em;
  margin-bottom: 10px;
}
.service-head > div > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 2.05;
  max-width: 30em;
}
.service-head .btn { margin-top: 22px; }

/* 服務四格：插畫卡（相紙感） */
.step-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(22px, 3.5vw, 38px);
}
@media (min-width: 720px) {
  .step-cards { grid-template-columns: 1fr 1fr; }
}
.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 24px;
  box-shadow: 0 14px 34px rgba(17, 49, 56, .12), 0 3px 8px rgba(17, 49, 56, .07);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}
@media (min-width: 720px) {
  .step-card:nth-child(odd) { transform: rotate(-.5deg); }
  .step-card:nth-child(even) { transform: rotate(.5deg); }
  .step-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 22px 46px rgba(17, 49, 56, .16), 0 5px 12px rgba(17, 49, 56, .09);
  }
}
.step-art {
  margin: 0;
  position: relative;
}
.step-art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.step-no {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.22rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85);
}
.step-card h3 {
  margin: 18px 8px 7px;
  font-size: 1.18rem;
  font-weight: 800;
}
.step-card > p {
  margin: 0 8px;
  font-size: .98rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ---------- 活動紀錄 ---------- */
.footprints { padding: clamp(80px, 10vw, 128px) 0 clamp(72px, 9vw, 104px); }
.fp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-bottom: 20px;
}
.fp-head h2 { margin: 0; }
.trail { position: relative; }
.trail-item {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 88px);
  padding-block: clamp(28px, 4vw, 44px);
}
@media (min-width: 1000px) {
  .trail::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--teal-line) 0 7px, transparent 7px 15px);
  }
  .trail-item { grid-template-columns: 1fr 1fr; align-items: center; }
  .trail-item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--coral-bright);
    box-shadow: 0 0 0 5px var(--cream);
  }
  .trail-item:nth-child(even) .print { grid-column: 2; grid-row: 1; }
  .trail-item:nth-child(even) .trail-text { grid-column: 1; grid-row: 1; }
}
@media (max-width: 999px) {
  .trail-item + .trail-item {
    border-top: 2px dashed rgba(147, 198, 203, .55);
  }
}
@media (min-width: 640px) {
  .trail-item:nth-child(odd) .print { transform: rotate(-.7deg); }
  .trail-item:nth-child(even) .print { transform: rotate(.7deg); }
}
.trail-date {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral-text);
  letter-spacing: .05em;
}
.trail-text h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.5;
}
.trail-text > p:not(.trail-date) {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 2.05;
  max-width: 27em;
}
.src {
  color: var(--coral-text);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(184, 57, 90, .45);
  transition: color .15s, text-decoration-color .15s;
}
.src:hover { color: #96284a; text-decoration-color: currentColor; }

/* ---------- 媒體報導 ---------- */
.award {
  background-color: var(--coral-band);
  background-image: radial-gradient(rgba(184, 57, 90, .12) 1.1px, transparent 1.5px);
  background-size: 24px 24px;
  border-top: 2px dashed rgba(239, 125, 149, .5);
  border-bottom: 2px dashed rgba(239, 125, 149, .5);
  padding: 34px 0;
}
.award-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
}
.award-station { margin: 0; color: var(--coral-text); }
.award-station .dot { background: var(--coral-text); }
.award-title {
  margin: 0;
  flex: 1 1 320px;
  font-size: clamp(1.06rem, 1rem + .7vw, 1.34rem);
  font-weight: 800;
  color: #7c2038;
  line-height: 1.6;
}

/* ---------- 法人登記公開資料 ---------- */
.registry {
  background-color: var(--dark);
  background-image: radial-gradient(rgba(240, 248, 247, .1) 1.1px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--on-dark);
  padding: clamp(76px, 9vw, 112px) 0;
}
.registry h2 { color: #fff; margin-bottom: 0; }
.facts {
  margin: 46px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 34px 44px;
}
.fact {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 16px;
}
.fact dt {
  font-family: var(--wenkai);
  font-size: .96rem;
  color: #8fccd1;
  letter-spacing: .1em;
}
.fact dd {
  margin: 8px 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.75;
}
.fact .num { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.fact dd a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, .35);
  transition: text-decoration-color .15s;
}
.fact dd a:hover { text-decoration-color: var(--coral-bright); }
.sources {
  margin-top: 58px;
  padding-top: 26px;
  border-top: 2px dashed rgba(147, 198, 203, .35);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 36px;
}
.sources-label {
  margin: 0;
  color: #8fccd1;
  letter-spacing: .12em;
  font-size: .98rem;
}
.sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
}
.sources a {
  color: #d5eaeb;
  font-size: .96rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(213, 234, 235, .35);
  transition: color .15s, text-decoration-color .15s;
}
.sources a:hover { color: #fff; text-decoration-color: var(--coral-bright); }
.registry :focus-visible { outline-color: #ffd7e0; }

/* ---------- 聯絡 ---------- */
.contact { padding: clamp(84px, 11vw, 136px) 0 clamp(80px, 10vw, 120px); }
.contact-grid {
  display: grid;
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 5fr 6fr; }
}
.contact h2 {
  margin: 0 0 16px;
  font-weight: 900;
  font-size: clamp(1.42rem, 1.05rem + 1.5vw, 1.95rem);
  line-height: 1.6;
}
.contact-copy > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 2.05;
  max-width: 25em;
}
.c-row {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 25px 2px;
  border-bottom: 2px dashed #c9dcd9;
}
.c-row:first-child { border-top: 2px dashed #c9dcd9; }
.c-label {
  flex: 0 0 88px;
  color: var(--teal);
  font-size: 1.04rem;
  letter-spacing: .08em;
}
.c-row a {
  text-decoration: none;
  transition: color .15s;
  overflow-wrap: anywhere;
}
.c-tel {
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.35rem);
  font-weight: 900;
  color: var(--teal-deep);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.c-mail { font-size: clamp(1.12rem, 1rem + .6vw, 1.3rem); font-weight: 700; color: var(--ink); }
.c-fb { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.c-row a:hover { color: var(--coral-text); }

/* ---------- 頁尾 ---------- */
.site-foot {
  background-color: var(--cream-2);
  background-image: radial-gradient(rgba(14, 102, 114, .11) 1.1px, transparent 1.5px);
  background-size: 24px 24px;
  border-top: 2px dashed var(--teal-line);
  padding: 42px 0 50px;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 26px 40px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.foot-brand img { border-radius: 8px; }
.foot-brand p {
  margin: 0;
  font-weight: 800;
  font-size: .99rem;
  line-height: 1.5;
}
.foot-en {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ink-soft);
  margin-top: 4px;
}
.foot-note {
  font-size: .87rem;
  color: var(--ink-soft);
  line-height: 1.95;
  text-align: right;
}
.foot-note p { margin: 0; }
@media (max-width: 700px) {
  .foot-note { text-align: left; }
}

/* ---------- 動態偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  /* 進度條退回靜態雙色帶 */
  .site-head::before { background: linear-gradient(90deg, var(--teal) 0 55%, var(--coral-bright) 55% 100%); }
  .site-head::after { display: none; }
}
