/* 求是毅行俱乐部 H5 */

:root {
  --tab-pill-h: 40px;
  --tab-bar-bg: rgba(255, 255, 255, 0.96);
  --tab-bar-border: rgba(0, 0, 0, 0.08);
  --tab-inactive: #6b7280;
  --tab-active-bg: #2d6a4f;
  --tab-active-fg: #fff;
  --page-bg: #f3f4f6;
}

.back-home {
  display: block;
  position: relative;
  z-index: 300;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  font-size: 13px;
  color: #2d6a4f;
  background: #e8f5e9;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #c8e6c9;
  -webkit-tap-highlight-color: transparent;
}
.back-home:active { background: #c8e6c9; }

.page {
  min-height: 100vh;
  background: var(--page-bg);
  padding-bottom: calc(var(--tab-pill-h) * 2 + 12px + env(safe-area-inset-bottom));
}

/* Tab 面板 */
.tab-panel { display: none; }
.tab-panel--active { display: block; }

.panel-header {
  padding: 14px 12px 6px;
  background: var(--weui-BG-2);
  border-bottom: 1px solid var(--weui-FG-4);
}
.panel-header h2 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.panel-header p { font-size: 12px; color: var(--weui-FG-2); margin: 0; }

/* Hero */
.hero {
  position: relative;
  padding: 32px 16px 24px;
  min-height: 200px;
  color: #fff;
  background: url('../images/hero-bg.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 21, 0.25) 0%,
    rgba(8, 28, 21, 0.55) 55%,
    rgba(8, 28, 21, 0.75) 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.hero__club { font-size: 15px; opacity: 0.92; margin: 0 0 8px; font-weight: 500; letter-spacing: 2px; }
.hero__event { font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; opacity: 0.92; }
.hero__meta span {
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}
.hero__meta span::before { content: none; }

.event-quota {
  margin-top: 10px;
  padding: 0 2px;
}
.event-quota__inner {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}
.event-quota__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.event-quota__row + .event-quota__row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.event-quota__label {
  flex: 0 0 84px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  line-height: 1.6;
}
.event-quota__value {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  font-weight: 500;
}
.event-quota__full { color: #ffb4a2; font-weight: 600; }
.event-quota__warn { color: #fde68a; font-weight: 600; }

.register-capacity {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.register-capacity--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.register-capacity--warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.register-capacity--full {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.lottery-stats__sub {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

/* Section */
.section { padding: 20px 16px; }
.section--home { padding: 12px 16px; }
.section--home .section__title { font-size: 15px; margin-bottom: 8px; }
.section__title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

/* 抽签组队结果（活动首页） */
.teams-roster__lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #636e72;
  line-height: 1.5;
}
.teams-roster__btn {
  width: 100%;
  margin-bottom: 12px;
}
.teams-roster__btn[disabled] {
  opacity: 0.55;
}
.teams-roster-panel {
  display: grid;
  gap: 12px;
}
.teams-roster__empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  color: #636e72;
  background: #f5f7f8;
  border-radius: 12px;
}
.teams-roster__card {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.06);
}
.teams-roster__card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1b4332;
  display: flex;
  align-items: center;
  gap: 8px;
}
.teams-roster__card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #636e72;
}
.teams-roster__members {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.teams-roster__member {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2d3436;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f7faf8;
}
.teams-roster__member span {
  color: #636e72;
  font-size: 11px;
}
.teams-roster__member em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #5d4037;
  background: #ffe082;
  border-radius: 6px;
  padding: 1px 5px;
}
.teams-roster__member.is-captain {
  background: #fff8e1;
  font-weight: 600;
}
.team-color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  vertical-align: middle;
}
.team-color-swatch--light {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

/* 活动流程与进度 - 中心竖条时间轴 */
.flow-timeline {
  position: relative;
  background: #111;
  border-radius: 16px;
  padding: 20px 8px;
  overflow: hidden;
}
.flow-timeline--compact {
  padding: 16px 6px;
  border-radius: 14px;
}
.flow-timeline--compact::before {
  top: 24px;
  bottom: 24px;
}
.flow-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 10px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: var(--flow-rail-gradient, linear-gradient(to bottom, #2a3540 0%, #2a3540 100%));
  z-index: 0;
  transition: background 0.3s ease;
}
.flow-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.flow-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  min-height: 64px;
  padding: 6px 2px 10px;
  transition: opacity 0.3s ease;
}
.flow-timeline--compact .flow-timeline__item {
  min-height: 60px;
  padding: 5px 2px 8px;
}
.flow-timeline__col--blank {
  min-height: 1px;
}
.flow-timeline__col--outer {
  min-width: 0;
  position: relative;
  z-index: 4;
  padding-top: 10px;
}
.flow-timeline__item--left .flow-timeline__col--outer {
  text-align: right;
  padding-right: 2px;
}
.flow-timeline__item--right .flow-timeline__col--outer {
  text-align: left;
  padding-left: 2px;
}
.flow-timeline__col--mid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  z-index: 3;
  flex-shrink: 0;
}
.flow-timeline__item--link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.flow-timeline__item--link:active {
  opacity: 0.88;
}
.flow-timeline__item--link .flow-timeline__title::after {
  content: ' ›';
  font-weight: 400;
  opacity: 0.55;
}
.flow-timeline__joint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
  z-index: 2;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.flow-timeline__arm {
  position: absolute;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.flow-timeline__item--left .flow-timeline__arm {
  right: calc(100% - 2px);
  width: 10px;
}
.flow-timeline__item--left .flow-timeline__arm::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.88);
}
.flow-timeline__item--right .flow-timeline__arm {
  left: calc(100% - 2px);
  width: 10px;
}
.flow-timeline__item--right .flow-timeline__arm::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.88);
}
.flow-timeline__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.flow-timeline--compact .flow-timeline__badge {
  width: 38px;
  height: 38px;
}
.flow-timeline__badge span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.flow-timeline__info {
  min-width: 0;
}
.flow-timeline__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}
.flow-timeline--compact .flow-timeline__title {
  font-size: 14px;
  margin-bottom: 2px;
}
.flow-timeline__desc {
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.flow-br {
  display: block;
  content: '';
  margin-top: 2px;
}
.flow-countdown {
  display: inline-block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffe082;
  white-space: nowrap;
}

/* 已完成 - 亮色 */
.flow-timeline__item--done.flow-timeline__item--c1 .flow-timeline__title,
.flow-timeline__item--done.flow-timeline__item--c1 .flow-timeline__badge span { color: #5eb8e8; }
.flow-timeline__item--done.flow-timeline__item--c2 .flow-timeline__title,
.flow-timeline__item--done.flow-timeline__item--c2 .flow-timeline__badge span { color: #bdbdbd; }
.flow-timeline__item--done.flow-timeline__item--c3 .flow-timeline__title,
.flow-timeline__item--done.flow-timeline__item--c3 .flow-timeline__badge span { color: #e8b832; }
.flow-timeline__item--done.flow-timeline__item--c4 .flow-timeline__title,
.flow-timeline__item--done.flow-timeline__item--c4 .flow-timeline__badge span { color: #66bb6a; }
.flow-timeline__item--done .flow-timeline__desc { color: rgba(255, 255, 255, 0.78); }
.flow-timeline__item--done .flow-timeline__joint { border-color: #fff; opacity: 1; }
.flow-timeline__item--done .flow-timeline__arm { opacity: 1; }

/* 进行中步骤 */
.flow-timeline__item--active.flow-timeline__item--c1 .flow-timeline__title,
.flow-timeline__item--active.flow-timeline__item--c1 .flow-timeline__badge span { color: #5eb8e8; }
.flow-timeline__item--active.flow-timeline__item--c2 .flow-timeline__title,
.flow-timeline__item--active.flow-timeline__item--c2 .flow-timeline__badge span { color: #bdbdbd; }
.flow-timeline__item--active.flow-timeline__item--c3 .flow-timeline__title,
.flow-timeline__item--active.flow-timeline__item--c3 .flow-timeline__badge span { color: #e8b832; }
.flow-timeline__item--active.flow-timeline__item--c4 .flow-timeline__title,
.flow-timeline__item--active.flow-timeline__item--c4 .flow-timeline__badge span { color: #66bb6a; }
.flow-timeline__item--active .flow-timeline__desc { color: rgba(255, 255, 255, 0.78); }
.flow-timeline__item--active .flow-timeline__joint { border-color: #fff; opacity: 1; }
.flow-timeline__item--active .flow-timeline__arm { opacity: 1; }
.flow-timeline__item--active .flow-timeline__badge { opacity: 1; }

/* 未完成 - 暗色 */
.flow-timeline__item--pending .flow-timeline__title { color: #4a4a4a; }
.flow-timeline__item--pending .flow-timeline__badge span { color: #555; }
.flow-timeline__item--pending .flow-timeline__desc { color: rgba(255, 255, 255, 0.32); }
.flow-timeline__item--pending .flow-timeline__joint { border-color: rgba(255, 255, 255, 0.25); }
.flow-timeline__item--pending .flow-timeline__arm { opacity: 0.25; }
.flow-timeline__item--pending .flow-timeline__badge { opacity: 0.55; }

/* 介绍卡片 */
.intro-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.intro-card--collapsed {
  padding: 12px 16px 10px;
}
.intro-card--collapsed .intro-card__title {
  margin-bottom: 0;
  text-align: center;
}
.intro-card--collapsed .intro-card__detail {
  display: none;
}
.intro-card__toggle {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 6px 0 0;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: none;
  font-size: 13px;
  color: #2d6a4f;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.intro-card--collapsed .intro-card__toggle {
  margin-top: 10px;
  border-top: none;
  padding-top: 4px;
}
.intro-card__toggle:active {
  opacity: 0.7;
}
.intro-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 6px;
}
.intro-card__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #191919;
  margin-bottom: 12px;
}
.intro-card__theme {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin: 0 0 10px;
}
.intro-card__body {
  font-size: 14px;
  line-height: 1.85;
  color: #555;
  margin: 0;
  text-indent: 0;
}
.intro-card__gift {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

/* 状态卡片 */
.status-card {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.status-card--ok { background: #d8f3dc; border-left: 4px solid #2d6a4f; }
.status-card--warn { background: #fff3cd; border-left: 4px solid #ffc107; }
.status-card--pending { background: var(--weui-BG-2); border-left: 4px solid var(--weui-FG-3); }
.status-card__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.status-card__desc { font-size: 13px; color: var(--weui-FG-2); }

/* 报名详情 */
.register-detail__guest { color: var(--weui-FG-2); font-size: 12px; margin-top: 4px; }
.register-detail__status { margin: 0 16px 8px; }
.register-detail__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 16px 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--weui-BG-2);
  font-size: 14px;
  color: #2d6a4f;
  cursor: pointer;
  user-select: none;
}
.register-detail__toggle-icon {
  font-size: 11px;
  opacity: 0.7;
}
.register-detail__body--collapsed {
  display: none;
}
.register-detail__body {
  padding-bottom: 4px;
}
.register-detail .weui-cells__title {
  padding: 12px 16px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}
.register-detail__cells {
  margin: 0 12px 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fff;
}
.register-detail__cells::before,
.register-detail__cells::after {
  display: none;
}
.register-detail__cells .weui-cell {
  background: #fff;
  padding: 11px 14px;
}
.register-detail__cells .weui-cell::before {
  display: none;
}
.register-detail__cells .weui-cell:not(:last-child) {
  border-bottom: 1px solid #ebebeb;
}
.register-detail__cells .weui-cell__hd { min-width: 96px; }
.register-detail__cells .weui-label {
  color: #666;
  font-size: 14px;
}
.register-detail__value {
  text-align: right;
  color: #191919;
  font-size: 14px;
  word-break: break-all;
}
.register-detail__tip {
  margin: 20px 16px 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--weui-BG-2);
  font-size: 13px;
  color: var(--weui-FG-2);
  text-align: center;
}

/* 会员登录提示 */
.register-auth-banner {
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #c7ddfc;
}
.register-auth-banner--ok {
  background: #e8f5e9;
  border-color: #81c784;
}
.register-auth-banner--warn {
  background: #fff8e1;
  border-color: #ffe082;
}
.register-auth-banner--warn .register-auth-banner__text {
  color: #8a6d00;
}
.register-auth-banner__text {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}
.register-auth-banner--ok .register-auth-banner__text {
  margin-bottom: 0;
  color: #1b4332;
}
.register-auth-banner--ok .register-auth-banner__text strong {
  color: #2d6a4f;
  font-weight: 700;
}
.register-auth-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.register-auth-banner__btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: #2d6a4f;
  color: #fff;
  text-decoration: none;
}
.register-auth-banner__btn--wechat { background: #07c160; }
.register-auth-banner__btn--outline {
  background: #fff;
  color: #2d6a4f;
  border: 1px solid #95d5b2;
}

.register-age-hint {
  font-size: 13px;
  color: var(--weui-FG-2);
}

/* 紧凑报名表单 */
.register-form--compact .register-section-title {
  padding: 14px 16px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.3px;
}
.register-form--compact .register-section-title--nested {
  padding: 8px 16px 4px;
  font-size: 12px;
  color: #888;
}
.register-form--compact .register-cells {
  margin: 0 12px 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.register-form--compact .register-cells::before,
.register-form--compact .register-cells::after {
  display: none;
}
.register-form--compact .register-cells .weui-cell {
  padding: 12px 14px;
  font-size: 14px;
}
.register-form--compact .register-cells .weui-cell::before {
  display: none;
}
.register-form--compact .register-cells .weui-cell:not(:last-child) {
  border-bottom: 1px solid #ebebeb;
}
.register-form--compact .weui-label {
  width: 4.2em;
  font-size: 14px;
}
.register-form--compact .weui-input {
  font-size: 14px;
}
.register-form--compact .register-cells--radio .weui-cell {
  padding: 11px 14px;
}
.register-form--compact .register-cells--radio .weui-cell::before {
  display: none;
}
.register-form--compact .register-cells--radio .weui-cell:not(:last-child) {
  border-bottom: 1px solid #ebebeb;
}
.register-form--compact .register-cells--radio p {
  font-size: 13px;
  line-height: 1.45;
}
.register-form--compact .register-age-row {
  padding-top: 4px;
  padding-bottom: 4px;
}
.register-form--compact .register-textarea-cell {
  padding-top: 6px;
  padding-bottom: 6px;
}
.register-form--compact .register-textarea {
  min-height: 56px;
  font-size: 14px;
}

/* 兴趣偏好问卷 */
.register-survey-hint {
  margin: 0 16px 8px;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.register-survey-block {
  margin: 0 12px 8px;
  padding: 12px 12px 4px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}
.register-survey-q {
  margin-bottom: 12px;
}
.register-survey-q:last-child {
  margin-bottom: 4px;
}
.register-survey-q__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}
.register-survey-q__tip {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.register-survey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.register-survey-tag {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #f7f7f7;
  color: #666;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.register-survey-tag.is-selected {
  border-color: #07c160;
  background: rgba(7, 193, 96, 0.12);
  color: #06ad56;
  font-weight: 600;
}
.register-survey-tag--custom {
  padding-right: 8px;
}
.register-survey-tag__x {
  margin-left: 4px;
  font-weight: 700;
  opacity: 0.7;
}
.register-survey-other {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.register-survey-other__input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.register-survey-other__add {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #07c160;
  border-radius: 8px;
  background: #07c160;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
#panel-register .register-survey-block {
  background: #fff;
  border-color: #e0e0e0;
}
#panel-register .register-survey-q__title {
  color: #191919;
}
#panel-register .register-survey-hint {
  color: #888;
}
#panel-register .register-survey-tag {
  background: #f5f5f5;
  border-color: #ddd;
  color: #666;
}
#panel-register .register-survey-tag.is-selected {
  border-color: #07c160;
  background: rgba(7, 193, 96, 0.14);
  color: #05964b;
}

/* 选填折叠 */
.register-optional__toggle {
  cursor: pointer;
  color: var(--weui-FG-2);
}
.register-optional__toggle .weui-cell__bd {
  font-size: 13px;
  color: #2d6a4f;
}
.register-optional__hint {
  font-size: 11px;
  color: var(--weui-FG-3);
}
.register-optional__body {
  overflow: hidden;
}
.register-optional--collapsed .register-optional__body {
  display: none;
}
.register-optional--collapsed .register-optional__toggle::after {
  transform: rotate(0deg);
}
.register-optional:not(.register-optional--collapsed) .register-optional__toggle::after {
  transform: rotate(90deg);
}

/* 提交栏 */
.register-submit-bar {
  display: flex;
  gap: 10px;
  padding: 14px 12px 20px;
}
.register-submit-bar .weui-btn {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 2.2;
  border-radius: 8px;
}
.register-submit-bar .weui-btn_primary {
  flex: 1.4;
}
.register-submit-bar .weui-btn_default {
  color: #2d6a4f;
  border: 1px solid #95d5b2;
  background: #fff;
}

/* 报名页浅色主题（避免微信深色模式下文字不可读） */
#panel-register {
  background: var(--page-bg);
  color: #191919;
}
#panel-register .panel-header {
  background: #fff;
  border-bottom-color: #e5e5e5;
}
#panel-register .panel-header h2 { color: #191919; }
#panel-register .panel-header p { color: #666; }
#panel-register .register-form--compact .register-section-title {
  color: #666;
  background: transparent;
}
#panel-register .register-form--compact .register-section-title--nested {
  color: #888;
}
#panel-register .register-form--compact .register-cells {
  background: #fff;
  border-color: #e0e0e0;
}
#panel-register .register-form--compact .register-cells .weui-cell {
  background: #fff;
}
#panel-register .register-form--compact .register-cells .weui-cell:not(:last-child),
#panel-register .register-form--compact .register-cells--radio .weui-cell:not(:last-child) {
  border-bottom-color: #e5e5e5;
}
#panel-register .register-form--compact .weui-label {
  color: #333;
}
#panel-register .register-form--compact .weui-input,
#panel-register .register-form--compact .weui-textarea,
#panel-register .register-form--compact .weui-cell__bd,
#panel-register .register-form--compact .register-cells--radio p {
  color: #191919;
}
#panel-register .register-age-hint {
  color: #666;
}
#panel-register .register-optional__hint {
  color: #888;
}
#panel-register .status-card--ok .status-card__title { color: #1b4332; }
#panel-register .status-card--ok .status-card__desc { color: #40916c; }
#panel-register .status-card--warn .status-card__title,
#panel-register .status-card--warn .status-card__desc { color: #856404; }
#panel-register .register-detail__toggle {
  background: #fff;
  color: #2d6a4f;
}
#panel-register .register-detail__tip {
  background: #fff;
  color: #666;
}
#panel-register .register-detail__value {
  color: #191919;
}
#panel-register .register-proxy-block {
  border-top-color: #f3f4f6;
}
#panel-register .register-proxy-detail {
  border-top-color: #f3f4f6;
}

/* 抽签/缴费页浅色主题（与报名页统一，避免深色模式下文字不可读） */
#panel-lottery,
#panel-payment {
  background: var(--page-bg);
  color: #191919;
}
#panel-lottery .panel-header,
#panel-payment .panel-header {
  background: #fff;
  border-bottom-color: #e5e5e5;
}
#panel-lottery .panel-header h2,
#panel-payment .panel-header h2 { color: #191919; }
#panel-lottery .panel-header p,
#panel-payment .panel-header p { color: #666; }

#panel-lottery .lottery-user {
  background: #fff;
  border-bottom-color: #e5e5e5;
  color: #333;
}
#panel-lottery .lottery-user strong { color: #191919; }
#panel-lottery .lottery-user__tag {
  background: #d8f3dc;
  color: #1b4332;
}

#panel-lottery .lottery-stats__item {
  background: #fff;
  border-color: #e0e0e0;
}
#panel-lottery .lottery-stats__value { color: #2d6a4f; }
#panel-lottery .lottery-stats__value--sm { color: #191919; }
#panel-lottery .lottery-stats__label { color: #666; }

#panel-lottery .rule-highlight {
  background: #fff;
  border-color: #d8f3dc;
}
#panel-lottery .rule-highlight__title { color: #2d6a4f; }
#panel-lottery .rule-highlight__item { border-bottom-color: #ebebeb; }
#panel-lottery .rule-highlight__label { color: #191919; }
#panel-lottery .rule-highlight__desc { color: #666; }

#panel-lottery .rule-item { border-bottom-color: #e5e5e5; }
#panel-lottery .rule-item__label { color: #191919; }
#panel-lottery .rule-item__desc { color: #666; }

#panel-lottery .lottery-notice--wait {
  background: #fff;
  border: 1px solid #c7d2fe;
}
#panel-lottery .lottery-notice--wait .lottery-notice__title { color: #1e3a8a; }
#panel-lottery .lottery-notice--wait .lottery-notice__desc { color: #475569; }
#panel-lottery .lottery-notice--wait .lottery-notice__time { color: #64748b; }

#panel-lottery .lottery-notice--processing {
  background: #fffbeb;
  border: 1px solid #fcd34d;
}
#panel-lottery .lottery-notice--processing .lottery-notice__title { color: #92400e; }
#panel-lottery .lottery-notice--processing .lottery-notice__desc { color: #78350f; }
#panel-lottery .lottery-notice--processing .lottery-notice__time { color: #a16207; }

#panel-lottery .lottery-notice--open {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}
#panel-lottery .lottery-notice--open .lottery-notice__title { color: #065f46; }
#panel-lottery .lottery-notice--open .lottery-notice__desc { color: #047857; }
#panel-lottery .lottery-notice--open .lottery-notice__time { color: #059669; }

#panel-lottery .empty-state { color: #666; }
#panel-lottery .empty-state p { color: #666; }

#panel-payment .pay-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#panel-payment .pay-card__label { color: #666; }
#panel-payment .pay-card__amount { color: #2d6a4f; }
#panel-payment .pay-card__detail { border-top-color: #ebebeb; }
#panel-payment .pay-row { color: #333; }
#panel-payment .fee-notes { color: #666; }
#panel-payment .pay-tip { color: #888; }
#panel-payment .empty-state { color: #666; }
#panel-payment .empty-state p { color: #666; }

/* 代报名 */
.register-proxy-block {
  margin: 6px 0 0;
  padding-top: 2px;
  border-top: 6px solid var(--weui-BG-0);
}
.register-proxy-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 0;
}
.register-proxy-block__title {
  font-size: 13px;
  font-weight: 600;
  color: #2d6a4f;
}
.register-proxy-block__remove {
  font-size: 12px;
  color: #e64340;
  text-decoration: none;
}
.register-proxy-detail {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 8px solid #f3f4f6;
}
.register-proxy-detail__title {
  padding: 8px 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2d6a4f;
}
.register-proxy-detail .weui-cells__title {
  color: #666;
}
.register-proxy-detail .register-detail__cells {
  margin-top: 4px;
}

.pay-tip--warn {
  color: #e64340;
}

.pay-row--total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--weui-FG-4);
  font-weight: 600;
}

/* 空状态 */
.empty-state { text-align: center; padding: 40px 20px; color: var(--weui-FG-2); }
.empty-state__icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }
.event-ended-state__msg {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin: 8px 0 20px;
}

/* 抽签 */
.lottery-user {
  padding: 12px 16px;
  background: #fff;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
}
.lottery-user strong { margin: 0 8px; color: #191919; }
.lottery-user__tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: #d8f3dc;
  color: #2d6a4f;
  border-radius: 10px;
}

/* 抽签统计与倒计时 */
.lottery-stats {
  display: flex;
  margin: 12px 16px 0;
  gap: 10px;
}
.lottery-stats__item {
  flex: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.lottery-stats__value {
  font-size: 22px;
  font-weight: 700;
  color: #2d6a4f;
  line-height: 1.2;
  margin-bottom: 4px;
}
.lottery-stats__value--sm { font-size: 14px; font-weight: 600; color: #191919; }
.lottery-stats__label { font-size: 12px; color: #666; }

.lottery-countdowns {
  display: flex;
  gap: 10px;
  margin: 10px 16px 0;
}
.lottery-stats--solo {
  margin-bottom: 0;
}
.lottery-stats--solo .lottery-stats__item {
  max-width: none;
}

/* 三节点活动时间轴 */
.lottery-timeline {
  margin: 12px 16px 0;
}
.lottery-timeline__title {
  font-size: 15px;
  font-weight: 700;
  color: #191919;
  margin-bottom: 10px;
}
.lottery-timeline__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lottery-timeline__step {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.lottery-timeline__rail {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.lottery-timeline__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lottery-timeline__step--active .lottery-timeline__dot {
  background: #2d6a4f;
  color: #fff;
}
.lottery-timeline__step--done .lottery-timeline__dot {
  background: #40916c;
  color: #fff;
}
.lottery-timeline__card {
  flex: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 12px 12px 10px;
  min-width: 0;
}
.lottery-timeline__step--active .lottery-timeline__card {
  border-color: #95d5b2;
  box-shadow: 0 2px 10px rgba(45, 106, 79, 0.08);
}
.lottery-timeline__step--done .lottery-timeline__card {
  opacity: 0.92;
}
.lottery-timeline__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.lottery-timeline__icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}
.lottery-timeline__titles {
  flex: 1;
  min-width: 0;
}
.lottery-timeline__label {
  font-size: 15px;
  font-weight: 700;
  color: #191919;
  line-height: 1.3;
}
.lottery-timeline__sublabel {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  line-height: 1.4;
}
.lottery-timeline__status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}
.lottery-timeline__step--active .lottery-timeline__status {
  background: #d8f3dc;
  color: #1b4332;
}
.lottery-timeline__step--done .lottery-timeline__status {
  background: #ecfdf5;
  color: #047857;
}
.lottery-timeline__done-time {
  font-size: 13px;
  color: #40916c;
  font-weight: 600;
  padding-top: 2px;
}
.lottery-countdown--inline {
  margin-top: 4px;
  padding: 10px 8px;
  border-radius: 10px;
}
.lottery-countdown--inline .lottery-countdown__value {
  font-size: 18px;
}
.lottery-countdown--inline .lottery-countdown__date {
  font-size: 11px;
}

.rule-highlight--flow {
  margin-top: 12px;
}

.register-gift-tip {
  margin: 10px 12px 0;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
}
.register-gift-tip__title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}
.register-gift-tip__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #78350f;
  margin: 0;
}
.register-gift-tip__desc strong {
  color: #92400e;
}
#panel-register .register-gift-tip {
  background: #fffbeb;
  border-color: #fcd34d;
}
#panel-register .register-gift-tip__title,
#panel-register .register-gift-tip__desc {
  color: #78350f;
}

.register-withdraw {
  margin: 12px 12px 16px;
  padding: 0;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}
.register-withdraw--collapsed .register-withdraw__body {
  display: none;
}
.register-withdraw__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.register-withdraw__header:active {
  opacity: 0.85;
}
.register-withdraw__chevron {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: #999;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.register-withdraw:not(.register-withdraw--collapsed) .register-withdraw__chevron {
  transform: rotate(-90deg);
  color: #c0392b;
}
.register-withdraw__title {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0;
}
.register-withdraw__body {
  padding: 0 14px 14px;
  border-top: 1px solid #ebebeb;
}
.register-withdraw:not(.register-withdraw--collapsed) {
  background: #fff;
  border-color: #ffc9c9;
}
.register-withdraw:not(.register-withdraw--collapsed) .register-withdraw__title {
  font-size: 15px;
  font-weight: 700;
  color: #c0392b;
}
.register-withdraw:not(.register-withdraw--collapsed) .register-withdraw__header {
  padding-bottom: 10px;
  border-bottom: none;
}
.register-withdraw__desc,
.register-withdraw__refund {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin: 10px 0 8px;
}
.register-withdraw__refund {
  color: #444;
  padding: 8px 10px;
  background: #fff5f5;
  border-radius: 8px;
}
.register-withdraw .weui-btn_warn {
  margin-top: 4px;
  background-color: #e64340;
  color: #fff;
}
#panel-register .register-withdraw {
  background: #f5f5f5;
  border-color: #e0e0e0;
}
#panel-register .register-withdraw:not(.register-withdraw--collapsed) {
  background: #fff;
  border-color: #ffc9c9;
}
#panel-register .register-withdraw--collapsed .register-withdraw__title { color: #666; }
#panel-register .register-withdraw:not(.register-withdraw--collapsed) .register-withdraw__title { color: #c0392b; }
#panel-register .register-withdraw__desc { color: #666; }
#panel-register .register-withdraw__refund {
  background: #fff5f5;
  color: #444;
}

#panel-lottery .lottery-timeline__title,
#panel-lottery .lottery-timeline__label { color: #191919; }
#panel-lottery .lottery-timeline__sublabel { color: #666; }
#panel-lottery .lottery-timeline__card {
  background: #fff;
  border-color: #e0e0e0;
}
#panel-lottery .rule-highlight--flow {
  background: #fff;
  border-color: #d8f3dc;
}

.lottery-countdown {
  flex: 1;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}
.lottery-countdown__label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 6px;
}
.lottery-countdown__value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.lottery-countdown__date { font-size: 11px; opacity: 0.75; }

.rule-highlight {
  margin: 12px 16px 0;
  background: #f8faf8;
  border: 1px solid #d8f3dc;
  border-radius: 12px;
  padding: 12px 14px;
}
.rule-highlight__title {
  font-size: 14px;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 8px;
}
.rule-highlight__item { padding: 8px 0; border-bottom: 1px dashed #e0e0e0; }
.rule-highlight__item:last-child { border-bottom: none; padding-bottom: 0; }
.rule-highlight__label { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: #191919; }
.rule-highlight__desc { font-size: 12px; line-height: 1.6; color: #666; }

.rule-list { padding: 0 16px 8px; }
.rule-item { padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.rule-item:last-child { border-bottom: none; }
.rule-item__label { font-size: 14px; font-weight: 500; margin-bottom: 2px; color: #191919; }
.rule-item__desc { font-size: 12px; color: #666; }

/* 抽签状态提示 */
.lottery-notice {
  margin: 16px;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.lottery-notice--wait { background: #eef2ff; border: 1px solid #c7d2fe; }
.lottery-notice--open { background: #d8f3dc; border: 1px solid #95d5b2; }
.lottery-notice--processing { background: #fff3cd; border: 1px solid #ffda6a; }
.lottery-notice__icon { font-size: 36px; margin-bottom: 10px; }
.lottery-notice__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #191919; }
.lottery-notice__desc { font-size: 14px; line-height: 1.7; color: #444; margin: 0 0 8px; }
.lottery-notice__time { font-size: 13px; color: #666; margin: 0; }

/* 等待队内对对相遇签 */
.pair-pending {
  margin: 16px;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffda6a;
  border-radius: 16px;
  padding: 20px 16px;
  color: #5c4a00;
}
.pair-pending__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pair-pending__icon { font-size: 22px; }
.pair-pending__title { font-size: 17px; font-weight: 700; }
.pair-pending__countdown {
  text-align: center;
  font-size: 16px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
}
.pair-pending__countdown strong {
  font-size: 32px;
  color: #e65100;
  font-variant-numeric: tabular-nums;
  margin: 0 4px;
}
.pair-pending__desc {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #6d5a00;
}
.pair-pending__gift {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.pair-pending__gift-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pair-pending__gift-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: #5c4a00;
}
.pair-pending__gift-list li { margin-bottom: 4px; }
.pair-pending__gift-note {
  font-size: 11px;
  color: #8a7200;
  margin: 10px 0 0;
}
.pair-pending__tip {
  font-size: 11px;
  text-align: center;
  color: #8a7200;
  margin: 0;
}

.team-result {
  margin: 16px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
}
.team-result__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.team-result__title-wrap { flex: 1; min-width: 0; }
.team-result__name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.team-result__name { font-size: 22px; font-weight: 700; line-height: 1.3; }
.team-result__edit {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
}
.team-result__edit:active { background: rgba(255,255,255,0.28); }
.team-result__no { font-size: 13px; opacity: 0.85; }
.team-result__name-hint {
  font-size: 12px;
  opacity: 0.85;
  margin: 0 0 12px;
  line-height: 1.5;
  background: rgba(255,255,255,0.1);
  padding: 8px 10px;
  border-radius: 8px;
}
.team-result__captains {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.team-result__captains-title {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.team-result__captain-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 4px 0;
}
.team-result__captain-role { opacity: 0.9; }
.team-result__captain-name { font-weight: 600; }
.team-result__captain-note {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.45;
}
.team-squad {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.team-squad__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-squad__hint {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.team-squad__members,
.team-result__members {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}
.pair-result__rule {
  font-size: 12px;
  opacity: 0.85;
  margin: 0 0 10px;
  line-height: 1.5;
}
.team-squad__members .team-member:last-child { border-bottom: none; }
.team-result__badge { font-size: 12px; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 calc(20% - 7px);
  min-width: 56px;
  max-width: 72px;
  padding: 0;
  border-bottom: none;
  text-align: center;
}
.team-member__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.team-member__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.team-member__name {
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-member--self .team-member__avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.team-member--self .team-member__name { font-weight: 700; }
.team-result__tip { font-size: 11px; opacity: 0.7; margin: 12px 0 0; text-align: center; }

/* 队内对对签（仅本人可见） */
.pair-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.pair-result__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pair-result__icon { font-size: 20px; }
.pair-result__title { font-size: 16px; font-weight: 700; flex: 1; }
.pair-result__badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 8px;
  border-radius: 10px;
}
.pair-result__card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.pair-result__label { font-size: 12px; opacity: 0.75; margin-bottom: 6px; }
.pair-result__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pair-result__partner .team-member__avatar {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}
.pair-result__name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pair-result__meta { font-size: 13px; opacity: 0.85; }
.pair-result__tip {
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.6;
  margin: 12px 0 0;
  text-align: center;
}

/* 对对签揭晓遮盖 */
.pair-result__reveal {
  position: relative;
  min-height: 148px;
}
.pair-result__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 16px;
  border: none;
  border-radius: 12px;
  color: #fff;
  background: rgba(21, 87, 61, 0.42);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: opacity 0.45s ease, transform 0.45s ease;
  -webkit-tap-highlight-color: transparent;
}
.pair-result__cover-anim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
}
.pair-result__cover-hand {
  font-size: 40px;
  line-height: 1;
  display: inline-block;
}
.pair-result__cover-hand--left {
  animation: pair-hand-left 1.6s ease-in-out infinite;
}
.pair-result__cover-hand--right {
  animation: pair-hand-right 1.6s ease-in-out infinite;
}
@keyframes pair-hand-left {
  0%, 100% { transform: translateX(6px) rotate(-8deg) scale(1); }
  50% { transform: translateX(-4px) rotate(4deg) scale(1.12); }
}
@keyframes pair-hand-right {
  0%, 100% { transform: translateX(-6px) rotate(8deg) scale(1); }
  50% { transform: translateX(4px) rotate(-4deg) scale(1.12); }
}
.pair-result__cover-hint {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  opacity: 1;
  margin-top: 10px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.pair-result__content {
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
  transition: filter 0.5s ease, opacity 0.5s ease;
}
.pair-result--revealed .pair-result__cover {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.pair-result--revealed .pair-result__content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

/* 缴费 */
.pay-card {
  margin: 16px;
  background: var(--weui-BG-2);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pay-card--paid { background: linear-gradient(135deg, #2d6a4f, #40916c); color: #fff; }
.pay-card__label { font-size: 13px; color: var(--weui-FG-2); margin-bottom: 8px; }
.pay-card--paid .pay-card__label { color: rgba(255,255,255,0.8); }
.pay-card__status { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.pay-card__amount { font-size: 36px; font-weight: 700; color: #2d6a4f; margin-bottom: 16px; }
.pay-card--paid .pay-card__amount { color: #fff; }
.pay-card__detail { text-align: left; border-top: 1px solid var(--weui-FG-4); padding-top: 12px; }
.pay-card__info { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.pay-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--weui-FG-1); }
.fee-notes { padding: 0 16px; font-size: 13px; color: var(--weui-FG-2); line-height: 2; }
.fee-notes--structured {
  margin: 0 16px 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  line-height: 1.7;
}
.fee-notes__block {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #ebebeb;
}
.fee-notes__block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.fee-notes__title {
  font-size: 14px;
  font-weight: 600;
  color: #2d6a4f;
  margin-bottom: 4px;
}
.fee-notes__block p {
  margin: 0;
  color: #666;
  font-size: 13px;
}
.fee-notes__block strong {
  color: #191919;
  font-weight: 600;
}
.fee-notes__tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: #888;
  text-align: center;
}
.pay-card__sub {
  font-size: 13px;
  color: #666;
  margin: -8px 0 12px;
}
.pay-card__sub--paid {
  color: rgba(255, 255, 255, 0.85);
}
.pay-card__summary {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}
.pay-card__detail--paid {
  border-top-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}
.pay-card__detail--paid .pay-row {
  color: rgba(255, 255, 255, 0.92);
}
.pay-card__meta {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 10px;
  text-align: left;
}
#panel-payment .fee-notes--structured {
  background: #fff;
  border-color: #e0e0e0;
}
#panel-payment .fee-notes__title { color: #2d6a4f; }
#panel-payment .fee-notes__block p { color: #666; }
#panel-payment .fee-notes__tip { color: #888; }
.pay-tip { text-align: center; font-size: 11px; color: var(--weui-FG-2); padding: 8px 16px 24px; }

/* 微信扫码支付弹层（与运动好物一致） */
.shop-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.shop-pay-modal__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.shop-pay-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.shop-pay-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #191919;
}
.shop-pay-modal__amount {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
}
.shop-pay-modal__amount strong {
  color: #2d6a4f;
  font-size: 20px;
}
.shop-pay-modal__qr {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 220px;
}
.shop-pay-modal__qr canvas {
  max-width: 100%;
}
.shop-pay-modal__hint,
.shop-pay-modal__status,
.shop-pay-modal__order {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.shop-pay-modal__status {
  color: #2d6a4f;
  font-weight: 500;
}
.shop-pay-modal__order {
  font-size: 12px;
  color: #999;
  word-break: break-all;
}
.shop-pay-modal__check {
  margin-top: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #2d6a4f;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.shop-pay-modal__check:disabled {
  opacity: 0.6;
  cursor: default;
}
.shop-pay-modal__error {
  color: #c62828;
  font-size: 13px;
  padding: 40px 12px;
}

/* 底部 Tab — 浮起药丸式导航（不透底，各页对比一致） */
.tab-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-pill-h) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100% - 56px);
  min-height: var(--tab-pill-h);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  background: var(--tab-bar-bg);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--tab-bar-border);
  border-radius: 999px;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 200;
}
.tab-bar__item {
  flex: 0 0 auto;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 8px 2px;
  text-decoration: none;
  color: var(--tab-inactive);
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.tab-bar__item:active {
  transform: scale(0.96);
}
.tab-bar__item--active {
  color: var(--tab-active-fg);
  background: var(--tab-active-bg);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.32);
}
.tab-bar__icon {
  font-size: 18px;
  line-height: 1;
}
.tab-bar__item:not(.tab-bar__item--active) .tab-bar__icon {
  opacity: 0.72;
}
.tab-bar__item--active .tab-bar__icon {
  opacity: 1;
}
.tab-bar__text {
  font-size: 9px;
  margin-top: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tab-bar__item--active .tab-bar__text {
  color: var(--tab-active-fg);
}

#panel-home .page__ft { padding: 8px 16px 12px; }
.page__ft { padding: 16px; text-align: center; }
.page__ft .weui-footer__text { font-size: 11px; color: var(--weui-FG-2); }

.weui-btn_primary {
  background-color: #2d6a4f;
}
.weui-btn_primary:not(.weui-btn_disabled):active {
  background-color: #1b4332;
}

/* Picker 选择项（替代原生 select，兼容桌面模拟器） */
.picker-cell {
  cursor: pointer;
}
.picker-cell .weui-cell__bd {
  text-align: right;
}
.picker-cell__value {
  font-size: 15px;
  color: #191919;
}
.picker-cell__value--placeholder {
  color: #999;
}
#panel-register .picker-cell__value {
  color: #191919;
}
#panel-register .picker-cell__value--placeholder {
  color: #999;
}

/* WeUI 弹层 — 深色页面下保持可读、可点 */
.weui-picker,
.register-weui-picker.weui-picker {
  background: #fff !important;
  color: #191919 !important;
  z-index: 1001;
}
.weui-picker__hd {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5;
}
.weui-picker__action {
  color: #576b95 !important;
  font-size: 16px;
}
.weui-picker__action:last-child {
  color: #07c160 !important;
  font-weight: 600;
}
.weui-picker__bd,
.weui-picker__group {
  background: #fff !important;
}
.weui-picker__item {
  color: #999 !important;
}
.weui-picker__item.weui-picker__item_selected {
  color: #191919 !important;
}
.weui-mask {
  z-index: 1000;
}

/* ===== 响应式：电脑端居中展示 ===== */
@media (min-width: 768px) {
  body {
    background: #e8ede9;
  }

  .back-home {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 0;
  }

  .page {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.1);
    background: var(--weui-BG-0);
  }

  .tab-bar {
    left: 50%;
    right: auto;
    width: auto;
    max-width: calc(100% - 56px);
    transform: translateX(-50%);
  }

  .hero {
    min-height: 300px;
  }

  .flow-timeline {
    margin: 0 8px;
  }
}

@media (min-width: 1200px) {
  .page,
  .back-home,
  .tab-bar {
    max-width: 520px;
  }
}

/* 活动签到页 */
.page--checkin {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: linear-gradient(180deg, #e8f5e9 0%, #f5f5f5 100%);
}
.checkin-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.12);
}
.checkin-card__icon { font-size: 48px; margin-bottom: 12px; }
.checkin-card__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #1b4332; }
.checkin-card__desc { font-size: 14px; color: #666; margin: 0 0 16px; line-height: 1.5; }
.checkin-card__status { font-size: 14px; color: #2d6a4f; margin: 0; }
.checkin-card__status--error { color: #c62828; }
.checkin-card__name { font-size: 22px; font-weight: 700; color: #1b4332; margin: 12px 0 4px; }
.checkin-card__time { font-size: 13px; color: #888; margin: 0 0 20px; }
.checkin-card__btn { margin-top: 8px; }
.checkin-card--ok { border: 1px solid #a5d6a7; }
.checkin-card__record {
  margin: 16px 0;
  padding: 12px;
  background: #f1f8f4;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
}
.checkin-card__record-title {
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 8px;
}
.checkin-card__record-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #555;
}
.checkin-card__record {
  margin: 16px 0;
  padding: 12px;
  background: #f1f8f4;
  border-radius: 10px;
  text-align: left;
}
.checkin-card__record-title {
  font-size: 13px;
  font-weight: 700;
  color: #1b4332;
  margin-bottom: 8px;
}
.checkin-card__record-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: #555;
}
.checkin-card__record-row strong { color: #1b4332; }
