:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eaf3fa;
  --text: #17202a;
  --muted: #667085;
  --line: #d9e2ec;
  --primary: #e85d8c;
  --primary-dark: #0a355c;
  --button-primary: #e85d8c;
  --button-primary-dark: #c94a76;
  --accent: #e94f7c;
  --warning: #f6b73c;
  --shadow: 0 20px 50px rgba(22, 34, 51, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background: var(--bg);
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 30px rgba(22, 34, 51, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 800;
}

.brand-logo {
  width: min(230px, 48vw);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #344054;
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #eaf3fa;
  color: var(--primary-dark);
  outline: none;
}

.nav-links .nav-cta {
  margin-left: 8px;
  background: var(--button-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(232, 93, 140, 0.2);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--button-primary-dark);
  color: #fff;
  transform: scale(1.04);
}

main {
  overflow-x: hidden;
  overflow-y: visible;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 72px);
  padding: clamp(28px, 5vw, 56px) 0 48px;
  background: #fff;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 540px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #344054;
  font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.btn-primary {
  background: var(--button-primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 93, 140, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--button-primary-dark);
  outline: none;
}

.btn-glass {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(183, 198, 212, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 253, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  color: var(--button-primary);
  box-shadow: 0 16px 34px rgba(232, 93, 140, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-glass:hover,
.btn-glass:focus-visible {
  background:
    linear-gradient(180deg, #fff, #fce4ec),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  color: var(--button-primary-dark);
  box-shadow: 0 18px 38px rgba(232, 93, 140, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.btn-secondary {
  border-color: #b7c6d4;
  background: #fff;
  color: #243447;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #f5a3be;
  background: #fce4ec;
  color: var(--button-primary-dark);
  outline: none;
}

.hero-panel {
  align-self: end;
}

.phone-shot {
  width: min(100%, 520px);
  margin-left: auto;
  filter: drop-shadow(0 24px 34px rgba(22, 34, 51, 0.24));
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(100% - 32px, var(--max));
  margin: 28px auto 0;
}

.metric {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(217, 226, 236, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.metric strong {
  display: block;
  font-size: 22px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.hero-notice {
  width: min(100% - 32px, var(--max));
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.hero-notice-spaced {
  margin-top: 28px;
}

.hero-notice a {
  color: var(--button-primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-notice a:hover,
.hero-notice a:focus-visible {
  color: var(--button-primary);
  outline: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  width: min(100%, clamp(320px, 58vw, 720px));
}

.section-title h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.section-grid {
  margin-top: 28px;
}

.flow-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(22, 34, 51, 0.06);
}

.flow-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3fa;
  color: var(--primary-dark);
  font-weight: 900;
}

.flow-item h3 {
  font-size: 22px;
}

.flow-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.about {
  background: #fff;
}

.about .section-head {
  align-items: flex-start;
  margin-bottom: 36px;
}

.journey-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(15, 76, 131, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 8vw, 86px);
  font-style: italic;
  line-height: 0.9;
}

.journey-subtitle {
  max-width: 520px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  right: -24px;
  left: -24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.icon-btn {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 14px 30px rgba(22, 34, 51, 0.16);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: #fff;
  background: #fce4ec;
  box-shadow: 0 18px 36px rgba(22, 34, 51, 0.22);
  outline: none;
}

.carousel-stage {
  position: relative;
}

.card-track {
  display: grid;
  grid-auto-columns: calc((100% - 40px) / 3);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 0px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.about-card {
  position: relative;
  display: flex;
  min-height: 450px;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 36px rgba(22, 34, 51, 0.12);
  scroll-snap-align: start;
}

.about-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #f0f4f8;
}


.about-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 18px 18px;
}

.about-card h3 {
  font-size: clamp(21px, 2vw, 25px);
}

.about-card p {
  margin: 20px 0 0;
  color: var(--muted);
}

.journey-details {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.journey-details li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  color: #344054;
  font-size: 15px;
}

.journey-details strong {
  color: var(--primary-dark);
  font-weight: 900;
}

.journey-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: #7a8797;
  font-size: 14px;
  font-weight: 800;
}

.journey-date::before {
  content: "";
  width: 32px;
  height: 1px;
  background: #c9d6df;
}

.scam-cases {
  --case-color: #e85d8c;
  --case-color-dark: #c94a76;
  --case-color-soft: rgba(232, 93, 140, 0.14);
  background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%);
}

.scam-cases .section-title {
  width: 100%;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 26px;
}

.case-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #cfdbe8;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.case-filter:hover,
.case-filter:focus-visible {
  border-color: rgba(232, 93, 140, 0.5);
  color: var(--case-color-dark);
  outline: 0;
}

.case-filter.is-active {
  border-color: var(--case-color);
  background: var(--case-color);
  color: #fff;
}

.case-carousel {
  margin-top: 0;
}

.case-carousel-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.case-carousel-viewport {
  min-width: 0;
}

.case-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--case-color-dark);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(22, 34, 51, 0.1);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.case-carousel-arrow:hover,
.case-carousel-arrow:focus-visible {
  border-color: #fff;
  background: #fce4ec;
  color: var(--case-color);
  box-shadow: 0 18px 36px rgba(22, 34, 51, 0.18);
  outline: 0;
}

.case-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 18px;
}

.case-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease;
}

.case-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cfdbe8;
  transition:
    background 180ms ease,
    width 180ms ease;
}

.case-dot:hover,
.case-dot:focus-visible {
  outline: 3px solid rgba(232, 93, 140, 0.24);
  outline-offset: 4px;
}

.case-dot.is-active::before {
  width: 28px;
  background: var(--case-color);
}

.case-grid {
  display: block;
}

.case-card {
  display: flex;
  min-width: 0;
  min-height: 380px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(22, 34, 51, 0.08);
}

.case-slide[hidden] {
  display: none;
}

.case-card-wide {
  grid-column: 1 / -1;
}

.case-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 18px;
  text-align: left;
}

.case-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--case-color-soft);
  color: var(--case-color-dark);
  font-size: 14px;
  font-weight: 900;
}

.case-card h3 {
  font-size: clamp(28px, 3vw, 36px);
}

.case-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.75;
}

.case-gallery {
  flex: 0 0 238px;
  display: flex;
  gap: 0;
  max-width: 238px;
  overflow-x: auto;
  padding: 24px 18px 18px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.case-gallery::-webkit-scrollbar {
  display: none;
}

.case-gallery figure {
  flex: 0 0 220px;
  width: 220px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.case-gallery img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: transparent;
  cursor: zoom-in;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.case-gallery img:hover,
.case-gallery img:focus-visible {
  opacity: 0.9;
  outline: 3px solid rgba(15, 76, 131, 0.32);
  outline-offset: -3px;
}

.case-gallery img:active {
  transform: scale(0.98);
}

.case-gallery figcaption {
  display: none;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 28, 0.72);
  backdrop-filter: blur(8px);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 940px);
  max-height: min(88dvh, 900px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(183, 207, 228, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(22, 34, 51, 0.18);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fce4ec;
  outline: 3px solid rgba(255, 255, 255, 0.72);
}

#lightboxImage {
  width: 100%;
  max-height: calc(88dvh - 70px);
  object-fit: contain;
  background: #f8fafc;
}

#lightboxCaption {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid #edf2f7;
  color: #344054;
  font-weight: 900;
  text-align: center;
}

.risk-band {
  background: linear-gradient(180deg, var(--surface) 0%, #f6f8fb 100%);
}

.risk-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 400px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.risk-copy h2 {
  max-width: 760px;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  white-space: nowrap;
}

.risk-copy > p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.risk-steps {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.risk-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.risk-step span {
  display: grid;
  grid-row: span 2;
  align-self: center;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.risk-step strong {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.risk-step p {
  margin: 0;
  color: var(--muted);
}

.risk-mockup {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.risk-mockup img {
  width: min(100%, 430px);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(22, 34, 51, 0.16));
}

.risk-levels {
  margin-top: clamp(36px, 6vw, 64px);
}

.risk-levels-head {
  display: grid;
  gap: 10px;
  width: 100%;
}

.risk-levels-head h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.risk-levels-head p {
  max-width: none;
  margin: 0;
  color: var(--muted);
}

/* ==========================================================================
   ✨ 五種風險等級圖例 - 電腦版與手機版完美 RWD 排版 (修復跑版與大括號衝突)
   ========================================================================== */

/* ── 一、電腦版全域樣式 (預設 5 欄網格並排) ── */

.risk-carousel {
  display: block;
  margin-top: 22px;
}

/* 電腦版：強制保持精美的 5 欄 Grid 並排 */
.risk-grid {
  display: grid !important; 
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  position: static !important; /* 清除手機版相對定位 */
  height: auto !important;
}

/* 電腦版卡片：基礎設定 (清除手機版絕對定位) */
.risk-card {
  position: static !important; 
  opacity: 1 !important;        /* 確保電腦版完全不透明 */
  visibility: visible !important; /* 確保電腦版完全可見 */
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(22, 34, 51, 0.06);
}

.risk-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 電腦版字體：14px，置中對齊 */
.risk-card span {
  display: block !important;
  padding: 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: center !important;
}


/* ── 二、手機版響應式設定 (螢幕寬度小於 680px 專屬，完美鎖在括號內) ── */
@media (max-width: 680px) {

  .risk-carousel {
    position: relative !important; /* 讓子元素可以絕對定位在同一個點 */
  }

  .risk-carousel-viewport {
    min-width: 0 !important;
  }

  /* 手機版：取消 Grid 排列，改為相對定位容器，準備進行淡入淡出 */
  .risk-grid {
    display: block !important; 
    position: relative !important;
    height: auto !important;
    min-height: calc(100vw * 3 / 4 + 48px) !important; /* 確保高度不塌陷 */
  }

  /* 手機版卡片：變成絕對定位以達成淡入淡出（Cross-Fade）*/
  .risk-slide {
    position: absolute !important; /* 強制所有圖片疊在同一個位置 */
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    max-width: none !important;
    background: #fff !important;
    
    /* 核心滑順機制 */
    opacity: 0 !important;             /* 預設全部透明 */
    visibility: hidden !important;     /* 確保透明時不能被點擊 */
    transition: 
      opacity 0.5s ease-in-out, 
      visibility 0.5s ease-in-out !important;
  }

  /* 忽略原本的 [hidden]，改用更精細的 CSS 控制 */
  .risk-slide[hidden] {
    display: block !important; /* 確保圖片還在，能被我們控制 opacity */
  }

  /* 當圖片被加入 .is-active 時，執行淡入顯示 */
  .risk-slide.is-active {
    opacity: 1 !important;             /* 變為不透明 */
    visibility: visible !important;     /* 變為可見並可互動 */
    z-index: 2 !important;              /* 確保自己在最上層 */
  }

  /* 手機版字體加大為 16px，更好讀 */
  .risk-card span {
    font-size: 16px !important;
    padding: 14px 12px !important;
  }
}

.risk-dots,
.training-dots,
.sdg-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 16px;
}

.risk-dot,
.training-dot,
.sdg-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.risk-dot::before,
.training-dot::before,
.sdg-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cfdbe8;
  transition:
    background 180ms ease,
    width 180ms ease;
}

.risk-dot:hover,
.risk-dot:focus-visible,
.training-dot:hover,
.training-dot:focus-visible,
.sdg-dot:hover,
.sdg-dot:focus-visible {
  outline: 3px solid rgba(232, 93, 140, 0.24);
  outline-offset: 4px;
}

.risk-dot.is-active::before,
.training-dot.is-active::before,
.sdg-dot.is-active::before {
  width: 28px;
  background: var(--button-primary);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.volunteer-content {
  min-width: 0;
}

.volunteer-content h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.volunteer-intro {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-top: 20px;
}

.volunteer-intro p,
.volunteer-panel > p {
  margin: 0;
  color: var(--muted);
}

.volunteer-callout {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.volunteer-callout strong {
  display: block;
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 900;
}

.volunteer-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.volunteer-columns {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 0;
}

.volunteer-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.volunteer-heading {
  margin-top: 0;
  font-size: 22px;
  font-weight: 900;
}

.training-flow-panel {
  grid-column: 1 / -1;
  padding-top: 10px;
  text-align: center;
}

.training-flow-panel .volunteer-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0;
  color: var(--primary-dark);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.2;
}

.training-flow-panel .volunteer-heading::before,
.training-flow-panel .volunteer-heading::after {
  content: "";
  display: block;
  width: clamp(42px, 7vw, 92px);
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.training-flow-panel > p {
  max-width: 760px;
  margin-inline: auto;
}

.training-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 28px minmax(250px, 1fr) 28px minmax(250px, 1fr) 28px minmax(250px, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 22px;
  padding-top: 44px;
}

.training-step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  height: 100%;
  padding: 52px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(22, 34, 51, 0.06);
}

.training-step-featured {
  border-color: rgba(44, 90, 160, 0.28);
  background: var(--surface);
}

.training-step-featured h4 {
  color: #2c5aa0;
}

.training-step-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.training-step-number {
  position: absolute;
  top: -22px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}


.training-step-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 0;
}

.training-step h4 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 900;
  text-align: center;
}

.training-step h4::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 20px auto;
  background: var(--primary);
}

.training-step p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.training-flow-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 310px;
  place-items: center;
  align-self: stretch;
  color: var(--primary);
}

.training-flow-arrow svg {
  width: 28px;
  height: 16px;
}

.training-outcome-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  align-self: center; /* 將整個列表區塊在 Flex 父容器中水平置中 */
  margin-top: 0;      /* 確保沒有不必要的上邊距 (視原本margin設定決定) */
}

.training-outcome-list li {
  position: relative;
  padding-left: 30px;
}

.training-outcome-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2c5aa0;
}

.training-outcome-list li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.training-outcome-list strong,
.training-outcome-list span {
  display: block;
}

.training-outcome-list strong {
  color: var(--text);
  font-weight: 900;
}

.training-outcome-list span {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  flex: 1;
}

.participation-note {
  margin: 0 0 18px;
}

.compact-list {
  margin-top: 16px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.check {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3fa;
  color: var(--primary-dark);
  font-weight: 900;
}

.feature-icon {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.feature strong {
  display: block;
  margin-bottom: 3px;
}

.feature span {
  color: var(--muted);
}

.volunteer-action {
  grid-column: 1 / -1;
  margin-top: 28px;
}

.volunteer-pledge {
  grid-column: 1 / -1;
  margin-top: 38px;
  padding-top: 4px;
}

.volunteer-panel .volunteer-heading {
  margin-bottom: 20px;
}

.volunteer-pledge p {
  margin: 0 0 12px;
  color: var(--muted);
}

.volunteer-pledge .volunteer-action {
  margin-top: 18px;
}

.mascot {
  position: sticky;
  top: 96px;
  display: grid;
  align-self: start;
  gap: 18px;
}

.mascot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cta {
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(201, 74, 118, 0.94), rgba(169, 46, 92, 0.88)),
    #c94a76;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: clamp(24px, 5vw, 56px);
}

.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.eyebrow-light {
  color: #dbeafe;
}

.cta .eyebrow::before {
  background: #dbeafe;
}

.cta p {
  color: rgba(255, 255, 255, 0.84);
}

.cta .btn-primary {
  background: #fff;
  color: var(--button-primary);
  box-shadow: none;
}

.cta .btn-primary:hover,
.cta .btn-primary:focus-visible {
  background: #fce4ec;
  color: var(--button-primary-dark);
}

.cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.cta .btn-secondary:hover,
.cta .btn-secondary:focus-visible {
  border-color: #fff;
  background: #fce4ec;
  color: #e85d8c;
  outline: none;
}

.contact-box {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row strong {
  color: #fff;
}

.contact-row span {
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}

.site-footer {
  padding: 26px 0;
  color: #617083;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #0a355c;        /* 改為你專案定義的深藍色 (或寫 var(--primary-dark)) */
  color: #ffffff;             /* 字體改為純白色 */
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.2s ease, transform 0.2s ease; /* 讓滑鼠移上去的過渡效果更平滑 */
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  /* 🎯 修正：改用品牌定義的桃紅色 (var(--primary) 即 #e85d8c) */
  background: var(--primary) !important; 
  color: #ffffff !important;
  
  /* 加上柔和的粉色發光陰影與微幅上飄 */
  box-shadow: 0 6px 14px rgba(232, 93, 140, 0.25) !important;
  transform: translateY(-2px) !important;
  outline: none;
}

.statement-hero {
  padding-bottom: 32px;
  background:
    linear-gradient(180deg, rgba(15, 76, 131, 0.04), rgba(255, 255, 255, 0)),
    #fff;
}

.statement-hero-inner {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.statement-hero h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  white-space: nowrap;
}

.statement-hero p:not(.eyebrow) {
  max-width: 820px;
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.statement-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.statement-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 76, 131, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.statement-section {
  padding-top: 20px;
  background: var(--bg);
}

.statement-stack {
  display: grid;
  gap: 18px;
}

.statement-grid-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.statement-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 34, 51, 0.08);
}

.statement-panel-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
}

.statement-panel-head > div {
  min-width: 0;
}

.statement-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.statement-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  overflow-wrap: anywhere;
}

.statement-panel-body {
  display: grid;
  gap: 16px;
}

.statement-label {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.statement-panel p,
.statement-panel li {
  color: var(--muted);
}

.statement-panel p {
  margin: 0;
}

.statement-panel-wide {
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.statement-panel-wide .statement-panel-head {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 0;
  border-bottom: 0;
}

.statement-panel-wide .statement-panel-head > div {
  display: grid;
  grid-template-columns: max-content minmax(80px, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
}

.statement-panel-wide .statement-panel-head > div::after {
  content: "";
  height: 2px;
  border-radius: 999px;
  background: #d9e2ec;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.sdg-item {
  display: grid;
  gap: 14px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 34, 51, 0.08);
}

.sdg-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f0f4f8;
}

.sdg-item figcaption {
  display: grid;
  gap: 6px;
  padding: 0 16px 16px;
}

.statement-panel .sdg-grid {
  margin-top: 8px;
}

.sdg-item strong {
  color: var(--primary-dark);
  font-weight: 900;
}

.sdg-item span {
  color: var(--muted);
}

.line-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(50px, env(safe-area-inset-bottom));
  z-index: 40;
  display: block;
  width: min(116px, 24vw);
  transition: transform 180ms ease;
}

.line-float:hover,
.line-float:focus-visible {
  outline: none;
}

.line-float img {
  width: 100%;
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    background: #fff;
  }

  .hero .container,
  .split-section,
  .cta-grid,
  .statement-stack {
    grid-template-columns: 1fr;
  }

  .statement-grid-top {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-self: center;
  }

  .phone-shot {
    margin: 0 auto;
  }

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

  .risk-showcase {
    grid-template-columns: 1fr;
  }

  .risk-mockup {
    justify-self: center;
    width: min(100%, 430px);
  }

  .risk-copy h2 {
    max-width: 680px;
    font-size: clamp(30px, 4.2vw, 48px);
    white-space: normal;
  }

  .risk-levels-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .training-flow-panel {
    padding-top: 8px;
  }

  .training-flow {
    grid-template-columns: minmax(250px, 1fr) 28px minmax(250px, 1fr) 28px minmax(250px, 1fr) 28px minmax(250px, 1fr);
    overflow-x: auto;
    padding: 44px 2px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .training-step {
    scroll-snap-align: start;
  }

  .training-flow-arrow {
    min-height: 310px;
  }

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

  .card-track {
    grid-auto-columns: minmax(300px, calc((100% - 20px) / 2));
  }

  .carousel-controls {
    right: -14px;
    left: -14px;
  }
}

@media (max-width: 680px) {
  .statement-hero h1 {
    font-size: clamp(32px, 10vw, 42px);
    white-space: normal;
  }

  .statement-panel {
    padding: 20px;
  }

  .statement-panel-head,
  .statement-panel-wide .statement-panel-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .statement-icon {
    width: 44px;
    height: 44px;
  }

  .statement-panel h2 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .statement-panel-wide .statement-panel-head > div {
    grid-template-columns: minmax(0, max-content) minmax(48px, 1fr);
  }

  .mascot {
    position: static;
  }

  .volunteer-callout {
    gap: 10px;
  }

  .feature {
    min-height: 92px;
  }

  .training-flow-panel {
    padding-top: 6px;
  }

  .training-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    overflow-x: visible;
    padding: 44px 2px 0;
    scroll-snap-type: none;
  }

  .training-step {
    max-width: min(100%, 520px);
    width: 100%;
    margin-inline: auto;
    min-height: auto;
    padding-bottom: 22px;
  }

  .training-flow-arrow {
    display: none;
  }

  .training-dots {
    display: none;
  }

  .nav {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding-inline: 12px;
    font-size: 15px;
  }

  .hero {
    padding-top: 24px;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-track {
    grid-auto-columns: 100%;
    gap: 16px;
    padding-inline: 0;
  }

  .carousel-controls {
    right: 4px;
    left: 4px;
  }

  .about-card {
    min-height: 430px;
  }

  .about-card img {
    height: 240px;
    object-fit: cover;
  }

  .journey-details li {
    grid-template-columns: 64px 1fr;
  }

  .risk-carousel {
    display: block;
  }

  .risk-carousel-arrow {
    display: none;
  }

  .risk-grid {
    display: block;
  }

  .risk-card {
    max-width: min(100%, 520px);
    margin-inline: auto;
  }

  .risk-dots {
    display: flex;
  }

   
    .sdg-grid {
      display: grid;              /* 從 block 改回 grid，讓 gap 屬性生效 */
      grid-template-columns: 1fr; /* 手機版單欄垂直排列，一張一張往下排 */
      gap: 20px;                  /* 卡片與卡片之間的上下間距 */
      margin-inline: 0;
    }
    
    .sdg-item {
      width: 100%;
      max-width: min(100%, 520px);
      margin-inline: auto;
    }
    
    /* 強制顯示原本被 JS 或是 HTML hidden 屬性隱藏的輪播項目 */
    .sdg-item[hidden] {
      display: grid !important;   /* 確保所有項目同時展開顯示 */
    }
    
    /* 隱藏手機版原本的輪播切換圓點 */
    .sdg-dots {
      display: none !important;   /* 展開排列後不再需要導覽圓點，直接隱藏 */
    }

  .risk-step {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .risk-mockup {
    padding: 14px;
  }

  .case-tags {
    flex-wrap: nowrap;
    margin: 12px -18px 22px;
    overflow-x: auto;
    padding: 0 18px 4px;
    scrollbar-width: thin;
  }

  .case-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .case-carousel {
    margin-top: 0;
  }

  .case-carousel-shell {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .case-carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .case-card {
    flex-direction: column;
  }

  .case-card-body {
    flex: 1;
    padding: 20px 18px 10px;
    text-align: left;
  }

  .case-gallery {
    flex: 0 0 auto;
    width: min(220px, 100%);
    max-width: min(220px, 100%);
    gap: 0;
    justify-content: flex-start;
    margin-inline: auto;
    padding: 8px 0 20px;
    scroll-padding-inline: 0;
  }

  .case-gallery figure {
    flex: 0 0 min(220px, 100%);
    width: min(220px, 100%);
    scroll-snap-align: start;
  }

  .case-gallery img {
    height: min(72vw, 360px);
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-panel {
    max-height: 86dvh;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  #lightboxImage {
    max-height: calc(86dvh - 64px);
  }

.footer-inner {
    flex-direction: column;
    gap: 16px;
  }

  /* 針對按鈕區塊，強制改為水平併排，並且自動置中 */
  .site-footer .footer-links {
    display: flex;
    flex-direction: row;      /* 👈 改為 row，按鈕就會在手機版水平併排 */
    flex-wrap: wrap;          /* 確保按鈕在極窄螢幕上能優雅換行，不破版 */
    justify-content: center;  /* 按鈕整體水平置中 */
    gap: 8px;                 /* 設定按鈕之間的間距 */
  }
}

  .contact-row span {
    text-align: left;
  }

  .line-float {
    width: min(92px, 30vw);
    right: max(14px, env(safe-area-inset-right));
    bottom: max(30px, env(safe-area-inset-bottom));
  }


@media (max-width: 420px) {
  .statement-panel-head,
  .statement-panel-wide .statement-panel-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .statement-icon {
    width: 40px;
    height: 40px;
  }

  .statement-panel-wide .statement-panel-head > div {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .statement-panel-wide .statement-panel-head > div::after {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ✨ 僅針對電腦版移除導覽箭頭，不影響手機版 */

/* 在全域定義中，將箭頭設定為隱藏 */
/* 因為電腦版 Grid 排列不需要手動輪播箭頭 */
.risk-carousel-arrow {
  display: none; /* 僅針對電腦版隱藏，移除 <> 符號 */
}
/* ==========================================================================
   ✨ AI 防詐小幫手 RWD 雙層複合式頭部 - 終極修正與手指觸控寬裕版
   ========================================================================== */

/* 一、全站通用與電腦版優化 */

/* 1. 電腦版 Logo 放大：寬度從 230px 放大到 260px，高度從 54px 放大到 60px */
.brand-logo {
  width: min(260px, 48vw) !important;
  height: 60px !important;
  object-fit: contain;
  object-position: left center;
}

/* 2. 電腦版 Header 預設為 sticky，因此 body 不需要 padding-top，避免出現空白縫隙 */
body {
  padding-top: 0 !important;
}


/* 二、手機版響應式設定：雙層複合式隱藏、放大觸控區 (螢幕寬度小於 680px) */
@media (max-width: 680px) {
  
  /* 1. 解決覆蓋問題：設定與手機版複合式 Header 相同高度的上邊距 (Logo層 60px + 按鈕層 48px = 108px) */
  body {
    padding-top: 108px !important; 
  }

  /* 2. 將整個 Header 設為固定定位，高度鎖定在 108px */
  .site-header {
    position: fixed !important;  
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 108px !important; /* 👈 調整為 108px，給按鈕更多垂直呼吸空間 */
    z-index: 99 !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    transition: top 0.3s ease-in-out !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* 3. 重設手機版內部導覽結構 */
  .nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: auto !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* A. Logo 層：高度固定 60px */
  .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 60px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .brand-logo {
    height: 46px !important; 
    width: auto !important;
    max-width: 80% !important;
  }

  /* B. 按鈕層：高度從 40px 增加至 48px！ */
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 48px !important; /* 👈 增加至 48px 金牌觸控高度 */
    padding: 0 8px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .nav-links::-webkit-scrollbar {
    display: none !important;
  }

  /* 📱 手機版四個按鈕：上下 Padding 從 6px 加大到 10px！點擊更靈敏 */
  .nav-links a {
    flex: 1 0 auto !important;
    min-height: auto !important;
    padding: 10px 10px !important; /* 👈 上下內距加大到 10px，完美擴展觸控感應區 */
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #344054 !important;
    background: transparent !important;
    border-radius: 6px !important;
    transition: 
      background-color 150ms ease, 
      color 150ms ease, 
      transform 100ms ease-out !important;
  }

  /* 📱 一般按鈕按壓反饋 */
  .nav-links a:not(.nav-cta):active {
    background-color: rgba(232, 93, 140, 0.1) !important;
    color: var(--primary) !important;
    transform: scale(0.95) !important;
  }

  .nav-links a:not(.nav-cta):hover {
    color: var(--primary) !important;
  }

  /* 📱 合作邀約 (CTA) 按鈕上下留白同步加大 */
  .nav-links .nav-cta {
    margin-left: 4px !important;
    padding: 10px 12px !important; /* 👈 同步改為上下 10px，確保視覺水平高度齊平 */
    background: var(--button-primary) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 4px 10px rgba(232, 93, 140, 0.15) !important;
  }

  /* 合作邀約按鈕按壓反饋 */
  .nav-links .nav-cta:active {
    background-color: var(--button-primary-dark) !important;
    transform: scale(0.93) !important;
    box-shadow: 0 2px 4px rgba(232, 93, 140, 0.1) !important;
    color: #fff !important;
  }

  .nav-links .nav-cta:hover {
    color: #fff !important;
  }

  /* 4. 滾動隱藏：向上滑動時，將整條 Header 往上推 60px，按鈕層 (高 48px) 依舊完美頂格貼齊 */
  .site-header.header-hidden {
    top: -60px !important; 
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ==========================================================================
   ✨ 終極修復：消除電腦版 165 宣告與「關於我們」之間的巨大空白斷層
   ========================================================================== */
@media (min-width: 681px) {
  
  /* 🎯 核心修正：解除電腦版強制撐滿整個螢幕高度 (100dvh) 的設定 */
  .hero {
    min-height: auto !important;       /* 👈 釋放高度，高度由內容與 padding 自然決定 */
    padding-bottom: 32px !important;   /* 將 Hero 底部留白縮減至精緻的 32px */
  }

  /* 2. 消除 165 提示段落可能產生的下方外距 */
  .hero-notice-spaced {
    margin-bottom: 0 !important;
  }

  /* 3. 將下方的「關於我們」區塊頂部內距調小，兩者完美貼合 */
  .about {
    padding-top: 32px !important;      /* 👈 縮減關於我們上方的留白至 32px */
  }
}
/* ==========================================================================
   ✨ 贊助按鈕（Sponsor Button）優雅呼吸微光與流光掠過（Shine Sweep）特效
   ========================================================================== */

/* 1. 核心設定：為贊助按鈕綁定「呼吸律動」動畫 */
.volunteer-pledge .btn-glass {
  position: relative !important;
  overflow: hidden !important; /* 👈 確保流光不會溢出按鈕圓角邊框 */
  
  /* 綁定自動呼吸動畫：3 秒一次，無限循環 */
  animation: sponsorPulse 3s infinite ease-in-out !important;
}

/* 2. 使用 ::after 虛擬元素製作一條半透明的「斜向白金流光」 */
.volunteer-pledge .btn-glass::after {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  left: -60% !important;
  width: 30% !important;
  height: 200% !important;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  transform: rotate(25deg) !important; /* 斜向折射角度 */
  
  /* 綁定流光閃爍動畫：4 秒一次，無限循環 */
  animation: sponsorShine 4s infinite ease-in-out !important;
  pointer-events: none !important; /* 確保流光不會阻擋滑鼠點擊 */
}

/* 3. 特效一：呼吸脈動動畫（Glow & Scale Pulse） */
@keyframes sponsorPulse {
  0% {
    transform: scale(1);
    /* 預設陰影 */
    box-shadow: 0 16px 34px rgba(232, 93, 140, 0.14), 0 0 0 0 rgba(232, 93, 140, 0.4);
  }
  50% {
    transform: scale(1.03); /* 微微膨脹 3%，製造呼吸感 */
    /* 外圍渲染一層柔和的桃紅色光暈，並向外擴散 */
    box-shadow: 0 20px 40px rgba(232, 93, 140, 0.22), 0 0 0 8px rgba(232, 93, 140, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 16px 34px rgba(232, 93, 140, 0.14), 0 0 0 0 rgba(232, 93, 140, 0);
  }
}

/* 4. 特效二：流光掃掠動畫（Shine Sweep Effect） */
@keyframes sponsorShine {
  0% {
    left: -60%; /* 起始點：隱藏在按鈕左側外 */
  }
  15% {
    left: 130%; /* 快速在 0.6 秒內橫向掃過按鈕，產生耀眼折射 */
  }
  100% {
    left: 130%; /* 剩餘時間保持靜止，定時循環一次，避免頻繁閃爍造成視覺疲勞 */
  }
}

/* 5. 互動優化：當滑鼠懸停 (Hover) 或手指按壓時，暫停自動呼吸，專注於使用者的點擊回饋 */
.volunteer-pledge .btn-glass:hover {
  animation-play-state: paused !important; /* 暫停自動呼吸 */
  transform: scale(1.05) !important;      /* 懸停時放大 5% */
  box-shadow: 0 20px 42px rgba(232, 93, 140, 0.28) !important;
}

.volunteer-pledge .btn-glass:active {
  transform: scale(0.96) !important;      /* 按下時微下陷反饋 */
  box-shadow: 0 10px 20px rgba(232, 93, 140, 0.1) !important;
}
/* ==========================================================================
   ✨ 修正手機版「合作適用對象」：強制水平併排且標題絕對不換行
   ========================================================================== */
@media (max-width: 680px) {
  
  /* 1. 強制每一列保持「左右併排」(不垂直堆疊) */
  .contact-box .contact-row {
    display: flex !important;
    flex-direction: row !important;       /* 👈 強制水平排列 */
    justify-content: space-between !important; /* 👈 標題靠左、說明靠右 */
    align-items: center !important;       /* 👈 上下垂直置中對齊 */
    gap: 16px !important;                 /* 👈 縮小手機版左右間距 */
    padding: 12px 0 !important;           /* 👈 稍微緊湊一點，更省空間 */
  }

  /* 2. 關鍵：防止「一般民眾、學校單位、企業組織、政府機關」這四個標題內部換行 */
  .contact-row strong {
    white-space: nowrap !important; /* 👈 核心：強制四個標題「絕對不換行」 */
    flex-shrink: 0 !important;      /* 👈 核心：防止標題因為說明文字太長而被擠扁 */
    font-size: 15px !important;     /* 👈 微調手機版標題字體大小 */
  }

  /* 3. 調整右側說明文字：右對齊，像表格一樣整齊 */
  .contact-row span {
    text-align: right !important;   /* 👈 手機版改為「靠右對齊」，視覺極致整齊 */
    font-size: 13px !important;     /* 👈 稍微調小字體，確保小螢幕也能完美不破版 */
    color: rgba(255, 255, 255, 0.85) !important; /* 👈 保持柔和的高對比度白色 */
    line-height: 1.4 !important;
  }
}

/* ==========================================================================
   🎬 關於我們 - FB Reels 影片封面卡片與電影院彈跳視窗 (Video Lightbox)
   ========================================================================== */

/* 1. 影片卡片外框設定 */
.about-card.video-card-trigger {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.about-card.video-card-trigger:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(22, 34, 51, 0.18) !important;
}

/* 2. 封面圖包裝器：鎖定與一般圖片完全相同的 230px 高度 */
.video-thumbnail-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 230px !important;
  overflow: hidden !important;
  background: #000;
}

.video-thumbnail-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

/* 滑鼠懸停時封面圖微放大 */
.about-card.video-card-trigger:hover .video-thumbnail-wrapper img {
  transform: scale(1.05);
}

/* 3. 播放按鈕懸浮遮罩 */
.video-play-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.35) !important; /* 輕微暗化封面，凸顯播放鍵 */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: background 0.2s ease !important;
}

.about-card.video-card-trigger:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2) !important; /* 懸停時變亮 */
}

/* 播放圓圈與三角形符號 */
.play-icon {
  width: 56px;
  height: 56px;
  background: var(--primary); /* 使用漂亮的品牌桃粉色 */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(232, 93, 140, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.play-icon svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* 微調三角形居中視覺 */
}

.about-card.video-card-trigger:hover .play-icon {
  transform: scale(1.15) !important; /* 懸停時播放鍵微幅彈跳變大 */
}

/* ── 4. 電影院級影片彈出視窗 (Video Lightbox) ── */
.video-popup-container {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important; /* 確保絕對在最上層，甚至高於導覽列 */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: rgba(9, 18, 28, 0.88) !important; /* 深邃夜藍半透明背景 */
  backdrop-filter: blur(12px) !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* 當啟用時淡入 */
.video-popup-container.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 彈出視窗主面板 */
.video-popup-panel {
  position: relative !important;
  width: min(340px, 90vw) !important;  /* 👈 直式 Reels 的黃金響應式寬度 */
  height: min(600px, 80dvh) !important; /* 👈 限制最高高度，不超出手機螢幕 */
  aspect-ratio: 267 / 476 !important;   /* 👈 完美鎖定 FB 預設播放比例 */
  background: #000 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden !important;
  transform: scale(0.9) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
}

.video-popup-container.is-active .video-popup-panel {
  transform: scale(1) !important; /* 彈出時有輕微的放大回彈動效 */
}

/* 播放器 Iframe */
.video-popup-panel iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* 關閉按鈕 */
.video-popup-close {
  position: absolute !important;
  top: -48px !important;
  right: 0 !important;
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-size: 36px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.video-popup-close:hover {
  opacity: 1 !important;
  transform: rotate(90deg) !important; /* 懸停時叉叉微轉 90 度，細節滿分 */
}

/* ==========================================================================
   ✨ 修正影片卡片手機版高度落差：強制與常規卡片圖片同步對齊
   ========================================================================== */
@media (max-width: 680px) {
  /* 當螢幕寬度小於 680px 時，強制將預覽圖外框拉高至 240px，與常規卡片完全一致 */
  .video-thumbnail-wrapper {
    height: 240px !important;
  }
}
