/* ============================================================
   2026 Ovayan 黃金友誼號 — Premium Stylesheet v2
   原住民族委員會 主辦活動網站
   ============================================================ */

/* ---------- Brand Tokens ---------- */
:root {
  /* Color (calibrated to 2026 主視覺 KV — teal lagoon + metallic gold)
     Strategy: KV palette as accents, ivory/paper as quiet ground,
     deeper ocean tones for contemplative sections (達悟文化質感) */
  --c-teal-900: #0A3947;
  --c-teal-800: #0F5A62;
  --c-teal-700: #14808A;
  --c-teal-600: #1FA8AE;
  --c-teal-500: #2AB5BE;       /* MAIN — matches KV lagoon */
  --c-teal-400: #44C8CE;
  --c-teal-300: #72D7DC;
  --c-teal-200: #A6E5E9;
  --c-teal-100: #D5F1F3;
  --c-teal-50:  #ECF8F9;

  /* Mahi-mahi green-yellow — dolphinfish accent, used sparingly */
  --c-lime-700: #6F9320;
  --c-lime:     #B5D334;
  --c-lime-lt:  #D8E96B;

  /* Metallic gold family — warmer, less neon, KV-matched */
  --c-gold:     #E8B547;       /* main gold — matches KV "300年首航" */
  --c-gold-dk:  #B8862A;       /* bronze for depth/gradients */
  --c-gold-lt:  #F5D689;       /* pale metallic highlight */
  --c-orange:   #E8851A;       /* Tatala boat warm gold-orange */
  --c-coral:    #F46F4D;
  --c-red:      #A8392E;       /* terracotta — Tatala traditional red, calmer */

  --c-ink:      #0C2A34;
  --c-text:     #243640;
  --c-muted:    #5E6F77;
  --c-soft:     #8A9BA3;
  --c-line:     rgba(14,77,107,0.12);
  --c-line-2:   rgba(14,77,107,0.06);
  --c-bg:       #FFFFFF;
  --c-bg-soft:  #FAF5E8;       /* ivory/米白 — paper feel, replaces cool mist */
  --c-bg-mist:  #E6F0EE;       /* ocean mist, slightly warmer */

  /* Type */
  --f-sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(11,42,54,.06), 0 2px 6px rgba(11,42,54,.06);
  --sh-2: 0 6px 16px rgba(11,42,54,.08), 0 2px 4px rgba(11,42,54,.04);
  --sh-3: 0 18px 38px rgba(11,42,54,.14), 0 6px 12px rgba(11,42,54,.06);
  --sh-4: 0 32px 64px rgba(11,42,54,.22);
  --sh-glow: 0 0 32px rgba(42,181,190,.42);

  /* Layout */
  --max-w: 1280px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.4,.2,.2,1);
  --ease-out: cubic-bezier(.2,.7,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: .2s;
  --t: .3s;
  --t-slow: .6s;
}

/* ============================================================
   THEME — light (default) and sea-night (dark)
   --c-ink is a DUAL-PURPOSE token (used both as text and as dark-surface bg).
   In dark mode we keep --c-ink dark (so footer/ticker/section--ink stay dark)
   and instead override the text-color usages explicitly.
   ============================================================ */
:root[data-theme="dark"] {
  --c-bg:       #061B26;
  --c-bg-soft:  #0B2A36;
  --c-bg-mist:  #0E3849;
  --c-text:     #E5F0F2;
  --c-muted:    #98AFB8;
  --c-soft:     #6F8893;
  --c-line:     rgba(255,255,255,0.10);
  --c-line-2:   rgba(255,255,255,0.05);
  /* --c-ink stays dark — it is also a surface color */
  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --sh-2: 0 6px 18px rgba(0,0,0,.4);
  --sh-3: 0 18px 48px rgba(0,0,0,.5);
}
:root[data-theme="dark"] body { background: var(--c-bg); color: var(--c-text); }
:root[data-theme="dark"] .site-header { background: rgba(11,42,54,.86); }
:root[data-theme="dark"] .site-header.is-scrolled { background: rgba(11,42,54,.96); }
/* explicit text-color overrides where --c-ink was used as text */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] .site-logo,
:root[data-theme="dark"] .site-nav a,
:root[data-theme="dark"] .anatomy__detail-name,
:root[data-theme="dark"] .feature-card h3,
:root[data-theme="dark"] .voice__name,
:root[data-theme="dark"] .stat__value,
:root[data-theme="dark"] .video-card h3,
:root[data-theme="dark"] .video-item h4,
:root[data-theme="dark"] .faq-item__q,
:root[data-theme="dark"] .speaker h4,
:root[data-theme="dark"] .timeline-item h3 { color: #fff; }
:root[data-theme="dark"] .site-nav a.is-active { color: var(--c-teal-400); }
:root[data-theme="dark"] .btn--primary { color: var(--c-ink); }
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .voice,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .speaker,
:root[data-theme="dark"] .video-item,
:root[data-theme="dark"] .video-card,
:root[data-theme="dark"] .social-card,
:root[data-theme="dark"] .partner,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .map-wrap { background: #0F2C39; border-color: rgba(255,255,255,.08); color: var(--c-text); }
:root[data-theme="dark"] .map-wrap__info dd { color: var(--c-text); }
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea { background: #0B2A36; color: #fff; border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] .tabs { background: #0B2A36; border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .ticker { background: #04131C; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--c-teal-700); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--c-orange); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--c-gold); color: var(--c-ink); }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--c-ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: .01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Icon helper */
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.icon--lg { width: 28px; height: 28px; }
.icon--sm { width: 16px; height: 16px; }

/* Layout helpers */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--c-bg-soft); }
.section--mist { background: linear-gradient(180deg, var(--c-bg-mist), var(--c-bg-soft)); }
.section--ink { background: var(--c-ink); color: rgba(255,255,255,.85); }
.section--ink h2, .section--ink h3 { color: #fff; }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .35em;
  color: var(--c-teal-600);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section__eyebrow::before, .section__eyebrow::after {
  content: ""; width: 32px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--c-teal-500), transparent);
}
.section__title { margin-bottom: 14px; }
.section__lead { color: var(--c-muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-teal-500), var(--c-lime), var(--c-gold));
  width: 0%;
  z-index: 1100;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(232,181,71,.5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .04em;
  transition: all var(--t) var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.18);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform .6s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateX(110%) skewX(-20deg); }
.btn--primary {
  background: linear-gradient(135deg, var(--c-gold-lt), var(--c-gold) 55%, var(--c-gold-dk));
  color: var(--c-ink);
  box-shadow: var(--sh-2), 0 4px 14px rgba(232,181,71,.45);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3), 0 6px 18px rgba(232,181,71,.55);
  color: var(--c-ink);
}
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; color: var(--c-teal-800); border-color: #fff; }
.btn--outline { color: var(--c-teal-700); border-color: var(--c-teal-500); background: transparent; }
.btn--outline:hover { background: var(--c-teal-700); color: #fff; border-color: var(--c-teal-700); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-teal-800); color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--t) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--c-line);
  box-shadow: 0 4px 16px rgba(11,42,54,.06);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display);
  font-weight: 700; color: var(--c-ink);
  font-size: 1.05rem;
  transition: opacity var(--t) var(--ease);
}
.site-logo:hover { opacity: .85; color: var(--c-ink); }
.site-logo__mark {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-teal-500), var(--c-teal-800));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}
.site-logo__mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
}
.site-logo__mark svg { color: #fff; width: 26px; height: 26px; position: relative; z-index: 1; }
.site-logo__text small {
  display: block;
  font-family: var(--f-sans); font-size: .7rem;
  color: var(--c-muted); font-weight: 400; letter-spacing: .08em;
  margin-top: 2px;
}

.nav-toggle { display: none; width: 44px; height: 44px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 10px 16px;
  color: var(--c-ink);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
}
.site-nav a:hover { color: var(--c-teal-700); background: var(--c-teal-50); }
.site-nav a.is-active { color: var(--c-teal-700); }
.site-nav a.is-active::after {
  content: ""; position: absolute;
  left: 50%; bottom: 2px;
  width: 20px; height: 3px;
  background: var(--c-gold);
  border-radius: 2px;
  transform: translateX(-50%);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-left: 8px;
  background: rgba(255,255,255,.6);
}
.lang-switch button {
  padding: 8px 14px;
  font-size: .8rem; font-weight: 600;
  color: var(--c-muted);
  display: flex; align-items: center; gap: 6px;
  transition: all var(--t) var(--ease);
}
.lang-switch button:hover { color: var(--c-teal-700); }
.lang-switch button.is-active { background: var(--c-teal-700); color: #fff; }

/* ============================================================
   HERO — uses provided banner image
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--c-teal-800);
}
/* When banner image is the hero, let it lead — minimal overlay & natural aspect */
.hero--banner {
  min-height: auto;
  aspect-ratio: 1920 / 720;
  max-height: 92vh;
  align-items: stretch;
}
.hero--banner .hero__banner-image {
  background-size: cover;
  background-position: center center;
}
/* banner-led hero：交給 banner-image::after 的 Smart Vignette 處理，
   這層只保留極輕的底部 wave 區域柔化（避免白浪 SVG 邊緣太硬） */
.hero--banner .hero__overlay {
  background:
    linear-gradient(180deg, transparent 80%, rgba(8,38,52,.12) 100%);
}
.hero--banner .hero__wave svg path { fill: #FFFFFF; }

/* LIVE badge — top-left, glassy */
.hero__badge {
  position: absolute; z-index: 6;
  top: calc(var(--header-h) + 28px);
  left: 32px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(11,42,54,.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: .8rem; letter-spacing: .22em;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--sh-2);
}
.hero__badge .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 0 rgba(232,181,71,.75);
  animation: pulse-gold 1.6s infinite;
}

/* CTA actions — bottom-left, sits above wave divider */
.hero__actions {
  position: absolute; z-index: 6;
  left: 32px; bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero--banner .hero__indicators {
  bottom: 100px;
  right: 24px; left: auto;
}
.hero--banner .hero__scroll { bottom: 16px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg .layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease, transform 8s ease;
}
.hero__bg .layer.is-active { opacity: 1; transform: scale(1.04); }

/* Banner image — 使用上一版 banner-hero.jpg（SVG 為後備） */
.hero__banner-image {
  position: absolute; inset: 0;
  background-image:
    url('../assets/banner-hero.jpg'),
    url('../assets/banner-hero.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
/* Smart Vignette — 四角／側邊聚光遮罩，保 KV 中央金字不被均勻變暗 */
.hero__banner-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* 中央極淡高光：反向提亮 KV 主視覺金字 */
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(255,255,255,.14), transparent 72%),
    /* 左上柱狀暗角：保護 LIVE 倒數膠囊文字 */
    radial-gradient(ellipse 38% 32% at 0% 0%, rgba(8,38,52,.55), transparent 70%),
    /* 左下楔形暗角：保護 CTA 按鈕區 */
    radial-gradient(ellipse 50% 48% at 0% 100%, rgba(8,38,52,.62), transparent 72%),
    /* 右側柔暗：給航行重點玻璃卡對比 */
    radial-gradient(ellipse 36% 70% at 100% 50%, rgba(8,38,52,.36), transparent 78%),
    /* 右下淡暗 */
    radial-gradient(ellipse 35% 35% at 100% 100%, rgba(8,38,52,.30), transparent 72%);
}

/* 基礎 overlay：僅留中央極淡湖綠暖光、不再做全幅底部暗化 */
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 55% 40% at 50% 50%, rgba(42,181,190,.10), transparent 65%);
}

/* Decorative wave at bottom */
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  pointer-events: none;
}
.hero__wave svg { width: 100%; display: block; }

.hero__inner {
  position: relative; z-index: 5;
  max-width: var(--max-w);
  margin: 0 auto; padding: 60px 24px 140px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: .82rem; letter-spacing: .25em;
  margin-bottom: 28px;
  color: #fff;
}
.hero__eyebrow .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 0 rgba(232,181,71,.75);
  animation: pulse-gold 1.6s infinite;
}
@keyframes pulse-gold {
  0%   { box-shadow: 0 0 0 0 rgba(232,181,71,.75); }
  70%  { box-shadow: 0 0 0 12px rgba(232,181,71,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,181,71,0); }
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -.01em;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.hero__title .accent {
  color: var(--c-gold);
  display: inline-block;
  position: relative;
}
.hero__title .accent::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 14px;
  background: var(--c-gold);
  opacity: .25;
  z-index: -1;
  border-radius: 4px;
}
.hero__sub-en {
  font-family: var(--f-sans);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px;
  display: block;
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 640px;
  color: rgba(255,255,255,.92);
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero side meta card — Featured 啟航典禮資訊卡 */
.hero__card {
  position: absolute;
  right: 24px; bottom: 110px;
  z-index: 6;
  width: 320px;
  background: rgba(11,42,54,.42);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
  color: #fff;
  box-shadow: var(--sh-3);
}

.hero__card-eyebrow {
  display: block;
  font-family: var(--f-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--c-gold-lt);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero__card-date {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.hero__card-date strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.85rem;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFE9B0 0%, #E8B547 70%, #B8862A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(184,134,42,.3);
}
.hero__card-date span {
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  letter-spacing: .04em;
}

.hero__card-venue {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.hero__card-venue svg { color: var(--c-gold); flex-shrink: 0; }

.hero__card-countdown {
  background: rgba(0,0,0,.18);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.hero__card-countdown > small {
  display: block;
  font-size: .68rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* 緊湊型倒數（卡內用） */
.countdown--compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
}
.countdown--compact .countdown__item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  min-width: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.countdown--compact .countdown__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--c-gold-lt);
  display: block;
}
.countdown--compact .countdown__label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255,255,255,.72);
  display: block;
  margin-top: 2px;
}

.hero__card-meta {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  margin-bottom: 12px;
}
.hero__card-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.88);
  line-height: 1.45;
}
.hero__card-meta-row svg { color: var(--c-gold); flex-shrink: 0; }

.hero__card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-gold-lt);
  text-decoration: none;
  letter-spacing: .04em;
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
.hero__card-link:hover { gap: 10px; color: #FFE9B0; }
.hero__card-link svg { transition: transform var(--t) var(--ease); }
.hero__card-link:hover svg { transform: translateX(2px); }

/* Legacy hero__card-row（其他頁面或不同 layout 仍可能用到，保留相容） */
.hero__card-row {
  display: flex; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  gap: 14px;
}
.hero__card-row:last-child { border-bottom: 0; }
.hero__card-row svg { color: var(--c-gold); }
.hero__card-row small {
  display: block;
  font-size: .68rem; letter-spacing: .2em;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hero__card-row strong {
  font-family: var(--f-display);
  font-weight: 600; font-size: .95rem;
}

.hero__indicators {
  position: absolute; left: 24px; bottom: 145px;
  z-index: 6;
  display: flex; gap: 10px;
}
.hero__indicators button {
  width: 32px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  transition: all var(--t) var(--ease);
}
.hero__indicators button.is-active {
  background: var(--c-gold);
  width: 56px;
  box-shadow: 0 0 12px rgba(232,181,71,.8);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  color: rgba(255,255,255,.7);
  font-size: .72rem; letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.7));
  margin: 8px auto 0;
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
  background: var(--c-gold);
  animation: scroll-down 2s infinite;
}
@keyframes scroll-down {
  0% { top: -10px; }
  100% { top: 32px; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: #0B2A36;
  color: #fff;
  padding: 0;
  display: flex; align-items: stretch;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
:root[data-theme="dark"] .ticker { background: #04131C; }
.ticker__label {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dk));
  color: var(--c-ink);
  padding: 14px 20px;
  font-weight: 800; font-size: .82rem; letter-spacing: .15em;
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.ticker__label::after {
  content: ""; position: absolute; right: -20px; top: 0; bottom: 0;
  width: 22px;
  background: linear-gradient(135deg, var(--c-gold-dk) 50%, transparent 50%);
}
.ticker__label .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c81e1e;
  box-shadow: 0 0 0 0 rgba(200,30,30,.7);
  animation: pulse-red 1.6s infinite;
}
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(200,30,30,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(200,30,30,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,30,30,0); }
}
.ticker__viewport { overflow: hidden; flex: 1; padding: 14px 0 14px 36px; display: flex; align-items: center; }
.ticker__track {
  display: inline-flex; gap: 64px;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  padding-right: 64px;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { font-size: .92rem; display: inline-flex; align-items: center; gap: 10px; }
.ticker__track span svg { color: var(--c-gold); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.stat {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--c-teal-200);
}
.stat::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-teal-500), var(--c-lime), var(--c-gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.stat:hover::before { transform: scaleX(1); }

.stat__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c-teal-50), var(--c-teal-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--c-teal-700);
}
.stat__icon svg { width: 28px; height: 28px; }
.stat__value {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 6px;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.stat__value .unit {
  font-size: .55em;
  color: var(--c-teal-700);
  font-weight: 600;
}
.stat__label {
  font-size: .88rem; color: var(--c-muted);
  letter-spacing: .05em;
  margin: 0;
}

/* ============================================================
   FEATURE / INTRO CARDS
   ============================================================ */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 32px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(31,168,174,.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-3);
  border-color: var(--c-teal-200);
}
.feature-card:hover::after { opacity: 1; }
.feature-card__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c-teal-400), var(--c-teal-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(42,181,190,.35);
  position: relative;
  z-index: 1;
}
.feature-card:nth-child(2) .feature-card__icon {
  background: linear-gradient(135deg, var(--c-lime), var(--c-teal-600));
  box-shadow: 0 8px 20px rgba(181,211,52,.35);
}
.feature-card:nth-child(3) .feature-card__icon {
  background: linear-gradient(135deg, var(--c-gold), var(--c-orange));
  color: var(--c-ink);
  box-shadow: 0 8px 20px rgba(232,181,71,.4);
}
.feature-card__icon svg { width: 32px; height: 32px; }
.feature-card h3 { color: var(--c-ink); margin-bottom: 12px; font-size: 1.3rem; }
.feature-card p { color: var(--c-muted); margin: 0; font-size: .96rem; line-height: 1.75; }
.feature-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-teal-700);
}
.feature-card__link:hover { color: var(--c-orange); }
.feature-card__link svg { transition: transform var(--t) var(--ease); }
.feature-card__link:hover svg { transform: translateX(4px); }

/* ============================================================
   VOYAGE ROUTE (Animated SVG Map)
   ============================================================ */
.route-map {
  position: relative;
  background: linear-gradient(135deg, var(--c-teal-800), var(--c-teal-700));
  border-radius: var(--r-xl);
  padding: 60px 40px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.route-map::before {
  content: ""; position: absolute; inset: 0;
  background: url('../assets/wave-pattern.svg') repeat;
  opacity: .25;
}
.route-map__svg {
  width: 100%;
  position: relative; z-index: 1;
  height: 360px;
}
.route-map__svg .route-line {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: draw-route 3s var(--ease-out) forwards;
}
.route-map.is-visible .route-line { animation: draw-route 3s var(--ease-out) forwards; }
@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}
.route-map__svg .boat-icon {
  animation: boat-bob 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes boat-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.route-stop {
  font-family: var(--f-display);
  font-weight: 700;
}

/* ============================================================
   GALLERY (Bento)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.gallery__cell {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background-size: cover; background-position: center;
  cursor: zoom-in;
  transition: transform var(--t) var(--ease);
  box-shadow: var(--sh-1);
}
.gallery__cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,42,54,.7));
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.gallery__cell:hover { transform: scale(1.02); z-index: 2; }
.gallery__cell:hover::before { opacity: 1; }
.gallery__cell--lg { grid-column: span 2; grid-row: span 2; }
.gallery__cell--tall { grid-row: span 2; }
.gallery__cell-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  color: #fff;
  font-size: .9rem;
  opacity: 0; transform: translateY(10px);
  transition: all var(--t) var(--ease);
  z-index: 2;
}
.gallery__cell:hover .gallery__cell-caption { opacity: 1; transform: translateY(0); }
.gallery__cell-zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.95);
  color: var(--c-teal-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8);
  transition: all var(--t) var(--ease);
  z-index: 2;
}
.gallery__cell:hover .gallery__cell-zoom { opacity: 1; transform: scale(1); }

/* ============================================================
   VIDEO PLAYLIST
   ============================================================ */
.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.video-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--sh-3);
}
.video-main iframe { width: 100%; height: 100%; border: 0; }
.video-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 540px; overflow-y: auto;
  padding-right: 6px;
}
.video-list::-webkit-scrollbar { width: 6px; }
.video-list::-webkit-scrollbar-track { background: var(--c-bg-soft); border-radius: 3px; }
.video-list::-webkit-scrollbar-thumb {
  background: var(--c-teal-300); border-radius: 3px;
}
.video-list::-webkit-scrollbar-thumb:hover { background: var(--c-teal-500); }

.video-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 14px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 10px;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  border: 2px solid transparent;
  text-align: left;
  width: 100%;
  align-items: center;
}
.video-item:hover { background: var(--c-bg-soft); transform: translateX(2px); }
.video-item.is-active {
  border-color: var(--c-teal-500);
  background: var(--c-teal-50);
  box-shadow: 0 4px 14px rgba(31,168,174,.15);
}
.video-item__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  background-size: cover; background-position: center;
  background-color: var(--c-teal-700);
  overflow: hidden;
}
.video-item__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.video-item__thumb-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: all var(--t) var(--ease);
  z-index: 2;
}
.video-item:hover .video-item__thumb::after { opacity: 1; }
.video-item:hover .video-item__thumb-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-item h4 {
  font-family: var(--f-sans); font-size: .94rem;
  color: var(--c-ink); margin: 0 0 6px;
  line-height: 1.4; font-weight: 600;
}
.video-item small {
  color: var(--c-muted); font-size: .78rem;
  display: flex; align-items: center; gap: 6px;
}
.video-item small svg { width: 12px; height: 12px; }

/* ============================================================
   TESTIMONIALS / VOICES
   ============================================================ */
.voices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.voice {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 30px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  position: relative;
  transition: all var(--t) var(--ease);
}
.voice:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}
.voice__quote-icon {
  position: absolute; top: -16px; left: 28px;
  width: 44px; height: 44px;
  background: var(--c-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ink);
  box-shadow: var(--sh-2);
}
.voice__quote-icon svg { width: 22px; height: 22px; }
.voice__text {
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-ink);
  margin: 16px 0 24px;
  min-height: 110px;
}
.voice__person {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.voice__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid var(--c-teal-100);
  flex-shrink: 0;
}
.voice__name { font-weight: 700; color: var(--c-ink); margin: 0; font-size: .98rem; }
.voice__role { font-size: .82rem; color: var(--c-muted); margin: 2px 0 0; }

/* ============================================================
   SOCIAL WALL
   ============================================================ */
.social-wall {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.social-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: all var(--t) var(--ease);
  cursor: pointer;
}
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
}
.social-card__img {
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.social-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4));
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.social-card:hover .social-card__img::after { opacity: 1; }
.social-card__platform-badge {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--sh-2);
  z-index: 2;
}
.social-card__platform-badge.ig { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.social-card__platform-badge.fb { background: #1877f2; }
.social-card__platform-badge svg { width: 18px; height: 18px; }
.social-card__body { padding: 16px 18px 20px; }
.social-card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: var(--c-muted);
  margin-bottom: 8px;
}
.social-card__caption {
  font-size: .9rem; line-height: 1.6;
  color: var(--c-text); margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.social-card__stats {
  display: flex; gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: .78rem; color: var(--c-muted);
}
.social-card__stats span { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   PARTNERS / SPONSORS
   ============================================================ */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: stretch;
}
.partner {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 20px 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  transition: all var(--t) var(--ease);
  min-height: 110px;
}
.partner:hover {
  border-color: var(--c-teal-300);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.partner__logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-teal-100), var(--c-teal-200));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-teal-800);
  margin-bottom: 8px;
}
.partner small {
  font-size: .74rem;
  color: var(--c-muted);
  letter-spacing: .05em;
}

/* ============================================================
   ORG LIST — 指導／主辦／承辦／協辦 單位（首頁底部）
   ============================================================ */
.org-list {
  max-width: 980px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 18px;
}
.org-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: 22px 24px;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--c-bg-soft) 100%);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.org-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-gold-lt), var(--c-gold), var(--c-gold-dk));
}
.org-row__label {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-teal-700);
  letter-spacing: .12em;
  padding-top: 6px;
  position: relative;
}
.org-row__label::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--c-gold);
  margin-top: 8px;
  border-radius: 2px;
}
.org-row__units {
  display: flex; flex-wrap: wrap;
  gap: 10px;
}
.org-unit {
  display: inline-flex; align-items: center;
  padding: 9px 16px;
  background: #FFFFFF;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  font-size: .92rem;
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.org-unit:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--c-teal-200);
}
/* 主／承辦：金色強化 */
.org-unit--lead {
  background: linear-gradient(135deg, var(--c-gold-lt), var(--c-gold));
  color: var(--c-ink);
  border-color: var(--c-gold);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(232,181,71,.28);
}
.org-unit--lead:hover {
  border-color: var(--c-gold-dk);
  box-shadow: 0 6px 16px rgba(232,181,71,.38);
}
/* 群組單位（蘭嶼各社區發展協會） */
.org-unit--group {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--c-bg-mist);
}
.org-unit__title {
  font-weight: 700;
  color: var(--c-ink);
  font-size: .92rem;
  letter-spacing: .02em;
}
.org-unit__sub {
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: 4px;
  letter-spacing: .04em;
}

/* RWD */
@media (max-width: 720px) {
  .org-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 18px 18px 22px;
  }
  .org-row__label { font-size: .92rem; padding-top: 0; }
  .org-row__label::after { margin-top: 6px; }
  .org-unit { font-size: .88rem; padding: 8px 14px; }
}

/* 暗色模式 */
:root[data-theme="dark"] .org-row {
  background: #0F2C39;
  border-color: rgba(255,255,255,.08);
}
:root[data-theme="dark"] .org-unit {
  background: #0B2A36;
  border-color: rgba(255,255,255,.10);
  color: var(--c-text);
}
:root[data-theme="dark"] .org-unit--group {
  background: rgba(42,181,190,.08);
}
:root[data-theme="dark"] .org-unit__title { color: #fff; }

/* ============================================================
   SHORT VIDEOS — Reels/Shorts 風格短影音牆
   ============================================================ */
.shorts-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.short-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: var(--sh-2);
  text-decoration: none;
  color: #fff;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.short-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  color: #fff;
}
.short-card__thumb {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--ease);
}
.short-card:hover .short-card__thumb { transform: scale(1.06); }
.short-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.0) 30%,
    rgba(0,0,0,.45) 70%,
    rgba(0,0,0,.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.short-card__duration {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.short-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ink);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform var(--t) var(--ease-spring),
              background var(--t) var(--ease);
}
.short-card:hover .short-card__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--c-gold-lt);
}
.short-card__play svg { width: 24px; height: 24px; margin-left: 2px; }

.short-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 16px 16px 14px;
  color: #fff;
}
.short-card__overlay h4 {
  color: #fff;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.short-card__overlay p {
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.short-card__date {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

/* RWD */
@media (max-width: 1024px) {
  .shorts-wall { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
  .shorts-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .short-card__overlay h4 { font-size: .9rem; }
  .short-card__overlay p { font-size: .74rem; }
  .short-card__play { width: 48px; height: 48px; }
  .short-card__play svg { width: 20px; height: 20px; }
}
@media (max-width: 380px) {
  .shorts-wall { grid-template-columns: 1fr; }
  .short-card { aspect-ratio: 16 / 12; }
}

/* 暗色模式 */
:root[data-theme="dark"] .short-card {
  background: #04131C;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

/* ============================================================
   IPCF 原文會官方社群區（首頁社群動態下方）
   ============================================================ */
.ipcf-social-grid {
  margin: 36px auto 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .ipcf-social-grid { grid-template-columns: 1fr; }
}
.ipcf-social-fb {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  display: flex; flex-direction: column;
}
.ipcf-social-fb__head {
  background: #1877f2;
  color: #fff;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
}

.ipcf-social-links {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--c-bg-soft) 100%);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-2);
  box-shadow: var(--sh-1);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.ipcf-social-links__head {
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}
.ipcf-social-links__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--c-gold-dk);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ipcf-social-links__head h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.5;
}

.ipcf-social-link {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-line-2);
  text-decoration: none;
  color: var(--c-text);
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.ipcf-social-link:hover {
  transform: translateX(4px);
  box-shadow: var(--sh-2);
  border-color: transparent;
  color: var(--c-text);
}
.ipcf-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,181,71,.06), rgba(42,181,190,.04));
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.ipcf-social-link:hover::before { opacity: 1; }
.ipcf-social-link__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  position: relative; z-index: 1;
  box-shadow: 0 4px 10px rgba(11,42,54,.10);
}
.ipcf-social-link__icon svg { width: 22px; height: 22px; }
.ipcf-social-link--fb   .ipcf-social-link__icon { background: #1877f2; }
.ipcf-social-link--ig   .ipcf-social-link__icon { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.ipcf-social-link--yt   .ipcf-social-link__icon { background: #FF0000; }
.ipcf-social-link--line .ipcf-social-link__icon { background: #06C755; }
.ipcf-social-link__body {
  flex: 1;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
  min-width: 0;
}
.ipcf-social-link__body strong {
  font-size: .98rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: .02em;
}
.ipcf-social-link__body small {
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: 2px;
  word-break: break-all;
}
.ipcf-social-link__arrow {
  width: 18px; height: 18px;
  color: var(--c-muted);
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}
.ipcf-social-link:hover .ipcf-social-link__arrow {
  color: var(--c-gold-dk);
  transform: translateX(4px);
}

:root[data-theme="dark"] .ipcf-social-fb,
:root[data-theme="dark"] .ipcf-social-links { background: #0F2C39; border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .ipcf-social-link { background: #0B2A36; border-color: rgba(255,255,255,.08); color: var(--c-text); }
:root[data-theme="dark"] .ipcf-social-link__body strong { color: #fff; }
:root[data-theme="dark"] .ipcf-social-links__head h3 { color: #fff; }

/* ============================================================
   PAGE HEAD
   ============================================================ */
.page-head {
  margin-top: var(--header-h);
  padding: 110px 0 100px;
  background:
    linear-gradient(135deg, rgba(10,57,71,.92), rgba(31,168,174,.78)),
    url("../assets/wave-pattern.svg") repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,181,71,.2), transparent 70%);
  filter: blur(40px);
}
.page-head::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path fill='%23FFFFFF' d='M0,40 C360,90 720,0 1440,40 L1440,80 L0,80 Z'/></svg>") no-repeat;
  background-size: cover;
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head__breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; letter-spacing: .12em;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.page-head__breadcrumb a { color: rgba(255,255,255,.85); }
.page-head__breadcrumb a:hover { color: var(--c-gold); }
.page-head__breadcrumb svg { width: 12px; height: 12px; opacity: .6; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center;
}
.about-grid__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-4);
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  position: relative;
}
.about-grid__media::before {
  content: ""; position: absolute;
  bottom: -28px; right: -28px;
  width: 160px; height: 160px;
  background: var(--c-gold);
  border-radius: 50%;
  z-index: -1;
  opacity: .4;
  filter: blur(40px);
}
.about-grid__media::after {
  content: ""; position: absolute;
  top: -28px; left: -28px;
  width: 120px; height: 120px;
  background: var(--c-teal-500);
  border-radius: 50%;
  z-index: -1;
  opacity: .3;
  filter: blur(40px);
}
.about-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 14px;
}
.about-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  align-items: start;
}
.about-list li > svg {
  width: 24px; height: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--c-teal-500), var(--c-teal-700));
  border-radius: 50%;
  padding: 4px;
  margin-top: 4px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 40px; max-width: 920px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--c-teal-500) 0%, var(--c-lime) 50%, var(--c-gold) 100%);
}
.timeline-item {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  transition: all var(--t) var(--ease);
}
.timeline-item:hover {
  transform: translateX(8px);
  box-shadow: var(--sh-2);
  border-color: var(--c-teal-200);
}
.timeline-item::before {
  content: ""; position: absolute;
  left: -34px; top: 30px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 4px solid var(--c-bg-soft);
  box-shadow: 0 0 0 2px var(--c-teal-500);
  z-index: 1;
}
.timeline-item::after {
  content: ""; position: absolute;
  left: -27px; top: 39px;
  width: 24px; height: 2px;
  background: var(--c-teal-500);
}
.timeline-item time {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display);
  color: var(--c-teal-700);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.timeline-item time svg { width: 16px; height: 16px; }
.timeline-item h3 { margin: 0 0 8px; font-size: 1.18rem; }
.timeline-item p { margin: 0; color: var(--c-muted); font-size: .95rem; line-height: 1.7; }
.timeline-item .tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px;
  background: var(--c-teal-100); color: var(--c-teal-700);
  border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 600;
  margin-left: 8px;
  letter-spacing: .04em;
}

/* ============================================================
   SPEAKERS
   ============================================================ */
.speakers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.speaker {
  text-align: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 22px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.speaker:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--c-teal-200);
}
.speaker::before {
  content: ""; position: absolute;
  top: 0; left: 50%;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-teal-500));
  border-radius: 50%;
  filter: blur(40px); opacity: .3;
  transform: translateX(-50%);
  transition: opacity var(--t) var(--ease);
}
.speaker:hover::before { opacity: .6; }
.speaker__avatar-wrap {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto 18px;
}
.speaker__avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 4px solid #fff;
  box-shadow: var(--sh-2);
  position: relative; z-index: 1;
}
.speaker__avatar-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c-gold), var(--c-lime), var(--c-teal-500), var(--c-gold));
  animation: rotate-ring 8s linear infinite;
}
@keyframes rotate-ring { to { transform: rotate(360deg); } }
.speaker h4 {
  font-size: 1.05rem; margin: 0 0 4px; color: var(--c-ink);
  font-family: var(--f-sans); font-weight: 700;
}
.speaker .role {
  font-size: .8rem; color: var(--c-teal-700); letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.speaker .topic {
  font-size: .87rem; color: var(--c-muted);
  margin: 0; min-height: 40px;
  font-family: var(--f-display);
}

/* ============================================================
   MAP
   ============================================================ */
.map-wrap {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-3);
  background: #fff;
}
.map-wrap__info { padding: 48px 36px; }
.map-wrap__info h3 {
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.map-wrap__info h3 svg { color: var(--c-teal-500); }
.map-wrap__info dl { margin: 0; }
.map-wrap__info dt {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; letter-spacing: .18em;
  color: var(--c-teal-700);
  text-transform: uppercase;
  margin-top: 22px;
  font-weight: 600;
}
.map-wrap__info dt svg { width: 14px; height: 14px; }
.map-wrap__info dd {
  margin: 6px 0 0; font-weight: 500;
  line-height: 1.7;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }

/* ============================================================
   TABS / VIDEO PAGE
   ============================================================ */
.tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  background: var(--c-bg-soft);
  padding: 6px;
  border-radius: var(--r-pill);
  width: fit-content;
  margin-left: auto; margin-right: auto;
  border: 1px solid var(--c-line-2);
}
.tabs button {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  color: var(--c-text);
  font-weight: 600; font-size: .9rem;
  transition: all var(--t) var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs button:hover { color: var(--c-teal-700); }
.tabs button.is-active {
  background: var(--c-teal-700);
  color: #fff;
  box-shadow: var(--sh-2);
}

.video-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.video-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  transition: all var(--t) var(--ease);
  cursor: pointer;
  text-align: left; padding: 0; width: 100%;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-3);
  border-color: var(--c-teal-200);
}
.video-card__cover {
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.video-card__cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,42,54,.7));
}
.video-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-card:hover .video-card__cover img { transform: scale(1.06); }

.video-card__play {
  position: absolute;
  left: 18px; bottom: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--c-teal-800);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
  box-shadow: var(--sh-2);
}
.video-card__play svg { width: 22px; height: 22px; margin-left: 2px; }
.video-card:hover .video-card__play {
  background: var(--c-gold);
  color: var(--c-ink);
  transform: scale(1.1);
}
.video-card__duration {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: .76rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.video-card__body { padding: 22px 24px 26px; }
.video-card__cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; letter-spacing: .2em;
  color: var(--c-teal-600); font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.video-card__cat svg { width: 12px; height: 12px; }
.video-card h3 {
  font-size: 1.08rem; margin-bottom: 10px; line-height: 1.5;
  font-family: var(--f-sans); font-weight: 700;
}
.video-card .meta {
  font-size: .82rem; color: var(--c-muted);
  display: flex; align-items: center; gap: 10px;
  margin: 0;
}
.video-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.video-card .meta svg { width: 13px; height: 13px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,18,24,.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.modal.is-open { display: flex; opacity: 1; }
.modal__inner {
  width: 100%; max-width: 1000px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-lg);
  position: relative;
  box-shadow: var(--sh-4);
  transform: scale(.94);
  transition: transform var(--t) var(--ease-spring);
}
.modal.is-open .modal__inner { transform: scale(1); }
.modal__close {
  position: absolute; top: -18px; right: -18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-2);
  transition: all var(--t) var(--ease);
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
.modal iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r-lg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  align-items: start;
}
.contact-info {
  background: linear-gradient(135deg, var(--c-teal-800), var(--c-teal-500));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 52px 40px;
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: ""; position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(232,181,71,.2);
  filter: blur(60px);
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { color: #fff; margin-bottom: 8px; font-size: 1.4rem; }
.contact-info > p { opacity: .92; margin-bottom: 32px; }
.contact-info dl { margin: 0; }
.contact-info dt {
  display: flex; align-items: center; gap: 12px;
  font-size: .76rem; letter-spacing: .2em;
  opacity: .85;
  margin-top: 22px;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-info dd {
  margin: 6px 0 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  padding-left: 40px;
}
.contact-info__icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { width: 16px; height: 16px; }
.contact-info__socials { margin-top: 40px; display: flex; gap: 12px; }
.contact-info__socials a {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
  border: 1px solid rgba(255,255,255,.2);
}
.contact-info__socials a:hover {
  background: var(--c-gold); color: var(--c-ink);
  border-color: var(--c-gold);
  transform: translateY(-3px);
}

.contact-form {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; position: relative; }
.form-field label {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--c-ink);
  margin-bottom: 8px; font-weight: 600;
}
.form-field label .req { color: #c81e1e; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--c-text);
  background: var(--c-bg-soft);
  transition: all var(--t) var(--ease);
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--c-teal-300);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-teal-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,168,174,.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-msg {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  margin-top: 12px;
  display: none;
  font-size: .9rem;
  align-items: center; gap: 10px;
}
.form-msg.is-success {
  display: flex;
  background: var(--c-teal-100);
  color: var(--c-teal-800);
  border: 1px solid var(--c-teal-300);
}
.form-msg.is-success svg { color: var(--c-teal-600); }
.form-checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem; color: var(--c-muted);
  cursor: pointer;
  user-select: none;
}
.form-checkbox input { width: auto; margin-top: 4px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  overflow: hidden;
  transition: all var(--t) var(--ease);
}
.faq-item:hover { border-color: var(--c-teal-200); }
.faq-item.is-open { border-color: var(--c-teal-300); box-shadow: var(--sh-2); }
.faq-item__q {
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-weight: 600; color: var(--c-ink);
  width: 100%; text-align: left;
  font-size: 1rem;
  transition: color var(--t) var(--ease);
}
.faq-item__q:hover { color: var(--c-teal-700); }
.faq-item__q .num {
  font-family: var(--f-display);
  color: var(--c-teal-500);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-right: 14px;
  flex-shrink: 0;
}
.faq-item__q .toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-teal-50);
  color: var(--c-teal-700);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
  flex-shrink: 0;
}
.faq-item__q .toggle svg { transition: transform var(--t) var(--ease); }
.faq-item.is-open .faq-item__q .toggle {
  background: var(--c-gold);
  color: var(--c-ink);
}
.faq-item.is-open .faq-item__q .toggle svg { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t) var(--ease), padding var(--t) var(--ease);
  padding: 0 26px;
  color: var(--c-muted);
  font-size: .96rem;
  line-height: 1.8;
}
.faq-item.is-open .faq-item__a { max-height: 360px; padding: 0 26px 24px; }

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--c-teal-800), var(--c-teal-600));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.newsletter::before {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(232,181,71,.18);
  filter: blur(60px);
}
.newsletter::after {
  content: ""; position: absolute;
  bottom: -100px; left: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(31,168,174,.3);
  filter: blur(60px);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter__head { text-align: center; max-width: 580px; margin: 0 auto 28px; }
.newsletter__head h2 { color: #fff; }
.newsletter__head p { color: rgba(255,255,255,.88); margin: 0; }
.newsletter__form {
  display: flex; gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.65); }
.newsletter__form input:focus { outline: none; }
.newsletter__form button {
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t) var(--ease);
}
.newsletter__form button:hover { background: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0B2A36;            /* hard-coded dark surface, immune to theme tokens */
  color: rgba(255,255,255,.7);
  padding: 80px 0 28px;
  font-size: .9rem;
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .site-footer { background: #04131C; }
.site-footer::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-teal-500), var(--c-lime), var(--c-gold), var(--c-teal-500), transparent);
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-family: var(--f-sans); font-weight: 700; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  margin-bottom: 52px;
}
.footer-brand .site-logo { color: #fff; }
.footer-brand .site-logo small { color: rgba(255,255,255,.6); }
.footer-brand p {
  margin: 18px 0; line-height: 1.8;
  color: rgba(255,255,255,.7);
  max-width: 360px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul a {
  color: rgba(255,255,255,.65);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-grid ul a:hover { color: var(--c-gold); }
.footer-grid ul a svg { width: 12px; height: 12px; opacity: 0; transition: all var(--t) var(--ease); }
.footer-grid ul a:hover svg { opacity: 1; transform: translateX(2px); }
.footer-grid ul li > svg {
  width: 16px; height: 16px;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--c-teal-300);
  flex-shrink: 0;
}
.footer-grid ul li {
  display: flex;
  align-items: center;
  gap: 0;
}
/* Footer 階層式單位列表 */
.footer-orgs__list {
  margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.footer-orgs__list dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--c-gold-lt);
  text-transform: uppercase;
  margin: 0 0 4px;
  position: relative;
  padding-left: 12px;
}
.footer-orgs__list dt::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 6px rgba(232,181,71,.5);
}
.footer-orgs__list dd {
  margin: 0 0 0 12px;
  font-size: .85rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}
.footer-orgs__list dd small {
  display: block;
  margin-top: 4px;
  margin-left: 8px;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease);
}
.footer-socials a:hover {
  background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* 系統建置註記 — 茂泰行銷-甫東科技 */
.footer-credit {
  text-align: center;
  padding: 16px 0 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
}
.footer-credit a {
  color: rgba(255,255,255,.65);
  font-weight: 500;
  border-bottom: 1px dotted rgba(255,255,255,.3);
  transition: color .2s, border-color .2s;
}
.footer-credit a:hover {
  color: var(--c-gold-lt);
  border-bottom-color: var(--c-gold-lt);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--c-gold); }

/* ============================================================
   ANIMATIONS / UTILITIES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(32px); transition: all .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--right { transform: translateX(40px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--left { transform: translateX(-40px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--scale { transform: scale(.94); }
.reveal--scale.is-visible { transform: scale(1); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

.divider-wave {
  height: 70px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path fill='%23F4FAFA' d='M0,35 C480,0 960,70 1440,35 L1440,70 L0,70 Z'/></svg>") no-repeat;
  background-size: cover;
  margin-bottom: -1px;
}

/* Scroll-to-top button */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--c-teal-800);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(.8);
  transition: all var(--t) var(--ease-spring);
  z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover {
  background: var(--c-gold);
  color: var(--c-ink);
  transform: translateY(-4px) scale(1.05);
}

/* Cookie banner */
.cookie {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 420px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--sh-3);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 14px;
  z-index: 950;
  font-size: .88rem;
  transform: translateY(140%);
  transition: transform .5s var(--ease-spring);
}
.cookie.is-visible { transform: translateY(0); }
.cookie p { margin: 0; flex: 1; color: var(--c-muted); line-height: 1.5; }
.cookie button {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--c-teal-700);
  color: #fff;
  font-weight: 600; font-size: .82rem;
  white-space: nowrap;
  transition: background var(--t) var(--ease);
}
.cookie button:hover { background: var(--c-teal-800); }

/* Image lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,18,24,.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: var(--sh-4);
}
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--t) var(--ease);
}
.lightbox__close:hover { background: var(--c-gold); color: var(--c-ink); transform: rotate(90deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .speakers, .video-cards, .features, .social-wall { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .video-grid, .about-grid, .map-wrap, .contact-grid { grid-template-columns: 1fr; }
  .video-list { max-height: none; flex-direction: row; overflow-x: auto; padding-bottom: 12px; }
  .video-item { min-width: 280px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .voices { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px 220px 220px 220px; }
  .gallery__cell--lg { grid-column: span 2; grid-row: span 2; }
  .hero__card { display: none; }
  .hero--banner { aspect-ratio: auto; min-height: 56vh; max-height: none; }
  .hero__actions { bottom: 80px; left: 20px; }
  .hero__badge { top: calc(var(--header-h) + 18px); left: 20px; }
}

@media (max-width: 720px) {
  .hero--banner { min-height: 60vh; }
  .hero__actions {
    left: 50%; right: auto; bottom: 64px;
    transform: translateX(-50%);
    width: calc(100% - 40px); justify-content: center;
  }
  .hero__actions .btn { flex: 1 1 140px; justify-content: center; }
  .hero__badge { font-size: .72rem; padding: 7px 14px; }
  .section { padding: 72px 0; }
  .nav-toggle {
    display: flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    color: var(--c-ink);
    background: var(--c-teal-50);
  }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    box-shadow: var(--sh-3);
    border-top: 1px solid var(--c-line);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: all var(--t) var(--ease);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 14px 12px; border-bottom: 1px solid var(--c-line); }
  .site-nav a.is-active::after { display: none; }
  .lang-switch { margin-left: 0; align-self: flex-start; margin-top: 8px; }

  .speakers, .video-cards, .features, .social-wall, .voices { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .ticker__label { padding: 12px 14px; font-size: .72rem; }
  .ticker__viewport { padding-left: 24px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(6, 200px); }
  .gallery__cell--lg, .gallery__cell--tall { grid-column: span 1; grid-row: span 1; }
  .newsletter { padding: 40px 24px; }
  .newsletter__form { flex-direction: column; border-radius: var(--r-md); }
  .newsletter__form button { width: 100%; justify-content: center; }
  .map-wrap__info { padding: 32px 24px; }
}

/* ============================================================
   v3 ENHANCEMENTS
   Loading screen · Countdown · Flying fish · Story · Anatomy
   Tao patterns · Theme toggle · Real map · Curator placeholder
   ============================================================ */

/* ---------- Loading screen ---------- */
/* ============================================================
   INTRO（首訪 KV 動畫，僅第一次造訪顯示）
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(ellipse at 50% 40%, #34BFC8 0%, #25A7B0 55%, #1B8F98 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
  font-family: var(--f-display);
  /* 失靈保險：8 秒後純 CSS 自動淡出（即便 JS 完全壞掉也會消失）*/
  animation: intro-failsafe-fade 0.01s linear 8s forwards;
}
.intro.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  animation: none;
}
@keyframes intro-failsafe-fade {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* 背景紋理 — 淡白色細格線（呼應 KV 海圖感） */
.intro::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
/* 海面光暈 */
.intro::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(232,181,71,.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.10), transparent 55%);
  pointer-events: none;
}

/* 飛魚漂浮層 */
.intro__fish-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.intro-fish {
  position: absolute;
  fill: rgba(255,255,255,.10);
  width: 110px;
  animation: intro-fish-drift 18s linear infinite;
}
.intro-fish--1 { top: 12%;  left: -12%; width: 140px; animation-duration: 22s; }
.intro-fish--2 { top: 28%;  left: -18%; width: 90px;  animation-duration: 18s; animation-delay: -4s; fill: rgba(255,255,255,.08); }
.intro-fish--3 { top: 55%;  left: -10%; width: 120px; animation-duration: 26s; animation-delay: -10s; }
.intro-fish--4 { top: 72%;  left: -14%; width: 80px;  animation-duration: 16s; animation-delay: -2s; fill: rgba(255,255,255,.07); }
.intro-fish--5 { top: 40%;  left: -20%; width: 150px; animation-duration: 30s; animation-delay: -14s; fill: rgba(255,255,255,.06); }
.intro-fish--6 { top: 85%;  left: -8%;  width: 100px; animation-duration: 20s; animation-delay: -7s; }
@keyframes intro-fish-drift {
  from { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(60vw) translateY(-6px); }
  to   { transform: translateX(130vw) translateY(0); }
}

/* 航道 SVG（島嶼 + 金色弧 + 拼板舟） */
.intro__voyage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1000px);
  height: auto;
  z-index: 1;
  opacity: 0;
  animation: intro-voyage-in 1.2s .2s var(--ease-out) forwards;
}
@keyframes intro-voyage-in { to { opacity: 1; } }

.intro-island {
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(11,42,54,.25));
}
.intro-island--left  { animation: intro-island-in 1s .4s var(--ease-spring) forwards; transform-origin: 130px 200px; }
.intro-island--right { animation: intro-island-in 1s .7s var(--ease-spring) forwards; transform-origin: 870px 210px; }
@keyframes intro-island-in {
  from { opacity: 0; transform: translateY(20px) scale(.85); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.intro-arc {
  stroke-dasharray: 2 12;
  stroke-dashoffset: 1600;
  filter: drop-shadow(0 0 8px rgba(232,181,71,.5));
  animation: intro-arc-draw 2.2s 1s var(--ease-out) forwards;
}
@keyframes intro-arc-draw { to { stroke-dashoffset: 0; } }

.intro-boat {
  -webkit-offset-path: path("M 200 175 Q 500 30 880 175");
          offset-path: path("M 200 175 Q 500 30 880 175");
  -webkit-offset-rotate: auto;
          offset-rotate: auto;
  -webkit-offset-distance: 0%;
          offset-distance: 0%;
  filter: drop-shadow(0 4px 6px rgba(11,42,54,.4));
  animation: intro-boat-sail 3.4s 1.4s cubic-bezier(.4,.05,.4,1) forwards;
}
@keyframes intro-boat-sail {
  from { -webkit-offset-distance: 0%;   offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  to   { -webkit-offset-distance: 100%; offset-distance: 100%; opacity: 1; }
}

/* 中央標題 */
.intro__title {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 24px;
}
.intro__sub-en {
  font-family: var(--f-sans);
  font-size: clamp(.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: .14em;
  opacity: 0;
  animation: intro-fade-up .9s 1.2s var(--ease-out) forwards;
}
.intro__main {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFE9B0 0%, #F5D689 25%, #E8B547 55%, #B8862A 85%, #E8B547 100%);
  background-size: 200% 200%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,134,42,.35);
  text-shadow: 0 6px 24px rgba(184,134,42,.4);
  opacity: 0;
  animation:
    intro-main-in 1.2s 1.6s var(--ease-spring) forwards,
    intro-shimmer 4s 2.6s linear infinite;
}
.intro__main-cjk {
  font-size: .55em;
  vertical-align: middle;
  margin-left: .08em;
  letter-spacing: .04em;
}
@keyframes intro-main-in {
  from { opacity: 0; transform: translateY(24px) scale(.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes intro-shimmer {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.intro__tagline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  color: #FFFFFF;
  letter-spacing: .04em;
  margin-top: 6px;
  opacity: 0;
  animation: intro-fade-up .9s 2.4s var(--ease-out) forwards;
}
.intro__fish-sep {
  display: inline-block;
  margin: 0 .5em;
  color: #FFE9B0;
  transform: translateY(-.05em) rotate(8deg);
}
@keyframes intro-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 底部 INVITATION */
.intro__invite {
  position: absolute;
  bottom: clamp(40px, 8vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; align-items: center;
  gap: 14px;
  opacity: 0;
  animation: intro-fade-up 1s 3s var(--ease-out) forwards;
}
.intro__invite-zh {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .2em;
}
.intro__invite-line {
  width: 36px; height: 1.5px;
  background: linear-gradient(90deg, transparent, #FFE9B0, transparent);
}
.intro__invite-en {
  font-family: var(--f-sans);
  font-size: clamp(.85rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: #FFE9B0;
  letter-spacing: .42em;
}

/* SKIP 按鈕 */
.intro__skip {
  position: absolute;
  top: 24px; right: 28px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .24em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: intro-fade-up .6s 1.6s var(--ease-out) forwards;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.intro__skip:hover {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.5);
}
.intro__skip svg { width: 14px; height: 14px; }

/* RWD */
@media (max-width: 640px) {
  .intro__voyage { width: 96vw; }
  .intro__invite { bottom: 32px; }
  .intro__skip { top: 16px; right: 16px; padding: 6px 12px; font-size: .72rem; }
}

/* 尊重「減少動畫」偏好 */
@media (prefers-reduced-motion: reduce) {
  .intro * { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.countdown__item {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 76px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.countdown__item::before {
  content: ""; position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,181,71,.0), rgba(232,181,71,.18));
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.countdown__item:hover::before { opacity: 1; }
.countdown__num {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--c-gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.countdown__label {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
}
/* Light variant for non-hero usage */
.countdown--light .countdown__item { background: var(--c-teal-50); border-color: var(--c-teal-200); }
.countdown--light .countdown__num { color: var(--c-teal-700); text-shadow: none; }
.countdown--light .countdown__label { color: var(--c-muted); }

/* Hero — upgraded with countdown */
.hero__countdown-wrap {
  position: absolute; z-index: 6;
  left: 32px; bottom: 200px;
}
.hero__countdown-wrap > small {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .72rem;
  letter-spacing: .25em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ---------- Hero floating fish layer ---------- */
.hero__fish-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.hero__fish-layer svg {
  position: absolute;
  fill: rgba(255,255,255,.5);
  filter: drop-shadow(0 2px 6px rgba(255,255,255,.2));
  animation: fish-swim 14s linear infinite, fish-bob 3s ease-in-out infinite;
}
/* 飛魚透明度降低：KV banner 本身已有飛魚，避免雙重圖層、保 KV 視覺主角 */
.hero__fish-layer .fish-1 { top: 22%; left: -10%; width: 64px;  animation-duration: 28s, 3.2s; animation-delay: 0s, 0s; opacity: .12; }
.hero__fish-layer .fish-2 { top: 38%; left: -10%; width: 42px;  animation-duration: 36s, 2.8s; animation-delay: -8s, 0s; opacity: .10; }
.hero__fish-layer .fish-3 { top: 54%; left: -10%; width: 80px;  animation-duration: 24s, 3.6s; animation-delay: -14s, 0s; opacity: .14; }
.hero__fish-layer .fish-4 { top: 18%; left: -10%; width: 36px;  animation-duration: 40s, 2.4s; animation-delay: -20s, 0s; opacity: .09; }
.hero__fish-layer .fish-5 { top: 64%; left: -10%; width: 52px;  animation-duration: 32s, 3.0s; animation-delay: -5s, 0s; opacity: .11; }
@keyframes fish-swim {
  from { transform: translateX(0); }
  to   { transform: translateX(120vw); }
}
@keyframes fish-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

/* ---------- Story section ---------- */
.story {
  background: linear-gradient(180deg, var(--c-teal-900) 0%, var(--c-teal-800) 100%);
  color: rgba(255,255,255,.92);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: ""; position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(31,168,174,.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(232,181,71,.12), transparent 50%);
  pointer-events: none;
}
.story::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/wave-pattern.svg");
  background-size: 600px;
  opacity: .15;
  pointer-events: none;
}
.story__inner {
  position: relative; z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.story__year {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  background: linear-gradient(180deg, var(--c-gold), transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--ease-out);
}
.story.is-visible .story__year { opacity: 1; transform: translateY(0); }
.story__chapter {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--f-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s .2s var(--ease-out);
}
.story.is-visible .story__chapter { opacity: 1; transform: translateY(0); }
.story__chapter .accent { color: var(--c-gold); }
.story__lines {
  display: grid; gap: 20px;
}
.story__lines p {
  font-size: 1.1rem; line-height: 1.85;
  margin: 0;
  color: rgba(255,255,255,.86);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--ease-out);
}
.story.is-visible .story__lines p { opacity: 1; transform: translateY(0); }
.story.is-visible .story__lines p:nth-child(1) { transition-delay: .4s; }
.story.is-visible .story__lines p:nth-child(2) { transition-delay: .6s; }
.story.is-visible .story__lines p:nth-child(3) { transition-delay: .8s; }
.story__lines em {
  font-style: normal;
  color: var(--c-lime);
  font-weight: 600;
}
.story__signature {
  margin-top: 48px;
  font-family: var(--f-display);
  font-style: italic;
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  text-align: right;
  opacity: 0;
  transition: opacity 1.2s 1s var(--ease-out);
}
.story.is-visible .story__signature { opacity: 1; }

/* Decorative star field */
.story__stars { position: absolute; inset: 0; pointer-events: none; }
.story__stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: #FFE066;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFE066;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- Tatala anatomy ---------- */
.anatomy {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.anatomy__svg {
  background: linear-gradient(135deg, var(--c-teal-50), #fff);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--sh-2);
  position: relative;
  border: 1px solid var(--c-line);
}
:root[data-theme="dark"] .anatomy__svg { background: linear-gradient(135deg, #0B2A36, #0F2C39); border-color: rgba(255,255,255,.08); }
.anatomy__svg svg { width: 100%; height: auto; display: block; }
.anatomy__hotspot {
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.anatomy__hotspot circle {
  fill: var(--c-gold);
  stroke: #fff;
  stroke-width: 3;
  transition: all var(--t) var(--ease);
}
.anatomy__hotspot:hover circle,
.anatomy__hotspot.is-active circle {
  fill: var(--c-lime);
  r: 14;
  filter: drop-shadow(0 0 12px rgba(181,211,52,.6));
}
.anatomy__hotspot text {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 11px;
  fill: var(--c-ink);
  pointer-events: none;
}
:root[data-theme="dark"] .anatomy__hotspot text { fill: #fff; }

.anatomy__detail {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line-2);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .anatomy__detail { background: #0F2C39; border-color: rgba(255,255,255,.08); }
.anatomy__detail::before {
  content: ""; position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(181,211,52,.2), transparent 70%);
  filter: blur(10px);
}
.anatomy__detail-num {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-teal-500);
  line-height: 1;
}
.anatomy__detail-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 8px 0 4px;
}
.anatomy__detail-tao {
  display: inline-block;
  background: var(--c-teal-50);
  color: var(--c-teal-700);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: .82rem;
  letter-spacing: .05em;
  margin-bottom: 14px;
  font-style: italic;
}
:root[data-theme="dark"] .anatomy__detail-tao { background: rgba(42,181,190,.15); color: var(--c-teal-300); }
.anatomy__detail-desc {
  color: var(--c-muted);
  font-size: .96rem;
  line-height: 1.75;
  margin: 0;
}
.anatomy__detail-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .82rem;
  color: var(--c-soft);
}
.anatomy__detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.anatomy__detail-meta strong { color: var(--c-teal-700); font-weight: 600; }

/* ---------- Tao traditional pattern ornament ---------- */
.tao-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin: 48px 0;
  color: var(--c-teal-500);
}
.tao-divider .line {
  flex: 1; max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-teal-300), transparent);
}
.tao-divider svg { width: 60px; height: 24px; flex-shrink: 0; }

/* corner ornament for cards (used via class) */
.has-tao-corner { position: relative; }
.has-tao-corner::before {
  content: ""; position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EBFB9' stroke-width='1.4'><path d='M2 12 L12 2 L22 12 L12 22 Z'/><path d='M6 12 L12 6 L18 12 L12 18 Z'/><circle cx='12' cy='12' r='1.5' fill='%23F0C419' stroke='none'/></svg>");
  background-size: contain;
  opacity: .3;
  transition: opacity var(--t) var(--ease);
}
.has-tao-corner:hover::before { opacity: 1; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-teal-50);
  color: var(--c-teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px;
  transition: all var(--t) var(--ease);
}
:root[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,.08); color: var(--c-gold); }
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Real Map (Leaflet) ---------- */
.real-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  height: 480px;
  position: relative;
  border: 4px solid #fff;
  background: #DCEEF0;
}
:root[data-theme="dark"] .real-map { border-color: #0F2C39; }
.real-map .leaflet-container { background: #B8E0E2; }
.real-map__legend {
  position: absolute; left: 16px; bottom: 16px;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  font-size: .85rem;
  display: flex; gap: 18px; align-items: center;
}
.real-map__legend .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.real-map__legend .dot--start { background: #F5C518; }
.real-map__legend .dot--end { background: #2EBFB9; }
.real-map__legend .dot--route {
  width: 24px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #F5C518, #2EBFB9);
}

/* Curator placeholder note */
.curator-note {
  text-align: center;
  font-size: .82rem;
  color: var(--c-muted);
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--c-teal-50);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px dashed var(--c-teal-300);
}
:root[data-theme="dark"] .curator-note { background: rgba(42,181,190,.08); border-color: rgba(42,181,190,.3); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .anatomy { grid-template-columns: 1fr; }
  .anatomy__detail { min-height: 240px; }
  .hero__card { width: 280px; right: 16px; bottom: 96px; padding: 18px 18px 14px; }
  .hero__card-date strong { font-size: 1.55rem; }
  .countdown--compact .countdown__num { font-size: 1rem; }
}

/* === 手機版 Hero：垂直堆疊「KV → 卡片 → 按鈕」 === */
@media (max-width: 720px) {
  .countdown__item { min-width: 64px; padding: 10px 12px; }
  .countdown { gap: 8px; }
  .story { padding: 80px 0; }

  /* hero 容器：改為 flexbox 垂直排列，用 order 控制堆疊順序 */
  .hero.hero--banner {
    aspect-ratio: auto;
    min-height: auto;
    max-height: none;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 28px;
    background: transparent;
  }

  /* KV 圖改為 relative 占據文檔流空間 */
  .hero--banner .hero__banner-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 58vh;
    min-height: 340px;
    z-index: 1;
    order: 1;
  }
  /* overlay 與飛魚層仍 absolute，綁在 KV 圖區範圍內 */
  .hero--banner .hero__overlay,
  .hero--banner .hero__fish-layer {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 58vh;
    min-height: 340px;
    bottom: auto;
    order: 0;
  }

  /* 海浪 SVG 與向下捲動提示：手機隱藏 */
  .hero--banner .hero__wave,
  .hero--banner .hero__scroll { display: none; }

  /* 卡片排在 KV 之後（order: 2），按鈕排在最後（order: 3） */
  .hero__card {
    position: relative;
    right: auto; left: auto; bottom: auto; top: auto;
    width: calc(100% - 32px);
    margin: -32px auto 0;
    z-index: 10;
    order: 2;
    align-self: center;
  }
  .hero__card-date strong { font-size: 1.7rem; }

  .hero__actions {
    position: relative;
    left: auto; bottom: auto;
    margin: 18px auto 0;
    padding: 0 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    order: 3;
  }
  .hero__actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    justify-content: center;
    padding: 12px 18px;
    font-size: .9rem;
  }
}

/* 極窄手機（< 380px）：CTA 改為單欄 */
@media (max-width: 380px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
