/* ============================================================
   星迹公益地图 · 全局样式
   深色渐变 / 玻璃拟态 / 细腻排版
   ============================================================ */

:root {
  color-scheme: dark;
  --bg-0: #070b14;
  --bg-1: #0b1220;
  --bg-2: #111a30;
  --ink: #eef2fb;
  --ink-2: #b8c2d9;
  --ink-3: #7d8aa5;
  --accent: #7c6bff;
  --accent-2: #4fc3f7;
  --warm: #ffb86c;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(18, 24, 46, 0.86);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue",
    Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(124, 107, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at -8% 22%, rgba(79, 195, 247, 0.11), transparent 55%),
    radial-gradient(800px 480px at 50% 112%, rgba(255, 184, 108, 0.09), transparent 60%),
    var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 107, 255, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: 0.01em; }

/* ---------- 布局 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0 40px; scroll-margin-top: 90px; }

/* ---------- 玻璃 / 卡片 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 14px; border: none; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a7bff);
  color: #fff; box-shadow: 0 10px 30px rgba(124, 107, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124, 107, 255, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }

.text-link { color: var(--accent-2); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- 标签 ---------- */
.type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--tc, var(--accent));
  background: color-mix(in srgb, var(--tc, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 36%, transparent);
  white-space: nowrap;
}

/* ---------- 渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  font-size: 18px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(124, 107, 255, 0.35), rgba(79, 195, 247, 0.25));
  border: 1px solid var(--line);
  box-shadow: 0 0 20px rgba(124, 107, 255, 0.35);
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); position: relative; transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.site-nav a.is-active { color: var(--ink); background: rgba(124, 107, 255, 0.16); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 84px) 0 96px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(64px);
}
.hero-bg::before {
  width: 520px; height: 520px; top: -180px; right: -90px;
  background: rgba(124, 107, 255, 0.45);
  animation: float 12s ease-in-out infinite;
}
.hero-bg::after {
  width: 440px; height: 440px; bottom: -160px; left: -110px;
  background: rgba(79, 195, 247, 0.32);
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}
.hero-inner { position: relative; text-align: center; }
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--accent-2); text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(79, 195, 247, 0.1); border: 1px solid rgba(79, 195, 247, 0.25);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 60px); font-weight: 900; letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--warm) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(15px, 2.2vw, 18px); color: var(--ink-2); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 860px; margin: 0 auto;
}
.hero-stat {
  padding: 22px 14px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-stat:hover { transform: translateY(-4px); border-color: rgba(124, 107, 255, 0.4); box-shadow: 0 14px 34px rgba(124, 107, 255, 0.18); }
.hero-stat b {
  display: block; font-size: clamp(26px, 4vw, 34px); font-weight: 800;
  background: linear-gradient(120deg, var(--ink), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat span { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   章节标题
   ============================================================ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 15px; }
.section-head .text-link { margin-top: 16px; display: inline-block; }

/* ============================================================
   地图区
   ============================================================ */
.map-shell { overflow: hidden; padding: 0; }
.map-toolbar { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.map-toolbar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.type-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.pill:hover { color: var(--ink); border-color: color-mix(in srgb, var(--tc, var(--accent)) 55%, transparent); }
.pill.active {
  color: var(--tc, var(--accent));
  background: color-mix(in srgb, var(--tc, var(--accent)) 16%, transparent);
  border-color: color-mix(in srgb, var(--tc, var(--accent)) 55%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--tc, var(--accent)) 28%, transparent);
}
.tool-star { margin-left: auto; }
.glass-select {
  appearance: none; padding: 9px 34px 9px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8c2d9' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-family: inherit;
  cursor: pointer; transition: border-color 0.2s ease;
}
.glass-select:focus { outline: none; border-color: var(--accent); }
.map-toolbar-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; gap: 6px;
}
#footprint-count { color: var(--ink-2); font-weight: 600; }
.map-tip::before { content: "💡 "; }

.charity-map { height: clamp(440px, 66vh, 640px); width: 100%; }

.map-legend {
  display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 12px 20px 16px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  background: var(--tc, var(--accent)); box-shadow: 0 0 8px var(--tc, var(--accent));
}

/* ---------- Leaflet 深色化 ---------- */
.leaflet-container {
  background: #0d1322; font-family: var(--font); font-size: 13.5px;
}
.leaflet-popup-content-wrapper {
  background: rgba(16, 22, 42, 0.94); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.leaflet-popup-content { margin: 14px 16px; line-height: 1.55; }
.leaflet-popup-tip { background: rgba(16, 22, 42, 0.94); }
.leaflet-popup-close-button { color: var(--ink-3) !important; font-size: 18px !important; }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--ink) !important; }
.leaflet-bar a {
  background: #141a30; color: var(--ink-2); border-color: var(--line);
  transition: color 0.2s ease, background 0.2s ease;
}
.leaflet-bar a:hover { background: #1b2440; color: var(--ink); }
.leaflet-control-attribution {
  background: rgba(8, 12, 24, 0.72) !important; color: var(--ink-3) !important; font-size: 10.5px;
}
.leaflet-control-attribution a { color: var(--ink-2) !important; }

/* 地图标记 */
.charity-marker-wrap { background: none; border: none; }
.charity-marker {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; cursor: pointer;
  background: linear-gradient(135deg, var(--mc, #7c6bff), color-mix(in srgb, var(--mc, #7c6bff) 60%, #fff));
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 18px var(--mc, #7c6bff);
  transform-origin: center; transition: transform 0.2s ease;
}
.charity-marker:hover { transform: scale(1.15); }
.charity-marker .pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--mc, #7c6bff); opacity: 0.6;
  animation: markerPulse 2.2s ease-out infinite;
}
@keyframes markerPulse {
  0% { transform: scale(0.55); opacity: 0.85; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 弹窗卡片 */
.fp-popup { min-width: 238px; max-width: 270px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fp-city { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.fp-popup h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.fp-desc { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.fp-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.fp-photos { display: flex; gap: 6px; margin-bottom: 12px; }
.fp-photo {
  width: 52px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--fp-c, var(--accent)) 30%, transparent), transparent);
  border: 1px solid var(--line);
}
.fp-link { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent-2); }
.fp-link:hover { text-decoration: underline; }

.map-fallback {
  height: 100%; display: grid; place-items: center; text-align: center;
  color: var(--ink-3); font-size: 14px; padding: 30px;
}

/* ============================================================
   明星卡片
   ============================================================ */
.star-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(252px, 1fr);
  gap: 20px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(124,107,255,.5) transparent;
}
.star-scroller::-webkit-scrollbar { height: 6px; }
.star-scroller::-webkit-scrollbar-thumb { background: rgba(124,107,255,.45); border-radius: 4px; }

.star-card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  scroll-snap-align: start; position: relative; overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.star-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px 180px at 90% -10%, color-mix(in srgb, var(--sc, var(--accent)) 26%, transparent), transparent 70%);
}
.star-card:hover {
  transform: translateY(-6px); border-color: color-mix(in srgb, var(--sc, var(--accent)) 50%, transparent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.star-avatar {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--sc, var(--accent)), color-mix(in srgb, var(--sc, var(--accent)) 45%, #fff));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--sc, var(--accent)) 40%, transparent);
}
.star-info h3 { font-size: 19px; font-weight: 800; }
.star-role { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 6px; }
.star-tag { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.star-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.star-arrow {
  position: absolute; right: 18px; top: 22px; font-size: 20px; color: var(--ink-3);
  transition: transform 0.25s ease, color 0.25s ease;
}
.star-card:hover .star-arrow { transform: translateX(4px); color: var(--accent-2); }

/* 档案页网格 */
.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.star-grid .star-card { min-height: 250px; }

/* ============================================================
   活动卡片
   ============================================================ */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.event-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}
.event-card:hover { transform: translateY(-6px); border-color: rgba(124, 107, 255, 0.4); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.event-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fav-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05); color: var(--ink-3); font-size: 17px; cursor: pointer;
  transition: all 0.2s ease; line-height: 1;
}
.fav-btn:hover { transform: scale(1.12); color: var(--warm); border-color: var(--warm); }
.fav-btn.is-fav { color: var(--warm); border-color: var(--warm); background: rgba(255, 184, 108, 0.12); }
.event-card h3 { font-size: 17px; font-weight: 700; }
.event-desc { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); }
.event-meta span { display: inline-flex; align-items: center; gap: 4px; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.event-slots { font-size: 12.5px; color: var(--ink-3); }
.event-slots em { font-style: normal; color: var(--warm); font-weight: 700; }

.empty-tip {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-3);
}

/* ============================================================
   筛选栏（活动页）
   ============================================================ */
.filter-bar {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; margin-bottom: 34px;
}
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group .tool-label { min-width: 58px; }
.chip {
  padding: 7px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--ink-3); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.chip:hover { color: var(--ink); }
.chip.active {
  color: var(--tc, var(--accent));
  background: color-mix(in srgb, var(--tc, var(--accent)) 16%, transparent);
  border-color: color-mix(in srgb, var(--tc, var(--accent)) 55%, transparent);
}
.filter-search { display: flex; align-items: center; gap: 10px; }
.filter-search input {
  flex: 1; max-width: 360px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-family: inherit;
  transition: border-color 0.2s ease;
}
.filter-search input::placeholder { color: var(--ink-3); }
.filter-search input:focus { outline: none; border-color: var(--accent); }
.filter-count { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* ============================================================
   明星详情页
   ============================================================ */
.page-hero { padding: calc(var(--header-h) + 64px) 0 60px; position: relative; overflow: hidden; }
.page-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.star-hero {
  display: flex; gap: 30px; align-items: center; position: relative;
  flex-wrap: wrap;
}
.star-hero-avatar {
  width: clamp(96px, 16vw, 132px); height: clamp(96px, 16vw, 132px);
  border-radius: 32px; display: grid; place-items: center; flex: none;
  font-size: clamp(40px, 7vw, 58px); font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--sc, var(--accent)), color-mix(in srgb, var(--sc, var(--accent)) 40%, #fff));
  box-shadow: 0 20px 50px color-mix(in srgb, var(--sc, var(--accent)) 45%, transparent);
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.star-hero-info { flex: 1; min-width: 260px; }
.star-hero-info .star-role { font-size: 14px; margin-bottom: 8px; }
.star-hero-info h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; margin-bottom: 10px; }
.star-hero-tagline { font-size: 16px; color: var(--ink-2); margin-bottom: 14px; }
.star-hero-bio { font-size: 14px; color: var(--ink-2); max-width: 640px; }
.star-quote {
  margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--sc, var(--accent));
  background: color-mix(in srgb, var(--sc, var(--accent)) 9%, transparent);
  border-radius: 0 12px 12px 0; font-size: 14px; color: var(--ink-2);
  font-style: italic;
}
.star-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.star-links a {
  font-size: 13px; font-weight: 600; color: var(--accent-2);
  padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(79, 195, 247, 0.3);
  background: rgba(79, 195, 247, 0.08); transition: all 0.2s ease;
}
.star-links a:hover { background: rgba(79, 195, 247, 0.16); transform: translateY(-2px); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; max-width: 520px; }
.stat-card {
  padding: 18px 16px; text-align: center; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sc, var(--accent)) 45%, transparent); }
.stat-card b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); }
.stat-card span { font-size: 12.5px; color: var(--ink-3); }

/* 足迹列表 */
.activity-list { display: flex; flex-direction: column; gap: 16px; }
.activity-card {
  display: flex; gap: 18px; padding: 20px; align-items: flex-start;
  border-left: 4px solid var(--ac, var(--accent));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.activity-card:hover { transform: translateX(4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.activity-card .fp-photos { flex: none; margin-bottom: 0; }
.activity-main { flex: 1; }
.activity-main h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.activity-main .fp-meta { margin-bottom: 4px; }
.activity-main .fp-desc { margin-bottom: 0; }
.activity-main .type-badge { margin-bottom: 6px; }

/* 时间轴 */
.timeline { position: relative; padding-left: 30px; }
.timeline-card { padding: 34px 34px 30px 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(79, 195, 247, 0.35), transparent);
  opacity: 0.6;
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--tl-c, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tl-c, var(--accent)) 20%, transparent),
              0 0 14px var(--tl-c, var(--accent));
}
.timeline-year {
  display: inline-block; padding: 2px 12px; border-radius: 999px; margin-bottom: 6px;
  font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--tl-c, var(--accent)) 16%, transparent);
  color: var(--tl-c, var(--accent));
  border: 1px solid color-mix(in srgb, var(--tl-c, var(--accent)) 40%, transparent);
}
.timeline-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.timeline-item p { font-size: 13.5px; color: var(--ink-2); max-width: 640px; }

/* ============================================================
   关于页
   ============================================================ */
.about-mission { max-width: 720px; }
.about-mission p { margin-bottom: 16px; color: var(--ink-2); font-size: 15px; }
.about-mission strong { color: var(--ink); }

.source-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.source-card { padding: 20px; transition: transform 0.25s ease, border-color 0.25s ease; }
.source-card:hover { transform: translateY(-4px); border-color: rgba(79, 195, 247, 0.4); }
.source-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.source-card h3::before { content: attr(data-icon); margin-right: 8px; }
.source-card p { font-size: 13.5px; color: var(--ink-2); }

.ngo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ngo-card { padding: 22px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.ngo-card:hover { transform: translateY(-4px); border-color: rgba(124, 107, 255, 0.4); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.ngo-card h3 { font-size: 16px; font-weight: 700; }
.ngo-tag { display: inline-block; margin: 6px 0 10px; font-size: 12px; font-weight: 600; color: var(--accent-2); }
.ngo-card p { font-size: 13.5px; color: var(--ink-2); }

.contact-cta {
  text-align: center; padding: 46px 30px; position: relative; overflow: hidden;
}
.contact-cta h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; margin-bottom: 10px; }
.contact-cta p { color: var(--ink-2); margin-bottom: 22px; }

/* ============================================================
   弹窗 & Toast
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 20px; background: rgba(4, 7, 15, 0.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}
.modal-mask[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: 86vh;
  overflow-y: auto; padding: 30px; animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.modal-close {
  position: absolute; right: 14px; top: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  color: var(--ink-3); font-size: 20px; cursor: pointer; line-height: 1; transition: all 0.2s ease;
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }
.signup-head { margin-bottom: 20px; padding-right: 24px; }
.signup-head h3 { font-size: 19px; font-weight: 800; margin: 8px 0 4px; }
.signup-head p { font-size: 13px; color: var(--ink-3); }
.signup-form { display: flex; flex-direction: column; gap: 14px; }
.signup-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.signup-form input, .signup-form textarea {
  padding: 11px 14px; border-radius: 12px; font-size: 14px; font-family: inherit;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--ink);
  resize: vertical; transition: border-color 0.2s ease;
}
.signup-form input:focus, .signup-form textarea:focus { outline: none; border-color: var(--accent); }
.signup-success { text-align: center; padding: 16px 4px 6px; }
.signup-success .ok {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; font-size: 30px; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, #34d399, #4cd99b);
  box-shadow: 0 14px 34px rgba(52, 211, 153, 0.4);
  animation: popIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.signup-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.signup-success p { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 300;
  transform: translateX(-50%) translateY(20px);
  padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: 110px; border-top: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.6); backdrop-filter: blur(10px);
}
.footer-inner {
  padding: 44px 24px 36px; display: grid; gap: 24px;
  grid-template-columns: 1fr auto; align-items: start;
}
.footer-brand { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer-brand p { width: 100%; font-weight: 400; font-size: 13.5px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { font-size: 14px; color: var(--ink-2); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.footer-note a { color: var(--accent-2); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: 72px 0 28px; }
  .hero { padding-top: calc(var(--header-h) + 60px); }
  .tool-star { margin-left: 0; width: 100%; }
  .tool-star .glass-select { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-note { grid-column: 1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 18px 20px;
    background: rgba(8, 12, 24, 0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 16px; font-size: 15px; }
  .site-nav a.is-active::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .star-hero { gap: 20px; }
  .stat-row { max-width: none; }
  .map-toolbar-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .activity-card { flex-direction: column; }
  .activity-card .fp-photos { flex-direction: row; }
}
