/**
 * H5 扩展：物种卡分享区、活动推荐长页、打卡与恭喜弹层
 */

/* —— 结果页：结果 / 活动 Tab —— */
.result-hub {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* 顶栏与 Tab 之间留出呼吸感；左右与活动列表版心对齐 */
  padding: clamp(0.875rem, 2.2dvh + 0.35rem, 1.35rem) var(--gutter) 0;
  box-sizing: border-box;
}

.result-hub-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin: 0 0 var(--space-lg);
  padding: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.result-hub-tab {
  flex: 1 1 50%;
  border: none;
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: var(--fs-body);
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 999px;
  cursor: pointer;
  color: #475569;
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.result-hub-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.result-flow-page--deep.mode-dark .result-hub-tabs {
  background: rgba(30, 41, 59, 0.85);
}

.result-flow-page--deep.mode-dark .result-hub-tab {
  color: #94a3b8;
}

.result-flow-page--deep.mode-dark .result-hub-tab.is-active {
  background: rgba(51, 65, 85, 0.95);
  color: #f1f5f9;
}

.result-hub-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.result-hub-panel.is-active {
  display: flex;
}

.result-hub-panel--species .result-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  /* 与 .result-hub 横向 gutter 合并，避免物种卡区左右双份内边距 */
  padding-left: 0;
  padding-right: 0;
}

.result-hub-panel--activity {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.result-species-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.result-species-empty__p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: #475569;
  margin: 0 0 var(--space-lg);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.result-flow-page--deep.mode-dark .result-species-empty__p {
  color: #cbd5e1;
}

.result-actions-primary {
  margin-top: var(--space-lg);
}

.result-detail-note {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: #64748b;
  margin: var(--space-sm) 0 0;
  text-align: center;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.result-flow-page--deep.mode-dark .result-detail-note {
  color: #94a3b8;
}

.result-actions-muted {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-sm);
  justify-content: center;
  align-items: center;
}

.result-chip-btn--ghost {
  opacity: 0.88;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  font-size: 0.6875rem;
}

/* —— 结果页：护照式物种卡（白底内页 + 照片区 + 机读字段） —— */
.result-hub-panel--species .result-specimen-card--passport {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image:
    repeating-linear-gradient(
      -11deg,
      transparent,
      transparent 5px,
      rgba(15, 23, 42, 0.018) 5px,
      rgba(15, 23, 42, 0.018) 6px
    ),
    repeating-linear-gradient(
      11deg,
      transparent,
      transparent 5px,
      rgba(15, 23, 42, 0.014) 5px,
      rgba(15, 23, 42, 0.014) 6px
    );
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #0f172a 16%, transparent);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  padding: 0.65rem 0.75rem 0.85rem;
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-specimen-card--passport {
  background-color: #1a1f27;
  background-image:
    repeating-linear-gradient(
      -11deg,
      transparent,
      transparent 5px,
      rgba(255, 255, 255, 0.03) 5px,
      rgba(255, 255, 255, 0.03) 6px
    ),
    repeating-linear-gradient(
      11deg,
      transparent,
      transparent 5px,
      rgba(255, 255, 255, 0.022) 5px,
      rgba(255, 255, 255, 0.022) 6px
    );
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.result-passport-headband {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, #0f172a 12%, transparent);
}

.result-flow-page--deep.mode-dark .result-passport-headband {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.result-passport-hb-col--left {
  flex: 1 1 auto;
  min-width: 0;
}

.result-passport-hb-col--right {
  flex-shrink: 0;
  text-align: right;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.result-flow-page--deep.mode-dark .result-passport-hb-col--right {
  color: #cbd5e1;
}

.result-passport-bars {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2px;
  height: 1.55rem;
  margin-bottom: 0.2rem;
  max-width: 11rem;
  color: #0f172a;
}

.result-flow-page--deep.mode-dark .result-passport-bars {
  color: #e2e8f0;
}

.result-passport-bars span {
  display: block;
  flex-shrink: 0;
  align-self: stretch;
  background: currentColor;
  border-radius: 0;
}

.result-passport-hb-sub {
  margin: 0;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: color-mix(in srgb, #0f172a 72%, transparent);
}

.result-flow-page--deep.mode-dark .result-passport-hb-sub {
  color: #94a3b8;
}

.result-passport-hb-k {
  display: block;
  font-weight: 700;
}

.result-passport-hb-doc {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.result-passport-body {
  text-align: left;
  border-radius: 10px;
  padding: 0.5rem 0.45rem;
  margin: 0 0 0.35rem;
}

.result-passport-biodata {
  display: grid;
  grid-template-columns: minmax(8.25rem, 40%) 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
}

@media (max-width: 340px) {
  .result-passport-biodata {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .result-passport-fields {
    text-align: left;
    width: 100%;
  }
}

.result-passport-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 7 / 9;
  min-height: 9.5rem;
  max-height: min(46vw, 15.5rem);
  padding: 0.45rem 0.35rem;
  border: 2px solid #0f172a;
  border-radius: 3px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.result-flow-page--deep.mode-dark .result-passport-photo {
  border-color: #64748b;
  background: #0f1419;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.result-passport-photo-cap {
  position: absolute;
  top: 0.2rem;
  left: 0.25rem;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, #0f172a 55%, transparent);
}

.result-flow-page--deep.mode-dark .result-passport-photo-cap {
  color: #64748b;
}

.result-hub-panel--species .result-passport-ascii {
  margin: 0;
  text-align: center;
  font-size: clamp(0.78rem, 4.6vw, 1.08rem);
  line-height: 1.18;
  color: #0369a1;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-passport-ascii {
  color: #38bdf8;
}

.result-passport-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.result-pass-field {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.result-pass-field__lab {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, #0f172a 48%, transparent);
}

.result-flow-page--deep.mode-dark .result-pass-field__lab {
  color: #64748b;
}

.result-hub-panel--species .result-specimen-card--passport .result-specimen-title {
  margin: 0;
  text-align: left;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.result-hub-panel--species .result-specimen-card--passport .result-hero-en {
  margin: 0;
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  text-transform: none;
  color: #334155;
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-specimen-card--passport .result-hero-en {
  color: #94a3b8;
}

.result-hub-panel--species .result-specimen-card--passport .result-specimen-tagline {
  margin: 0;
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.result-hub-panel--species .result-specimen-card--passport .result-specimen-kicker {
  margin: 0;
  text-align: left;
  font-size: 0.6875rem;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

/* 与 ASCII 同格叠放：先画动效，再叠文案（避免流式排版把字「掉」到下面） */
.result-hub-panel--species .result-specimen-card--passport .result-cosmos-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  margin-top: var(--space-md);
  padding: 0;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #0f172a 10%, transparent);
  background: #f1f5f9;
  overflow: hidden;
}

.result-hub-panel--species .result-specimen-card--passport .result-cosmos-block > .result-cosmos-scene,
.result-hub-panel--species .result-specimen-card--passport .result-cosmos-block > .result-save-hint {
  grid-area: 1 / 1;
}

.result-hub-panel--species .result-specimen-card--passport .result-cosmos-scene {
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.45rem 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.5625rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #64748b;
  z-index: 0;
}

.result-hub-panel--species .result-specimen-card--passport .result-save-hint {
  z-index: 1;
  place-self: center;
  box-sizing: border-box;
  width: calc(100% - 1.1rem);
  max-width: 17.5rem;
  margin: 0;
  padding: 0.42rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #1e293b;
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(248, 250, 252, 0.9);
  pointer-events: none;
}

.result-hub-panel--species .result-specimen-card--passport .result-save-hint strong {
  font-weight: 700;
  color: #0f172a;
}

.result-detail-note--passport-after-cosmos {
  margin: var(--space-sm) 0 0;
  text-align: center;
}

.result-actions-muted--passport-foot {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px dashed color-mix(in srgb, #64748b 35%, transparent);
  justify-content: center;
}

.result-flow-page--deep.mode-dark .result-actions-muted--passport-foot {
  border-top-color: rgba(148, 163, 184, 0.22);
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-specimen-card--passport .result-cosmos-block {
  border-color: rgba(148, 163, 184, 0.18);
  background: #0c1016;
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-specimen-card--passport .result-cosmos-scene {
  background: transparent;
  border: none;
  color: #64748b;
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-specimen-card--passport .result-save-hint {
  color: #e2e8f0;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow:
    0 0 8px rgba(15, 23, 42, 0.95),
    0 0 16px rgba(15, 23, 42, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

.result-flow-page--deep.mode-dark .result-hub-panel--species .result-specimen-card--passport .result-save-hint strong {
  color: #f1f5f9;
}

.result-chip-btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.result-flow-page--deep.mode-dark .result-chip-btn {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.species-qr-panel {
  text-align: center;
  padding: var(--space-md) 0 var(--space-lg);
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  margin-top: var(--space-md);
}

.species-qr-tip {
  font-size: var(--fs-caption);
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 var(--space-sm);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.result-flow-page--deep.mode-dark .species-qr-tip {
  color: #94a3b8;
}

.species-qr-panel img {
  display: block;
  margin: 0 auto var(--space-sm);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.result-link-like {
  border: none;
  background: none;
  color: #6366f1;
  font-size: var(--fs-caption);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* —— 活动推荐（嵌入结果 Tab） —— */
.activity-page--embedded {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.activity-page {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}

.activity-hero {
  padding: var(--space-md) 0 var(--space-xl);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: var(--space-lg);
}

.activity-hero-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.activity-hero-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

.activity-hero-group-qr {
  flex: 0 0 auto;
  width: auto;
  max-width: 3.25rem;
  text-align: center;
  align-self: flex-start;
}

.activity-hero-group-qr__img {
  display: block;
  width: 3rem;
  height: 3rem;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-sizing: border-box;
}

.activity-hero-group-qr__tip {
  margin: 0.12rem 0 0;
  font-size: 0.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.result-flow-page--deep.mode-dark .activity-hero-group-qr__img {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

.result-flow-page--deep.mode-dark .activity-hero-group-qr__tip {
  color: #64748b;
}

.activity-hero-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.activity-kicker {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.activity-meta-note {
  font-size: 0.625rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 11rem;
  text-align: right;
}

.activity-title {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-xs);
  color: #0f172a;
}

.activity-sub {
  font-size: var(--fs-caption);
  color: #475569;
  margin: 0;
}

.activity-stamp-meter {
  margin-top: var(--space-md);
}

.activity-stamp-meter__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 0.4rem;
}

.activity-stamp-meter__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #475569;
}

.activity-stamp-meter__fraction {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.activity-stamp-meter__track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.activity-stamp-meter__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6 55%, #a855f7);
  transition: width 0.35s ease;
}

.result-flow-page--deep.mode-dark .activity-stamp-meter__label {
  color: #94a3b8;
}

.result-flow-page--deep.mode-dark .activity-stamp-meter__fraction {
  color: #f1f5f9;
}

.result-flow-page--deep.mode-dark .activity-stamp-meter__track {
  background: rgba(30, 41, 59, 0.9);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.result-flow-page--deep.mode-dark .activity-stamp-meter__fill {
  background: linear-gradient(90deg, #818cf8, #a78bfa 60%, #c084fc);
}

.activity-event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.activity-event-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.result-flow-page--deep.mode-dark .activity-event-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.activity-event-card__banner {
  min-height: clamp(4.5rem, 22vw, 6.75rem);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.activity-event-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.activity-event-card__stamp {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.activity-event-card__stamp.is-done {
  background: linear-gradient(120deg, #22c55e, #4ade80);
  color: #fff;
  border: none;
}

.activity-event-card__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.activity-event-card__text {
  position: relative;
  z-index: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.activity-event-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.activity-pill {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.activity-when-where {
  font-size: 0.6875rem;
  color: #64748b;
  text-align: right;
  line-height: 1.35;
}

.activity-event-time {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-xs);
  color: #0f172a;
}

.activity-event-time--range {
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.result-flow-page--deep.mode-dark .activity-title,
.result-flow-page--deep.mode-dark .activity-event-time {
  color: #f1f5f9;
}

.result-flow-page--deep.mode-dark .activity-sub,
.result-flow-page--deep.mode-dark .activity-when-where {
  color: #94a3b8;
}

.activity-event-title {
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  color: #0f172a;
}

.result-flow-page--deep.mode-dark .activity-event-title {
  color: #f8fafc;
}

.activity-tag {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #6366f1;
  border-radius: 4px;
  white-space: nowrap;
}

.activity-guest,
.activity-intro {
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: #475569;
  margin: 0 0 var(--space-xs);
  white-space: pre-line;
}

.activity-intro-en {
  font-size: 0.625rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}

.activity-event-card__detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.activity-event-card__expandable .activity-intro-en {
  margin-top: 0.4rem;
}

.activity-event-card__grow {
  flex: 1;
  min-height: 0;
}

.activity-event-card__expandable {
  position: relative;
  flex: 0 0 auto;
}

.activity-event-card__expandable.is-clamped:not(.is-expanded) {
  max-height: clamp(4rem, 17vw, 5.5rem);
  overflow: hidden;
}

.activity-event-card__expandable.is-expanded {
  max-height: none;
  overflow: visible;
}

.activity-event-card__expandable.is-expanded::after {
  display: none;
}

.activity-event-card__expandable.is-clamped:not(.is-expanded)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 78%);
}

.result-flow-page--deep.mode-dark
  .activity-event-card__expandable.is-clamped:not(.is-expanded)::after {
  background: linear-gradient(
    to bottom,
    rgba(30, 41, 59, 0),
    rgba(30, 41, 59, 0.92) 72%,
    rgba(30, 41, 59, 1) 100%
  );
}

.activity-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.05rem 0 0;
  padding: 0.2rem 0 0.15rem;
  border: none;
  background: none;
  color: #64748b;
  cursor: pointer;
}

.activity-expand-btn:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.activity-expand-btn[hidden] {
  display: none !important;
}

.activity-expand-chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-15%) rotate(45deg);
  transition: transform 0.2s ease;
}

.activity-expand-btn.is-open .activity-expand-chevron {
  transform: translateY(35%) rotate(-135deg);
}

.result-flow-page--deep.mode-dark .activity-expand-btn {
  color: #94a3b8;
}

.activity-checkin-actions {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.activity-checkin-btn {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.activity-checkin-btn:active {
  transform: scale(0.98);
}

.result-flow-page--deep.mode-dark .activity-checkin-actions {
  border-top-color: rgba(148, 163, 184, 0.15);
}

/* 已打卡：圆形邮戳叠在正文右上（护照盖章感） */
.activity-postmark {
  position: absolute;
  top: 0.4rem;
  right: 0.35rem;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  pointer-events: none;
  width: clamp(4.75rem, 24vw, 5.65rem);
  height: clamp(4.75rem, 24vw, 5.65rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-postmark__sheet {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.32rem 0.28rem 0.28rem;
  transform: rotate(-8deg);
  box-sizing: border-box;
  background: linear-gradient(
    145deg,
    rgba(255, 252, 247, 0.98) 0%,
    rgba(245, 236, 225, 0.99) 42%,
    rgba(232, 220, 200, 1) 100%
  );
  border: 2px solid rgba(124, 45, 18, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 0 0 4px rgba(124, 45, 18, 0.08),
    0 6px 16px rgba(67, 20, 7, 0.18);
}

.result-flow-page--deep.mode-dark .activity-postmark__sheet {
  background: linear-gradient(145deg, rgba(55, 48, 40, 0.98) 0%, rgba(30, 27, 24, 0.99) 100%);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 3px rgba(251, 191, 36, 0.1),
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.activity-postmark__ribbon {
  margin: 0 0 0.08rem;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(124, 45, 18, 0.78);
  max-width: 92%;
}

.result-flow-page--deep.mode-dark .activity-postmark__ribbon {
  color: rgba(253, 224, 71, 0.8);
}

.activity-postmark__headline {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #431407;
}

.result-flow-page--deep.mode-dark .activity-postmark__headline {
  color: #fef3c7;
}

.activity-postmark__status {
  margin: 0.06rem 0 0.12rem;
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #b45309;
}

.result-flow-page--deep.mode-dark .activity-postmark__status {
  color: #fcd34d;
}

.activity-postmark__date {
  margin: 0;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.4375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: rgba(67, 20, 7, 0.78);
  max-width: 94%;
  word-break: break-all;
}

.activity-postmark__time {
  margin: 0.05rem 0 0;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #292524;
  max-width: 96%;
  word-break: break-word;
}

.result-flow-page--deep.mode-dark .activity-postmark__date {
  color: rgba(254, 243, 199, 0.82);
}

.result-flow-page--deep.mode-dark .activity-postmark__time {
  color: #fffbeb;
}

/* 扫码打卡弹层 */
.modal-checkin-scan .modal-checkin-scan__dialog {
  max-width: 22rem;
  width: calc(100vw - 2rem);
}

.modal-checkin-scan__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.05rem;
  text-align: center;
}

.modal-checkin-scan__cam-hint {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 var(--space-sm);
  text-align: center;
}

.result-flow-page--deep.mode-dark .modal-checkin-scan__cam-hint {
  color: #94a3b8;
}

.modal-checkin-scan__reader-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: var(--space-md);
}

.modal-checkin-scan__reader {
  min-height: 13.5rem;
}

.modal-checkin-scan__reader video {
  border-radius: 0;
}

/* 分享海报弹层 */
.modal-share-poster .modal-share-poster__dialog {
  max-width: 22rem;
}

.modal-share-poster__status {
  font-size: var(--fs-caption);
  text-align: center;
  margin: 0 0 var(--space-sm);
  line-height: 1.45;
  color: #64748b;
}

.result-flow-page--deep.mode-dark .modal-share-poster__status {
  color: #94a3b8;
}

.modal-share-poster__card-wrap {
  display: flex;
  justify-content: center;
  margin: var(--space-sm) 0 var(--space-md);
}

.modal-share-poster__composite {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

/* [hidden] 的 UA display:none 会被上面的 display:block 覆盖，必须显式写回 */
.modal-share-poster__composite[hidden] {
  display: none !important;
}

.result-flow-page--deep.mode-dark .modal-share-poster__composite {
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.modal-share-poster__qr-wrap {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0;
}

.modal-share-poster__qr-wrap--fallback[hidden] {
  display: none !important;
  margin: 0;
}

.modal-share-poster__qr-wrap img {
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-share-poster__tip {
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: #475569;
  margin: 0 0 var(--space-sm);
}

.result-flow-page--deep.mode-dark .modal-share-poster__tip {
  color: #cbd5e1;
}

.result-flow-page--deep.mode-dark .activity-guest,
.result-flow-page--deep.mode-dark .activity-intro {
  color: #cbd5e1;
}

/* banner skins */
.activity-event-card__banner--1 {
  background: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 50%, #fef3c7 100%);
}
.activity-event-card__banner--2 {
  background: linear-gradient(135deg, #ddd6fe 0%, #cffafe 100%);
}
.activity-event-card__banner--3 {
  background: linear-gradient(135deg, #bbf7d0 0%, #bfdbfe 100%);
}
.activity-event-card__banner--4 {
  background: linear-gradient(135deg, #fef08a 0%, #fda4af 100%);
}
.activity-event-card__banner--5 {
  background: linear-gradient(135deg, #a5b4fc 0%, #e9d5ff 100%);
}
.activity-event-card__banner--6 {
  background: linear-gradient(135deg, #99f6e4 0%, #fcd34d 100%);
}
.activity-event-card__banner--7 {
  background: linear-gradient(135deg, #fecdd3 0%, #c4b5fd 100%);
}
.activity-event-card__banner--8 {
  background: linear-gradient(135deg, #93c5fd 0%, #fde68a 100%);
}
.activity-event-card__banner--9 {
  background: linear-gradient(135deg, #fbcfe8 0%, #a5f3fc 100%);
}
.activity-event-card__banner--10 {
  background: linear-gradient(135deg, #1e293b 0%, #4c1d95 60%, #be185d 100%);
}
.activity-event-card__banner--11 {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}
.activity-event-card__banner--12 {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
}

/* 恭喜弹层 */
.modal-stamp-complete .modal {
  max-width: 22rem;
}

.modal-stamp-complete h3 {
  margin-top: 0;
}

.modal-stamp-complete .modal__fine {
  font-size: var(--fs-caption);
  color: #64748b;
  margin: var(--space-md) 0 0;
  line-height: 1.5;
}
