/* 求是毅行俱乐部 H5 */

.back-home {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #2d6a4f;
  background: #e8f5e9;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #c8e6c9;
}
.back-home:active { background: #c8e6c9; }

.page {
  min-height: 100vh;
  background: var(--weui-BG-0);
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* Tab 面板 */
.tab-panel { display: none; }
.tab-panel--active { display: block; }

.panel-header {
  padding: 20px 16px 8px;
  background: var(--weui-BG-2);
  border-bottom: 1px solid var(--weui-FG-4);
}
.panel-header h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.panel-header p { font-size: 13px; color: var(--weui-FG-2); margin: 0; }

/* Hero */
.hero {
  position: relative;
  padding: 48px 20px 40px;
  min-height: 260px;
  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: 26px; font-weight: 700; margin: 0 0 14px; line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; 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; }

/* Section */
.section { padding: 20px 16px; }
.section__title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }

/* 活动流程与进度 - 中心竖条时间轴 */
.flow-timeline {
  position: relative;
  background: #111;
  border-radius: 16px;
  padding: 28px 10px;
  overflow: hidden;
}
.flow-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 36px;
  bottom: 36px;
  width: 12px;
  transform: translateX(-50%);
  border-radius: 6px;
  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: flex;
  align-items: center;
  min-height: 92px;
  padding: 6px 0;
  transition: opacity 0.3s ease;
}
.flow-timeline__item--right {
  justify-content: flex-start;
  padding-left: calc(50% + 18px);
}
.flow-timeline__item--left {
  justify-content: flex-end;
  padding-right: calc(50% + 18px);
}
.flow-timeline__item--left .flow-timeline__info {
  text-align: right;
}
.flow-timeline__joint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
  z-index: 3;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.flow-timeline__arm {
  position: absolute;
  top: 50%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.flow-timeline__item--right .flow-timeline__arm {
  left: 50%;
  width: 26px;
  margin-left: 8px;
}
.flow-timeline__item--left .flow-timeline__arm {
  right: 50%;
  width: 26px;
  margin-right: 8px;
}
.flow-timeline__badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  transition: opacity 0.3s ease;
}
.flow-timeline__badge span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.flow-timeline__info {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}
.flow-timeline__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.flow-timeline__desc {
  font-size: 12px;
  margin: 0;
  line-height: 1.55;
  transition: color 0.3s ease;
}

/* 已完成 - 亮色 */
.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--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: var(--weui-BG-2);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--weui-FG-1);
}

/* 状态卡片 */
.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__status { margin: 0 16px 8px; }
.register-detail__cells .weui-cell__hd { min-width: 96px; }
.register-detail__value {
  text-align: right;
  color: var(--weui-FG-0);
  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;
}

/* 空状态 */
.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; }

/* 抽签 */
.lottery-user {
  padding: 12px 16px;
  background: var(--weui-BG-2);
  font-size: 14px;
  border-bottom: 1px solid var(--weui-FG-4);
}
.lottery-user strong { margin: 0 8px; }
.lottery-user__tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: #d8f3dc;
  color: #2d6a4f;
  border-radius: 10px;
}
.rule-list { padding: 0 16px 8px; }
.rule-item { padding: 10px 0; border-bottom: 1px solid var(--weui-FG-4); }
.rule-item:last-child { border-bottom: none; }
.rule-item__label { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.rule-item__desc { font-size: 12px; color: var(--weui-FG-2); }

/* 抽签状态提示 */
.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: var(--weui-FG-0); }
.lottery-notice__desc { font-size: 14px; line-height: 1.7; color: var(--weui-FG-1); margin: 0 0 8px; }
.lottery-notice__time { font-size: 13px; color: var(--weui-FG-2); 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: center; margin-bottom: 16px; }
.team-result__no { font-size: 22px; font-weight: 700; }
.team-result__badge { font-size: 12px; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 10px; }
.team-member {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
}
.team-member:last-child { border-bottom: none; }
.team-member--self { font-weight: 600; }
.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__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;
}

/* 缴费 */
.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; }
.pay-tip { text-align: center; font-size: 11px; color: var(--weui-FG-2); padding: 8px 16px 24px; }

/* 底部 Tab */
.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: var(--weui-BG-2);
  border-top: 1px solid var(--weui-FG-4);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 200;
}
.tab-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 4px;
  text-decoration: none;
  color: var(--weui-FG-2);
}
.tab-bar__item--active { color: #2d6a4f; }
.tab-bar__icon { font-size: 20px; line-height: 1.2; }
.tab-bar__text { font-size: 10px; margin-top: 2px; }

.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: 17px;
  color: var(--weui-FG-0);
}
.picker-cell__value--placeholder {
  color: var(--weui-FG-2);
}

/* ===== 响应式：电脑端居中展示 ===== */
@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: 100%;
    max-width: 480px;
    transform: translateX(-50%);
    border-radius: 0;
  }

  .hero {
    min-height: 300px;
  }

  .flow-timeline {
    margin: 0 8px;
  }
}

@media (min-width: 1200px) {
  .page,
  .back-home,
  .tab-bar {
    max-width: 520px;
  }
}
