/* 快乐学堂页面样式 - 阳光橙黄主题 */
page {
  background: linear-gradient(180deg, #FFF4E6 0%, #FFF9F0 100%);
}

.page-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF4E6 0%, #FFF9F0 100%);
  position: relative;
}

/* 固定导航栏容器 */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(248, 249, 252, 0.75);
  backdrop-filter: blur(20rpx) saturate(180%);
  -webkit-backdrop-filter: blur(20rpx) saturate(180%);
}

/* 状态栏 */
.status-bar {
  background: transparent;
}

/* 导航栏 */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32rpx;
  background: transparent;
  position: relative;
}

.nav-back {
  position: absolute;
  left: 32rpx;
  top: 50%;
  transform: translateY(-50%);
  width: 80rpx;
  height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.back-icon {
  width: 48rpx;
  height: 48rpx;
}

.nav-title {
  font-size: 36rpx;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: 1.8%;
  line-height: 1;
}

/* 内容滚动区域 */
.content-scroll {
  height: 100vh;
  box-sizing: border-box;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

/* 推广卡片 - 阳光渐变 */
.city-group-card {
  margin: 32rpx;
  padding: 32rpx 40rpx;
  min-height: 128rpx;
  background: linear-gradient(135deg, 
    rgba(255, 244, 230, 0.6) 0%, 
    rgba(255, 249, 240, 0.6) 100%);
  backdrop-filter: blur(16rpx) saturate(150%);
  border: 2rpx solid rgba(255, 159, 67, 0.3);
  border-radius: 48rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4rpx 20rpx rgba(255, 159, 67, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-group-card:active {
  transform: scale(0.98);
  box-shadow: 0 2rpx 12rpx rgba(255, 159, 67, 0.18);
}

.group-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8rpx;
  padding-right: 24rpx;
}

.group-title {
  font-size: 40rpx;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  white-space: nowrap;
}

.group-tags {
  display: flex;
  flex-direction: column;
  gap: 4rpx;
}

.tag-item {
  font-size: 28rpx;
  font-weight: 500;
  color: #4A5565;
  line-height: 1.4;
  white-space: nowrap;
}

.join-btn {
  padding: 0 40rpx;
  height: 88rpx;
  background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 100%);
  border-radius: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6rpx 24rpx rgba(255, 159, 67, 0.4),
              0 3rpx 12rpx rgba(255, 159, 67, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.join-btn:active {
  transform: scale(0.96);
  box-shadow: 0 4rpx 16rpx rgba(255, 159, 67, 0.45);
}

/* 活动标签切换 - 与首页风格一致但使用橙色系 */
.tab-section {
  padding: 32rpx 0;
  background: transparent;
  margin: 0 32rpx 32rpx;
}

.tab-scroll {
  width: 100%;
  white-space: nowrap;
}

.tab-list {
  display: inline-flex;
  gap: 20rpx;
  padding: 0 4rpx;
}

.tab-item {
  padding: 20rpx 48rpx;
  border-radius: 100rpx;
  font-size: 32rpx;
  font-weight: 700;
  color: #6A7282;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.tab-item.active {
  color: #fff;
  background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 100%);
  box-shadow: 0 12rpx 24rpx rgba(255, 159, 67, 0.3);
  transform: scale(1.02);
}

/* 活动列表 */
.activity-list {
  padding: 0 32rpx;
}

.activity-card {
  background: #fff;
  border-radius: 48rpx;
  margin-bottom: 32rpx;
  overflow: hidden;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-image-wrap {
  width: 100%;
  height: 400rpx;
  position: relative;
  overflow: hidden;
}

.activity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-image-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFF4E6 0%, #FFF9F0 100%);
}

.like-badge {
  position: absolute;
  top: 32rpx;
  right: 32rpx;
  display: flex;
  align-items: center;
  gap: 12rpx;
  padding: 12rpx 28rpx 12rpx 16rpx;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 100rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
}

.like-icon {
  width: 36rpx;
  height: 36rpx;
}

.like-count {
  font-size: 32rpx;
  font-weight: 700;
  color: #4A5565;
}

.price-tag {
  position: absolute;
  bottom: 32rpx;
  left: 32rpx;
  padding: 12rpx 28rpx;
  border-radius: 100rpx;
  font-size: 32rpx;
  font-weight: 700;
  color: #fff;
}

.price-tag.paid {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.price-tag.free {
  background: linear-gradient(135deg, #4ADE80 0%, #16A34A 100%);
}

.activity-info {
  padding: 40rpx;
}

.activity-title {
  font-size: 40rpx;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 24rpx;
  display: block;
}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
  margin-bottom: 24rpx;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.meta-icon {
  width: 36rpx;
  height: 36rpx;
  opacity: 0.6;
}

.meta-text {
  font-size: 30rpx;
  color: #4A5565;
}

.heat-text {
  color: #FF9F43;
  font-weight: 700;
}

.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24rpx;
  border-top: 2rpx solid #F3F4F6;
}

.participants {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.avatar-stack {
  display: flex;
}

.mini-avatar {
  width: 56rpx;
  height: 56rpx;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2rpx solid #fff;
  margin-left: -12rpx;
}

.mini-avatar:first-child {
  margin-left: 0;
}

.participant-text {
  font-size: 28rpx;
  color: #6A7282;
}

.signup-btn {
  width: 220rpx;
  height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 100%);
  border-radius: 100rpx;
  font-size: 30rpx;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8rpx 16rpx rgba(255, 159, 67, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.signup-btn.signed {
  background: #9CA3AF;
  box-shadow: none;
}

/* 空状态 */
.empty-state {
  padding: 160rpx 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  width: 320rpx;
  height: 320rpx;
  margin-bottom: 32rpx;
  opacity: 0.8;
}

.empty-text {
  font-size: 30rpx;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 2rpx;
}

/* 二维码弹窗 */
.qrcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  width: 600rpx;
  background: #fff;
  border-radius: 48rpx;
  padding: 60rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-btn {
  position: absolute;
  top: 30rpx;
  right: 30rpx;
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  width: 32rpx;
  height: 32rpx;
}

.modal-title {
  font-size: 44rpx;
  font-weight: 700;
  margin-bottom: 12rpx;
}

.modal-subtitle {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 40rpx;
}

.qrcode-container {
  width: 400rpx;
  height: 400rpx;
  border: 2rpx solid #eee;
  border-radius: 24rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40rpx;
}

.qrcode-image {
  width: 360rpx;
  height: 360rpx;
}

.modal-tips {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 24rpx;
}

.save-btn {
  width: 100%;
  height: 88rpx;
  background: linear-gradient(135deg, #FF9F43 0%, #FFBE76 100%);
  color: #fff;
  border-radius: 44rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32rpx;
  font-weight: 700;
}
