body {
  background-color: var(--clr-white); /* 確保 ABOUT 頁面背景為白色，與其他頁面區隔 */
}
.about-page-main {
  padding-top: 64px;
}
.about-hero {
  position: relative;
  overflow: hidden;
  height: min(52vw, 480px);
  background: var(--clr-dark-green);
}

.about-hero__img-wrap {
  width: 100%;
  height: 100%;
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 微動態：載入後輕微縮放，增加生命感 */
  animation: about-hero-ken-burns 18s ease-in-out infinite alternate;
  background-color: var(--clr-light-green); /* placeholder 底色 */
}

@keyframes about-hero-ken-burns {
  from { transform: scale(1);     transform-origin: center center; }
  to   { transform: scale(1.04);  transform-origin: 55% 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__img { animation: none; }
}

.about-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  
  transform: translateY(1px); 
  
  line-height: 0; 
  font-size: 0;
}

.about-hero__wave img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .about-hero {
    height: 70vw;
  }
}

/* ============================================================
   ABOUT-INTRO — 國家級重要濕地 h1 介紹區
   ============================================================ */
.about-intro {
  padding: 64px 0 56px;
  background: var(--clr-white);
}

.about-intro__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-intro__h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--clr-dark-green);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-intro__divider {
  border: none;
  border-top: 2px solid var(--clr-dark-green);
  margin: 0 0 28px;
}

.about-intro__body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   ABOUT-GEO + ABOUT-HISTORY — 雙欄內容區塊
   ============================================================ */
.about-content-section {
  padding: 72px 0 80px;
  background: var(--clr-bg-green);
  position: relative;
}

/* 頂部 Wave */
.about-content-section__wave-top {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 52px; overflow: hidden;
  pointer-events: none;
}
.about-content-section__wave-top svg {
  width: 100%; height: 100%;
}

/* 底部 Wave */
.about-content-section__wave-bottom {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 52px; overflow: hidden;
  pointer-events: none;
}
.about-content-section__wave-bottom svg {
  width: 100%; height: 100%;
}

.about-content-section__inner {
  display: grid;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 左側文字區（地理 + 歷史堆疊） */
.about-content-section__text-col {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 右側圖片區 */
.about-content-section__img-col {
  position: sticky;
  top: 88px; /* navbar 64px + 24px 間距 */
}

/* 圖片容器 */
.about-content-section__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(64,89,53,0.15);
  aspect-ratio: 3/4;
  background-color: var(--clr-light-green); /* placeholder 底色 */
}

.about-content-section__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 各子區塊標題 */
.about-geo__title,
.about-history__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--clr-dark-green);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-geo__divider,
.about-history__divider {
  border: none;
  border-top: 2px solid var(--clr-dark-green);
  margin: 0 0 20px;
}

.about-geo p,
.about-history p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
  max-width: 800px;
}

@media (max-width: 768px) {
  .about-content-section__inner {
    grid-template-columns: 1fr;
  }
  /* 手機：圖片移到文字上方 */
  .about-content-section__img-col {
    position: static;
    order: -1;
  }
  .about-content-section__img-wrap {
    aspect-ratio: 4/3;
  }
  .about-content-section__wave-top,
  .about-content-section__wave-bottom {
    height: 32px;
  }
}

/* ============================================================
   ABOUT-MANAGEMENT — 託管關係簡述（雙色資訊區塊）
   ============================================================ */
.about-management {
  padding: 72px 0 80px;
  background: var(--clr-white);
}

.about-management__col-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--clr-dark-green);
  font-weight: 700;
  padding-bottom: 16px;
}

/* 雙色區塊本體 */
.about-management__panels {
  display: grid;
  grid-template-columns: 1fr 3fr;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
}

.about-management__panel {
  padding: 32px 28px 36px;
  margin-right: 30px;
  margin-bottom: 60px;
  height: auto; /* 允許內容自然撐開 */
}

.about-management__panel--left {
  background: var(--clr-mid-green);
  border-radius: 16px;
}

.about-management__panel--right {
  background: var(--clr-sand);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-management__panel p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.about-management__panel--left p {
  color: var(--clr-white);
}

.about-management__panel-cta {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .about-management__panels {
    grid-template-columns: 1fr;
  }
  .about-management__panel--left {
    border-radius: 16px;
  }
  .about-management__panel--right {
    border-radius: 16px;
  }
  .about-management__col-title {
    padding-bottom: 0;
    margin-bottom: 16px;
  }
}

/* ============================================================
   ABOUT-MAP — 互動地圖連結區塊
   ============================================================ */
.about-map {
  padding: 72px 0 80px;
}

.about-map__header {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.about-map__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--clr-dark-green);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-map__divider {
  border: none;
  border-top: 2px solid var(--clr-dark-green);
  margin: 0;
}

/* 地圖容器：限制最大寬度，不可無限滿版 */
.about-map__container-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 地圖互動容器 */
.about-map__container {
  position: relative;           /* Hotspot Marker 的定位基準 */
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.about-map__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Hotspot Markers ──
   使用 % 定位，確保 RWD 縮放時座標精準
   ============================================================ */
.about-map__marker {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  pointer-events: auto;
}

.about-map__marker-pin {
  width: 24px;
  height: 24px;
  background: #d63031;
  border: 3px solid var(--clr-white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-map__marker-icon {
  width: 20px;
  height: 20px;
  border-radius: 20% 20% 20% 20%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);

}

.about-map__marker:hover .about-map__marker-pin,
.about-map__marker:focus .about-map__marker-pin {
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Marker 座標範例（百分比定位）*/
.about-map__marker--1 { left: 91%; top: 49%; } /*溫子圳出口堰*/
.about-map__marker--2 { left: 79%; top: 41%; } /*多蟹橋*/
.about-map__marker--3 { left: 81%; top: 52%; } /*圓池*/
.about-map__marker--4 { left: 49%; top: 33%; } /*教學平台*/
.about-map__marker--5 { left: 86%; top: 64%; } /*河口景觀處*/
.about-map__marker--6 { left: 76%; top: 36%; } /*北便橋*/
.about-map__marker--7 { left: 75%; top: 44%; } /*大生態池*/
.about-map__marker--8 { left: 71%; top: 43%; } /*賞燕平台*/
.about-map__marker--9 { left: 81%; top: 60%; } /*五股濕地教育中心*/
.about-map__marker--10 { left: 52%; top: 37%; } /*南便橋*/
.about-map__marker--11 { left: 57%; top: 33%; } /*北池、南池*/
.about-map__marker--12 { left: 78%; top: 59%; } /*洲後村紀念碑*/
.about-map__marker--13 { left: 69%; top: 68%; } /*堤防越堤道*/
.about-map__marker--14 { left: 66%; top: 90%; } /*蘆洲捷運站*/

@media (max-width: 768px) {
  .about-map {
    padding: 56px 0 64px;
  }
  .about-map__marker-pin {
    width: 18px;
    height: 18px;
  }
}

/* ============================================================
   ABOUT-MAP — 互動資訊框 (Modal) - 升級 Fixed 與 RWD
   ============================================================ */

/* 半透明點擊遮罩改為 fixed，覆蓋全螢幕 */
.about-map__backdrop {
  position: fixed; /* 修改點：從 absolute 改為 fixed */
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* 加深一點點讓卡片更突出 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998; /* 修改點：設定極高的層級，確保蓋過 Navbar 與 SVG 波浪 */
}

.about-map__backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* 資訊卡片本體改為 fixed，並加入最大高度限制 */
.about-map__info-card {
  position: fixed; /* 修改點：從 absolute 改為 fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 90%;
  max-width: 400px;
  max-height: 85vh; /* 修改點：高度最多只能佔螢幕的 85% */
  overflow-y: auto; /* 修改點：如果內容太多，卡片內部可以上下捲動 */
  background: #657259;
  border-radius: 24px; /* 稍微縮小圓角，避免手機上太過壓縮內容 */
  padding: 24px;
  color: var(--clr-white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999; /* 修改點：比 backdrop 更高的層級 */
}

/* 自訂一下捲軸樣式，讓它配合綠色卡片好看一點 (僅 Webkit 瀏覽器有效) */
.about-map__info-card::-webkit-scrollbar { width: 6px; }
.about-map__info-card::-webkit-scrollbar-track { background: transparent; }
.about-map__info-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px; }

.about-map__info-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* 確保 marker 具有相對定位基準 */
.about-map__marker {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  pointer-events: auto;
  /* 加上 z-index 確保 hover 時不被其他點干擾 */
  z-index: 5; 
}
.about-map__marker:hover {
  z-index: 10;
}

/* --- 新增：自訂 Tooltip 氣泡框 --- */
.about-map__marker::after {
  content: attr(data-title); /* 自動抓取 HTML 裡的 data-title 屬性值 */
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 0px); /* 初始位置 */
  
  background-color: var(--clr-text); /* 使用深綠色文字變數作為底色 */
  color: var(--clr-white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap; /* 確保文字不換行 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  pointer-events: none; /* 避免滑鼠干擾 */
  
  opacity: 0;
  transition: all 0.25s ease;
}

/* --- 新增：Tooltip 下方的小倒三角形 --- */
.about-map__marker::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 0px);
  
  border-width: 6px;
  border-style: solid;
  border-color: var(--clr-text) transparent transparent transparent;
  pointer-events: none;
  
  opacity: 0;
  transition: all 0.25s ease;
}

/* 滑鼠懸停與鍵盤選取時，顯示 Tooltip 並產生向上浮現的動畫 */
.about-map__marker:hover::after,
.about-map__marker:focus::after {
  opacity: 1;
  transform: translate(-50%, -12px); /* 向上浮動 */
}

.about-map__marker:hover::before,
.about-map__marker:focus::before {
  opacity: 1;
  transform: translate(-50%, 0px); /* 三角形貼齊浮動後的氣泡 */
}

/* ============================================================
   HISTORY ACCORDION — 歷史摺疊面板
   ============================================================ */
.history-accordion {
  border-bottom: 1px solid rgba(64, 90, 53, 0.15);
}

.history-accordion:last-of-type {
  border-bottom: none;
}

.history-accordion summary.subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-top: 0;
  margin-bottom: 0;
  padding: 20px 32px 20px 0;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  position: relative;
}

/* 隱藏 Safari / 舊版瀏覽器的原生三角箭頭 */
.history-accordion summary.subtitle::-webkit-details-marker {
  display: none;
}

/* 自訂箭頭指示符（右側 V 形） */
.history-accordion summary.subtitle::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--clr-dark-green);
  border-bottom: 2.5px solid var(--clr-dark-green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* 展開時箭頭旋轉朝上 */
.history-accordion[open] summary.subtitle::after {
  transform: translateY(-30%) rotate(-135deg);
}

/* 摺疊內文容器 */
.history-accordion__body {
  padding: 0 0 20px;
  animation: accordion-fade-in 0.3s ease;
}

.history-accordion__body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
  max-width: 800px;
}

.history-accordion__body p:last-child {
  margin-bottom: 0;
}

@keyframes accordion-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


.transport-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: #47402b;
  margin-top: 0;
  margin-bottom: 0;
  padding: 20px 32px 20px 0;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  position: relative;
}

/* 隱藏 Safari / 舊版瀏覽器的原生三角箭頭 */
.transport-subtitle::-webkit-details-marker {
  display: none;
}

/* 自訂箭頭指示符（右側 V 形） */
.transport-subtitle::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--clr-dark-green);
  border-bottom: 2.5px solid var(--clr-dark-green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* 展開時箭頭旋轉朝上 */
.transport-accordion[open] .transport-subtitle::after {
  transform: translateY(-30%) rotate(-135deg);
}

/* 摺疊內文容器 */
.transport-accordion__body {
  padding: 0 0 20px;
  animation: accordion-fade-in 0.3s ease;
}

.transport-accordion__body p {
  font-size: 1rem;
  line-height: 1.6;
  color: #47402b;
  margin-bottom: 12px;
  max-width: 800px;
}

.transport-accordion__body p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   ABOUT-MAP — 手機版資訊框 RWD 微調
   ============================================================ */

@media (max-width: 768px) {
  .about-map {
    overflow: hidden;
  }
  .about-map__container-wrap {
    position: relative;
    left: -79%;
    width: 195%;
  }
  .about-map__info-card {
    width: 92%; /* 手機版稍微加寬，利用螢幕空間 */
    max-height: 80vh; /* 避免卡片太高，頂到手機狀態列或被瀏覽器導覽列擋住 */
    padding: 12px 20px 32px; /* 增加底部的 padding，讓文字不要太貼底 */
    border-radius: 20px;
  }

  .about-map__info-title {
    font-size: 1.35rem; /* 手機版標題稍微縮小 */
  }

  .about-map__info-desc {
    font-size: 0.95rem; /* 手機版內文稍微縮小，增加易讀性 */
    line-height: 1.6;
  }
  
  /* 如果圖片佔位區不需要這麼高，可以在手機版壓扁一點 */
  .about-map__info-img-placeholder {
    aspect-ratio: 2 / 1; 
    margin-bottom: 16px;
  }
}