/* =============================================
   台灣主街品牌計畫 2026 - 主樣式表
   ============================================= */

/* ── CSS 變數 ── */
:root {
  /* 區域色彩 */
  --color-north: #E8734A;
  --color-north-light: #F5A78A;
  --color-north-bg: #FFF3EE;

  --color-central: #4CAF7A;
  --color-central-light: #82C9A0;
  --color-central-bg: #EEF8F2;

  --color-south: #5B8BE0;
  --color-south-light: #8EB0ED;
  --color-south-bg: #EEF2FC;

  --color-east: #8B7BAB;
  --color-east-light: #B4A8CA;
  --color-east-bg: #F3F0F8;

  --color-islands: #E0AD5B;
  --color-islands-light: #EDCA8E;
  --color-islands-bg: #FDF6E8;

  /* 文字色 */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #9090A8;

  /* 背景 */
  --bg-primary: #FAFAF8;
  --bg-white: #FFFFFF;
  --bg-section: #F4F2EE;

  /* 邊框 */
  --border-light: #E8E6E0;
  --border-medium: #D0CCCC;

  /* 字體 */
  --font-serif: 'Noto Serif TC', serif;
  --font-sans: 'Noto Sans TC', sans-serif;

  /* 間距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* 圓角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* 陰影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.15);

  /* 動畫 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── 網站頂部 Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-north);
  background: var(--color-north-bg);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-north);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.header-nav a:hover {
  color: var(--text-primary);
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--bg-section);
}

/* ── Hero Section ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #FFF8F4 0%, #F8F6FF 50%, #F0F8F4 100%);
  padding: 100px var(--space-xl) var(--space-3xl);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-north);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--color-north);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--color-north-bg);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--text-primary);
  color: white;
  padding: var(--space-md) var(--space-2xl);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  background: var(--color-north);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-cta i {
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* 裝飾圓圈 */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.deco-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-north), transparent);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.deco-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-central), transparent);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.deco-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--color-south), transparent);
  top: 30%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

/* ── 主地圖區 ── */
.map-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-white);
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  /*grid-template-columns: 460px 1fr;*/
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
  min-height: calc(100vh - 80px);
}

/* ── 左側地圖面板 ── */
.map-panel {
  position: sticky;
  top: 88px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.map-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.map-header h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.map-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 地圖圖像包裝 */
.map-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: linear-gradient(135deg, #F8F5F0, #F0F5F8);
  padding: var(--space-md);
}

.taiwan-map-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.1));
}

/* 地圖覆蓋熱區 */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* 熱區按鈕 */
.region-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
  transition: transform var(--transition-fast);
}

.region-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.region-hotspot.active .hotspot-pulse {
  transform: scale(1.3);
}

/* 熱區點位置 */
.region-hotspot.north  { top: 18%; left: 52%; }
.region-hotspot.central { top: 44%; left: 42%; }
.region-hotspot.south  { top: 68%; left: 40%; }
.region-hotspot.east   { top: 50%; left: 72%; }
.region-hotspot.islands { top: 62%; left: 10%; }

.hotspot-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  transition: all var(--transition-normal);
}

.hotspot-pulse::before,
.hotspot-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.hotspot-pulse::after {
  animation-delay: 0.5s;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* 各區域熱區色彩 */
.north .hotspot-pulse { background: var(--color-north); box-shadow: 0 0 0 3px var(--color-north-light); }
.north .hotspot-pulse::before, .north .hotspot-pulse::after { background: var(--color-north); }

.central .hotspot-pulse { background: var(--color-central); box-shadow: 0 0 0 3px var(--color-central-light); }
.central .hotspot-pulse::before, .central .hotspot-pulse::after { background: var(--color-central); }

.south .hotspot-pulse { background: var(--color-south); box-shadow: 0 0 0 3px var(--color-south-light); }
.south .hotspot-pulse::before, .south .hotspot-pulse::after { background: var(--color-south); }

.east .hotspot-pulse { background: var(--color-east); box-shadow: 0 0 0 3px var(--color-east-light); }
.east .hotspot-pulse::before, .east .hotspot-pulse::after { background: var(--color-east); }

.islands .hotspot-pulse { background: var(--color-islands); box-shadow: 0 0 0 3px var(--color-islands-light); }
.islands .hotspot-pulse::before, .islands .hotspot-pulse::after { background: var(--color-islands); }

.hotspot-label {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* 地圖圖例 */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
}

.legend-item:hover,
.legend-item.active {
  border-color: currentColor;
  background: rgba(0,0,0,0.03);
}

.legend-item.active { font-weight: 700; }

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.north-dot { background: var(--color-north); }
.central-dot { background: var(--color-central); }
.south-dot { background: var(--color-south); }
.east-dot { background: var(--color-east); }
.islands-dot { background: var(--color-islands); }

/* ── 右側街區面板 ── */
.districts-panel {
  width: 100%;
  padding: var(--space-lg) 0;
}

.districts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.districts-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.district-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

#districtCountNum {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-north);
}

/* 搜尋欄 */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-section);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--color-north);
  box-shadow: 0 0 0 3px rgba(232, 115, 74, 0.12);
  background: var(--bg-white);
}

.search-bar i {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* 區域分頁標籤 */
.region-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.region-tab {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border-medium);
  color: var(--text-secondary);
  background: var(--bg-white);
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.region-tab:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.region-tab.active {
  border-color: transparent;
  color: white;
  background: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.region-tab[data-region="north"].active { background: var(--color-north); }
.region-tab[data-region="central"].active { background: var(--color-central); }
.region-tab[data-region="south"].active { background: var(--color-south); }
.region-tab[data-region="east"].active { background: var(--color-east); }
.region-tab[data-region="islands"].active { background: var(--color-islands); }

/* ── 街區分組 ── */
.districts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.region-group {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.region-group:hover {
  box-shadow: var(--shadow-md);
}

.region-group[data-region="north"] { border-left: 4px solid var(--color-north); }
.region-group[data-region="central"] { border-left: 4px solid var(--color-central); }
.region-group[data-region="south"] { border-left: 4px solid var(--color-south); }
.region-group[data-region="east"] { border-left: 4px solid var(--color-east); }
.region-group[data-region="islands"] { border-left: 4px solid var(--color-islands); }

/* 分組標頭 */
.region-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.region-group-header:hover {
  background: var(--bg-section);
}

.region-group-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.region-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  color: white;
  white-space: nowrap;
}

.north-badge { background: var(--color-north); }
.central-badge { background: var(--color-central); }
.south-badge { background: var(--color-south); }
.east-badge { background: var(--color-east); }
.islands-badge { background: var(--color-islands); }

.region-counties {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.region-group-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.region-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.toggle-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition-normal);
}

.region-group-header.open .toggle-icon {
  transform: rotate(180deg);
}

/* 分組內容 */
.region-group-content {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  gap: var(--space-md);
  flex-direction: column;
}

.region-group-content.open {
  display: flex;
}

/* ── 街區卡片 ── */
.district-card {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-white);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.district-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.district-card[data-region="north"]:hover { border-color: var(--color-north-light); }
.district-card[data-region="central"]:hover { border-color: var(--color-central-light); }
.district-card[data-region="south"]:hover { border-color: var(--color-south-light); }
.district-card[data-region="east"]:hover { border-color: var(--color-east-light); }
.district-card[data-region="islands"]:hover { border-color: var(--color-islands-light); }

.district-card-inner {
  padding: var(--space-lg);
}

.district-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: var(--space-sm);
}

.district-location i {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.district-location span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.district-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.district-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.district-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.tag {
  font-size: 1rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-section);
  color: var(--text-secondary);
  font-weight: 500;
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.district-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-medium);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.district-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--bg-section);
}

/* 空白區域提示 */
.empty-region {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-muted);
}

.empty-region i {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
  opacity: 0.4;
}

.empty-region p {
  font-size: 0.9rem;
}

/* 無搜尋結果 */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--text-muted);
}

.no-results i {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
  opacity: 0.3;
}

.no-results p {
  font-size: 1rem;
}

/* 隱藏的卡片/分組 */
.district-card.hidden,
.region-group.hidden {
  display: none;
}

/* ── 關於計畫區 ── */
.about-section {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-section);
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-3xl);
  align-items: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-central);
  margin-bottom: var(--space-md);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-north);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-map-preview {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #FFF8F4, #F0F5F8);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.about-map-preview img {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.15));
}



/* ── 回到頂部按鈕 ── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--text-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-north);
  transform: translateY(-2px);
}

/* ── 高亮動畫 (地圖點擊) ── */
@keyframes highlightCard {
  0% { box-shadow: 0 0 0 0 rgba(232, 115, 74, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(232, 115, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 115, 74, 0); }
}

.region-group.highlighted {
  animation: highlightCard 0.8s ease;
}

/* ── 響應式設計 ── */
@media (max-width: 1100px) {
  .map-container {
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-visual {
    order: -1;
  }

  .about-map-preview img {
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .map-container {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
    max-width: 440px;
    margin: 0 auto;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-section {
    padding: 100px var(--space-lg) var(--space-2xl);
  }

  .about-section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
  }

  .header-inner {
    padding: 0 var(--space-lg);
    height: 58px;
  }

  .logo-main {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .map-container {
    padding: 0 var(--space-lg);
  }

  .region-tabs {
    gap: 6px;
  }

  .region-tab {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  .region-group-header {
    padding: var(--space-md) var(--space-lg);
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 2rem;
  }

  .back-to-top {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
  }
}

/* ── 可及性：減少動畫 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
