/* =============================================
   燃情七月半程接力 — 顶级UI设计系统
   TechnicalArtist · 2026
   ============================================= */

:root {
  --bg-primary: #0d0a12;
  --bg-secondary: #14101f;
  --accent-1: #ff6b6b;
  --accent-2: #ffa502;
  --accent-3: #f5576c;
  --accent-4: #fda085;
  --accent-purple: #667eea;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --text-primary: #f0e6ff;
  --text-secondary: #a090b8;
  --text-muted: #6a5b80;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   1. 动态背景层
   ============================================ */
.bg-layer {
  position: fixed; inset: 0;
  z-index: 0; overflow: hidden;
}

.bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 87, 108, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 165, 2, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d0a12 0%, #14101f 50%, #1a0e1e 100%);
  animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

/* 粒子层 */
.bg-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px at 10% 20%, rgba(255, 170, 100, 0.5), transparent),
    radial-gradient(2.5px at 22% 45%, rgba(245, 87, 108, 0.35), transparent),
    radial-gradient(1px at 35% 70%, rgba(255, 200, 150, 0.4), transparent),
    radial-gradient(2px at 48% 15%, rgba(253, 160, 133, 0.35), transparent),
    radial-gradient(2.5px at 60% 80%, rgba(245, 87, 108, 0.25), transparent),
    radial-gradient(1.5px at 72% 35%, rgba(255, 170, 100, 0.4), transparent),
    radial-gradient(2px at 85% 65%, rgba(253, 160, 133, 0.3), transparent),
    radial-gradient(1px at 15% 85%, rgba(102, 126, 234, 0.25), transparent),
    radial-gradient(2px at 40% 55%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1.5px at 65% 25%, rgba(245, 87, 108, 0.3), transparent);
  animation: particleDrift 25s linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-30px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

/* 运动线 */
.motion-lines {
  position: absolute; inset: 0; pointer-events: none;
}

.motion-lines::before {
  content: '';
  position: absolute; top: 0; left: -50%; width: 200%; height: 100%;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 80px,
    rgba(245, 87, 108, 0.025) 80px, rgba(253, 160, 133, 0.04) 120px,
    transparent 120px, transparent 200px
  );
  animation: motionSweep 6s linear infinite;
}

.motion-lines::after {
  content: '';
  position: absolute; top: 0; left: -50%; width: 150%; height: 100%;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 60px,
    rgba(102, 126, 234, 0.02) 60px, rgba(102, 126, 234, 0.03) 90px,
    transparent 90px, transparent 150px
  );
  animation: motionSweep 8s linear infinite reverse;
  opacity: 0.5;
}

@keyframes motionSweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* 能量环 */
.energy-rings {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.energy-rings > div {
  position: absolute; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.ring-1 {
  width: 150px; height: 150px;
  border: 1.5px solid rgba(245, 87, 108, 0.12);
  animation: ringExpand 5s ease-out infinite;
}
.ring-2 {
  width: 300px; height: 300px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  animation: ringExpand 5s ease-out 2.5s infinite;
}
.ring-3 {
  width: 500px; height: 500px;
  border: 1px solid rgba(253, 160, 133, 0.06);
  animation: ringExpand 5s ease-out 1.25s infinite;
}

@keyframes ringExpand {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* 跑步者剪影 - 3D层次 */
.runner {
  position: absolute; z-index: 1;
}
.runner-far  { bottom: 10%; left: 3%; width: 50px; height: 50px; opacity: 0.3; animation: runnerBounce1 2s ease-in-out infinite; }
.runner-mid  { bottom: 18%; left: 85%; width: 70px; height: 70px; opacity: 0.5; animation: runnerBounce2 1.6s ease-in-out infinite; }
.runner-near { bottom: 6%; left: 50%; width: 90px; height: 90px; opacity: 0.6; animation: runnerBounce3 1.2s ease-in-out infinite; }

.runner-svg { width: 100%; height: 100%; overflow: visible; }

.runner-glow {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 8px;
  background: radial-gradient(ellipse, rgba(245, 87, 108, 0.3) 0%, transparent 70%);
  animation: glowPulse 1.2s ease-in-out infinite;
}

@keyframes runnerBounce1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes runnerBounce2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes runnerBounce3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes glowPulse { 0%,100% { opacity: 0.3; transform: translateX(-50%) scaleX(1); } 50% { opacity: 0.6; transform: translateX(-50%) scaleX(1.3); } }

/* 速度爆发 */
.burst {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  animation: burstUp 3s ease-out infinite;
}
.b1 { top: 20%; left: 8%;  width: 3px; height: 3px; animation-delay: 0s; }
.b2 { top: 55%; left: 88%; width: 4px; height: 4px; animation-delay: -0.5s; }
.b3 { top: 35%; left: 65%; width: 3px; height: 3px; animation-delay: -1s; }
.b4 { top: 70%; left: 20%; width: 5px; height: 5px; animation-delay: -1.5s; }
.b5 { top: 15%; left: 45%; width: 3px; height: 3px; animation-delay: -2s; }
.b6 { top: 80%; left: 75%; width: 4px; height: 4px; animation-delay: -2.5s; }

@keyframes burstUp {
  0%   { transform: translateY(0) scale(1); opacity: 0.8; }
  50%  { transform: translateY(-50px) scale(1.8); opacity: 0.4; }
  100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

/* ============================================
   2. 应用包装器
   ============================================ */
.app-wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 820px;
  display: flex; flex-direction: column; gap: 20px;
}

/* ============================================
   3. 实时统计条
   ============================================ */
.live-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px 32px;
  animation: fadeSlide 0.8s ease-out;
}

.stat-item {
  display: flex; align-items: center; gap: 12px;
}

.stat-icon { font-size: 1.4em; }

.stat-info {
  display: flex; flex-direction: column;
}

.stat-value {
  font-size: 1.5em; font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75em; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-divider {
  width: 1px; height: 36px;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   4. 主容器 / Glassmorphism
   ============================================ */
.container {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 48px;
  animation: fadeSlide 1s ease-out 0.2s both;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

@keyframes fadeSlide {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   5. Hero 头部
   ============================================ */
.hero-header { text-align: center; margin-bottom: 32px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  background: rgba(245, 87, 108, 0.1);
  border: 1px solid rgba(245, 87, 108, 0.2);
  border-radius: 20px;
  font-size: 0.8em; font-weight: 600;
  color: var(--accent-4);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  display: flex; flex-direction: column; gap: 4px;
}

.title-line {
  font-size: 3em; font-weight: 900;
  letter-spacing: -2px; line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, #b8a0d0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-4) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.4em;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1em; margin-top: 12px;
  font-weight: 400;
}

/* ============================================
   6. 进度条
   ============================================ */
.progress-section {
  margin-bottom: 32px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 0.85em; font-weight: 600; color: var(--text-secondary);
}

.progress-count {
  font-size: 0.85em; font-weight: 600; color: var(--accent-4);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  width: 100%; height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px; overflow: hidden;
}

.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2), var(--accent-4));
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   报名跑友列表
   ============================================ */
.runner-list-section {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.runner-list-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.95em; font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
  user-select: none;
}

.runner-list-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.runner-list-toggle {
  font-size: 0.85em;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.runner-list-body {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 0;
  max-height: 360px;
  overflow-y: auto;
}

.runner-list-body::-webkit-scrollbar {
  width: 4px;
}
.runner-list-body::-webkit-scrollbar-track {
  background: transparent;
}
.runner-list-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.runner-list-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9em;
}

.runner-list-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9em;
}

.runner-list-item {
  display: flex; align-items: center;
  padding: 10px 20px;
  transition: background 0.2s ease;
  gap: 12px;
}

.runner-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.runner-rank {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 87, 108, 0.1);
  border-radius: 50%;
  font-size: 0.8em; font-weight: 700;
  color: var(--accent-4);
  flex-shrink: 0;
}

.runner-name {
  flex: 1;
  font-size: 0.95em; font-weight: 600;
  color: var(--text-primary);
}

.runner-date {
  font-size: 0.82em;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: right;
}

/* ============================================
   7. 表单
   ============================================ */
.register-form { display: flex; flex-direction: column; gap: 24px; }

.form-group { }

label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 600; font-size: 0.95em;
}

.label-icon { font-size: 1.2em; }
.label-text { }
.label-hint {
  color: var(--text-muted); font-weight: 400;
  font-size: 0.85em; margin-left: auto;
}

.input-wrapper {
  position: relative;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 1em; font-family: var(--font);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  position: relative;
  z-index: 1;
}

input::placeholder { color: rgba(255, 255, 255, 0.2); }

input:focus {
  border-color: rgba(245, 87, 108, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(245, 87, 108, 0.06);
}

.input-focus-ring {
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  pointer-events: none;
  transition: opacity var(--transition);
  opacity: 0;
}

input:focus ~ .input-focus-ring {
  opacity: 1;
  box-shadow: 0 0 30px rgba(245, 87, 108, 0.08);
}

/* ============================================
   8. 日期网格 - 卡片式
   ============================================ */
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.date-btn {
  position: relative;
  padding: 14px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95em; font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-bounce);
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  overflow: hidden;
}

.date-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(245, 87, 108, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.date-btn:hover:not(:disabled) {
  border-color: rgba(245, 87, 108, 0.3);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(245, 87, 108, 0.15);
}

.date-btn:hover:not(:disabled)::before { opacity: 1; }

.date-btn .date-day {
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.3;
  position: relative; z-index: 1;
}

.date-btn .date-dow {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative; z-index: 1;
}

.date-btn.selected {
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.2), rgba(253, 160, 133, 0.15));
  border-color: rgba(245, 87, 108, 0.4);
  transform: scale(1.08);
  box-shadow:
    0 0 20px rgba(245, 87, 108, 0.2),
    0 8px 25px rgba(245, 87, 108, 0.1);
}

.date-btn.selected .date-day {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-btn.selected .date-dow {
  color: var(--accent-3);
  -webkit-text-fill-color: var(--accent-3);
}

.date-btn:disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
  transform: none;
}

.date-btn:disabled .date-day { color: rgba(255, 255, 255, 0.15); }
.date-btn:disabled .date-dow { color: rgba(255, 255, 255, 0.08); }

.date-btn:disabled::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 4px,
    rgba(255, 255, 255, 0.02) 4px, rgba(255, 255, 255, 0.02) 8px
  );
  border-radius: inherit;
}

/* ============================================
   9. 提交按钮 - 霓虹光
   ============================================ */
.btn-submit {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  outline-offset: 4px;
}

.btn-content {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: var(--radius-md);
  font-size: 1.15em; font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
  box-shadow:
    0 4px 20px rgba(245, 87, 108, 0.3),
    0 0 40px rgba(245, 87, 108, 0.1);
}

.btn-submit:not(:disabled) .btn-content:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 8px 35px rgba(245, 87, 108, 0.45),
    0 0 60px rgba(245, 87, 108, 0.2);
}

.btn-submit:not(:disabled) .btn-content:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg, transparent, rgba(255,255,255,0.2), transparent
  );
  transform: translateX(-100%);
  transition: none;
}

.btn-submit:not(:disabled) .btn-content:hover .btn-shimmer {
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.btn-text { position: relative; z-index: 1; }

.btn-submit:disabled .btn-content {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ============================================
   10. 消息提示
   ============================================ */
.message {
  margin-top: 20px; padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600; font-size: 0.95em;
  display: none;
  animation: msgSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes msgSlide {
  0%   { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.message.success {
  background: rgba(40, 167, 69, 0.12);
  border: 1px solid rgba(40, 167, 69, 0.25);
  color: #7ddb86;
}

.message.error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #f08a8a;
}

/* ============================================
   11. Toast 通知
   ============================================ */
.toast-container {
  position: fixed; top: 24px; right: 24px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  background: rgba(30, 20, 40, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.4s ease-in 4.5s forwards;
}

.toast.success { border-color: rgba(40, 167, 69, 0.3); }
.toast.error { border-color: rgba(220, 53, 69, 0.3); }

.toast-icon { font-size: 1.3em; }

.toast-text {
  color: var(--text-primary);
  font-size: 0.95em; font-weight: 500;
}

@keyframes toastIn {
  0%   { opacity: 0; transform: translateX(100%) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  0%   { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(50%) scale(0.9); }
}

/* ============================================
   12. 底部链接
   ============================================ */
.footer-links {
  text-align: center; margin-top: 24px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9em; font-weight: 500;
  transition: all var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
}

.footer-link:hover {
  color: var(--accent-4);
  background: rgba(245, 87, 108, 0.06);
}

/* ============================================
   13. 管理员样式
   ============================================ */
.admin-container { padding: 40px; }

.login-card {
  max-width: 420px; margin: 0 auto;
  text-align: center;
}

.login-icon {
  font-size: 3em; margin-bottom: 12px;
}

.login-desc {
  color: var(--text-secondary);
  margin-bottom: 24px; font-size: 0.95em;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 18px;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600; font-size: 0.8em;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

td {
  color: var(--text-primary);
  font-size: 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  border-color: rgba(245, 87, 108, 0.2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.stat-card h3 {
  font-size: 0.8em; color: var(--text-muted);
  margin-bottom: 8px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.stat-card .number {
  font-size: 2.2em; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { margin-bottom: 16px; }

.section-title {
  font-size: 1.1em; font-weight: 700;
  color: var(--text-primary);
}

.btn-delete {
  padding: 6px 14px;
  background: rgba(220, 53, 69, 0.15);
  color: #f08a8a;
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85em; font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition-bounce);
}

.btn-delete:hover {
  background: rgba(220, 53, 69, 0.25);
  transform: scale(1.05);
  border-color: rgba(220, 53, 69, 0.4);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.admin-actions {
  display: flex; gap: 16px;
  margin-top: 28px; flex-wrap: wrap;
}

.btn-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95em; font-weight: 600;
  transition: all var(--transition-bounce);
  color: white;
}

.btn-action-primary {
  background: linear-gradient(135deg, #28a745, #218838);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-action-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-action-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-action-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-icon { font-size: 1.1em; }

.hidden { display: none; }

/* ============================================
   14. 入场动画
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 0.8s ease-out forwards;
}

.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ============================================
   15. 响应式
   ============================================ */
@media (max-width: 768px) {
  body { padding: 16px; }
  .container { padding: 28px; border-radius: var(--radius-lg); }
  .admin-container { padding: 28px; }
  .hero-title .title-line { font-size: 2.2em; }
  .hero-title .title-line.accent { font-size: 2.5em; }
  .live-stats { gap: 12px; padding: 12px 16px; }
  .stat-value { font-size: 1.2em; }
  .date-grid { gap: 8px; }
  .date-btn { padding: 12px 4px; }
  .date-btn .date-day { font-size: 0.95em; }
  .date-btn .date-dow { font-size: 0.55em; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .runner-near { display: none; }
  .runner-far { width: 35px; height: 35px; }
  .runner-mid { width: 50px; height: 50px; }
  .stat-divider { height: 28px; }
  .admin-actions { flex-direction: column; }
  .btn-action { justify-content: center; }
  th, td { padding: 10px 12px; font-size: 0.8em; }
}

@media (max-width: 480px) {
  .container { padding: 20px; border-radius: 20px; }
  .hero-title .title-line { font-size: 1.8em; }
  .hero-title .title-line.accent { font-size: 2em; }
  .date-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .date-btn { padding: 10px 4px; }
  .date-btn .date-day { font-size: 0.85em; }
  .live-stats { flex-wrap: wrap; gap: 8px; }
  .stat-divider { display: none; }
  .stat-item { flex: 1; justify-content: center; min-width: 80px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .runner-far, .runner-mid { display: none; }
  .toast-container { left: 16px; right: 16px; top: 16px; }
}
