:root {
  --color-primary: #FF7B54;
  --color-secondary: #FFD6BA;
  --color-dark: #2D2320;
  --color-light: #FFF8F3;
  --color-accent: #FFB347;
  --color-success: #4CAF50;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(45, 35, 32, 0.1);
  --nav-h: 56px;
  --footer-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.has-contact-footer { padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 123, 84, 0.12);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__logo { font-weight: 700; font-size: 15px; color: var(--color-primary); }
.nav__menu { display: flex; gap: 4px; align-items: center; }
.nav__menu a {
  padding: 6px 10px; font-size: 13px; border-radius: 8px;
  transition: background 0.2s;
}
.nav__menu a:hover { background: var(--color-secondary); }
.nav-burger {
  display: none; width: 40px; height: 40px; border: 0; background: none;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; background: var(--color-dark);
  border-radius: 2px; transition: transform 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 20px 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,35,32,0.35) 0%, rgba(45,35,32,0.65) 100%);
}
.hero__content {
  position: relative; z-index: 1; text-align: center;
  max-width: 640px; color: #fff;
}
.hero-title {
  margin: 0 0 16px; font-size: clamp(28px, 6vw, 44px);
  font-weight: 800; line-height: 1.25;
  animation: fadeUp 0.8s ease-out;
}
.hero-subtitle {
  margin: 0 0 32px; font-size: clamp(15px, 3.5vw, 18px);
  opacity: 0.92; animation: fadeUp 0.8s 0.15s ease-out both;
}
.hero-cta {
  display: inline-block; padding: 14px 36px;
  background: var(--color-primary); color: #fff;
  border-radius: 999px; font-weight: 600; font-size: 16px;
  box-shadow: 0 8px 24px rgba(255, 123, 84, 0.45);
  animation: fadeUp 0.8s 0.3s ease-out both;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 123, 84, 0.5); }

/* Sections */
.section {
  padding: 56px 20px;
  max-width: 1080px; margin: 0 auto;
}
.section--alt { background: #fff; }
.section__title {
  margin: 0 0 8px; font-size: clamp(22px, 4vw, 28px);
  font-weight: 800; text-align: center;
}
.section__subtitle {
  margin: 0 0 32px; text-align: center;
  color: rgba(45, 35, 32, 0.65); font-size: 15px;
}

/* Stats */
#stats { background: #fff; max-width: none; }
#stats .section__title { padding-top: 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 960px; margin: 0 auto;
}
.stat-card {
  text-align: center; padding: 28px 16px;
  background: var(--color-light); border-radius: var(--radius-card);
  border: 1px solid rgba(255, 123, 84, 0.15);
}
.stat-card__icon { font-size: 32px; display: block; margin-bottom: 8px; }
.stat-card__value {
  font-size: clamp(28px, 5vw, 40px); font-weight: 800;
  color: var(--color-primary); line-height: 1.2;
}
.stat-card__label { font-size: 14px; color: rgba(45,35,32,0.7); margin-top: 4px; }

/* About */
.about-mission {
  font-size: clamp(20px, 4vw, 28px); font-weight: 700;
  color: var(--color-primary); margin: 0 0 24px;
  line-height: 1.4;
}
.about-text p {
  margin: 0 0 16px; color: rgba(45,35,32,0.8);
  font-size: 16px; line-height: 1.8;
}

/* Projects */
.project-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 24px;
}
.project-tab {
  padding: 8px 18px; border: 1px solid rgba(255,123,84,0.3);
  border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 14px; transition: all 0.2s;
}
.project-tab.active, .project-tab:hover {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: #fff; border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.25s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card__cover {
  height: 140px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.project-card__emoji { font-size: 48px; }
.project-card__cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.9); padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.project-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.project-card__title { margin: 0 0 8px; font-size: 17px; }
.project-card__desc {
  margin: 0 0 12px; font-size: 14px; color: rgba(45,35,32,0.7);
  flex: 1; line-height: 1.5;
}
.project-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: rgba(45,35,32,0.6); margin-bottom: 12px;
}
.progress-bar {
  height: 8px; background: var(--color-secondary);
  border-radius: 999px; overflow: hidden; margin-bottom: 6px;
}
.progress-bar__fill {
  height: 100%; background: var(--color-primary);
  border-radius: 999px; transition: width 0.6s ease-out;
}
.progress-bar__fill.hot { background: #FF6B6B; }
.progress-label { font-size: 13px; color: rgba(45,35,32,0.65); }
.project-card__btn { margin-top: 12px; align-self: flex-start; }

/* Stories */
.story-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.story-card {
  display: flex; gap: 16px; padding: 20px;
  background: #fff; border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.story-card--alt { flex-direction: row-reverse; }
.story-card__photo { position: relative; flex-shrink: 0; }
.story-card__photo img {
  width: 88px; height: 88px; border-radius: 14px; object-fit: cover;
}
.story-card__hours {
  position: absolute; bottom: -6px; right: -6px;
  background: var(--color-primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px;
}
.story-card__name { margin: 0 0 4px; font-size: 17px; }
.story-card__role { margin: 0 0 8px; font-size: 13px; color: var(--color-primary); }
.story-card__quote {
  margin: 0 0 10px; font-size: 14px; font-style: italic;
  color: rgba(45,35,32,0.75); line-height: 1.5;
}
.story-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.story-card__tags span {
  font-size: 11px; padding: 3px 8px;
  background: var(--color-secondary); border-radius: 6px;
}

/* Signup */
#signup { max-width: 520px; }
.signup-progress {
  display: flex; justify-content: space-between;
  margin-bottom: 28px; gap: 8px;
}
.signup-step {
  flex: 1; text-align: center; padding: 12px 8px;
  border-radius: var(--radius-btn);
  background: #fff; border: 1px solid rgba(255,123,84,0.2);
  opacity: 0.5; transition: all 0.3s;
}
.signup-step.active { opacity: 1; border-color: var(--color-primary); background: rgba(255,123,84,0.08); }
.signup-step.done { opacity: 0.85; background: rgba(76,175,80,0.08); border-color: var(--color-success); }
.signup-step__icon { display: block; font-size: 20px; }
.signup-step__label { font-size: 12px; display: block; margin-top: 4px; }
.signup-form {
  background: #fff; padding: 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(45,35,32,0.15); border-radius: var(--radius-btn);
  background: var(--color-light);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,123,84,0.15);
}
.signup-form__actions {
  display: flex; gap: 12px; margin-top: 20px;
}
.signup-form__actions .btn { flex: 1; }
.confirm-box h3 { margin: 0 0 16px; }
.confirm-box dl { margin: 0; }
.confirm-box dt { font-size: 12px; color: rgba(45,35,32,0.55); margin-top: 10px; }
.confirm-box dd { margin: 2px 0 0; font-weight: 600; }
.confirm-hint { font-size: 13px; color: rgba(45,35,32,0.6); margin-top: 16px; }

/* Success + Poster */
#success { text-align: center; max-width: 400px; }
.volunteer-number__label { display: block; font-size: 15px; color: rgba(45,35,32,0.65); }
.volunteer-number__value {
  display: block; font-size: clamp(24px, 5vw, 32px);
  font-weight: 800; color: var(--color-primary); margin: 8px 0 24px;
}
#poster-canvas {
  width: 100%; max-width: 280px; height: auto;
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  margin: 0 auto 20px; display: block;
}
.success-actions { display: flex; flex-direction: column; gap: 12px; }

/* Trust */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 40px;
}
.partner-card {
  text-align: center; padding: 20px 12px;
  background: #fff; border-radius: var(--radius-card);
  border: 1px solid rgba(255,123,84,0.12);
}
.partner-card__abbr {
  display: block; font-size: 22px; font-weight: 800;
  color: var(--color-primary); margin-bottom: 6px;
}
.partner-card__name { font-size: 12px; color: rgba(45,35,32,0.65); }
.faq-section h3 { text-align: center; margin: 0 0 20px; }
.faq-item {
  background: #fff; border-radius: var(--radius-btn);
  margin-bottom: 10px; border: 1px solid rgba(255,123,84,0.12);
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 16px; cursor: pointer; font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--color-primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: rgba(45,35,32,0.75); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { filter: brightness(1.05); }
.btn--outline { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--full { width: 100%; }

/* Footer area */
.page-footer {
  text-align: center; padding: 32px 20px 48px;
  font-size: 14px; color: rgba(45,35,32,0.6);
}
.page-footer p { margin: 4px 0; }

/* Theme panel */
.theme-panel {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
}
.theme-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer; transition: transform 0.2s;
}
.theme-dot.active { transform: scale(1.15); outline: 2px solid var(--color-dark); }

/* Contact footer */
.contact-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-top: 1px solid rgba(45,35,32,0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.contact-footer__btns { display: flex; gap: 8px; justify-content: center; }
.contact-footer__cta, .contact-footer__btn {
  flex: 1; max-width: 140px; padding: 10px 8px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  text-align: center; border: none; cursor: pointer;
}
.contact-footer__cta { background: var(--color-primary); color: #fff; }
.contact-footer__btn { background: var(--color-light); color: var(--color-dark); }
.contact-footer__brand {
  margin: 6px 0 0; text-align: center;
  font-size: 11px; color: rgba(45,35,32,0.45);
}

/* Toast */
.r71-toast {
  position: fixed; bottom: calc(var(--footer-h) + 16px); left: 50%;
  transform: translateX(-50%); z-index: 400;
  background: var(--color-dark); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow);
}
.r71-toast[data-type="error"] { background: #c62828; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* P1 M9 互动开场 */
body.intro-active { overflow: hidden; }
.intro-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: radial-gradient(ellipse at center, #1a1210 0%, #0a0808 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.intro-overlay--out { opacity: 0; pointer-events: none; }
.intro-heart-zone {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  touch-action: none; user-select: none;
}
.intro-heart {
  width: 160px; height: 160px;
  filter: drop-shadow(0 0 24px rgba(255, 123, 84, 0.2));
  transition: filter 0.4s, transform 0.3s;
}
.intro-heart.is-pressing { transform: scale(0.95); }
.intro-heart.is-lit {
  filter: drop-shadow(0 0 48px rgba(255, 179, 71, 0.9));
  animation: heartPulse 0.8s ease-out;
}
.intro-heart__shape { opacity: 0.35; transition: opacity 0.5s; }
.intro-heart.is-pressing .intro-heart__shape,
.intro-heart.is-lit .intro-heart__shape { opacity: 1; }
.intro-ring__fill { transition: stroke-dashoffset 0.05s linear; }
.intro-hint { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0; }
.intro-skip {
  position: absolute; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: transparent; border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8); padding: 10px 24px; border-radius: 999px;
  cursor: pointer; font-size: 14px;
}
@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* P1 M10 兴趣匹配器 */
.matcher-ui {
  max-width: 720px; margin: 0 auto 24px;
  background: #fff; padding: 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.matcher-group { margin-bottom: 16px; }
.matcher-group:last-child { margin-bottom: 0; }
.matcher-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: rgba(45,35,32,0.65); }
.matcher-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.matcher-chip {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,123,84,0.3); background: var(--color-light);
  cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.matcher-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.matcher-results { max-width: 720px; margin: 0 auto; }
.matcher-placeholder { text-align: center; color: rgba(45,35,32,0.55); font-size: 15px; }
.matcher-results__title { margin: 0 0 16px; font-size: 17px; text-align: center; }
.matcher-cards { display: grid; gap: 12px; }
.matcher-card {
  background: #fff; padding: 16px; border-radius: var(--radius-card);
  border: 1px solid rgba(255,123,84,0.15);
}
.matcher-card--best { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(255,123,84,0.15); }
.matcher-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.matcher-card__head strong { flex: 1; }
.matcher-badge {
  font-size: 11px; font-style: normal; background: var(--color-secondary);
  color: var(--color-dark); padding: 2px 8px; border-radius: 999px;
}
.matcher-card p { margin: 0 0 8px; font-size: 14px; color: rgba(45,35,32,0.7); }
.matcher-card__meta { font-size: 13px; color: rgba(45,35,32,0.55); margin-bottom: 12px; }

/* P1 M11 影响力换算 */
.calculator-ui {
  max-width: 640px; margin: 0 auto;
  background: #fff; padding: 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.calc-slider-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 600;
}
.calc-hours-val { color: var(--color-primary); font-size: 18px; }
.calc-slider {
  width: 100%; margin-bottom: 24px; accent-color: var(--color-primary);
}
.calc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.calc-card {
  text-align: center; padding: 20px 12px;
  background: var(--color-light); border-radius: var(--radius-card);
  border: 1px solid rgba(255,123,84,0.12);
}
.calc-card__icon { display: block; font-size: 28px; margin-bottom: 6px; }
.calc-card__value {
  display: block; font-size: 22px; font-weight: 800;
  color: var(--color-primary); margin-bottom: 4px;
}
.calc-card__label { font-size: 13px; color: rgba(45,35,32,0.65); }

/* P1 M12 倒计时 + 日历 */
.countdown-timer {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto;
}
.countdown-unit {
  flex: 1; min-width: 72px; text-align: center;
  background: #fff; padding: 16px 8px; border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.countdown-num {
  display: block; font-size: clamp(28px, 6vw, 40px);
  font-weight: 800; color: var(--color-primary); line-height: 1.1;
}
.countdown-unit small { font-size: 13px; color: rgba(45,35,32,0.55); }
.event-timeline {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.timeline-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-left: 3px solid var(--color-secondary);
  margin-left: 48px; padding-left: 20px; position: relative;
}
.timeline-item::before {
  content: ''; position: absolute; left: -9px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.timeline-item--past { opacity: 0.55; }
.timeline-item--past::before { background: rgba(45,35,32,0.3); }
.timeline-item__date {
  position: absolute; left: -68px; width: 52px; text-align: right;
  font-size: 13px; line-height: 1.3;
}
.timeline-item__date strong { display: block; font-size: 15px; color: var(--color-primary); }
.timeline-item__date span { color: rgba(45,35,32,0.45); font-size: 11px; }
.timeline-item__body {
  flex: 1; background: #fff; padding: 14px 16px;
  border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.timeline-item__tag {
  font-size: 11px; background: var(--color-secondary);
  padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; display: inline-block;
}
.timeline-item__body h4 { margin: 0 0 6px; font-size: 16px; }
.timeline-item__body p { margin: 0 0 10px; font-size: 13px; color: rgba(45,35,32,0.6); }

/* Responsive */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .story-card, .story-card--alt { flex-direction: column; align-items: center; text-align: center; }
  .story-card__tags { justify-content: center; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__menu.open { display: flex; }
  .nav-burger { display: flex; }
  .theme-panel { top: auto; bottom: calc(var(--footer-h) + 12px); right: 8px; transform: none; flex-direction: row; }
}

/* P2 M13 成就勋章 */
.badge-progress {
  max-width: 400px; margin: 0 auto 28px; text-align: center;
}
.badge-progress strong { color: var(--color-primary); font-size: 1.2em; }
.badge-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px; max-width: 720px; margin: 0 auto;
}
.badge-medal {
  text-align: center; padding: 16px 10px;
  background: #fff; border-radius: var(--radius-card);
  border: 1px solid rgba(255,123,84,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.badge-medal--unlocked {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(255,123,84,0.2);
  animation: badgePop 0.5s ease-out both;
}
.badge-medal--locked { filter: grayscale(0.6); }
.badge-medal__svg { width: 72px; height: 86px; margin: 0 auto 8px; display: block; }
.badge-medal__name { margin: 0 0 4px; font-size: 15px; }
.badge-medal__desc { margin: 0 0 8px; font-size: 12px; color: rgba(45,35,32,0.6); line-height: 1.4; }
.badge-medal__status { font-size: 11px; font-weight: 600; color: var(--color-primary); }
.badge-hint {
  text-align: center; font-size: 13px; color: rgba(45,35,32,0.5);
  margin-top: 20px;
}
@keyframes badgePop {
  0% { transform: scale(0.85); opacity: 0.5; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* P2 M14 附近活动地图 */
.map-toolbar-row {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.map-canvas-wrap {
  max-width: 720px; margin: 0 auto 12px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
#nearby-map-canvas {
  display: block; width: 100%; height: 280px;
  cursor: pointer;
}
.map-status {
  text-align: center; font-size: 13px;
  color: rgba(45,35,32,0.55); margin-bottom: 20px;
}
.nearby-list { max-width: 640px; margin: 0 auto; }
.nearby-list__title { margin: 0 0 12px; font-size: 16px; text-align: center; }
.nearby-card {
  display: flex; gap: 14px; padding: 14px;
  background: #fff; border-radius: var(--radius-card);
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.nearby-card__emoji { font-size: 32px; flex-shrink: 0; }
.nearby-card__body { flex: 1; min-width: 0; }
.nearby-card__body h4 { margin: 0 0 4px; font-size: 15px; }
.nearby-card__body p { margin: 0 0 10px; font-size: 13px; color: rgba(45,35,32,0.6); }
.nearby-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.map-sheet {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.map-sheet[hidden] { display: none !important; }
.map-sheet__panel {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 20px 20px 0 0; padding: 24px 20px 32px;
  position: relative; animation: slideUp 0.3s ease-out;
}
.map-sheet__close {
  position: absolute; right: 16px; top: 12px;
  width: 32px; height: 32px; border: 0; background: var(--color-light);
  border-radius: 50%; font-size: 20px; cursor: pointer;
}
.map-sheet__panel h3 { margin: 0 0 8px; font-size: 17px; }
.map-sheet__loc { margin: 0 0 4px; font-size: 14px; }
.map-sheet__dist { margin: 0 0 8px; font-size: 14px; color: rgba(45,35,32,0.65); }
.map-sheet__dist strong { color: var(--color-primary); }
.map-sheet__desc { margin: 0 0 16px; font-size: 13px; color: rgba(45,35,32,0.7); line-height: 1.5; }
.map-sheet__panel .btn { margin-bottom: 8px; }
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Share page */
body.share-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px calc(100px + env(safe-area-inset-bottom));
}
.share-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.share-card h1 { font-size: 1.4rem; margin-bottom: 8px; color: var(--color-dark); }
.share-card__eyebrow { font-size: 0.85rem; color: var(--color-primary); margin-bottom: 8px; }
.share-card__tagline { font-size: 0.95rem; color: rgba(45,35,32,0.75); margin: 4px 0; }
.share-card__desc { font-size: 0.9rem; margin: 16px 0 12px; color: rgba(45,35,32,0.65); }
.share-volunteer-stats {
  font-size: 1rem; font-weight: 700; color: var(--color-primary);
  margin-bottom: 8px; padding: 12px;
  background: rgba(255,123,84,0.1); border-radius: var(--radius-card);
}
.share-badge-stats {
  font-size: 0.88rem; color: rgba(45,35,32,0.6);
  margin-bottom: 20px;
}
.share-card .btn { margin-bottom: 10px; }
.poster-wrap {
  margin-top: 14px; border-radius: var(--radius-card);
  overflow: hidden; background: var(--color-light);
}
.poster-wrap canvas { width: 100%; height: auto; display: block; }

@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .project-grid, .story-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .timeline-item { margin-left: 36px; }
  .timeline-item__date { left: -56px; width: 44px; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .nearby-card__actions .btn { flex: 1; min-width: 0; }
}
