/* =========================================================
   屏東縣水域安全資訊 - 共用樣式
   ========================================================= */

:root {
  --primary: #0e73a8;
  --primary-dark: #084c73;
  --primary-light: #3ba0d4;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --danger: #d33131;
  --danger-light: #fde4e4;
  --warning: #e6a41f;
  --warning-light: #fdf1d9;
  --safe: #12b76a;
  --safe-light: #dcfae6;
  --gray-50: #f0f9fc;
  --gray-100: #e0f2fa;
  --gray-200: #c7e4f0;
  --gray-300: #9dc5db;
  --gray-500: #5f7d92;
  --gray-700: #334c5f;
  --gray-900: #0b2432;
  --white: #ffffff;
  --shadow-sm: 0 2px 6px rgba(14, 115, 168, 0.08);
  --shadow-md: 0 6px 16px rgba(14, 115, 168, 0.14);
  --shadow-lg: 0 10px 30px rgba(14, 115, 168, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  /* 海洋底色(body 與首頁波浪共用；hero-wave-front.svg 的填色須與 --sea-top 一致) */
  --sea-top: #1f86c6;
  --sea-mid: #12679f;
  --sea-deep: #0a426d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: var(--gray-900);
  background-color: var(--sea-deep);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top language bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 13px;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.top-bar a {
  color: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 3px;
}
.top-bar a.active,
.top-bar a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}
.top-bar .sep { color: rgba(255,255,255,0.4); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.logo:hover { text-decoration: none; }

/* ---------- Main nav ---------- */
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}
.main-nav > ul > li > ul {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s;
}
.main-nav > ul > li:hover > ul,
.main-nav > ul > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav > ul > li > ul > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--gray-700);
  font-size: 14px;
}
.main-nav > ul > li > ul > li > a:hover {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}
.has-arrow::after {
  content: "▾";
  margin-left: 4px;
  font-size: 10px;
  color: var(--gray-500);
}
.external-icon::after {
  content: "↗";
  font-size: 11px;
  margin-left: 3px;
  color: var(--gray-500);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-dark);
}

/* ---------- Page header (breadcrumb + title) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 40px 20px 28px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.breadcrumb {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--white); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.6; }
.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 15px;
  opacity: 0.9;
}

/* ---------- Main content ---------- */
main {
  flex: 1;
  padding: 32px 0 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 32px 0 20px;
  font-size: 14px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-inner h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 15px;
}
.footer-inner ul { list-style: none; }
.footer-inner ul li { padding: 3px 0; }
.footer-inner a { color: rgba(255,255,255,0.7); }
.footer-inner a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px 0;
  max-width: 1200px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* =========================================================
   Home page
   ========================================================= */
.hero {
  position: relative;
  height: 520px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--accent) 100%);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
/* Hero carousel slides */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: saturate(1.18) contrast(1.06) brightness(1.02);
}
.hero-slide.active { opacity: 1; }
/* Bottom-only subtle vignette so image colours pop but text has enough contrast */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 55%, rgba(0,0,0,0.28) 0%, transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(11, 36, 50, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 24px rgba(0,0,0,0.35);
}
.hero p {
  font-size: 18px;
  max-width: 600px;
  opacity: 0.98;
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 0 16px rgba(0,0,0,0.3);
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { background: var(--white); width: 28px; border-radius: 6px; }
.hero-placeholder {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 3;
}
.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-primary:hover { background: var(--gray-100); text-decoration: none; }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); text-decoration: none; }

.home-section {
  padding: 48px 0;
}
.home-section.alt {
  background: var(--gray-50);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.quick-link {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  color: var(--gray-700);
}
.quick-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.quick-link .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--gray-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.quick-link .icon svg { width: 28px; height: 28px; }
.quick-link h3 { font-size: 16px; margin-bottom: 4px; color: var(--gray-900); }
.quick-link p { font-size: 13px; color: var(--gray-500); }

.traffic-lights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.tl-card {
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
}
.tl-card:hover { transform: translateY(-3px); text-decoration: none; color: var(--white); }
.tl-red { background: linear-gradient(135deg, #c02828 0%, var(--danger) 100%); }
.tl-yellow { background: linear-gradient(135deg, #d18a0e 0%, var(--warning) 100%); }
.tl-green { background: linear-gradient(135deg, #217a44 0%, var(--safe) 100%); }
.tl-card .tl-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 12px;
}
.tl-card h3 { font-size: 20px; margin-bottom: 8px; }
.tl-card p { font-size: 14px; opacity: 0.95; }
.tl-card .count { font-size: 32px; font-weight: 700; margin-top: 8px; }

/* =========================================================
   About page (PG0100)
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--gray-500);
  font-size: 14px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.about-text h2 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.about-text p { margin-bottom: 14px; color: var(--gray-700); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.feature-item .icon-box {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.feature-item p { font-size: 14px; color: var(--gray-500); }

/* =========================================================
   News/Announcements page (PG0301)
   ========================================================= */
.news-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.news-list li {
  border-bottom: 1px solid var(--gray-200);
}
.news-list li:last-child { border-bottom: none; }
.news-list a {
  display: flex;
  gap: 16px;
  padding: 18px 24px;
  color: var(--gray-700);
  align-items: baseline;
}
.news-list a:hover {
  background: var(--gray-50);
  text-decoration: none;
}
.news-date {
  color: var(--gray-500);
  font-size: 13px;
  min-width: 90px;
  font-variant-numeric: tabular-nums;
}
.news-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  min-width: 64px;
  text-align: center;
}
.news-tag.important { background: var(--danger-light); color: var(--danger); }
.news-tag.warning { background: var(--warning-light); color: var(--warning); }
.news-tag.info { background: #e0edfa; color: var(--primary); }
.news-title { flex: 1; font-size: 15px; }

/* =========================================================
   Related links (PG0302)
   ========================================================= */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.link-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.15s;
  color: var(--gray-700);
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.link-card .link-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.link-card h4 {
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.link-card p { font-size: 13px; color: var(--gray-500); }

/* =========================================================
   Downloads (PG0303)
   ========================================================= */
.download-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-collapse: collapse;
}
.download-table thead {
  background: var(--primary);
  color: var(--white);
}
.download-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.download-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-700);
}
.download-table tr:last-child td { border-bottom: none; }
.download-table tr:hover { background: var(--gray-50); }
.file-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  font-weight: 500;
}
.file-icon.doc { color: var(--primary); }
.file-icon.xls { color: var(--safe); }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.btn-download:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

/* =========================================================
   Top spots (PG0401)
   ========================================================= */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.top-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.top-item:nth-child(even) {
  grid-template-areas: "text image";
}
.top-item:nth-child(even) .top-img { grid-area: image; }
.top-item:nth-child(even) .top-text { grid-area: text; }
.top-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  display: grid;
  place-items: center;
  color: var(--gray-500);
  font-size: 14px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.top-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-img .rank {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}
.top-img .signal-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.signal-badge.red { background: var(--danger); }
.signal-badge.yellow { background: var(--warning); }
.signal-badge.green { background: var(--safe); }
.signal-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
}
.top-text { padding: 28px; display: flex; flex-direction: column; }
.top-text h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.top-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.top-meta span { display: flex; align-items: center; gap: 4px; }
.top-text p {
  color: var(--gray-700);
  margin-bottom: 16px;
  flex: 1;
}
.top-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.map-link:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}
.map-link-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.map-link-outline:hover {
  background: var(--gray-100);
  text-decoration: none;
}

/* =========================================================
   Spot list (PG0402)
   ========================================================= */
.filter-bar {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-group label {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  margin-right: 4px;
}
.filter-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 13px;
  cursor: pointer;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.spot-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.spot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.spot-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  display: grid;
  place-items: center;
  color: var(--gray-500);
  font-size: 13px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.spot-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spot-img .signal-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.signal-dot.red { background: var(--danger); }
.signal-dot.yellow { background: var(--warning); }
.signal-dot.green { background: var(--safe); }
.spot-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.spot-body h4 {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.spot-body .loc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.spot-body .acts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
}
.spot-body .acts span {
  font-size: 12px;
  padding: 2px 8px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 4px;
}

/* =========================================================
   Safety info (PG0500)
   ========================================================= */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  font-family: inherit;
}
.tab-btn:hover { background: var(--gray-100); }
.tab-btn::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tab-btn.red::before { background: var(--danger); }
.tab-btn.yellow::before { background: var(--warning); }
.tab-btn.green::before { background: var(--safe); }
.tab-btn.active.red { background: var(--danger-light); color: var(--danger); }
.tab-btn.active.yellow { background: var(--warning-light); color: #a67514; }
.tab-btn.active.green { background: var(--safe-light); color: var(--safe); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.signal-hero {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border-left: 6px solid var(--gray-300);
}
.signal-hero.red { border-left-color: var(--danger); }
.signal-hero.yellow { border-left-color: var(--warning); }
.signal-hero.green { border-left-color: var(--safe); }
.signal-hero h2 {
  font-size: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.signal-hero h2 .light {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
}
.signal-hero.red h2 .light { background: var(--danger); box-shadow: 0 0 12px rgba(211,49,49,0.4); }
.signal-hero.yellow h2 .light { background: var(--warning); box-shadow: 0 0 12px rgba(230,164,31,0.4); }
.signal-hero.green h2 .light { background: var(--safe); box-shadow: 0 0 12px rgba(47,156,88,0.4); }
.signal-hero p { color: var(--gray-700); }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.activity-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.activity-item .act-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray-100);
  color: var(--gray-700);
}
.activity-item .act-icon svg { width: 32px; height: 32px; }
.activity-item .label {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}
.activity-item.allowed .act-icon {
  background: var(--safe-light);
  color: var(--safe);
}
.activity-item.warning-act .act-icon {
  background: var(--warning-light);
  color: #a67514;
}
.activity-item.forbidden .act-icon {
  background: var(--danger-light);
  color: var(--danger);
}
.activity-item.forbidden::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border: 3px solid var(--danger);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.85;
}
.activity-item.forbidden::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  width: 56px;
  height: 3px;
  background: var(--danger);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}

.spots-in-level {
  margin-top: 32px;
}
.spots-in-level h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--gray-900);
}

/* =========================================================
   Feedback form (PG0800)
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.form-wrap {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.form-row {
  margin-bottom: 20px;
}
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row label .req { color: var(--danger); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,76,139,0.12);
}
.contact-side .card {
  padding: 24px;
  margin-bottom: 16px;
}
.contact-side h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.contact-side p, .contact-side li {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.contact-side ul { list-style: none; }
.contact-side ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 6px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .header-inner { height: 60px; }
  .logo { font-size: 15px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open > ul {
    flex-direction: column;
    padding: 8px;
  }
  .main-nav.open > ul > li > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 16px;
  }
  .menu-toggle { display: block; }

  .hero { height: 400px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }

  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .traffic-lights { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }

  .top-item,
  .top-item:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text";
  }

  .form-grid { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .tab-bar { flex-direction: column; }

  .page-title { font-size: 22px; }
}

/* =========================================================
   Spot detail page (地點詳細)
   ========================================================= */
.spot-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
}
.spot-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spot-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 40%, rgba(11, 36, 50, 0.75) 100%);
  z-index: 1;
}
.spot-hero-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px;
  z-index: 2;
  color: var(--white);
}
.spot-hero-inner-container {
  max-width: 1200px;
  margin: 0 auto;
}
.spot-hero .breadcrumb {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-bottom: 8px;
}
.spot-hero .breadcrumb a { color: rgba(255,255,255,0.9); }
.spot-hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.spot-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(4px);
}
.spot-hero-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}
.spot-hero-badge.red { background: rgba(211,49,49,0.9); }
.spot-hero-badge.yellow { background: rgba(230,164,31,0.9); }
.spot-hero-badge.green { background: rgba(18,183,106,0.9); }

.spot-info-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--gray-200);
}
.spot-info-bar > div {
  padding: 18px 20px;
  background: var(--white);
}
.spot-info-bar .info-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.spot-info-bar .info-value {
  font-size: 15px;
  color: var(--gray-900);
  font-weight: 500;
}

.spot-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}
.spot-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.spot-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}
.spot-desc-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.spot-desc-card h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.spot-desc-card p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
}
.spot-signal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--gray-300);
}
.spot-signal-card.red { border-top-color: var(--danger); }
.spot-signal-card.yellow { border-top-color: var(--warning); }
.spot-signal-card.green { border-top-color: var(--safe); }
.spot-signal-card .big-light {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.spot-signal-card.red .big-light { background: var(--danger); box-shadow: 0 0 24px rgba(211,49,49,0.4); }
.spot-signal-card.yellow .big-light { background: var(--warning); box-shadow: 0 0 24px rgba(230,164,31,0.4); }
.spot-signal-card.green .big-light { background: var(--safe); box-shadow: 0 0 24px rgba(18,183,106,0.4); }
.spot-signal-card h3 { font-size: 20px; color: var(--gray-900); margin-bottom: 6px; }
.spot-signal-card .risk-label { font-size: 14px; color: var(--gray-500); margin-bottom: 14px; }
.spot-signal-card p { font-size: 13px; color: var(--gray-700); line-height: 1.7; text-align: left; }

.spot-map-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.spot-map-card h3 { font-size: 18px; margin-bottom: 6px; }
.spot-map-card p { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
.spot-map-card .btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}
.spot-map-card .btn-map:hover { background: var(--gray-100); text-decoration: none; }

.spot-activity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.spot-activity-card h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.spot-activity-card .rules-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid var(--gray-200);
  transition: all 0.15s;
}
.back-link:hover {
  background: var(--gray-50);
  text-decoration: none;
}

@media (max-width: 900px) {
  .spot-info-bar { grid-template-columns: repeat(2, 1fr); }
  .spot-content-grid { grid-template-columns: 1fr; }
  .spot-side { position: static; }
  .spot-hero { height: 300px; }
  .spot-hero h1 { font-size: 24px; }
}

/* Hazard warning list (紅燈地點專屬) - 沿用 activity-item 樣式 */
.hazard-warnings {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-200);
}
.hazard-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}
/* 讓 hazard-warnings 內部的 activity-grid 只顯示 2 欄，且卡片間距較緊湊 */
.hazard-warnings .activity-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}
/* 災害圖示樣式：警告黃底 + 危險紅內容 (道路警戒號誌配色) */
.activity-item.hazard {
  background: #fef3c7;
  border: 1.5px solid #f0a020;
  box-shadow: 0 2px 6px rgba(240, 160, 32, 0.25);
}
.activity-item.hazard .act-icon {
  background: var(--danger);
  color: #ffffff;
}
.activity-item.hazard .label {
  color: #92400e;
  font-weight: 700;
}

/* =========================================================
   Spot detail page - new stacked layout
   ========================================================= */
.container-narrow {
  max-width: 900px;
}
.section-block {
  margin-bottom: 28px;
}
.block-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.inline-signal {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.inline-signal.red { background: var(--danger); box-shadow: 0 0 6px rgba(211,49,49,0.5); }
.inline-signal.yellow { background: var(--warning); box-shadow: 0 0 6px rgba(230,164,31,0.5); }
.inline-signal.green { background: var(--safe); box-shadow: 0 0 6px rgba(18,183,106,0.5); }

/* Brief card */
.brief-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--gray-300);
}
.brief-card.red { border-left-color: var(--danger); background: linear-gradient(to right, #fef8f8, var(--white)); }
.brief-card.yellow { border-left-color: var(--warning); background: linear-gradient(to right, #fdfaf0, var(--white)); }
.brief-card.green { border-left-color: var(--safe); background: linear-gradient(to right, #f2fbf6, var(--white)); }
.brief-card p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--gray-900);
  letter-spacing: 0.3px;
}

/* Rules card */
.rules-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Detail card */
.detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.detail-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  text-align: justify;
  letter-spacing: 0.2px;
}

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-item {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.photo-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img {
  transform: scale(1.06);
}

/* Map CTA card */
.map-cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 20px;
}
.map-cta-icon {
  font-size: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.map-cta-text { flex: 1; }
.map-cta-text h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.map-cta-text p {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.55;
}
.btn-map-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--white);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-map-cta:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Share buttons */
.share-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.share-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.share-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.facebook:hover { background: #0e5fc9; text-decoration: none; }
.share-btn.line { background: #06c755; }
.share-btn.line:hover { background: #04a244; text-decoration: none; }
.share-btn.x-social { background: #000; }
.share-btn.x-social:hover { background: #333; text-decoration: none; }
.share-btn.copy {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.share-btn.copy:hover {
  background: var(--gray-200);
  text-decoration: none;
}
.share-btn.copy.copied {
  background: var(--safe-light);
  color: var(--safe-dark);
  border-color: var(--safe);
}

@media (max-width: 700px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-item:last-child { grid-column: span 2; }
  .share-list { grid-template-columns: repeat(2, 1fr); }
  .map-cta-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .detail-card p { font-size: 14.5px; }
  .brief-card p { font-size: 15px; }
}

/* =========================================================
   安全教育頁 (pg0101_safety_edu)
   ========================================================= */
.safety-edu-section { margin-bottom: 48px; }
.safety-edu-section > .block-title { font-size: 24px; margin-bottom: 8px; }
.safety-edu-section > .section-lead {
  margin: 0 0 20px 16px;
  color: var(--gray-700);
  font-size: 15px;
}

/* 救溺五步 口訣橫幅 */
.motto-bar {
  background: linear-gradient(135deg, #a11919 0%, var(--danger) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}
.motto-bar .motto-key {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 10px;
  flex-shrink: 0;
}
.motto-bar .motto-sub strong {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
}
.motto-bar .motto-sub {
  font-size: 15px;
  opacity: 0.95;
  line-height: 1.5;
}

.five-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 14px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 4px solid var(--danger);
}
.step-card .step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(211,49,49,0.4);
}
.step-card .step-key {
  font-size: 46px;
  font-weight: 800;
  color: #a11919;
  line-height: 1;
  margin: 10px 0 8px;
}
.step-card .step-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.step-card .step-desc {
  font-size: 12.5px;
  color: var(--gray-700);
  line-height: 1.55;
}

/* 防溺十招 */
.ten-tips-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid var(--accent);
  min-height: 120px;
}
.tip-card .tip-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.tip-card .tip-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-900);
  font-weight: 500;
}

/* 三不三要 */
.three-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.three-col {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.three-col.no { border-top: 5px solid var(--danger); }
.three-col.yes { border-top: 5px solid var(--safe); }
.three-col h3 {
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.three-col.no h3 { color: #a11919; }
.three-col.yes h3 { color: #087a42; }
.three-col h3 .big-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}
.three-col.no h3 .big-mark { background: var(--danger); }
.three-col.yes h3 .big-mark { background: var(--safe); }
.three-col ul { list-style: none; padding: 0; }
.three-col li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 15px;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.three-col li:last-child { border-bottom: none; }
.three-col li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.three-col.no li::before { background: var(--danger); }
.three-col.yes li::before { background: var(--safe); }

/* 溪水暴漲警訊 */
.flood-warn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.warn-card {
  background: linear-gradient(135deg, #fff8e5 0%, #fef3c7 100%);
  border: 2px solid #f0a020;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: 0 4px 12px rgba(240,160,32,0.2);
}
.warn-card .warn-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.warn-card .warn-icon {
  width: 48px;
  height: 48px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.warn-card .warn-icon svg { width: 26px; height: 26px; }
.warn-card .warn-title {
  font-size: 17px;
  font-weight: 700;
  color: #92400e;
}
.warn-card .warn-sub {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
  letter-spacing: 1px;
}
.warn-card p {
  font-size: 13.5px;
  color: var(--gray-900);
  line-height: 1.65;
}
.flood-escape-note {
  background: var(--danger);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.flood-escape-note strong {
  font-size: 20px;
  letter-spacing: 2px;
}

/* 落水自救 */
.rescue-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rescue-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 16px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.rescue-card .rescue-num {
  position: absolute;
  top: -12px;
  left: 16px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.rescue-card h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.rescue-card p {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* 緊急聯絡 */
.emergency-bar {
  background: linear-gradient(135deg, #a11919 0%, var(--danger) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.emergency-bar .emer-title {
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.emergency-bar .emer-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1;
}
.emergency-bar .emer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emergency-bar .emer-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}
.emergency-bar .emer-label {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

/* 地點頁 - 現場安全重點 */
.spot-safety-card {
  background: linear-gradient(135deg, #fff8e5 0%, #fef3c7 100%);
  border: 2px solid #f0a020;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 3px 10px rgba(240,160,32,0.18);
}
.spot-safety-card .ss-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #92400e;
}
.spot-safety-card .ss-head .ss-badge {
  width: 32px;
  height: 32px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.spot-safety-card ul { list-style: none; padding: 0; margin: 0; }
.spot-safety-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.65;
  border-bottom: 1px dashed rgba(240, 160, 32, 0.35);
}
.spot-safety-card li:last-child { border-bottom: none; }
.spot-safety-card li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 900px) {
  .five-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:last-child { grid-column: span 2; }
  .ten-tips-grid { grid-template-columns: repeat(2, 1fr); }
  .three-grid { grid-template-columns: 1fr; }
  .flood-warn-grid { grid-template-columns: 1fr; }
  .rescue-steps { grid-template-columns: repeat(2, 1fr); }
  .emergency-bar { flex-direction: column; text-align: center; }
  .emergency-bar .emer-list { justify-content: center; }
}

/* =========================================================
   Spot search bar (水域地點安全情報頁)
   ========================================================= */
.spot-search-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: 11px 42px 11px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--gray-900);
  font-family: inherit;
  transition: all 0.15s;
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 115, 168, 0.12);
}
.search-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--gray-200);
  color: var(--gray-700);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.search-clear:hover {
  background: var(--danger);
  color: var(--white);
}
.search-count {
  font-size: 14px;
  color: var(--gray-700);
}
.search-count strong {
  color: var(--primary-dark);
}

/* 卡片活動 tag */
.spot-body .tag-no, .spot-body .tag-ok {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}
.spot-body .tag-no {
  background: var(--danger-light);
  color: var(--danger);
}
.spot-body .tag-ok {
  background: var(--safe-light);
  color: var(--safe-dark, #087a42);
}
.spot-body .dev-tag {
  font-size: 11px;
  padding: 1px 6px;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 4px;
  margin-left: 4px;
}
/* 禁止活動 grid 增大一點以容納更多 */
.activity-grid.hazard-grid-ex .activity-item.hazard {
  background: #fef3c7;
  border: 1.5px solid #f0a020;
}

/* ========================================================
   詳細頁:傷亡人數 / 即時雨量 / 氣象預測
======================================================== */
.stats-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.stats-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--gray-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-num.warn { color: var(--warning); }
.stat-num.danger { color: var(--danger); }
.stat-label {
  font-size: 13px;
  color: var(--gray-700);
}
.stats-source {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-200);
  text-align: right;
}

/* Rain card */
.rain-card {
  background: linear-gradient(135deg, #e0f2fa 0%, #ffffff 100%);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.rain-main {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.rain-level {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
}
.rain-level.rain-safe { background: var(--safe); }
.rain-level.rain-warning { background: var(--warning); }
.rain-level.rain-danger { background: var(--danger); animation: pulse-bg 1.8s ease-in-out infinite; }
@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.rain-nums {
  text-align: left;
}
.rain-big {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.rain-unit {
  font-size: 14px;
  color: var(--gray-500);
  margin-left: 4px;
}
.rain-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 4px;
}
.rain-footer {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-200);
}

/* Forecast card */
.forecast-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.forecast-day {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
}
.fd-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 600;
}
.fd-emoji {
  font-size: 42px;
  margin-bottom: 4px;
  line-height: 1;
}
.fd-desc {
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 8px;
}
.fd-temp {
  font-size: 15px;
  margin-bottom: 4px;
}
.fd-hi { color: var(--danger); font-weight: 700; }
.fd-lo { color: var(--primary); font-weight: 700; }
.fd-rain {
  font-size: 12.5px;
  color: var(--primary-dark);
  background: var(--gray-100);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rain-main { grid-template-columns: 1fr; text-align: center; }
  .rain-nums { text-align: center; }
}

/* ========================================================
   橫式活動規範 (詳細頁)
======================================================== */
.activity-grid-h {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.activity-grid-h .activity-item {
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  min-width: 150px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.activity-grid-h .activity-item .act-icon {
  width: 36px;
  height: 36px;
  margin: 0;
}
.activity-grid-h .activity-item .act-icon svg {
  width: 20px;
  height: 20px;
}
.activity-grid-h .activity-item .label {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
/* 禁止款的對角斜線 overlay 要重新定位 */
.activity-grid-h .activity-item.forbidden .act-icon::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  box-sizing: border-box;
}
.activity-grid-h .activity-item.forbidden .act-icon::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 2.2px;
  background: var(--danger);
  transform: rotate(-45deg);
}
.activity-grid-h .activity-item.forbidden .act-icon {
  position: relative;
}
/* 覆蓋原本的禁止 ::before/::after 在 .activity-item 層級的設計 */
.activity-grid-h .activity-item.forbidden::before,
.activity-grid-h .activity-item.forbidden::after {
  display: none;
}

/* ========================================================
   傷亡人數 3 欄 (已移除救援人次)
======================================================== */
.stats-grid { grid-template-columns: repeat(3, 1fr) !important; }

/* ========================================================
   類型徽章 (詳細頁 hero + pg0500 卡片)
======================================================== */





/* 四種類型的 hero 底色 */





/* ========================================================
   pg0500 卡片 .spot-img 根據類型顯示 icon
   (需要 inline attribute data-type 或額外 class)
======================================================== */



/* 不同類型底色 */





/* ========================================================
   類型照片 (替代 icon) - 詳細頁 hero 大圖 + pg0500 卡片
======================================================== */
/* 詳細頁 hero 整張底圖，用類型對應照片 */
.spot-hero.type-hero-flagship { background-image: url('../images/type-flagship.jpg'); }
.spot-hero.type-hero-community { background-image: url('../images/type-community.jpg'); }
.spot-hero.type-hero-eco { background-image: url('../images/type-eco.jpg'); }
.spot-hero.type-hero-marine { background-image: url('../images/type-marine.jpg'); }
.spot-hero[class*="type-hero-"] {
  background-size: cover;
  background-position: center;
}
.spot-hero[class*="type-hero-"]::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(11,36,50,0.65));
  z-index: 1;
}
.spot-hero[class*="type-hero-"] .spot-hero-inner { z-index: 2; position: relative; }

/* 詳細頁 Hero 內的類型標籤 */
.type-badge-hero {
  position: absolute;
  top: 24px; right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  letter-spacing: 2px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.type-badge-hero::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
}
.type-badge-hero.type-flagship::before { background: #06b6d4; }
.type-badge-hero.type-community::before { background: #12b76a; }
.type-badge-hero.type-eco::before { background: #22c55e; }
.type-badge-hero.type-marine::before { background: #0891b2; }

/* pg0500 卡片 - 用類型照片當 .spot-img 背景 */
.spot-card .spot-img {
  position: relative;
  display: block;
  background-size: cover;
  background-position: center;
}
.spot-img.type-flagship { background-image: url('../images/type-flagship.jpg'); }
.spot-img.type-community { background-image: url('../images/type-community.jpg'); }
.spot-img.type-eco { background-image: url('../images/type-eco.jpg'); }
.spot-img.type-marine { background-image: url('../images/type-marine.jpg'); }

/* 卡片類型文字標籤 - 左下角 */
.spot-img .type-label-card {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.92);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 1px;
}

/* 卡片的 signal-dot 保持原位 (右上角) */


/* =========================================================
   海洋主題：body 藍色大海底圖 + 首頁 hero 動態波浪
   ========================================================= */

/* ---------- body 底圖：波浪線條與潮間帶生物(靜態) ---------- */
body {
  position: relative;
  background-color: var(--sea-deep);
  background-image: linear-gradient(180deg, var(--sea-top) 0, var(--sea-top) 560px, var(--sea-mid) 45%, var(--sea-deep) 100%);
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("../images/deco/wave-deco-1.svg"),
    url("../images/deco/wave-deco-2.svg"),
    url("../images/deco/wave-deco-1.svg"),
    url("../images/deco/wave-deco-3.svg"),
    url("../images/deco/deco-starfish.svg"),
    url("../images/deco/deco-coral.svg"),
    url("../images/deco/deco-shell.svg"),
    url("../images/deco/deco-crab.svg"),
    url("../images/deco/deco-urchin.svg"),
    url("../images/deco/deco-snail.svg"),
    url("../images/deco/deco-starfish.svg");
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 1600px auto, 1600px auto, 1600px auto, 1600px auto,
    84px, 80px, 64px, 96px, 72px, 80px, 52px;
  background-position:
    0 640px,
    -300px 38%,
    -700px 70%,
    0 calc(100% - 240px),
    left 24px top 720px,
    right 28px top 900px,
    left 36px top 1120px,
    right 20px top 1340px,
    left 30px top 1600px,
    right 32px top 1860px,
    left 64px top 2140px;
}
/* 兩側留白放不下生物時只保留波浪線條，避免被內容面板切掉一半 */
@media (max-width: 1400px) {
  body::before { background-size: 1600px auto, 1600px auto, 1600px auto, 1600px auto, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}
/* 生物用固定像素間距排列，短頁面也不會互相重疊；超出頁面高度的會被頁尾蓋住 */
/* 內容疊在底圖之上 */
body > * { position: relative; z-index: 1; }
body > .site-header { z-index: 50; }

/* ---------- 內容面板：讓文字浮在海面上依然清楚 ---------- */
main { padding: 40px 0 64px; }
main > .container,
.sea-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(4, 40, 68, 0.28);
  padding-top: 32px;
  padding-bottom: 36px;
}
main > .container { max-width: 1160px; }
.home-section { padding: 28px 0; }
.home-section.alt { background: transparent; }
.home-section .sea-panel { max-width: 1160px; padding: 32px 28px 36px; }
.home-section:last-of-type { padding-bottom: 64px; }
.site-footer { margin-top: 0; }

@media (max-width: 1240px) {
  main > .container,
  .home-section .sea-panel { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 700px) {
  main > .container { padding-left: 16px; padding-right: 16px; }
  .home-section .sea-panel { padding: 24px 16px 28px; }
  body::before { background-size: 1200px auto, 1200px auto, 1200px auto, 1200px auto, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}

/* ---------- 首頁 hero 底部動態波浪 ---------- */
.hero { height: 560px; }
.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}
.hero-waves .wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 1440px 100%;
  animation: wave-drift linear infinite;
  will-change: background-position;
}
.hero-waves .wave.back {
  background-image: url("../images/deco/hero-wave-back.svg");
  animation-duration: 26s;
  animation-direction: reverse;
  bottom: 18px;
}
.hero-waves .wave.middle {
  background-image: url("../images/deco/hero-wave-middle.svg");
  animation-duration: 18s;
  bottom: 8px;
}
.hero-waves .wave.front {
  background-image: url("../images/deco/hero-wave-front.svg");
  animation-duration: 12s;
}
@keyframes wave-drift {
  from { background-position-x: 0; }
  to   { background-position-x: -1440px; }
}
.hero-dots { bottom: 92px; }

@media (max-width: 900px) {
  .hero-waves { height: 80px; }
  .hero-waves .wave { background-size: 960px 100%; }
  @keyframes wave-drift {
    from { background-position-x: 0; }
    to   { background-position-x: -960px; }
  }
  .hero-dots { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-waves .wave { animation: none; }
}

/* ---------- 首頁網站名稱字標(h1) ---------- */
.site-title { margin: 0; font-size: inherit; line-height: 1; }
.logo-wordmark { gap: 10px; }
.logo-wordmark:hover { text-decoration: none; }
.lw-county {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  padding: 0 9px 0 11px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(14, 115, 168, 0.3);
}
.lw-text { display: flex; flex-direction: column; gap: 5px; }
.lw-name {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--primary-dark);
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lw-en {
  font-family: "Noto Sans TC", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.4px;
  line-height: 1;
  color: var(--gray-500);
  padding-top: 5px;
  background: url("../images/deco/hero-wave-middle.svg") left top / 60px 5px repeat-x;
}
@media (max-width: 900px) {
  .lw-county { font-size: 14px; letter-spacing: 1px; padding: 0 6px 0 7px; }
  .lw-name { font-size: 20px; letter-spacing: 2px; }
  .lw-en { font-size: 8px; letter-spacing: 2.2px; }
}

/* ---------- 首頁大圖：只在底部加淡淡漸層，讓波浪與影片按鈕清楚 ---------- */
.hero::after {
  background: linear-gradient(180deg, transparent 65%, rgba(11, 36, 50, 0.3) 100%);
}

/* ---------- 首頁水域安全問答區(大標題 + 小標題 + 圖解) ---------- */
.safety-guide { text-align: left; }
.sg-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}
.sg-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--white);
  font: 900 28px/1 Georgia, "Times New Roman", serif;
  box-shadow: 0 6px 14px rgba(14, 115, 168, 0.3);
}
.sg-title {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.3;
  color: var(--primary-dark);
}
.sg-title::after {
  content: "";
  display: block;
  width: 144px;
  height: 10px;
  margin: 12px auto 0;
  background: url("../images/deco/hero-wave-middle.svg") center / 48px 100% repeat-x;
  filter: hue-rotate(10deg) saturate(1.6) brightness(0.8);
}
.sg-item + .sg-item {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px dashed var(--gray-200);
}
.sg-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.sg-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  background: var(--primary);
  color: var(--white);
  font: 700 15px/1 Arial, sans-serif;
  letter-spacing: 1px;
}
.sg-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  background: var(--gray-50);
}
.sg-figure a { display: block; }
.sg-figure img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.sg-figure a:hover img { transform: scale(1.015); }
.sg-more-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sg-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .sg-q { width: 42px; height: 42px; font-size: 22px; }
  .sg-title { font-size: 23px; letter-spacing: 1px; }
  .sg-subtitle { font-size: 18px; gap: 8px; }
  .sg-num { min-width: 38px; height: 26px; font-size: 13px; }
  .sg-item + .sg-item { margin-top: 28px; padding-top: 24px; }
}

/* ---------- 問答區：說明文字、救人五步驟 ---------- */
.sg-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 20px;
}
.sg-lead strong { color: var(--danger); }
.sg-lead-center { max-width: 820px; margin: -8px auto 28px; text-align: center; }
.sg-detail { margin-top: 32px; }
.sg-steps {
  list-style: none;
  display: grid;
  gap: 12px;
}
.sg-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
}
.sg-step-char {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a4d 0%, #f26a2e 100%);
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  border: 4px solid var(--white);
  outline: 2px solid rgba(242, 106, 46, 0.35);
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(242, 106, 46, 0.3);
}
.sg-step-body h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.sg-step-no { color: #f26a2e; margin-right: 4px; }
.sg-step-body p { font-size: 15px; line-height: 1.75; color: var(--gray-700); }

/* ---------- 問答區：水域地點燈號 ---------- */
.sg-light {
  --light: var(--safe);
  --light-bg: var(--safe-light);
}
.sg-light.red { --light: var(--danger); --light-bg: var(--danger-light); }
.sg-light.yellow { --light: var(--warning); --light-bg: var(--warning-light); }
.sg-light-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--light);
  background: var(--light-bg);
  padding: 2px 10px;
  border-radius: 12px;
}
.sg-light-empty {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  font-size: 14px !important;
}
.sg-light-spots { margin-top: 14px; display: grid; gap: 10px; }
.sg-spot-group { display: flex; align-items: flex-start; gap: 12px; }
.sg-spot-type {
  flex: none;
  min-width: 60px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}
.sg-spots { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sg-spots a {
  display: inline-block;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 14px;
  background: var(--light-bg);
  color: var(--gray-900);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.sg-spots a:hover { border-color: var(--light); background: var(--white); text-decoration: none; }

@media (max-width: 700px) {
  .sg-step { padding: 14px; gap: 12px; }
  .sg-step-char { width: 56px; height: 56px; font-size: 30px; border-width: 3px; }
  .sg-step-body h4 { font-size: 16px; }
  .sg-light { padding: 18px 16px; }
  .sg-spot-group { flex-direction: column; gap: 6px; }
}

/* 燈號列沿用叫叫伸拋划的版型，圓圈換成燈號色 */
.sg-step.sg-light { align-items: flex-start; border-left: 5px solid var(--light); }
.sg-step-char.sg-lamp {
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55) 0%, var(--light) 50%);
  outline-color: var(--light-bg);
  box-shadow: 0 0 16px var(--light);
}
.sg-light .sg-step-no { color: var(--light); }
.sg-light .sg-step-body h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sg-step-body { flex: 1; min-width: 0; }
@media (max-width: 700px) {
  /* 手機版：燈號圓圈與標題同列，說明與地點清單撐滿整列寬度 */
  .sg-step.sg-light {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 12px;
    align-items: center;
  }
  .sg-light .sg-step-body { display: contents; }
  .sg-light .sg-step-body > :not(h4) { grid-column: 1 / -1; margin-top: 10px; }
}

/* 燈號列只留標題，圓圈與標題垂直置中 */
.sg-step.sg-light { align-items: center; }
.sg-light .sg-step-body h4 { margin-bottom: 0; font-size: 20px; }

/* 選單跳轉到首頁區塊時，避開固定在上方的頁首 */
#prevent-rescue, #rules3, #flood-warning, #traffic-light, #casualty, #spot-info { scroll-margin-top: 96px; }

/* ---------- 內頁 page-hero：照片底圖 + 靜態波浪 ---------- */
.page-hero.page-hero-photo {
  padding: 72px 20px 120px;
  background:
    linear-gradient(180deg, rgba(4, 30, 48, 0.35) 0%, rgba(4, 30, 48, 0.55) 100%),
    url("../images/banner-dewen-swan-lake.jpg") center 55% / cover no-repeat;
}
.page-hero.page-hero-photo::before { display: none; }
.page-hero-photo .page-title { font-size: 36px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.page-hero-photo .page-subtitle,
.page-hero-photo .breadcrumb { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.page-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  pointer-events: none;
  background:
    url("../images/deco/hero-wave-front.svg") left bottom / 1440px 70px repeat-x,
    url("../images/deco/hero-wave-middle.svg") -360px bottom / 1440px 82px repeat-x,
    url("../images/deco/hero-wave-back.svg") -720px bottom / 1440px 90px repeat-x;
}
@media (max-width: 900px) {
  .page-hero.page-hero-photo { padding: 48px 20px 88px; }
  .page-hero-photo .page-title { font-size: 28px; }
  .page-hero-wave { height: 64px; background-size: 960px 48px, 960px 56px, 960px 64px; }
}

/* ---------- 安全教育：宣導影片 ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-900);
  box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-source { margin-top: 10px; font-size: 14px; color: var(--gray-500); }

/* ---------- 紅燈禁止活動圖示(禁止標誌樣式)：安全情報頁與紅燈景點頁共用 ---------- */
.rules-card .activity-grid { margin-top: 12px; }
.activity-grid .activity-item.forbidden {
  background: #fff6f6;
  border: 1px solid #f5c6c6;
  padding: 18px 8px 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.activity-grid .activity-item.forbidden:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(211, 49, 49, 0.18); }
.activity-grid .activity-item.forbidden::before,
.activity-grid .activity-item.forbidden::after { display: none; }
.activity-grid .activity-item.forbidden .act-icon {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 10px;
  background: var(--white);
  color: var(--gray-900);
  border: 6px solid var(--danger);
  box-shadow: 0 4px 12px rgba(211, 49, 49, 0.3);
  overflow: hidden;
}
.activity-grid .activity-item.forbidden .act-icon svg { position: relative; z-index: 1; width: 34px; height: 34px; stroke-width: 2.4; }
.activity-grid .activity-item.forbidden .act-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 5px;
  margin-top: -2.5px;
  background: var(--danger);
  transform: rotate(-45deg);
  z-index: 0;
}
.activity-grid .activity-item.forbidden .label {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
}

/* ---------- 安全教育：傷亡統計圓餅圖 ---------- */
.casualty-section { margin-top: 40px; }
.cs-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.cs-summary { font-size: 16px; color: var(--gray-700); margin-bottom: 20px; }
.cs-summary strong { color: var(--primary-dark); font-size: 20px; }
.cs-body { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.cs-chart { position: relative; flex: 0 0 300px; max-width: 100%; }
.cs-chart svg { display: block; width: 100%; height: auto; }
.cs-slice { stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; transition: opacity 0.15s; cursor: pointer; }
.cs-slice.dim { opacity: 0.3; }
.cs-tip {
  position: absolute;
  pointer-events: none;
  background: var(--gray-900);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.cs-tip strong { display: block; }
.cs-legend { list-style: none; flex: 1 1 280px; max-width: 420px; display: grid; gap: 4px; }
.cs-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto 56px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--gray-900);
  transition: background 0.15s;
}
.cs-legend li.active { background: var(--gray-50); }
.cs-swatch { width: 14px; height: 14px; border-radius: 4px; }
.cs-name small { color: var(--gray-500); font-size: 13px; }
.cs-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-pct { color: var(--gray-500); text-align: right; font-variant-numeric: tabular-nums; }
.cs-table-wrap { margin-top: 20px; border-top: 1px solid var(--gray-100); padding-top: 14px; }
.cs-table-wrap summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 15px; }
.cs-table { width: 100%; max-width: 480px; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.cs-table th, .cs-table td { padding: 6px 10px; border-bottom: 1px solid var(--gray-100); text-align: right; font-variant-numeric: tabular-nums; }
.cs-table th[scope="row"], .cs-table thead th:first-child { text-align: left; font-weight: 500; }
.cs-table thead th { color: var(--gray-500); font-weight: 600; }
.cs-source { margin-top: 14px; font-size: 13px; color: var(--gray-500); text-align: right; }
@media (max-width: 700px) {
  .cs-card { padding: 18px 14px; }
  .cs-body { gap: 20px; }
  .cs-chart { flex-basis: 100%; max-width: 260px; margin: 0 auto; }
}

/* 安全教育頁：多塊內容面板上下排列 */
main > .container + .container { margin-top: 32px; }

/* ---------- 錯誤頁 ---------- */
.error-code { margin-top: 12px; font-size: 14px; color: var(--gray-500); }
.error-code code { font-family: Consolas, monospace; color: var(--gray-700); }
.error-detail {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #f1d59a;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-md);
  background: var(--warning-light);
}
.error-detail h2 { font-size: 17px; color: #6b4a07; margin-bottom: 8px; }
.error-warn { font-size: 13px; color: #8a6210; margin-bottom: 12px; }
.error-hint { font-size: 15px; line-height: 1.8; margin-bottom: 12px; color: var(--gray-900); }
.error-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.error-detail dt { color: var(--gray-500); }
.error-detail dd { margin: 0; word-break: break-all; }
.error-detail code { font-family: Consolas, monospace; font-size: 13px; }

/* ---------- 首頁水域地點卡片：完整顯示類型照片，地點名稱置中 ---------- */
/* 類型照片皆為 1408×768，框的比例與原圖相同，照片不會被裁切 */
.spot-card .spot-img {
  aspect-ratio: 1408 / 768;
  background-size: contain;
  background-repeat: no-repeat;
}
.spot-card .spot-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 30, 48, 0.1) 0%, rgba(4, 30, 48, 0.42) 100%);
  transition: background 0.15s;
}
.spot-card:hover .spot-img::before { background: linear-gradient(180deg, rgba(4, 30, 48, 0.2) 0%, rgba(4, 30, 48, 0.55) 100%); }
.spot-img .spot-name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 20px;
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.5);
}
.spot-img .type-label-card, .spot-img .signal-dot { z-index: 1; }

/* 搜尋框清除鈕：只在有輸入時顯示(其他規則設了 display，須明確讓 hidden 生效) */
.search-clear[hidden] { display: none !important; }
.rain-level.rain-none { background: var(--gray-300); font-size: 15px; }

/* ---------- 多語系字型：日文、韓文介面改用對應字型(標誌維持中文字型) ---------- */
body:lang(ja), body:lang(ja) .sg-title { font-family: "Noto Sans JP", "Noto Sans TC", "Meiryo", sans-serif; }
body:lang(ko), body:lang(ko) .sg-title { font-family: "Noto Sans KR", "Noto Sans TC", "Malgun Gothic", sans-serif; }
/* 韓文以詞為單位換行，避免單字從中間斷開 */
body:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }

/* 即時雨量、預報：資料逾時提醒；預報顯示單一溫度 */
.weather-stale { margin-top: 12px; font-size: 13px; color: var(--warning); font-weight: 600; }
.fd-now { color: var(--gray-900); font-weight: 700; font-size: 17px; }
/* 即時雨量只顯示雨量等級與前三小時累積雨量 */
.rain-main.rain-main-single { grid-template-columns: auto 1fr; }
/* 預報降雨機率：字級加大、加粗、深色字，戶外強光下也看得清楚 */
.forecast-day .fd-rain {
  font-size: 15px;
  font-weight: 700;
  color: #0b4a6f;
  background: #dbeffa;
  border: 1px solid #b5ddf2;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.forecast-day .fd-rain strong { font-size: 17px; font-weight: 800; }
@media (max-width: 700px) {
  /* 窄畫面：標籤一行、數字一行，不把文字擠成三行 */
  .forecast-day .fd-rain { display: block; border-radius: 10px; padding: 4px 6px; }
  .forecast-day .fd-rain-label { display: block; font-size: 12px; font-weight: 700; }
  .forecast-day .fd-rain strong { font-size: 18px; }
}
@media (max-width: 700px) {
  .forecast-card { padding: 16px 10px; }
  .forecast-grid { gap: 6px; }
  .forecast-day { padding: 12px 4px; }
  .forecast-day .fd-desc { font-size: 13px; }
  .forecast-day .fd-rain-label { white-space: nowrap; font-size: 11.5px; letter-spacing: 0; }
}

/* ---------- 土石流警戒資訊 ---------- */
.debris-card {
  --debris: #059669;
  --debris-soft: #ecfdf5;
  background: linear-gradient(135deg, var(--debris-soft) 0%, #fff 100%);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--debris);
}
.debris-card.debris-yellow { --debris: #d97706; --debris-soft: #fef3c7; }
.debris-card.debris-red { --debris: #dc2626; --debris-soft: #fee2e2; }
.debris-main { display: flex; align-items: center; gap: 20px; }
.debris-icon { flex: none; width: 64px; height: 64px; color: var(--debris); }
.debris-icon svg { width: 100%; height: 100%; display: block; }
.debris-red .debris-icon { animation: pulse-bg 1.8s ease-in-out infinite; }
.debris-level { font-size: 24px; font-weight: 800; color: var(--debris); line-height: 1.3; }
.debris-desc { margin-top: 4px; font-size: 14.5px; color: var(--gray-700); line-height: 1.7; }
.debris-table-wrap { margin-top: 16px; overflow-x: auto; }
.debris-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.debris-table th, .debris-table td { padding: 8px 12px; border-bottom: 1px solid var(--gray-200); text-align: left; white-space: nowrap; }
.debris-table th { font-size: 12.5px; color: var(--gray-500); font-weight: 600; background: var(--gray-50); }
.debris-tag { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #fff; }
.debris-tag.red { background: #dc2626; }
.debris-tag.yellow { background: #d97706; }
@media (max-width: 700px) {
  .debris-card { padding: 18px 16px; }
  .debris-main { gap: 14px; }
  .debris-icon { width: 52px; height: 52px; }
  .debris-level { font-size: 20px; }
}
.debris-card.debris-unknown { --debris: #6b7280; --debris-soft: #f3f4f6; }
/* 格線欄位不被表格等不換行內容撐寬(手機版土石流警戒表格改為在框內左右捲動) */
.spot-content-grid > * { min-width: 0; }
/* 水位站警戒：沿用土石流警戒樣式，另有二級(橙色) */
.debris-card.debris-orange { --debris: #ea580c; --debris-soft: #ffedd5; }
.debris-tag.orange { background: #ea580c; }
.debris-tag.green { background: #059669; }

/* ---------- 法令依據 ---------- */
.law-card { padding: 36px 40px; }
.law-intro { font-size: 16px; line-height: 1.9; color: var(--gray-700); }
.law-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.law-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 18px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--gray-50);
}
.law-no { flex: none; font-weight: 700; color: var(--primary-dark); line-height: 1.6; }
.law-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.law-name { font-size: 16.5px; font-weight: 700; color: var(--primary-dark); line-height: 1.6; }
.law-name:hover { color: var(--primary); }
.law-notice {
  margin-top: 28px; padding: 18px 22px; border-left: 4px solid #d97706;
  background: #fffbeb; border-radius: var(--radius-md);
}
.law-notice h2 { font-size: 17px; color: #b45309; margin-bottom: 6px; }
.law-notice p { font-size: 15px; line-height: 1.85; color: var(--gray-700); }
@media (max-width: 700px) {
  .law-card { padding: 22px 18px; }
  .law-list li { padding: 12px 14px; }
}

/* ---------- 屏東縣政府「希望城市」標誌(取代原「屏東縣」字樣) ---------- */
img.lw-county {
  align-self: center;
  display: block;
  height: 50px;
  width: auto;
  padding: 0 14px 0 0;
  margin-right: 2px;
  background: none;
  border-radius: 0;
  border-right: 1px solid var(--gray-200);
  box-shadow: none;
}
@media (max-width: 900px) {
  img.lw-county { height: 34px; padding-right: 9px; }
}
@media (max-width: 420px) {
  img.lw-county { height: 28px; padding-right: 7px; }
  .logo-wordmark { gap: 7px; }
  .lw-name { font-size: 17px; letter-spacing: 1px; }
  .lw-en { font-size: 7px; letter-spacing: 1.4px; }
}

/* ---------- 首頁 YouTube 背景影片 ---------- */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/*
 * 影片模式：大圖區高度 = 影片 16:9 高度(滿版寬度) + 底部波浪帶，影片放在波浪上方完整呈現、不裁切
 */
.hero.has-video {
  --wave-band: 24px;
  height: calc(56.25vw + var(--wave-band));
  min-height: 260px;
  background: #1f86c6;   /* 與最前層波浪同色，波浪帶不會透出底圖 */
}
.hero.has-video .hero-video,
.hero.has-video .hero-slides { bottom: var(--wave-band); }   /* 底圖只鋪在影片區 */
.hero.has-video .hero-waves { height: 64px; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 0; opacity: 0; transition: opacity 1s ease;
}
.hero.video-ready .hero-video iframe { opacity: 1; }
.hero-video-ctrl {
  position: absolute; right: 20px; bottom: calc(var(--wave-band, 56px) + 14px); z-index: 4;
  display: flex; gap: 8px;
}
.hero-video-ctrl[hidden] { display: none; }
.hv-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.55);
  background: rgba(11, 36, 50, 0.55); color: #fff; font: inherit; font-size: 13.5px; cursor: pointer;
  backdrop-filter: blur(4px);
}
.hv-btn:hover { background: rgba(11, 36, 50, 0.8); }
.hv-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hv-ico { font-size: 12px; line-height: 1; }
@media (max-width: 700px) {
  .hero.has-video { --wave-band: 16px; min-height: 0; }
  .hero.has-video .hero-waves { height: 44px; }
  .hero-video-ctrl { right: 10px; bottom: calc(var(--wave-band) + 8px); }
  .hv-btn { padding: 6px 11px; font-size: 12.5px; }
}
