:root {
  --bg: #0E2148;
  --bg-2: #163473;
  --bg-3: #1B47A3;
  --card: rgba(26, 42, 87, 0.38);
  --card-hover: rgba(30, 54, 116, 0.62);
  --blue: #2062C0;
  --deep-blue: #1B47A3;
  --lime: #C4D22C;
  --aqua: #3DD7B6;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.38);
  --border: rgba(150, 195, 255, 0.20);
  --border-accent: rgba(228, 0, 43, 0.55);
  /* KV 延伸：電光藍光暈與網格線 */
  --glow: rgba(49, 102, 209, 0.55);
  --grid-line: rgba(150, 195, 255, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 全站底：延續 KV 的細網格，讓 hero 以下不會斷成純黑 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 64px);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }
/* main 要疊在 footer 之上，否則下拉選單會被後面的 footer 蓋掉 */
body > main { z-index: 2; }

a { color: var(--lime); text-decoration: none; }
a:hover { opacity: 0.85; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── hero：KV 完整呈現 + CSS 重建電光網格 ──── */
.hero {
  position: relative;
  padding: 64px 24px 64px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* 底層：地平線藍光暈（延伸 KV 的發光場景） */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0) 62%, rgba(5, 7, 15, 0.55) 86%, var(--bg) 100%),
    radial-gradient(115% 58% at 50% 86%, rgba(120, 175, 255, 0.62) 0%, var(--glow) 26%, rgba(19, 67, 189, 0.34) 52%, rgba(10, 16, 48, 0) 78%),
    radial-gradient(80% 50% at 50% -10%, rgba(49, 102, 209, 0.20) 0%, rgba(5, 7, 15, 0) 70%);
  z-index: -2;
}

/* 上層：透視地板網格 + 垂直光束 */
.hero::after {
  content: '';
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: 4%;
  height: 62%;
  background-image:
    repeating-linear-gradient(90deg, rgba(170, 210, 255, 0.55) 0 1.5px, transparent 1.5px 84px),
    repeating-linear-gradient(0deg, rgba(170, 210, 255, 0.42) 0 1.5px, transparent 1.5px 64px);
  transform: perspective(620px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 72%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 72%, transparent 96%);
  z-index: -1;
  pointer-events: none;
}

/* 單欄置中：文字在上、KV 在下，桌機手機同一個排法 */
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  text-align: center;
  min-width: 0;
  width: 100%;
}

/* KV 卡片：完整不裁切，紅色頂邊 + 藍色光暈 */
.hero-kv {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(150, 195, 255, 0.22);
  box-shadow:
    0 34px 90px rgba(9, 24, 82, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 72px rgba(49, 102, 209, 0.34);
}

.hero-kv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime) 22%, var(--lime) 78%, transparent);
  z-index: 2;
}

.hero-kv img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-logo {
  height: 52px;
  width: auto;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-meta .sep {
  color: var(--lime);
}

.hero-title {
  font-family: "Archivo Black", "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 9vw, 88px);
  letter-spacing: -0.01em;
  line-height: 0.9;
  margin-bottom: 4px;
  text-transform: uppercase;
  color: #fff;
}

.hero-title .lime {
  color: var(--lime);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 500;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tagline {
  font-size: 16px;
  /* hashtag 要當一個整體讀：不轉大寫（保留駝峰）、不拉字距 */
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: none;
  max-width: 680px;
  margin: 26px auto 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime) 60%, var(--lime));
}

.hero-tagline::after {
  background: linear-gradient(90deg, var(--lime), var(--lime) 40%, transparent);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 460px;
  margin: 40px auto 0;
  padding: 24px 16px;
  background: rgba(10, 20, 56, 0.42);
  border: 1px solid rgba(150, 195, 255, 0.20);
  border-radius: 16px;
  position: relative;
  backdrop-filter: blur(8px);
}

.hero-stats::before,
.hero-stats::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--lime);
}

.hero-stats::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.hero-stats::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.hero-stat {
  text-align: center;
  position: relative;
}

.hero-stat-index {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Archivo Black", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--lime);
  opacity: 0.75;
}

.hero-stat-num {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(48px, 9vw, 72px);
  font-weight: 900;
  color: var(--lime);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 10px;
  font-weight: 600;
}

.hero-stats-divider {
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--lime), transparent);
  opacity: 0.7;
}

.hero-date {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-date::before,
.hero-date::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--lime);
  opacity: 0.6;
}

.hero-date strong {
  color: var(--text);
  font-weight: 700;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.08em;
}

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

.hero-stat-num {
  font-family: "Archivo Black", sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}

.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ── section ──────────────────────── */
.section {
  padding: 56px 0 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  color: var(--lime);
  min-width: 36px;
}

.section-title-wrap {
  flex: 1;
}

.section-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.section-title strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}

/* ── person group ─────────────────── */
.person-group {
  margin-bottom: 40px;
}

.person-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.person-name {
  font-size: 20px;
  font-weight: 600;
}

.person-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── clip card ────────────────────── */
.clip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.clip:hover {
  border-color: var(--border-accent);
  background: var(--card-hover);
}

.clip-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.clip-body {
  padding: 16px 20px;
}

.clip-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.clip-sport {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--deep-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.clip-title {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.clip-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.clip-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn.primary {
  background: var(--lime);
  color: var(--deep-blue);
  border-color: var(--lime);
  font-weight: 700;
}

.btn.primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--deep-blue);
}

.btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── footer ───────────────────────── */
/* 極簡：標語與版權兩行置中 */
.footer {
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid rgba(150, 195, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
  background: var(--bg);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-mid {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.40);
  text-transform: uppercase;
}

.footer-mid b {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.footer-credit {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer a { color: var(--muted); text-decoration: underline; }

/* ── filter chips ─────────────────── */
.filter-wrap {
  padding: 32px 0 12px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 85%, transparent 100%);
  z-index: 10;
  backdrop-filter: blur(6px);
  margin-bottom: 12px;
}

.filter-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.sport-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sport-block {
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.sport-block:hover {
  border-color: var(--border-accent);
  background: var(--card-hover);
}

.sport-block.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #fff;
  box-shadow: 0 0 0 1px var(--lime), 0 10px 30px rgba(228, 0, 43, 0.30);
}

.sport-block-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.sport-block-count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}

.sport-block.active .sport-block-count {
  opacity: 0.85;
}

.person-select-wrap {
  margin-top: 20px;
}

.person-select-box {
  position: relative;
}

.person-select {
  width: 100%;
  padding: 14px 40px 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: border-color 0.15s;
}

.person-select:hover,
.person-select:focus {
  outline: none;
  border-color: var(--lime);
}

.person-select-label {
  color: var(--muted);
  font-weight: 500;
}

.person-select.has-value .person-select-label {
  color: var(--text);
  font-weight: 600;
}

.person-select-caret {
  color: var(--lime);
  font-size: 14px;
  margin-left: 12px;
  transition: transform 0.2s;
}

.person-select[aria-expanded="true"] .person-select-caret {
  transform: rotate(180deg);
}

.person-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  /* 不透明：半透明時後面的 footer 文字會透出來 */
  background: #131a31;
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 20;
  max-height: 360px;
  overflow-y: auto;
}

.person-select-list[hidden] {
  display: none;
}

.person-select-option {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.person-select-option:hover {
  background: rgba(228, 0, 43, 0.16);
  color: #fff;
}

.person-select-option.selected {
  background: var(--lime);
  color: #fff;
  font-weight: 700;
}

/* 企業下拉：名稱靠左、人數靠右 */
.person-select-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.option-count {
  font-size: 12px;
  color: var(--muted-2);
  flex: none;
}

.person-select-option:hover .option-count,
.person-select-option.selected .option-count {
  color: rgba(255, 255, 255, 0.8);
}

.group-select-wrap { margin-top: 4px; }

.person-group[hidden],
.person-select-wrap[hidden],
.section[hidden] {
  display: none;
}

/* ── toast ────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--lime);
  color: var(--deep-blue);
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease-out;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--deep-blue);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .hero-inner { gap: 34px; }
  .hero { padding: 48px 20px 56px; }
  /* 讓 client ▸ Sports Day 一行放得下，不要斷在分隔符上 */
  .hero-meta { font-size: 10px; letter-spacing: 0.14em; gap: 10px; }
  .section { padding: 40px 0 16px; }
  .hero-stats { gap: 24px; }
  .filter-wrap { padding: 20px 0 8px; }
}

/* ========================================================
   OFFER — optional CTA section（data.json offer.headline 有值才出現）
   ======================================================== */
.offer { padding: 24px 0 80px; }
.offer-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
}
.offer-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.offer-headline { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--text); margin-bottom: 14px; }
.offer-desc { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 28px; }
.offer-cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--deep-blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.offer-cta:hover { opacity: 0.85; }
.offer-fine { margin-top: 18px; font-size: 11px; color: var(--muted-2); }
@media (max-width: 640px) { .offer-card { margin: 0 16px; padding: 36px 24px; } }
