/* ===== 移动端通用样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FF6B35;
  --primary-light: #FF8F5E;
  --primary-dark: #E55A2B;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #eeeeee;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航 ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  height: 48px;
}

.top-nav .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.top-nav .back-btn {
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  padding: 4px;
  display: flex;
  align-items: center;
}

.top-nav .back-btn:hover {
  color: var(--primary);
}

.top-nav .right-icon {
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.top-nav .right-icon:hover {
  color: var(--primary);
}

/* ===== 底部导航栏 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  height: 56px;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-light);
  font-size: 11px;
  gap: 2px;
  transition: color 0.2s;
}

.bottom-nav a .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a:hover {
  color: var(--primary);
}

/* ===== 页面内容区 ===== */
.page-content {
  padding-top: 48px;
  padding-bottom: 64px;
  min-height: 100vh;
}

.page-content.no-bottom-nav {
  padding-bottom: 0;
}

/* ===== 活动卡片 ===== */
.activity-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.activity-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.activity-card .cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
}

.activity-card .info {
  padding: 14px 16px;
}

.activity-card .info .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.activity-card .info .date {
  font-size: 12px;
  color: var(--text-light);
}

.activity-card .info .status-tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}

.status-tag.active {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-tag.ended {
  background: #F5F5F5;
  color: #999;
}

/* ===== 占位图 ===== */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}

/* ===== 活动详情页 ===== */
.hero-section {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.hero-section .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
}

.detail-section {
  padding: 16px;
  background: #fff;
  margin: 0 0 10px 0;
}

.detail-section .detail-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.detail-section .detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-section .detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-section .detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.detail-back-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.detail-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.detail-title-row .section-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.detail-title-row .detail-date {
  margin-bottom: 0;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.supporter-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.supporter-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
}

.supporter-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #FF8F5E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.supporter-name {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 项目卡片（列表） ===== */
.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 16px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
  border: 1px solid var(--border);
}

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

.project-card .inner {
  display: flex;
  padding: 12px;
}

.project-card .thumb {
  width: 100px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .proj-info {
  flex: 1;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card .proj-info .proj-title {
  font-size: 15px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .proj-info .proj-supporters {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 底部固定按钮 ===== */
.fixed-bottom-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
}

.fixed-bottom-btn .btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary) !important;
}

.btn-secondary:active {
  background: #FFF5F0;
}

/* ===== 项目详情页 ===== */
.project-hero {
  width: 100%;
  height: 240px;
  background: #e0e0e0;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-section {
  padding: 16px;
  background: #fff;
  margin-bottom: 10px;
}

.project-detail-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-detail-section .desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-detail-section .supporters {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
}

/* 支持档位 */
.tier-list {
  padding: 0 16px;
  margin-bottom: 16px;
}

.tier-list .section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.tier-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.tier-item:active {
  border-color: var(--primary);
  background: #FFF8F5;
}

.tier-item .amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.tier-item .amount small {
  font-size: 14px;
  font-weight: 400;
}

.tier-item .tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 表单样式 ===== */
.form-page {
  padding: 16px;
  background: #fff;
  min-height: calc(100vh - 48px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ===== 我的页面 ===== */
.profile-header {
  background: var(--primary);
  padding: 40px 20px 30px;
  color: #fff;
  text-align: center;
}

.profile-header .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.profile-header .nickname {
  font-size: 18px;
  font-weight: 600;
}

.menu-list {
  background: #fff;
  margin: 12px 16px;
  border-radius: 12px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: #f9f9f9;
}

.menu-item .menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item .menu-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.menu-item .menu-right {
  color: var(--text-light);
  font-size: 12px;
}

.menu-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== 我的众筹列表页 ===== */
.tab-bar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 48px;
  z-index: 10;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
  display: block;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== 提示弹窗 ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 15px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ===== 工具类 ===== */
.section-header {
  padding: 16px 16px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.section-header:first-of-type {
  padding-top: 12px;
}

/* ===== 进度条 ===== */
.progress-section {
  background: #fff;
  padding: 16px;
  margin-bottom: 10px;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.progress-stat {
  text-align: center;
}

.progress-stat .stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.progress-stat .stat-number.gold {
  color: #FAAD14;
}

.progress-stat .stat-number.primary {
  color: var(--primary);
}

/* ===== 谁发起了众筹 ===== */
.crowdfunder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crowdfunder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 12px;
  transition: background 0.2s;
}

.crowdfunder-item:active {
  background: #fafafa;
}

.crowdfunder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #FF8F5E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

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

.crowdfunder-info .cf-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crowdfunder-info .cf-meta {
  font-size: 12px;
  color: #999;
}

.crowdfunder-arrow {
  color: #ccc;
  font-size: 16px;
  flex-shrink: 0;
}

.progress-stat .stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-percent {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 活动详情 - 新样式 ===== */
.detail-cover {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
}

.cover-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.section {
  background: #fff;
  padding: 16px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.detail-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.detail-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #eee;
  margin-bottom: 10px;
}

.stat-item {
  background: #fff;
  padding: 16px 8px;
  text-align: center;
}

.stat-num {
  font-size: 27px;
  font-weight: 800;
  color: #FF3B1F;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(255, 90, 40, 0.08);
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-text {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
}

.video-wrapper {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  display: block;
  max-height: 300px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.tiers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-card {
  background: #f9f9f9;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.tier-card.selected {
  border-color: var(--primary);
  background: #fff7f0;
}

.tier-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 固定底部双按钮 */
.fixed-bottom-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 100;
}

.fixed-bottom-btn .btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.fixed-bottom-btn .btn:active {
  opacity: 0.8;
}

.fixed-bottom-btn .btn-primary {
  background: var(--primary);
  color: #fff;
}

.fixed-bottom-btn .btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

/* ===== 视频模块 ===== */
.video-section {
  background: #000;
  width: 100%;
  margin-bottom: 10px;
}

.video-section video {
  width: 100%;
  display: block;
  max-height: 260px;
  background: #000;
}

/* ===== 大图展示 ===== */
.gallery-section {
  padding: 0 0 10px 0;
}

.gallery-section .gallery-title {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px 8px;
  color: var(--text);
}

.gallery-image {
  width: 100%;
  margin-bottom: 6px;
  background: #e0e0e0;
}

.gallery-image img {
  width: 100%;
  display: block;
}

.gallery-image .placeholder-img {
  height: 240px;
}

/* ===== 消息通知页 ===== */
.notification-item {
  display: flex;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.notification-item.unread {
  background: #FFF8F5;
}

.notification-item .notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.notification-item .notif-dot.read {
  background: transparent;
}

.notification-item .notif-content {
  flex: 1;
}

.notification-item .notif-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.notification-item .notif-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notification-item .notif-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== 轮播区 ===== */
.carousel-section {
  padding: 0;
  overflow: hidden;
}

.carousel-section .section-label {
  font-size: 18px;
  font-weight: 700;
  padding: 16px 16px 8px;
  color: var(--text);
}

.carousel-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 12px;
  gap: 12px;
  scrollbar-width: none;
}

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

.carousel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.carousel-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.carousel-card .poster {
  width: 280px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #999;
  background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
}

.carousel-card .poster-info {
  padding: 12px 14px;
}

.carousel-card .poster-info .poster-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card .poster-info .poster-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 首页大 Banner 轮播 ===== */
.banner-section {
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.banner-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  height: 210px;
  overflow: hidden;
  will-change: transform;
}

.banner-slide .banner-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide .banner-img.bg-1 { background-image: linear-gradient(135deg, #FF6B35, #FF8F5E); }
.banner-slide .banner-img.bg-2 { background-image: linear-gradient(135deg, #667eea, #764ba2); }
.banner-slide .banner-img.bg-3 { background-image: linear-gradient(135deg, #11998e, #38ef7d); }
.banner-slide .banner-img.bg-4 { background-image: linear-gradient(135deg, #fc4a1a, #f7b733); }

.banner-slide .banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
}

.banner-slide .banner-overlay .banner-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-slide .banner-overlay .banner-date {
  font-size: 13px;
  opacity: 0.85;
}

/* 轮播指示点 */
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
  background: #fff;
}

.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s;
}

.banner-dots .dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--primary);
}

/* ===== 首页中部活动卡片区 ===== */
/* 官方活动纵向列表 */
.activity-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 官方活动纵向卡片（大图版） */
.act-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  will-change: transform;
}

.act-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.act-card-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
  position: relative;
}

.act-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.act-card-img > span {
  position: relative;
  z-index: 1;
}

.act-card-body {
  padding: 14px 16px 16px;
}

.act-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.act-card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.act-card-date {
  font-size: 13px;
  color: var(--text-light);
  flex-shrink: 0;
  text-align: right;
}

.act-card-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.tag-active {
  background: #e8f5e9;
  color: #2e7d32;
}

/* 首页活动卡片进度条 */
.act-card-progress {
  margin-top: 8px;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.act-card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35, #FF8F5E);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.act-card-stats {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.tag-ended {
  background: #f5f5f5;
  color: #999;
}

/* ===== 竖列大图 ===== */
.gallery-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-v-item {
  width: 100%;
}

.gallery-v-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  background: #e8e8e8;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-footer {
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
}

/* 弹窗内档位选择 */
.tier-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-option:active {
  transform: scale(0.98);
}

.tier-option.selected {
  border-color: var(--primary);
  background: #fff7f0;
}

.tier-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
}

.tier-radio.active {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 4px #fff;
}

.tier-option .tier-info {
  flex: 1;
}

.tier-option .tier-amount {
  font-size: 17px;
  margin-bottom: 2px;
}

.tier-option .tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 支持金额选择网格（参考图样式） */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.amount-btn {
  padding: 16px 0;
  text-align: center;
  background: #f5f5f5;
  color: #333;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.amount-btn.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.amount-btn-custom {
  color: #555;
}

.custom-amount-input {
  margin-top: 14px;
}

.custom-amount-input input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.custom-amount-input input:focus {
  border-color: var(--primary);
}

/* 弹窗海报 */
.modal-poster {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.poster-overlay {
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.poster-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.poster-date {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

/* 弹窗表单 */
.modal-body .form-group {
  margin-bottom: 14px;
}

.modal-body .form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-body .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.modal-body .form-input:focus {
  border-color: var(--primary);
}

.modal-body .form-textarea {
  resize: none;
  font-family: inherit;
}

.btn-full {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== 协议弹窗 ===== */
.agreement-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.agreement-overlay.active {
  display: flex;
}
.agreement-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.agreement-header {
  padding: 18px 20px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.agreement-header h3 {
  margin: 0;
  font-size: 18px;
  color: #222;
}
.agreement-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.agreement-body p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}
.agreement-body .agreement-section {
  margin-bottom: 14px;
}
.agreement-body .agreement-section strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}
.agreement-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.agreement-footer .btn-agree {
  flex: 1;
  padding: 13px 0;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.agreement-footer .btn-disagree {
  flex: 1;
  padding: 13px 0;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background: #f5f5f5;
  color: #999;
}
.agreement-footer .btn-agree.primary {
  background: #FF6B35;
  color: #fff;
}
.agreement-footer .btn-agree.primary:active {
  background: #e55a2b;
}
/* 分享按钮 */
.share-btn {
  background: none;
  border: none;
  color: #FF6B35;
  font-size: 14px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

/* 分享弹窗 */
.share-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}
.share-overlay.active {
  visibility: visible;
  opacity: 1;
}
.share-modal {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px 32px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.share-overlay.active .share-modal {
  transform: translateY(0);
}
.share-modal h3 {
  margin: 0 0 12px;
  font-size: 18px;
  text-align: center;
  color: #333;
}
.share-modal .share-url-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #666;
  word-break: break-all;
  margin-bottom: 16px;
  line-height: 1.5;
}
.share-modal .share-actions {
  display: flex;
  gap: 12px;
}
.share-modal .share-actions button {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}
.share-modal .btn-copy-link {
  background: #FF6B35;
  color: #fff;
}
.share-modal .btn-cancel {
  background: #f0f0f0;
  color: #666;
}
.share-modal .btn-copy-link:active { background: #e55a2b; }
.share-modal .btn-cancel:active { background: #e0e0e0; }

/* 分享按钮（小号，在项目卡片内） */
.share-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.share-btn-sm:hover { background: #f5f5f5; }
.share-btn-sm:active { background: #eee; }

.proj-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.delete-btn-sm {
  background: #fff2f0;
  border-color: #ffccc7;
}
.delete-btn-sm:hover { background: #fff1f0; }
.delete-btn-sm:active { background: #ffccc7; }

/* 支持档位卡片 */
.tiers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tier-card {
  flex: 1 1 calc(50% - 5px);
  min-width: 140px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.tier-card:active {
  border-color: #FF6B35;
  background: #fff5f0;
}
.tier-card-amount {
  font-size: 20px;
  font-weight: 700;
  color: #FF6B35;
}
.tier-card-desc {
  font-size: 12px;
  color: #999;
  margin: 4px 0;
}
.tier-card-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 16px;
  background: #FF6B35;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
}
