/* R80 本地活动日历 H5 */
:root {
  --color-primary: #2563EB;
  --color-primary-light: #60A5FA;
  --color-primary-dark: #1D4ED8;
  --color-primary-bg: #EFF6FF;
  --color-bg: #F0F4FF;
  --color-card: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-text-primary: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-tertiary: #94A3B8;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-favorite: #EC4899;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.06);
  --shadow-float: 0 8px 24px rgba(0,0,0,.12);
  --header-height: 48px;
  --seg-height: 44px;
  --contact-footer-h: 58px;
  --font: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --transition: 200ms ease;
}

body.theme-dark {
  --color-bg: #0F172A;
  --color-card: #1E293B;
  --color-surface: #1A2332;
  --color-text-primary: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-border: #334155;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text-primary);
  padding-bottom: calc(var(--contact-footer-h) + env(safe-area-inset-bottom, 0));
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; }

/* Top nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top, 0);
}
.nav-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: var(--header-height);
}
.city-btn, .icon-btn {
  border: 0;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.brand-name { margin: 0; font-size: 17px; font-weight: 700; }
.nav-actions { display: flex; gap: 6px; }

.search-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
}
.search-bar.is-open { display: flex; }
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 0 12px;
}
.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  outline: none;
}
.clear-btn, .cancel-btn { border: 0; background: none; color: var(--color-primary); cursor: pointer; }

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 10px;
  -webkit-overflow-scrolling: touch;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.chip.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Segmented control */
.segmented-control {
  display: flex;
  margin: 10px 12px;
  padding: 4px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + 52px);
  z-index: 150;
}
.seg-btn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-secondary);
}
.seg-btn.is-active {
  background: var(--color-primary);
  color: #fff;
}

.view-panel { display: none; padding: 0 12px 80px; }
.view-panel.is-active { display: block; }

/* Calendar */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.month-nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-card);
  cursor: pointer;
  font-size: 20px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card);
}
.cal-head {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-tertiary);
  padding: 6px 0;
}
.cal-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 44px;
}
.cal-cell--muted { visibility: hidden; }
.cal-cell--today { background: var(--color-primary-bg); font-weight: 700; }
.cal-cell--selected { background: var(--color-primary); color: #fff; }
.cal-dots {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  margin-top: 2px;
}
.cal-cell--selected .cal-dots { background: #fff; }
.cal-dots--high { background: var(--color-primary); }

.selected-day-panel { margin-top: 12px; }
.day-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

/* List */
.date-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.date-pill {
  flex: 0 0 auto;
  min-width: 52px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
}
.date-pill.is-active { border-color: var(--color-primary); background: var(--color-primary-bg); }
.date-pill.is-today .date-pill__day { color: var(--color-primary); font-weight: 700; }
.date-pill__dow { display: block; font-size: 11px; color: var(--color-text-tertiary); }
.date-pill__day { font-size: 18px; font-weight: 600; }

.event-list { display: flex; flex-direction: column; gap: 10px; }

/* Event card */
.event-card {
  display: flex;
  gap: 12px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  position: relative;
}
.event-card--compact { padding: 10px; }
.event-card__date {
  flex: 0 0 48px;
  text-align: center;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  padding: 6px 4px;
  font-size: 12px;
}
.event-card__date strong { display: block; font-size: 20px; color: var(--color-primary); }
.event-card__body { flex: 1; min-width: 0; }
.event-card h3 { margin: 4px 0; font-size: 15px; }
.event-card__meta, .event-card__price { margin: 0; font-size: 12px; color: var(--color-text-secondary); }
.event-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
}
.tag--ongoing { background: #FEE2E2; color: #DC2626; }
.tag--upcoming { background: #FEF3C7; color: #D97706; }
.tag--ended { background: #F1F5F9; color: #64748B; }
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

/* Map */
.map-container {
  height: 52vh;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #dbeafe;
  position: relative;
}
.map-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--color-text-secondary);
  position: relative;
}
.map-fallback__pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-float);
}
.bottom-sheet {
  margin-top: 10px;
  background: var(--color-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px 0 0;
  box-shadow: var(--shadow-float);
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 0 auto 8px;
}

/* Banner */
.banner-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 12px;
}
.banner-item {
  flex: 0 0 auto;
  min-width: 220px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.banner-item strong { display: block; font-size: 14px; }
.banner-item span { font-size: 12px; opacity: .9; }

.fab-back-today {
  position: fixed;
  right: 16px;
  bottom: calc(var(--contact-footer-h) + 16px + env(safe-area-inset-bottom, 0));
  z-index: 180;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  cursor: pointer;
}
.fab-back-today.is-hidden { display: none; }
.fab-back-today.is-pulse { animation: fab-pulse 2s ease-in-out infinite; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}
.map-pin--breathe { animation: pin-breathe 2.4s ease-in-out infinite; }
@keyframes pin-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Detail sheet */
.overlay[hidden] { display: none !important; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.detail-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow: auto;
  background: var(--color-card);
  border-radius: 16px 16px 0 0;
  padding: 20px 16px 28px;
}
.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 20px;
  cursor: pointer;
}
.detail-cover {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 12px;
}
.detail-meta { margin: 8px 0; }
.detail-desc { color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; }
.detail-social { font-size: 13px; color: var(--color-text-tertiary); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.btn {
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--outline { background: var(--color-card); color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--ghost { background: var(--color-surface); color: var(--color-text-secondary); }

.empty-state, .empty-inline {
  text-align: center;
  padding: 32px 16px;
  color: var(--color-text-tertiary);
  font-size: 14px;
}
.empty-illustration { font-size: 40px; margin-bottom: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--contact-footer-h) + 24px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 500;
}
.toast.is-show { opacity: 1; }

.contact-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.contact-footer__btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 4px;
}
.contact-footer__cta, .contact-footer__btn {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 12px;
}
.contact-footer__cta { background: var(--color-primary); color: #fff; font-weight: 600; }
.contact-footer__btn { background: var(--color-surface); border: 1px solid var(--color-border); }
.contact-footer__brand { margin: 0; padding: 0 12px 6px; text-align: center; font-size: 10px; color: var(--color-text-tertiary); }

body.has-contact-footer .em-entry-btn {
  bottom: calc(var(--contact-footer-h) + 14px + env(safe-area-inset-bottom, 0));
}

/* P1 · 搜索面板 */
.search-panel {
  padding: 8px 12px 12px;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  max-height: 42vh;
  overflow-y: auto;
}
.search-panel[hidden] { display: none !important; }
.search-panel__label { margin: 0 0 8px; font-size: 12px; color: var(--color-text-tertiary); }
.search-panel__section { margin-bottom: 12px; }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.kw-chip--hist { color: var(--color-text-secondary); }
.search-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.search-result strong { display: block; font-size: 14px; margin-bottom: 4px; }
.search-result span { font-size: 12px; color: var(--color-text-tertiary); }
.kw-hl { background: #FEF08A; color: inherit; padding: 0 2px; border-radius: 2px; }
.search-empty { text-align: center; padding: 16px; color: var(--color-text-tertiary); }
.search-empty__sub { font-size: 12px; margin-top: 4px; }

/* P1 · 社交徽章 */
.event-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.badge--countdown { background: #FEF3C7; color: #B45309; }
.badge--hot { background: #FEE2E2; color: #B91C1C; }
.badge--rate { background: #ECFDF5; color: #047857; }
.badge--scarce { background: #FFF1F2; color: #BE123C; }
.detail-social-block { margin: 12px 0; font-size: 13px; color: var(--color-text-secondary); }
.detail-live-view { font-weight: 600; color: var(--color-primary); transition: transform .3s; }
.detail-live-view.is-pulse { transform: scale(1.03); }
.detail-scarce { color: var(--color-error); }
.detail-countdown {
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-bg), var(--color-card));
  text-align: center;
}
.detail-countdown .cd-label { display: block; font-size: 12px; color: var(--color-text-tertiary); }
.detail-countdown strong { font-size: 22px; color: var(--color-primary); letter-spacing: 1px; }

/* P1 · 底部 Sheet */
.p1-sheet {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.p1-sheet[hidden] { display: none !important; }
.p1-sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.p1-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-card);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-float);
}
.p1-sheet__body { padding: 20px 16px 28px; position: relative; }
.p1-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 20px;
  cursor: pointer;
}
.p1-sheet__title { margin: 0 0 8px; font-size: 17px; }
.p1-sheet__desc, .p1-sheet__note, .p1-sheet__label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.p1-sheet__label { font-weight: 600; color: var(--color-text-primary); margin-top: 12px; }
.btn--lg { width: 100%; margin-top: 12px; padding: 12px; }

.remind-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.remind-rule, .remind-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 13px;
  cursor: pointer;
}
.remind-rule.is-on, .remind-cat.is-on {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.cal-menu { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cal-menu__btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.share-preview-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.share-preview-meta { font-size: 13px; color: var(--color-text-secondary); margin: 0 0 12px; }
.share-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.share-url { font-size: 11px; color: var(--color-text-tertiary); word-break: break-all; }
.share-poster-wrap { margin-top: 12px; text-align: center; }
.share-poster-wrap canvas { max-width: 100%; border-radius: var(--radius-md); }

body.p1-sheet-open { overflow: hidden; }

/* P2 · 筛选面板 */
.filter-panel { padding: 0 12px 8px; background: var(--color-card); }
.filter-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.filter-toggle.is-open { border-color: var(--color-primary); color: var(--color-primary); }
.filter-body { padding: 10px 0 4px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.filter-label { font-size: 12px; color: var(--color-text-tertiary); margin-right: 4px; }
.filter-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  cursor: pointer;
}
.filter-chip:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-bg); }
.filter-chip input { display: none; }
.filter-free { font-size: 12px; color: var(--color-text-secondary); }

/* P2 · 发现页 */
.segmented-control { overflow-x: auto; }
.seg-btn { min-width: 0; flex: 1; font-size: 12px; padding: 10px 6px; }
.discover-hero {
  margin: 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  overflow: hidden;
}
.discover-hero__inner { padding: 20px 16px; }
.discover-hero__tag { margin: 0 0 6px; font-size: 12px; opacity: .9; }
.discover-hero h2 { margin: 0 0 6px; font-size: 20px; }
.discover-hero p { margin: 0; font-size: 13px; opacity: .92; }
.category-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 12px;
}
.cat-tile {
  border: 0;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: center;
}
.cat-tile__icon { display: block; font-size: 24px; margin-bottom: 4px; }
.cat-tile strong { display: block; font-size: 13px; }
.cat-tile span { font-size: 11px; color: var(--color-text-tertiary); }
.section-title { margin: 12px 12px 8px; font-size: 15px; }
.theme-subs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.theme-sub {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}
.theme-sub.is-on { border-color: var(--color-primary); background: var(--color-primary-bg); }
.discover-feed { padding: 0 12px 12px; }
.waterfall-item { animation: card-enter .45s ease both; margin-bottom: 10px; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.discover-timeline { padding: 0 12px 24px; }
.timeline-row { display: flex; gap: 10px; margin-bottom: 12px; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary); margin-top: 6px; flex-shrink: 0;
}
.timeline-body { flex: 1; }
.timeline-body time { display: block; font-size: 12px; color: var(--color-text-tertiary); margin-bottom: 4px; }
.timeline-event {
  display: block; width: 100%; text-align: left;
  border: 0; background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 8px 10px; margin-bottom: 6px;
  font-size: 13px; cursor: pointer;
}

/* P2 · 好友/评价/签到 */
.friend-signal { margin: 4px 0; font-size: 12px; color: var(--color-primary-dark); }
.detail-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.section-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-head-row h3 { margin: 0; font-size: 15px; }
.btn-text { border: 0; background: none; color: var(--color-primary); font-size: 13px; cursor: pointer; }
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-item { background: var(--color-surface); border-radius: var(--radius-md); padding: 10px; }
.review-stars { color: #F59E0B; font-size: 12px; }
.review-item p { margin: 4px 0 0; font-size: 13px; color: var(--color-text-secondary); }
.checkin-bar { margin: 12px 0; }
.checkin-bar .is-done { opacity: .7; }
.hint-text { font-size: 13px; color: var(--color-text-tertiary); }
.p2-form label { display: block; margin-bottom: 10px; font-size: 13px; }
.p2-form input, .p2-form select, .p2-form textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-card);
}
.ugc-item { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.ugc-item strong { display: block; }
.ugc-item span { font-size: 12px; color: var(--color-text-tertiary); }
.ugc-item em { font-size: 11px; color: var(--color-primary); }
.countdown--flip strong { display: inline-block; animation: cd-flip .6s ease; }
@keyframes cd-flip {
  0% { transform: rotateX(90deg); opacity: .3; }
  100% { transform: rotateX(0); opacity: 1; }
}

/* 分享页 */
body.share-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px calc(var(--contact-footer-h) + 24px + env(safe-area-inset-bottom, 0));
}
.share-card {
  background: var(--color-card);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: var(--shadow-float);
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.share-card__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}
.share-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--color-primary-light);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-bg);
  font-size: 36px;
}
.share-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.share-card__tagline { margin: 0 0 8px; font-size: 14px; color: var(--color-text-secondary); }
.share-card__desc { margin: 0 0 16px; font-size: 13px; color: var(--color-text-tertiary); line-height: 1.6; }
.share-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.share-stat {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 10px 8px;
}
.share-stat strong { display: block; font-size: 20px; color: var(--color-primary); }
.share-stat span { font-size: 11px; color: var(--color-text-secondary); }
.share-event-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
}
.share-event-list li {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: 13px;
}
.share-event-list li strong { display: block; margin: 4px 0; font-size: 15px; }
.share-event-list li span { color: var(--color-text-secondary); }
.share-event-list__empty { text-align: center; color: var(--color-text-tertiary); }
.share-card .btn { margin-bottom: 10px; }
.btn--full { width: 100%; display: block; }
.share-poster-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  text-align: left;
}
.share-poster-panel h2 { margin: 0 0 6px; font-size: 17px; text-align: center; }
.share-poster-hint { margin: 0 0 12px; font-size: 12px; color: var(--color-text-tertiary); text-align: center; }
.poster-wrap { margin-top: 12px; }
.poster-wrap canvas { width: 100%; height: auto; border-radius: var(--radius-md); }

@media (min-width: 768px) {
  #app, .contact-footer, .detail-sheet { max-width: 480px; margin-left: auto; margin-right: auto; }
  .contact-footer { left: 50%; right: auto; width: 100%; transform: translateX(-50%); }
  .p1-sheet__panel { margin: 0 auto; }
}
