:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.04);
  --card: #0b122d;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #f97316;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --glass: blur(14px);
}

[data-theme='light'] {
  --bg: #f8fafc;
  --bg-soft: #e2e8f0;
  --panel: #ffffff;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --accent-2: #f97316;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --glass: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 80px;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.elevated {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
}

.site-nav {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 1200;
  backdrop-filter: blur(14px);
}

.site-nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  min-height: 40px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.18);
}

.pill.is-primary {
  background: linear-gradient(120deg, var(--accent), #14b8a6);
  color: #0b122d;
  font-weight: 700;
  border: none;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
}

.toggle input {
  display: none;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.switch::after {
  content: '';
  position: absolute;
  inset: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #cbd5f5);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

[data-theme='light'] .switch {
  background: #dbeafe;
}

[data-theme='light'] .switch::after {
  transform: translateX(18px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
}

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.hero .summary {
  padding: 28px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(14, 165, 233, 0.12)), var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero .summary .badge {
  display: inline-block;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
}
.hero h1 + .tagline {
  margin-top: 4px;
}
.hero .summary {
  padding-top: 30px;
  padding-bottom: 26px;
}

.tagline {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.badge {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: #0ea5e9;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 600;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero .map-card,
.map-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.map-shell header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row select,
.filter-row button {
  appearance: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.filter-row button {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b122d;
}

#map {
  width: 100%;
  height: clamp(320px, 40vw, 520px);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
}

.section {
  margin-top: 28px;
}

.section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section small {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq article {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.faq-question {
  margin: 0 0 6px;
  font-weight: 700;
}

.list {
  display: grid;
  gap: 8px;
}

.list .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.ad-slot {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}
.ad-slot ins {
  display: block !important;
  width: 100% !important;
  min-height: 90px;
}
.site-nav ins.adsbygoogle {
  display: none !important;
}
.site-nav .adsbygoogle,
.site-nav ins,
.site-nav [id^="google_ads"],
.site-nav iframe {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  min-height: 0 !important;
}
/* 防止自動廣告塞入導航或頁首 */
body > ins.adsbygoogle,
body > iframe[id^="google_ads_iframe"] {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  min-height: 0 !important;
}

.ad-banner {
  max-width: 970px;
  margin: 12px auto 8px;
  padding: 0 12px;
  min-height: 90px;
}
.ad-banner ins {
  display: block !important;
  width: 100% !important;
  min-height: 90px;
}

.sticky-ad {
  position: sticky;
  top: 90px;
}

.footer {
  margin-top: 32px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 10px 20px 18px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}
