:root {
  --color-primary: #4A90D9;
  --color-secondary: #A8D4FF;
  --color-accent: #FFD166;
  --color-bg: #F0F7FF;
  --color-text: #2C3E50;
  --color-success: #06D6A0;
  --radius-md: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-clean: 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font);
  --share-bar-h: 56px;
  --contact-footer-h: 72px;
  --top-bar-h: 48px;
  --shadow: 0 8px 28px rgba(44, 62, 80, 0.1);
}

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

/* Top bar */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--top-bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(240, 247, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 144, 217, 0.12);
}
.top-bar__org { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.top-bar__theme {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-secondary); font-size: 16px;
}

.theme-panel {
  position: fixed; top: calc(var(--top-bar-h) + 8px); right: 12px; z-index: 95;
  background: #fff; border-radius: var(--radius-md); padding: 12px;
  box-shadow: var(--shadow); max-width: 220px;
}
.theme-panel__label { margin: 0 0 6px; font-size: 11px; color: rgba(44,62,80,0.55); }
.theme-panel__colors, .theme-panel__scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.theme-chip { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.scene-chip {
  padding: 4px 8px; font-size: 11px; border-radius: 999px;
  background: var(--color-secondary); color: var(--color-text);
}

/* Hero memorial */
.hero-memorial {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-end; justify-content: center;
  padding: calc(var(--top-bar-h) + 24px) 20px 64px;
  overflow: hidden;
}
.hero-memorial__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  animation: memorialReveal 1.2s ease-out;
}
.hero-memorial__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,62,80,0.15) 0%, rgba(44,62,80,0.75) 100%);
}
.hero-memorial__content {
  position: relative; z-index: 1; text-align: center; color: #fff; max-width: 520px;
  animation: fadeUp 0.9s 0.2s ease-out both;
}
.hero-memorial__org { margin: 0 0 8px; font-size: 13px; opacity: 0.9; letter-spacing: 0.08em; }
.hero-memorial__name { margin: 0 0 8px; font-size: clamp(32px, 8vw, 48px); font-weight: 800; }
.hero-memorial__grade { margin: 0 0 16px; font-size: 15px; opacity: 0.92; }
.hero-memorial__quote {
  margin: 0; padding: 0; border: 0; font-size: 16px; font-style: italic; opacity: 0.95; line-height: 1.7;
}
.hero-memorial__hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  text-align: center; color: rgba(255,255,255,0.85); font-size: 12px;
}
.hero-memorial__hint .chevron {
  display: block; width: 18px; height: 18px; margin: 4px auto 0;
  border-right: 2px solid rgba(255,255,255,0.8); border-bottom: 2px solid rgba(255,255,255,0.8);
  transform: rotate(45deg); animation: bounceHint 1.4s infinite;
}

/* Sections */
.section {
  padding: 48px 16px; max-width: 640px; margin: 0 auto;
}
.section--alt { background: #fff; max-width: none; }
.section--alt > .section__title,
.section--alt > .section__subtitle,
.section--alt > *:not(.section__title):not(.section__subtitle) {
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.section__title {
  margin: 0 0 6px; font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 800; text-align: center;
}
.section__subtitle {
  margin: 0 0 28px; text-align: center;
  color: rgba(44, 62, 80, 0.6); font-size: 14px;
}
.subsection-title { margin: 28px 0 12px; font-size: 16px; text-align: center; }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.stat-card {
  background: #fff; border-radius: var(--radius-md); padding: 18px 14px;
  text-align: center; box-shadow: var(--shadow);
}
.stat-card__icon { font-size: 28px; display: block; margin-bottom: 6px; }
.stat-card__value { font-size: 28px; font-weight: 800; color: var(--color-primary); line-height: 1.1; }
.stat-card__label { font-size: 13px; color: rgba(44,62,80,0.65); margin-top: 4px; }
.radar-wrap { margin-top: 8px; }
.radar-svg { display: block; margin: 0 auto; }
.radar-label { font-size: 11px; fill: rgba(44,62,80,0.7); }
.radar-animate { animation: radarPop 0.8s ease-out; }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--color-secondary);
}
.timeline-node { position: relative; margin-bottom: 24px; padding-left: 20px; }
.timeline-node__dot {
  position: absolute; left: -20px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.timeline-node__card {
  background: var(--color-bg); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow);
}
.section--alt .timeline-node__card { background: var(--color-bg); }
.timeline-node__date { display: block; padding: 10px 14px 0; font-size: 12px; color: var(--color-primary); font-weight: 600; }
.timeline-node__photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.timeline-node__title { margin: 0; padding: 12px 14px 0; font-size: 17px; }
.timeline-node__quote { margin: 0; padding: 8px 14px 14px; font-size: 14px; color: rgba(44,62,80,0.75); font-style: italic; }
.timeline-metrics { padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-metrics__tag {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--color-secondary); color: var(--color-text);
}

/* Subjects */
.subject-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
.subject-tab {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--color-text); box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.subject-tab.active { background: var(--color-primary); color: #fff; }
.subject-panel { text-align: center; }
.subject-ring { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.ring-svg { display: block; }
.ring-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.ring-percent { font-size: 32px; font-weight: 800; color: var(--color-primary); }
.subject-detail h3 { margin: 0 0 8px; font-size: 20px; }
.subject-detail p { margin: 0; color: rgba(44,62,80,0.7); font-size: 14px; }

/* Badges */
.badges-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.badge-card {
  background: var(--color-bg); border-radius: var(--radius-md);
  padding: 14px 8px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.badge-card:active { transform: scale(0.97); }
.badge-card--locked { filter: grayscale(1); opacity: 0.55; }
.badge-card__icon { font-size: 32px; display: block; }
.badge-card__name { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; }
.badge-card__date, .badge-card__lock { display: block; font-size: 10px; color: rgba(44,62,80,0.5); margin-top: 4px; }

/* Share section */
.share-templates { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.template-option {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow);
  font-size: 14px; cursor: pointer;
}
.template-option input { margin-top: 3px; accent-color: var(--color-primary); }
.share-layouts { display: flex; gap: 8px; margin-bottom: 16px; }
.layout-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-md);
  background: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--shadow);
}
.layout-btn.active { background: var(--color-primary); color: #fff; }

/* Gallery */
.gallery-masonry { column-count: 2; column-gap: 8px; }
.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  break-inside: avoid;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: none;
}
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-item__cap,
.gallery-item figcaption.gallery-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 8px; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--outline { background: #fff; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn--full { width: 100%; }

/* Share bar */
.share-bar {
  position: fixed; left: 0; right: 0; bottom: var(--contact-footer-h);
  z-index: 80; height: var(--share-bar-h);
  display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(74,144,217,0.12);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px) * 0);
}
.share-bar .btn { flex: 1; max-width: 180px; padding: 10px 12px; font-size: 13px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44,62,80,0.55); display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal__sheet {
  background: #fff; border-radius: var(--radius-md); padding: 16px;
  max-width: 400px; width: 100%; max-height: 90vh; overflow-y: auto;
}
#poster-canvas { width: 100%; height: auto; border-radius: 8px; display: block; }
.poster-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0,0,0,0.88); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox img { max-height: 70vh; border-radius: var(--radius-md); }
.lightbox__cap { color: #fff; margin-top: 12px; font-size: 14px; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 24px;
}

/* Footer */
.page-footer {
  text-align: center; padding: 24px 16px 8px;
  font-size: 12px; color: rgba(44,62,80,0.5);
}

/* Contact footer — H5 标准交付 */
.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); border-top: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}
.contact-footer__btns { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.contact-footer__cta, .contact-footer__btn {
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.78rem;
  font-weight: 600; text-decoration: none;
}
.contact-footer__cta { background: #c41e1e; color: #fff; }
.contact-footer__btn {
  border: 1px solid rgba(0,0,0,0.12); color: var(--color-text); background: #fff;
}
.contact-footer__brand {
  text-align: center; font-size: 0.62rem; color: rgba(44,62,80,0.55); margin: 0.35rem 0 0;
}

/* Toast */
.r73-toast {
  position: fixed; left: 50%; bottom: calc(var(--share-bar-h) + var(--contact-footer-h) + 24px);
  transform: translateX(-50%); z-index: 300;
  background: rgba(44,62,80,0.92); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 13px;
  max-width: 90vw; text-align: center;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes memorialReveal {
  from { filter: blur(8px); transform: scale(1.05); }
  to { filter: blur(0); transform: scale(1); }
}
@keyframes bounceHint {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}
@keyframes radarPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .badges-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Share page */
body.share-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px calc(100px + env(safe-area-inset-bottom));
  background: var(--color-bg);
}
.share-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  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-avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-secondary);
  box-shadow: var(--shadow);
}
.share-avatar { width: 100%; height: 100%; object-fit: cover; }
.share-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
}
.share-card__tagline {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(44, 62, 80, 0.75);
}
.share-card__desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(44, 62, 80, 0.6);
}
.share-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.share-stat {
  background: var(--color-bg);
  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: rgba(44, 62, 80, 0.65); }
.share-badge-line {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(74, 144, 217, 0.1);
  border-radius: var(--radius-md);
}
.share-card .btn { margin-bottom: 10px; }
.share-page-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.share-poster-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 144, 217, 0.12);
  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: rgba(44, 62, 80, 0.55);
  text-align: center;
}
.share-layouts--compact { margin-bottom: 12px; }
.poster-wrap {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.poster-wrap canvas { width: 100%; height: auto; display: block; }

/* P1-1 Streak */
.streak-panel {
  background: #fff;
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}
.streak-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.streak-flame { font-size: 48px; line-height: 1; }
.streak-flame--animate { animation: pulseFlame 1.4s ease-in-out infinite; }
.streak-panel--lit .streak-flame--animate { animation-duration: 0.9s; }
.streak-count__value {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}
.streak-count__label { font-size: 13px; color: rgba(44, 62, 80, 0.6); }
.streak-longest { margin: 0 0 16px; font-size: 14px; color: rgba(44, 62, 80, 0.7); }
.streak-longest strong { color: var(--color-success); }
.streak-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 280px;
  margin: 0 auto;
}
.streak-cal__day {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(74, 144, 217, 0.08);
}
.streak-cal__day--done {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  opacity: 0.35;
  transform: scale(0.6);
}
.streak-cal__day--done.streak-cal__day--pop {
  opacity: 1;
  transform: scale(1);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* P1-2 Highlights */
.highlights-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.highlights-scroll::-webkit-scrollbar { display: none; }
.highlight-card {
  flex: 0 0 78%;
  max-width: 280px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}
.highlight-card__photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.highlight-card__body { padding: 12px 14px 16px; }
.highlight-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-bottom: 6px;
}
.highlight-card__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.highlight-card__desc { margin: 0; font-size: 13px; color: rgba(44, 62, 80, 0.65); line-height: 1.5; }
.highlights-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(44, 62, 80, 0.45);
  margin: 8px 0 0;
  transition: opacity 0.3s;
}
.highlights-hint--hide { opacity: 0; height: 0; margin: 0; overflow: hidden; }

/* P1-3 Brand */
.section--brand { padding-bottom: 24px; }
.brand-block {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}
.brand-block__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}
.brand-block__logo--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.brand-block__name { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.brand-block__slogan { margin: 0 0 16px; font-size: 14px; color: rgba(44, 62, 80, 0.65); }
.brand-block__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.brand-contact-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid rgba(74, 144, 217, 0.15);
}
.brand-block__share-link { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; }

@keyframes pulseFlame {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* P2-1 Profile switcher */
.profile-switcher {
  position: fixed;
  top: var(--top-bar-h);
  left: 0;
  right: 0;
  z-index: 88;
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  overflow-x: auto;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(74,144,217,0.12);
  scrollbar-width: none;
}
.profile-switcher::-webkit-scrollbar { display: none; }
body.has-profile-switcher { padding-top: calc(var(--top-bar-h) + 40px); }
body.has-profile-switcher .top-bar { top: 0; }
.profile-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid rgba(74,144,217,0.15);
}
.profile-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.brand-block__admin {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(44,62,80,0.5);
  text-decoration: none;
}

/* P2-2 Consult form */
.consult-form {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}
.consult-field {
  display: block;
  margin-bottom: 14px;
}
.consult-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.consult-field input,
.consult-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(74,144,217,0.2);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font: inherit;
}
.consult-field__error {
  display: block;
  font-size: 11px;
  color: #e84855;
  min-height: 16px;
  margin-top: 4px;
}
.consult-success {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
}
.consult-success__icon { font-size: 40px; margin-bottom: 8px; }
.consult-success__title { margin: 0 0 8px; font-size: 20px; }
.consult-success__msg { margin: 0 0 16px; color: rgba(44,62,80,0.7); font-size: 14px; }

/* Admin page */
body.admin-page { background: var(--color-bg); padding-bottom: 100px; }
.admin-header {
  text-align: center;
  padding: 24px 16px 12px;
}
.admin-header h1 { margin: 0 0 8px; font-size: 22px; }
.admin-header p { margin: 0; font-size: 13px; color: rgba(44,62,80,0.6); }
.admin-main { max-width: 480px; margin: 0 auto; padding: 0 16px 24px; }
.admin-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.admin-card h2 { margin: 0 0 10px; font-size: 16px; }
.admin-hint { font-size: 12px; color: rgba(44,62,80,0.55); margin: 0 0 12px; }
.admin-status { font-size: 12px; color: var(--color-success); margin-top: 8px; }
.admin-profile-list { display: flex; flex-direction: column; gap: 10px; }
.admin-profile-item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.admin-profile-id { display: block; font-size: 11px; color: rgba(44,62,80,0.5); margin: 4px 0 8px; }
.admin-json {
  margin-top: 10px;
  padding: 10px;
  background: var(--color-bg);
  border-radius: 8px;
  font-size: 10px;
  overflow-x: auto;
  max-height: 200px;
  white-space: pre-wrap;
  word-break: break-all;
}
#csv-file { width: 100%; margin-bottom: 10px; font-size: 13px; }

/* 试玩模式 · 适配底栏/档案切换条 */
body.editor-mode-active.has-contact-footer.has-share-bar {
  padding-bottom: calc(var(--share-bar-h) + var(--contact-footer-h) + 48px + env(safe-area-inset-bottom, 0px));
}
body.editor-mode-active.has-profile-switcher .em-entry-btn {
  top: calc(var(--top-bar-h) + 44px);
}
body.editor-mode-active .highlight-card__photo.em-editable-img,
body.editor-mode-active .gallery-item img.em-editable-img,
body.editor-mode-active .timeline-node__photo.em-editable-img {
  outline: 2px dashed rgba(74, 144, 217, 0.55);
  outline-offset: 2px;
}
body.editor-mode-active .hero-memorial__bg.em-bg-target {
  outline: 2px dashed rgba(255, 255, 255, 0.65);
  outline-offset: -4px;
}
