/* ========================================
   KG跑步俱乐部 2025年度回顾 - 样式表
   运动浪漫主题
   ======================================== */

:root {
  --primary: #E63946;
  --primary-dark: #c62828;
  --secondary: #1D3557;
  --secondary-light: #457B9D;
  --accent: #FFD700;
  --bg-dark: #0a0e17;
  --bg-gradient: linear-gradient(180deg, #0a0e17 0%, #1a1f35 50%, #0a0e17 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* 粒子背景 */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 音乐提示遮罩 (iOS) */
.music-prompt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.music-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

.music-prompt-content {
  text-align: center;
  color: white;
}

.music-prompt-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.music-prompt-content p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.music-prompt-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.music-prompt-btn:active {
  transform: scale(0.95);
}

.music-prompt-skip {
  display: block;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.music-prompt-skip:hover {
  color: var(--text-secondary);
}

/* 音乐控制按钮 */
.audio-control {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(230, 57, 70, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(230, 57, 70, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.audio-control:hover {
  transform: scale(1.1);
}

.audio-control:active {
  transform: scale(0.95);
}

.audio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 20px;
}

.audio-icon span {
  display: block;
  width: 3px;
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: audioBar 0.8s ease-in-out infinite;
}

.audio-icon span:nth-child(1) {
  animation-delay: 0s;
}

.audio-icon span:nth-child(2) {
  animation-delay: 0.2s;
}

.audio-icon span:nth-child(3) {
  animation-delay: 0.4s;
}

.audio-icon.paused span {
  animation: none;
  height: 12px;
}

@keyframes audioBar {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

/* 暂停状态显示暂停图标 */
.audio-icon.paused {
  gap: 4px;
}

.audio-icon.paused span:nth-child(2) {
  display: none;
}

/* 容器 */
.container {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* 通用屏幕样式 */
.screen {
  min-height: 100vh;
  height: 100vh;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ========================================
   第一屏：开场
   ======================================== */
.screen-intro {
  background: var(--bg-gradient);
  text-align: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.4);
}

.club-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.year-title {
  margin-bottom: 48px;
}

.year-title .year {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.year-title .subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
}

.hero-number {
  margin-bottom: 16px;
}

.hero-number .number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.hero-number .unit {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 8px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

.arrow-down {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ========================================
   第二屏：总体成就
   ======================================== */
.screen-stats {
  background: var(--bg-gradient);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.2);
}

.stat-card.highlight {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: var(--primary);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-label small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.avg-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.avg-item {
  text-align: center;
}

.avg-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.avg-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.avg-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   第三屏：有趣换算
   ======================================== */
.screen-fun {
  background: var(--bg-gradient);
}

.fun-facts {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 320px;
}

.fun-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fun-visual {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fun-visual.earth {
  position: relative;
}

.earth-orbit {
  width: 60px;
  height: 60px;
  border: 2px dashed var(--secondary-light);
  border-radius: 50%;
  animation: orbit-rotate 10s linear infinite;
}

.earth-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #4FC3F7, #29B6F6);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: earth-move 10s linear infinite;
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes earth-move {
  from { transform: translateX(-50%) rotate(0deg) translateY(-20px); }
  to { transform: translateX(-50%) rotate(360deg) translateY(-20px); }
}

.fun-visual.track {
  background: linear-gradient(to bottom, #8B4513 0%, #A0522D 100%);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.track-lane {
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
}

.fun-visual.train .train-icon {
  font-size: 2.5rem;
  animation: train-move 2s ease-in-out infinite;
}

@keyframes train-move {
  0%, 100% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
}

.fun-text {
  display: flex;
  flex-direction: column;
}

.fun-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

.fun-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   第四屏：跑量排行榜
   ======================================== */
.screen-ranking {
  background: var(--bg-gradient);
  padding-top: 60px;
  padding-bottom: 60px;
  overflow-y: auto;
  justify-content: flex-start;
  position: relative;
}

/* 导航提示 */
.nav-hint {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px;
  z-index: 10;
  pointer-events: none;
}

.nav-hint-top {
  top: 8px;
}

.nav-hint-bottom {
  bottom: 8px;
  flex-direction: column-reverse;
}

.nav-arrow {
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--text-muted);
  border-top: 2px solid var(--text-muted);
}

.nav-arrow.up {
  transform: rotate(45deg);
  animation: arrowUp 1s infinite;
}

.nav-arrow.down {
  transform: rotate(225deg);
  animation: arrowDown 1s infinite;
}

@keyframes arrowUp {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(-4px); opacity: 0.5; }
}

@keyframes arrowDown {
  0%, 100% { transform: rotate(225deg) translateY(0); opacity: 1; }
  50% { transform: rotate(225deg) translateY(4px); opacity: 0.5; }
}

.ranking-list {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
}

.rank-badge.silver {
  background: linear-gradient(135deg, #E8E8E8, #B8B8B8);
  color: #1a1a1a;
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  color: #fff;
}

.rank-info {
  width: 80px;
  flex-shrink: 0;
}

.rank-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-runs {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rank-bar-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-out;
}

.rank-km {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.rank-1 {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

/* ========================================
   第五屏：全马荣耀
   ======================================== */
.screen-marathon {
  background: var(--bg-gradient);
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 360px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-medal {
  font-size: 2rem;
  margin-bottom: 8px;
}

.podium-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.podium-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.podium-time.highlight-time {
  color: var(--accent);
  font-size: 1.25rem;
}

.podium-stand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
}

.podium-item.first .podium-stand {
  height: 100px;
  background: linear-gradient(180deg, var(--gold), #B8860B);
  color: #1a1a1a;
}

.podium-item.second .podium-stand {
  height: 70px;
  background: linear-gradient(180deg, var(--silver), #808080);
  color: #1a1a1a;
}

.podium-item.third .podium-stand {
  height: 50px;
  background: linear-gradient(180deg, var(--bronze), #8B4513);
  color: #fff;
}

.podium-item.first { width: 120px; }
.podium-item.second { width: 100px; }
.podium-item.third { width: 100px; }

.marathon-more {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 32px;
}

.marathon-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.marathon-rank {
  width: 24px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}

.marathon-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.marathon-time {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.marathon-counts {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
}

.marathon-counts h3 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.marathon-counts h3 small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.count-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.count-item {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.count-item b {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========================================
   第六屏：月度趋势
   ======================================== */
.screen-trend {
  background: var(--bg-gradient);
}

.chart-container {
  width: 100%;
  max-width: 360px;
  height: 200px;
  padding: 20px 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px 4px 0 0;
  height: 0;
  transition: height 1s ease-out;
  position: relative;
  cursor: pointer;
}

.chart-bar::before {
  content: attr(data-month);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-bar::after {
  content: attr(data-value) 'km';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.chart-bar:hover::after {
  opacity: 1;
}

.chart-bar.peak {
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
}

.chart-bar.peak::after {
  opacity: 1;
  color: var(--accent);
  font-weight: 700;
}

.peak-month {
  margin-top: 40px;
  text-align: center;
}

.peak-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.peak-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* ========================================
   第七屏：连续跑步
   ======================================== */
.screen-streak {
  background: var(--bg-gradient);
}

.streak-list {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.streak-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.streak-rank {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.streak-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.streak-days {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.days-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.days-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.streak-motto {
  margin-top: 32px;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========================================
   第八屏：会员群星
   ======================================== */
.screen-members {
  background: var(--bg-gradient);
  padding-top: 40px;
  overflow-y: auto;
  justify-content: flex-start;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.member-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.member-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.member-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-km {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.members-total {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ========================================
   尾屏：展望
   ======================================== */
.screen-ending {
  background: radial-gradient(ellipse at center, #1a1f35 0%, var(--bg-dark) 100%);
  text-align: center;
}

.ending-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ending-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 16px 48px rgba(230, 57, 70, 0.4);
  margin-bottom: 24px;
}

.ending-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ending-year {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ending-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.ending-quote {
  margin-bottom: 40px;
}

.ending-quote p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
}

.ending-2026 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.year-badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.year-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.footer {
  position: absolute;
  bottom: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   动画类
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   会员详情弹窗
   ======================================== */
.member-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.member-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: linear-gradient(180deg, #1a1f35 0%, #0f1320 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease-out;
}

.member-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.modal-platform {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-stats {
  margin-bottom: 24px;
}

.modal-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.modal-stat-row:last-child {
  margin-bottom: 0;
}

.modal-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.modal-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.modal-records {
  padding: 16px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.modal-records h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  text-align: center;
}

.modal-record-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.record-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.record-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 会员卡片点击效果 */
.member-card {
  cursor: pointer;
}

.member-card:active {
  transform: scale(0.95);
}

/* ========================================
   越野跑页面
   ======================================== */
.screen-trail {
  background: linear-gradient(180deg, #0a0e17 0%, #1a2a1a 50%, #0a0e17 100%);
}

.trail-hero {
  text-align: center;
  margin-bottom: 32px;
}

.trail-stat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trail-big-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.trail-unit {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trail-subtitle {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trail-stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.trail-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trail-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ade80;
}

.trail-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trail-ranking,
.elevation-ranking {
  margin-bottom: 24px;
}

.trail-ranking h3,
.elevation-ranking h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.trail-rank-list,
.elevation-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.trail-rank-item,
.elevation-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.trail-rank,
.elevation-rank {
  width: 28px;
  font-size: 1rem;
  text-align: center;
}

.trail-name,
.elevation-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.trail-km,
.elevation-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4ade80;
}

/* ========================================
   力量训练页面
   ======================================== */
.screen-strength {
  background: linear-gradient(180deg, #0a0e17 0%, #2a1a2a 50%, #0a0e17 100%);
}

.strength-hero {
  text-align: center;
  margin-bottom: 32px;
}

.strength-stat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.strength-big-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.strength-unit {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.strength-subtitle {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.strength-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

.strength-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.strength-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f472b6;
}

.strength-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.strength-ranking {
  margin-bottom: 24px;
}

.strength-ranking h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.strength-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.strength-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(244, 114, 182, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.strength-rank {
  width: 28px;
  font-size: 1rem;
  text-align: center;
}

.strength-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.strength-sessions {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f472b6;
}

.strength-motto {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* 响应式 */
@media (min-width: 768px) {
  .screen {
    padding: 80px 48px;
  }

  .stats-grid {
    max-width: 500px;
  }

  .ranking-list,
  .fun-facts,
  .streak-list {
    max-width: 480px;
  }

  .members-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
  }
}
