/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Helvetica, 'Microsoft YaHei', sans-serif;
  background: #f5f6f8;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 20px;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========== 顶部横幅 ========== */
.page-header {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 50%, #ff8e53 100%);
}

.header-bg::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.header-bg::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 36px 20px 0;
  color: #fff;
}

.header-content h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.header-content p {
  font-size: 13px;
  opacity: 0.9;
}

/* ========== Tab 导航 ========== */
.tab-nav {
  display: flex;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 15px;
  color: #999;
  position: relative;
  transition: color 0.2s;
}

.tab-item.active {
  color: #ff6b6b;
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  border-radius: 2px;
}

/* ========== 内容容器 ========== */
.page-content {
  padding: 12px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

/* ========== 活动卡片 ========== */
.activity-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s;
}

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

.activity-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56%;
  overflow: hidden;
  background: #f0f0f0;
}

.activity-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
}

.activity-info {
  padding: 14px;
}

.activity-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.price-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.group-price {
  color: #ff4444;
  font-size: 24px;
  font-weight: 700;
}

.group-price::before {
  content: '¥';
  font-size: 14px;
  margin-right: 1px;
}

.original-price {
  color: #bbb;
  font-size: 13px;
  text-decoration: line-through;
}

.group-size-tag {
  font-size: 12px;
  color: #ff6b6b;
  background: #fff0f0;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.btn-row {
  display: flex;
  gap: 10px;
}

/* ========== 按钮 ========== */
.btn {
  flex: 1;
  padding: 11px 0;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.btn-outline {
  background: #fff;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.btn-icon {
  font-size: 16px;
}

/* ========== 进行中的团列表 ========== */
.group-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #ff6b6b;
  border-radius: 2px;
}

.group-item {
  background: #fafafa;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.avatar-default {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd0d0, #ffb3b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.group-item-info {
  flex: 1;
  min-width: 0;
}

.group-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-item-num {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 2px;
}

.join-mini-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.no-groups {
  text-align: center;
  padding: 16px;
  color: #bbb;
  font-size: 12px;
}

/* ========== 弹窗 ========== */
.modal-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: flex-end;
}

.modal-mask.show {
  display: flex;
}

.modal-sheet {
  background: #fff;
  width: 100%;
  border-radius: 18px 18px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.28s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 8px auto 0;
}

/* 报名信息登记表单（开团/参团时填写学员姓名+电话） */
.signup-form {
  margin-top: 12px;
}
.signup-title {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.signup-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  background: #fafafa;
}
.signup-input:focus {
  border-color: #16317e;
  background: #fff;
}

/* 参团资格确认弹窗（参团仅限新生） */
.join-confirm-box {
  text-align: center;
  padding: 8px 4px 16px;
}
.join-confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: #16317e;
  margin-bottom: 8px;
}
.join-confirm-title.warn {
  color: #c0392b;
}
.join-confirm-desc {
  font-size: 14px;
  color: #666;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  font-size: 26px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  background: #fff;
}

/* ========== 团详情内容 ========== */
.group-detail-product {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.group-detail-img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.group-detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.group-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.group-detail-price .now {
  color: #ff4444;
  font-size: 22px;
  font-weight: 700;
}

.group-detail-price .now::before {
  content: '¥';
  font-size: 13px;
}

.group-detail-price .old {
  color: #bbb;
  font-size: 12px;
  text-decoration: line-through;
}

.group-status-banner {
  background: linear-gradient(135deg, #fff5f5, #fff0f0);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-status-text {
  font-size: 14px;
  color: #333;
}

.group-status-text b {
  color: #ff4444;
  font-size: 18px;
  margin: 0 2px;
}

.group-status-banner.success {
  background: linear-gradient(135deg, #f0fff4, #e6ffed);
}

.group-status-banner.success .group-status-text {
  color: #07c160;
}

.group-status-banner.expired {
  background: #f5f5f5;
}

.group-status-banner.expired .group-status-text {
  color: #999;
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.members-section {
  margin-bottom: 10px;
}

.members-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.member-item {
  text-align: center;
  width: 52px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  margin: 0 auto;
}

.member-avatar-default {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd0d0, #ffb3b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin: 0 auto;
}

.member-name {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-leader-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 2px;
}

.empty-seat {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 20px;
  margin: 0 auto;
}

/* ========== 我的拼团列表 ========== */
.my-group-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.my-group-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.my-group-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.my-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-group-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

.my-group-price {
  color: #ff4444;
  font-weight: 600;
  font-size: 15px;
}

.my-group-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.status-progress {
  background: #fff0f0;
  color: #ff6b6b;
}

.status-success {
  background: #e6ffed;
  color: #07c160;
}

.status-expired {
  background: #f0f0f0;
  color: #999;
}

.my-group-action {
  display: flex;
  gap: 8px;
  align-items: center;
}

.my-group-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 12px;
  background: #fff0f0;
  color: #ff6b6b;
  border: 1px solid #ffd0d0;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-state p {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}

.empty-state .btn {
  max-width: 160px;
  margin: 0 auto;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}

/* ========== 授权失败页 ========== */
.auth-error {
  text-align: center;
  padding: 60px 20px;
}

.auth-error h2 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.auth-error p {
  color: #999;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ========== 拼团详情页 ========== */
/* 深蓝渐变背景（拼团视觉冲击力） */
.detail-page {
  padding-bottom: 70px;
  background: linear-gradient(180deg, #0c1d4a 0%, #16317e 45%, #1e3f9e 100%);
}

/* 顶部导航 */
.detail-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}
.nav-back {
  font-size: 28px;
  color: #333;
  cursor: pointer;
  width: 30px;
  line-height: 1;
}
.nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.nav-share {
  font-size: 14px;
  color: #ff6b6b;
  cursor: pointer;
  font-weight: 500;
}

/* Banner 轮播 */
.banner-swiper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #16317e;
  margin-top: 44px;
}
.banner-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  transition: transform 0.4s ease;
}
.banner-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* 详情区块通用（白色卡片浮于深蓝背景上） */
.detail-section {
  background: #fff;
  margin: 10px 12px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.section-bar {
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #16317e, #1e3f9e);
  border-radius: 2px;
  margin-right: 8px;
}
.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #16317e;
  flex: 1;
}
.section-sub {
  font-size: 12px;
  color: #999;
  font-weight: normal;
}

/* 基本信息卡 */
.info-card {
  margin: -20px 12px 10px;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}
.info-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.info-price {
  display: flex;
  align-items: baseline;
}
.price-symbol {
  color: #ff4444;
  font-size: 16px;
  font-weight: 600;
}
.price-num {
  color: #ff4444;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.price-original {
  color: #bbb;
  font-size: 14px;
  text-decoration: line-through;
  margin-left: 8px;
}
.info-group-size {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}
.info-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin-bottom: 8px;
}
.info-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* 倒计时（两横分隔，放大突出；标签与倒计时分两行居中） */
.countdown-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eaf0ff, #dbe6ff);
  border-radius: 10px;
  padding: 14px;
}
.countdown-label {
  font-size: 18px;
  color: #16317e;
  font-weight: 700;
  flex-shrink: 0;
}
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-unit {
  font-size: 11px;
  color: #16317e;
  font-weight: 600;
  line-height: 1;
  margin-left: 1px;
}
.cd-num {
  background: linear-gradient(180deg, #16317e, #1e3f9e);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  min-width: 46px;
  text-align: center;
  font-family: monospace;
  box-shadow: 0 2px 6px rgba(22,49,126,0.35);
}
.cd-sep {
  color: #16317e;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
}

/* 数据统计 */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #fff;
  border-radius: 10px;
  padding: 14px 8px;
  margin-top: 12px;
  border: 1px solid #f0f0f0;
}
.stats-item {
  flex: 1;
  text-align: center;
}
.stats-num {
  font-size: 22px;
  font-weight: 700;
  color: #ff4d4f;
  line-height: 1.2;
}
.stats-label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.stats-divider {
  width: 1px;
  height: 28px;
  background: #eee;
}

/* 浏览用户轮询（一行三列列表，整体循环向上移动） */
.visitor-scroll {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 8px;
  height: 120px; /* 2行视口: 50px行高*2 + 10px padding*2 */
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.visitor-list {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.visitor-row {
  height: 50px;
  display: flex;
  justify-content: space-evenly; /* 均分且用户之间留出间距 */
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.visitor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0; /* 允许 flex 子项收缩，长昵称走 ellipsis 截断，不撑破布局 */
}
.visitor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.visitor-avatar-wrap {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.visitor-avatar-wrap .visitor-avatar,
.visitor-avatar-wrap .visitor-avatar-default {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
}
.visitor-avatar-default {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.visitor-name {
  font-size: 11px;
  color: #666;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 拼团福利（每条独立卡片，蓝白渐变整体突出） */
.welfare-content {
  border-radius: 12px;
}
.welfare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welfare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #eaf1ff 0%, #ffffff 100%);
  border-radius: 10px;
  padding: 15px 16px;
  border-left: 4px solid #16317e;
  box-shadow: 0 2px 10px rgba(22,49,126,0.12);
}
.welfare-text {
  flex: 1;
  font-size: 22px;
  color: #c0392b;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-all;
}
.welfare-amount {
  color: #8e1f1f;
  font-size: 28px;
  font-weight: 800;
  padding: 0 1px;
}

/* 大富翁赢大礼（大图/长图，宽度铺满） */
.rich-game-image {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* 图片网格 */
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.image-grid img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f0f0f0;
}
.image-grid.single img {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* 活动规则 */
.rules-content {
  font-size: 15px;
  color: #444;
  line-height: 2;
  white-space: pre-wrap;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
}

/* 联系我们 */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}
.contact-item .contact-icon {
  font-size: 18px;
  margin-right: 10px;
  width: 24px;
  text-align: center;
}
.contact-item .contact-label {
  color: #999;
  margin-right: 8px;
  font-size: 13px;
}
.contact-item .contact-value {
  flex: 1;
  font-weight: 500;
}
.contact-item .contact-copy {
  color: #ff6b6b;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  border: 1px solid #ff6b6b;
  border-radius: 10px;
}

/* 进行中的团列表 */
.groups-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.group-list-item {
  display: flex;
  align-items: center;
  background: #fafafa;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.group-list-item:active {
  background: #f0f0f0;
}
.group-list-avatars {
  display: flex;
  margin-right: 12px;
}
.group-list-avatars img,
.group-list-avatars .avatar-default {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  background: #eee;
}
.group-list-avatars img:first-child,
.group-list-avatars .avatar-default:first-child {
  margin-left: 0;
}
.group-list-info {
  flex: 1;
  min-width: 0;
}
.group-list-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}
.group-list-num {
  font-size: 12px;
  color: #ff6b6b;
}
.group-list-join {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  padding: 7px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

/* 底部操作栏 */
.detail-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 50;
}
.bottom-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border: none;
}
.bottom-btn-outline {
  background: #fff;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
  flex: 0 0 120px;
}
.bottom-btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,107,0.35);
}
.bottom-btn-primary .btn-price {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffd666;
  line-height: 1.2;
}
.bottom-btn-primary .btn-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.bottom-btn-icon {
  font-size: 16px;
}

/* 最新报名数据（每位用户一行：头像/昵称/已支付金额/时间，循环上移） */
.payment-scroll {
  height: 260px; /* 一次展示5行: 52px行高*5 */
  overflow: hidden;
  position: relative;
}
.payment-list {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.payment-row {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px dashed #f0f0f0;
}
.payment-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.payment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.payment-avatar-wrap {
  width: 34px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.payment-avatar-wrap .payment-avatar,
.payment-avatar-wrap .payment-avatar-default {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
}
.payment-avatar-default {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.payment-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #333;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payment-amount {
  flex-shrink: 0;
  font-size: 12px;
  color: #666;
  text-align: center;
}
.payment-amount b {
  color: #ff4d4f;
  font-weight: 700;
}
.payment-time {
  flex: 1;
  text-align: right;
  font-size: 11px;
  color: #aaa;
}

/* ========== 我的邀请页 ========== */
.invite-stats {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 20px 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid #f0f0f0;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: #999;
}
.invite-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.invite-card-header {
  display: flex;
  padding: 12px;
  cursor: pointer;
}
.invite-card-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.invite-card-info {
  flex: 1;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.invite-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.invite-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.invite-price {
  color: #ff4444;
  font-size: 16px;
  font-weight: 600;
}
.invite-progress {
  font-size: 12px;
  color: #999;
}
.invite-members-list {
  padding: 10px 12px;
  border-top: 1px solid #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.invite-member {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #666;
}
.invite-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.invite-member-avatar.default {
  background: linear-gradient(135deg, #ffd0d0, #ffb3b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}
.leader-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 2px;
}
.invite-card-actions {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #f5f5f5;
}
.btn-sm {
  padding: 8px 0;
  font-size: 13px;
  border-radius: 16px;
}

/* ========== 分享引导遮罩 ========== */
.share-guide-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
}
.share-guide-mask.show {
  display: block;
}
.share-guide-content {
  position: absolute;
  top: 10px;
  right: 20px;
  text-align: right;
}
.share-guide-arrow {
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #fff;
  margin-left: auto;
  margin-right: 8px;
  margin-bottom: 8px;
  transform: rotate(180deg);
}
.share-guide-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

/* ========== 价格阶梯档位选择 ========== */
.tier-select {
  margin: 12px 0 4px;
  padding: 10px 12px;
  background: #fff7f0;
  border: 1px solid #ffe0c2;
  border-radius: 10px;
}
.tier-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.tier-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tier-option {
  flex: 1;
  min-width: 84px;
  padding: 8px 6px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.tier-option.active {
  border-color: #ff4d4f;
  background: #fff1f0;
  box-shadow: 0 0 0 1px #ff4d4f inset;
}
.tier-option .tier-size {
  display: block;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}
.tier-option .tier-price {
  display: block;
  font-size: 14px;
  color: #ff4d4f;
  font-weight: 700;
  margin-top: 2px;
}
