/* ========================================
   亮一生投票系统 - H5 前端样式 v3.0
   品牌色：蓝 #1E6FFF / 金 #F5A623
   视觉升级：渐变、玻璃态、微动效、呼吸感
   ======================================== */

:root {
  --primary: #1E6FFF;
  --primary-dark: #1652C4;
  --primary-light: #E8F0FF;
  --gold: #F5A623;
  --gold-dark: #E89610;
  --gold-light: #FFF8E7;
  --danger: #E74C3C;
  --success: #27AE60;
  --text: #1a1f36;
  --text-secondary: #5a6072;
  --text-light: #8A92A6;
  --bg: #F0F2F7;
  --card-bg: #FFFFFF;
  --border: #E4E7EE;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --nav-height: 60px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== 文本层级 ===== */
.text-secondary-custom { color: var(--text-secondary); }
.text-muted-custom { color: var(--text-light); }

/* ===== 页面进入动画 ===== */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-animate > * {
  animation: pageEnter .4s ease backwards;
}
.page-animate > *:nth-child(1) { animation-delay: 0s; }
.page-animate > *:nth-child(2) { animation-delay: .05s; }
.page-animate > *:nth-child(3) { animation-delay: .1s; }
.page-animate > *:nth-child(4) { animation-delay: .15s; }
.page-animate > *:nth-child(5) { animation-delay: .2s; }

/* ===== 顶部导航 ===== */
.app-header {
  background: linear-gradient(135deg, #1E6FFF 0%, #2563EB 50%, #1D4ED8 100%);
  color: #fff;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(30,111,255,0.28);
  backdrop-filter: blur(10px);
}
.app-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
}
.app-header .header-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}
.app-header .header-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.app-header .header-back:active { background: rgba(255,255,255,.15); }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 99;
  height: var(--nav-height);
  padding: 4px 0 env(safe-area-inset-bottom, 4px) 0;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.03), 0 -4px 16px rgba(0,0,0,0.04);
}
.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  text-decoration: none;
  color: var(--text-light);
  font-size: 10px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.bottom-nav .nav-item i { font-size: 20px; margin-bottom: 2px; transition: transform var(--transition), color var(--transition); }
.bottom-nav .nav-item.active {
  color: var(--primary);
  font-weight: 700;
}
.bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}
.bottom-nav .nav-item.active i { transform: scale(1.08); }
.bottom-nav .nav-item:active i { transform: scale(0.88); }

/* ===== 卡片样式（通用升级） ===== */
.card-custom {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-custom:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
}
.card-custom .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card-custom:hover .card-img-top { transform: scale(1.04); }

/* ===== 活动列表卡片（升级） ===== */
.activity-card {
  position: relative;
  border-radius: var(--radius);
}
.activity-card .activity-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
}
.badge-ongoing { background: rgba(16, 185, 129, 0.88); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.25); }
.badge-upcoming { background: rgba(245, 158, 11, 0.88); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.25); }
.badge-ended { background: rgba(148, 163, 184, 0.85); color: #fff; }
.activity-card .activity-stats {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #FAFBFC 0%, var(--card-bg) 100%);
}
.activity-stats .stat-item {
  text-align: center;
}
.stat-item .stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.stat-item .stat-label { font-size: 11px; color: var(--text-light); margin-top: 2px; font-weight: 500; }

/* ===== 选手卡片（升级） ===== */
.player-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin: 0 12px 5px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}
.player-card + .player-card { margin-top: 20px; }
.player-card:active {
  background: var(--primary-light);
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
}
.player-card .player-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-right: 10px;
  transition: transform var(--transition);
}
.rank-top1 { background: linear-gradient(135deg, #FFD700, #F59E0B); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.35); }
.rank-top2 { background: linear-gradient(135deg, #C0C0C0, #9CA3AF); color: #fff; box-shadow: 0 2px 8px rgba(156,163,175,.3); }
.rank-top3 { background: linear-gradient(135deg, #CD7F32, #B45309); color: #fff; box-shadow: 0 2px 8px rgba(180,83,9,.3); }
.rank-other { background: #EEF2FF; color: #4F6EF7; font-weight: 700; }
.player-card .player-photo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 12px;
  background: var(--bg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform var(--transition);
}
.player-card:active .player-photo { transform: scale(1.06); }
.player-card .player-info { flex: 1; min-width: 0; }
.player-info .player-name { font-size: 15px; font-weight: 700; color: var(--text); }
.player-info .player-store { font-size: 12px; color: var(--text-light); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.player-card .player-votes {
  text-align: center;
  flex-shrink: 0;
  margin-left: 8px;
}
.player-votes .vote-num { font-size: 20px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.player-votes .vote-label { font-size: 10px; color: var(--text-light); font-weight: 500; }

/* 投票按钮（升级） */
.btn-vote {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(245,158,11,0.25);
}
.btn-vote::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.btn-vote:active::after { opacity: 1; }
.btn-vote:active { transform: scale(0.94); }
.btn-vote.voted {
  background: #CBD5E1;
  pointer-events: none;
  box-shadow: none;
  color: #94A3B8;
}

/* ===== 排行榜Tab（升级） ===== */
.rank-tabs {
  display: flex;
  overflow-x: auto;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 52px;
  z-index: 50;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rank-tabs::-webkit-scrollbar { display: none; }
.rank-tab {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border: none;
  background: none;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
}
.rank-tab.active {
  color: var(--primary);
  font-weight: 700;
}
.rank-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  animation: tabIndicator .3s ease;
}

/* 地区选择器（升级） */
.region-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.region-chip {
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}
.region-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30,111,255,0.28);
  font-weight: 700;
}
.region-chip:active { transform: scale(0.94); }

@keyframes tabIndicator {
  from { width: 0; }
  to { width: 28px; }
}

/* ===== 报名表单（升级） ===== */
.signup-form {
  padding: 12px 16px 80px;
  animation: pageEnter .4s ease;
}
.form-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  border: 1px solid transparent;
}
.form-section:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(30,111,255,0.04);
}
.form-section .section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
}
.form-section .section-title i { margin-right: 8px; font-size: 17px; }

.form-floating-custom {
  margin-bottom: 14px;
}
.form-floating-custom label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}
.form-floating-custom .form-control,
.form-floating-custom .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 11px 14px;
  font-size: 15px;
  transition: all var(--transition);
  background: var(--bg);
  color: var(--text);
}
.form-floating-custom .form-control:focus,
.form-floating-custom .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,111,255,0.08);
  outline: none;
  background: #fff;
}
.form-floating-custom textarea.form-control { min-height: 80px; resize: vertical; }

/* 输入框验证反馈 */
.form-control.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.1) !important;
  animation: shake .4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* 照片上传（升级） */
.photo-uploader {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photo-upload-item {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}
.photo-upload-item:hover { border-color: var(--primary); background: var(--primary-light); }
.photo-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.photo-upload-item .upload-plus {
  font-size: 28px;
  color: var(--text-light);
  transition: transform .2s;
}
.photo-upload-item:hover .upload-plus { transform: scale(1.2); color: var(--primary); }
.photo-upload-item .photo-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: rgba(231,76,60,.85);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s;
  z-index: 2;
}
.photo-upload-item .photo-delete:active { transform: scale(1.2); }

/* ===== 选手详情弹窗（升级） ===== */
.modal-player {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.modal-player .modal-body {
  padding: 0;
}
.player-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a, #1e293b);
}
.player-hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}
.player-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  pointer-events: none;
}
.player-hero .player-gallery-nav {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-dot.active { background: #fff; transform: scale(1.4); }
.player-detail-info {
  padding: 20px;
  background: var(--card-bg);
}
.player-detail-info .pd-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.player-detail-info .pd-entry-no {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 500;
}
.player-detail-info .pd-declaration {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border-left: 3px solid var(--primary);
}
.player-vote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  flex-wrap: wrap;
  gap: 10px;
}
.player-vote-bar .pv-count {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
}
.player-vote-bar .pv-count span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

/* ===== 活动详情页头部（升级） ===== */
.activity-hero {
  position: relative;
  width: 100%;
  background: #E8ECF1;
  overflow: hidden;
}
.activity-hero .ah-cover {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  transition: opacity .4s ease;
}

/* 活动信息（封面下方） */
.ah-info {
  padding: 16px 20px 8px;
  background: #fff;
}
.ah-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ah-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.ah-tag-theme {
  background: #EBF5FF;
  color: #1E6FFF;
}
.ah-tag-status-1 {
  background: #E8F5E9;
  color: #2E7D32;
}
.ah-tag-status-2 {
  background: #FAFAFA;
  color: #757575;
}
.ah-tag-status-0 {
  background: #FFF3E0;
  color: #E65100;
}
.ah-info .ah-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.4;
}
.ah-info .ah-time {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 统计条（横向三列，图标+数字+标签） ===== */
.activity-stats-bar {
  margin: 6px 16px 12px;
  position: relative;
  z-index: 10;
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.activity-stats-bar .stat-card {
  flex: 1;
  text-align: center;
  padding: 16px 8px 14px;
  position: relative;
  transition: transform var(--transition);
}
.activity-stats-bar .stat-card:active {
  transform: scale(0.96);
}
.activity-stats-bar .stat-card + .stat-card {
  border-left: 1px solid var(--border);
}
.activity-stats-bar .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 8px;
  font-size: 16px;
}
.activity-stats-bar .stat-icon.signup { background: linear-gradient(135deg, #EEF2FF, #DBE4FF); color: #4F6EF7; }
.activity-stats-bar .stat-icon.vote   { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #F59E0B; }
.activity-stats-bar .stat-icon.view   { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #10B981; }
.activity-stats-bar .stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.activity-stats-bar .stat-label-text {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 活动详情操作区（升级） */
.activity-actions {
  display: flex;
  gap: 10px;
  padding: 4px 16px 16px;
  background: #fff;
}
.activity-actions .action-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.activity-actions .action-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.activity-actions .action-btn:active::after { opacity: 1; }
.activity-actions .action-btn:active { transform: scale(0.96); }
.btn-action-rank {
  background: linear-gradient(135deg, #1E6FFF, #2563EB);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,111,255,0.3);
}
.btn-action-signup {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.btn-action-rule {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow);
}

/* 搜索栏（升级） */
.search-bar {
  padding: 10px 16px;
  background: transparent;
}
.search-bar .input-group {
  box-shadow: var(--shadow);
  border-radius: 24px;
  overflow: hidden;
}
.search-bar .input-group .form-control {
  border-radius: 24px 0 0 24px;
  border: 1.5px solid var(--border);
  border-right: none;
  padding: 10px 18px;
  font-size: 14px;
  background: var(--card-bg);
  transition: all var(--transition);
}
.search-bar .input-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,111,255,0.08);
  background: #fff;
}
.search-bar .input-group .btn {
  border-radius: 0 24px 24px 0;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 18px;
}

/* ===== Toast（升级） ===== */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.custom-toast {
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  animation: toastIn .3s ease;
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;
  letter-spacing: 0.3px;
}
.toast-success { background: linear-gradient(135deg, #10B981, #059669); }
.toast-error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.toast-warning { background: linear-gradient(135deg, #F59E0B, #D97706); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 加载更多 ===== */
.load-more {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 13px;
}
.load-more .spinner-border {
  width: 20px; height: 20px;
  border-width: 2px;
  color: var(--primary);
}

/* ===== 空状态（升级版） ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
  animation: fadeInUp .5s ease;
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.3;
  display: block;
}
.empty-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; margin-bottom: 16px; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 骨架屏 ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-circle,
.skeleton-rect,
.skeleton-line {
  background: linear-gradient(90deg, #E8ECF1 25%, #F0F3F6 50%, #E8ECF1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
.skeleton-circle { border-radius: 50%; }
.skeleton-line { height: 14px; margin-bottom: 6px; border-radius: 7px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.mt-8 { margin-top: 8px; }
.skeleton-line.mb-8 { margin-bottom: 8px; }
.skeleton-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 12px; }
.skeleton-player {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin: 0 12px 8px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 16px 14px;
  overflow: hidden;
}
.skeleton-card .p-12 { padding: 12px 16px; }
.skeleton-stats {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

/* ===== 统计数字滚动 ===== */
@keyframes countUp {
  0% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.count-animate {
  animation: countUp .3s ease;
}

/* ===== 全局Loading ===== */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.page-loading .spinner-border {
  width: 36px; height: 36px;
  color: var(--primary);
  border-width: 3px;
}
.page-loading .loading-text {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 12px;
}

/* ===== 前三名领奖台（升级） ===== */
.podium-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding: 28px 16px 18px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 40%, #F8FAFC 100%);
  border-radius: var(--radius);
  margin: 0 12px 12px;
  box-shadow: var(--shadow);
}
.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s ease;
}
.podium-item:active { transform: scale(1.06); }
.podium-item .podium-photo {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  background: var(--bg);
  margin-bottom: 8px;
}
.podium-item .podium-medal {
  font-size: 30px;
  margin-bottom: 4px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.podium-item .podium-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-item .podium-votes {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.podium-item .podium-platform {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #1E6FFF, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-top: 8px;
}
.podium-item.rank-1 .podium-platform { height: 60px; background: linear-gradient(135deg, #FFD700, #F59E0B); font-size: 16px; }
.podium-item.rank-2 .podium-platform { height: 44px; background: linear-gradient(135deg, #C0C0C0, #9CA3AF); }
.podium-item.rank-3 .podium-platform { height: 36px; background: linear-gradient(135deg, #CD7F32, #B45309); }
.podium-item.rank-1 .podium-photo { width: 84px; height: 84px; }
.podium-item.rank-2 .podium-photo { width: 68px; height: 68px; }
.podium-item.rank-3 .podium-photo { width: 60px; height: 60px; }

/* ===== 成功弹窗粒子 ===== */
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.success-icon {
  font-size: 64px;
  color: #10B981;
  animation: successPop .5s cubic-bezier(.4,0,.2,1);
}

/* ===== 规则弹窗 ===== */
.rules-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.rules-content h5 { color: var(--primary); margin-top: 16px; }

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ===== "我的报名" 状态徽标 ===== */
.entry-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.entry-status-pending { background: #FFF3E0; color: #E65100; }
.entry-status-approved { background: #E8F5E9; color: #1B5E20; }
.entry-status-rejected { background: #FFEBEE; color: #B71C1C; }

/* 操作按钮 — 禁用状态 */
.btn-action-disabled {
  background: #E2E8F0 !important;
  color: #94A3B8 !important;
  pointer-events: none;
  box-shadow: none !important;
}

/* 选手弹窗 — 分享海报按钮 */
.btn-poster-share {
  border-radius: 20px !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  background: #fff;
  padding: 7px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all var(--transition);
}
.btn-poster-share:hover {
  background: var(--primary-light) !important;
  transform: translateY(-1px);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  body { background: #E4E7EE; }
  .app-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0,0,0,0.12);
  }
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
  }
}

@media (max-width: 360px) {
  .activity-hero .ah-cover { max-height: 280px; }
  .ah-info .ah-title { font-size: 17px; }
  .player-hero { height: 240px; }
  .activity-actions { gap: 8px; padding: 0 12px 14px; }
  .activity-actions .action-btn { padding: 10px 6px; font-size: 13px; }
  .activity-stats-bar .stat-value { font-size: 18px; }
  .activity-stats-bar .stat-icon { width: 30px; height: 30px; font-size: 14px; }
}

@media (min-width: 414px) and (max-width: 767px) {
  .activity-hero .ah-cover { max-height: 340px; }
}

/* ===== 下拉刷新指示器 ===== */
.pull-indicator {
  text-align: center;
  padding: 12px;
  color: var(--text-light);
  font-size: 13px;
  display: none;
}
.pull-indicator.active {
  display: block;
  animation: fadeInUp .3s ease;
}

/* ===== 渐现动画（列表项依次出现） ===== */
@keyframes listItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.list-animate > * {
  animation: listItemIn .35s ease backwards;
}
.list-animate > *:nth-child(1) { animation-delay: 0s; }
.list-animate > *:nth-child(2) { animation-delay: .04s; }
.list-animate > *:nth-child(3) { animation-delay: .08s; }
.list-animate > *:nth-child(4) { animation-delay: .12s; }
.list-animate > *:nth-child(5) { animation-delay: .16s; }
.list-animate > *:nth-child(6) { animation-delay: .20s; }
.list-animate > *:nth-child(7) { animation-delay: .24s; }
.list-animate > *:nth-child(8) { animation-delay: .28s; }
.list-animate > *:nth-child(9) { animation-delay: .32s; }
.list-animate > *:nth-child(10) { animation-delay: .36s; }

/* ===== 奖项展示（升级） ===== */
.awards-section {
  margin: 12px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.awards-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFF8E7, #fff);
}
.awards-header i { color: var(--gold); }
.award-scope { padding: 14px 18px; }
.award-scope + .award-scope { border-top: 1px dashed var(--border); }
.award-scope-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.award-scope-title.national { color: #DC2626; }
.award-scope-title.province { color: #EA580C; }
.award-scope-title.city { color: #7C3AED; }
.award-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.award-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  transition: all var(--transition);
}
.award-tag:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30,111,255,0.08);
}
.award-tag .award-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.award-tag .award-num.lv1 { background: linear-gradient(135deg, #FFD700, #F59E0B); }
.award-tag .award-num.lv2 { background: linear-gradient(135deg, #C0C0C0, #9CA3AF); }
.award-tag .award-num.lv3 { background: linear-gradient(135deg, #CD7F32, #B45309); }
.award-rank-text { color: var(--text-light); font-size: 12px; margin-left: 2px; }

/* ===== 我的报名 — 入口卡片（升级） ===== */
.my-entry-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.my-entry-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md) !important;
}
.my-entry-card .canvass-btn {
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 14px;
  transition: all var(--transition);
  font-weight: 600;
}
.my-entry-card .canvass-btn:hover {
  background: #EF4444;
  color: #fff;
  border-color: #EF4444;
}

/* ===== 富文本内容展示（活动描述/规则） ===== */
.rich-content-section {
  background: var(--card-bg);
  margin: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rich-content-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EEF2FF, #fff);
}
.rich-content-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
  overflow-wrap: break-word;
}
.rich-content-body img,
.rich-content-body video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}
.rich-content-body iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.rich-content-body h1,
.rich-content-body h2,
.rich-content-body h3,
.rich-content-body h4 { 
  margin: 16px 0 8px;
  font-weight: 600;
  color: #1a1a1a;
}
.rich-content-body h1 { font-size: 20px; }
.rich-content-body h2 { font-size: 18px; }
.rich-content-body h3 { font-size: 16px; }
.rich-content-body h4 { font-size: 15px; }
.rich-content-body p { margin: 0 0 10px; }
.rich-content-body ul,
.rich-content-body ol { 
  padding-left: 20px;
  margin: 8px 0;
}
.rich-content-body li { margin-bottom: 4px; }
.rich-content-body blockquote {
  margin: 12px 0;
  padding: 8px 16px;
  border-left: 4px solid var(--primary);
  background: #f8f9fa;
  color: #555;
  border-radius: 0 6px 6px 0;
}
.rich-content-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  display: block;
  overflow-x: auto;
}
.rich-content-body table th,
.rich-content-body table td {
  border: 1px solid #dee2e6;
  padding: 8px 10px;
  text-align: left;
}
.rich-content-body table th {
  background: #f8f9fa;
  font-weight: 600;
}
.rich-content-body a {
  color: var(--primary);
  text-decoration: underline;
}
.rich-content-body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}
.rich-content-body pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== 规则弹窗富文本 ===== */
.rules-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
}
.rules-content img,
.rules-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}
.rules-content h1,
.rules-content h2,
.rules-content h3,
.rules-content h4 {
  margin: 14px 0 6px;
  font-weight: 600;
}
.rules-content h1 { font-size: 18px; }
.rules-content h2 { font-size: 17px; }
.rules-content h3 { font-size: 15px; }
.rules-content p { margin: 0 0 8px; }
.rules-content ul,
.rules-content ol { padding-left: 18px; margin: 6px 0; }
.rules-content blockquote {
  margin: 10px 0;
  padding: 6px 14px;
  border-left: 3px solid var(--primary);
  background: #f8f9fa;
  color: #555;
}
.rules-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
.rules-content table th,
.rules-content table td {
  border: 1px solid #dee2e6;
  padding: 6px 8px;
}
