/* ============================================
   摇跑活力指数排行榜 - 全局样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #FF7A00;
  --primary-dark: #E06600;
  --primary-light: #FF9A33;
  --primary-glow: rgba(255, 122, 0, 0.25);
  --secondary: #1E88E5;
  --secondary-light: #42A5F5;
  --accent: #1A936F;
  --accent-light: #23B88A;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
  --bg-body: #F5F7FA;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF8F5;
  --bg-input: #F0F2F5;
  --bg-modal: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --text-primary: #1A202C;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --danger: #EF4444;
  --success: #22C55E;
  --warning: #F59E0B;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --transition: 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo i {
  font-size: 24px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.06);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
}

.nav-item i { font-size: 15px; }

.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  background: rgba(255,122,0,0.08);
  border: 1px solid rgba(255,122,0,0.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-toggle:hover {
  background: rgba(255,122,0,0.15);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: var(--text-primary);
  padding: 8px;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 420px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text-primary);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-tab:hover { color: var(--text-secondary); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder { color: var(--text-muted); }

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input { flex: 1; }

.btn-code {
  padding: 10px 16px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-code:hover { background: var(--secondary-light); }
.btn-code:disabled { opacity: 0.5; cursor: not-allowed; }

.checkbox-group { flex-direction: row; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-primary {
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #07C160;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-wechat:hover { background: #06AD56; }

/* --- Main Content --- */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 40px;
  min-height: calc(100vh - 200px);
}

.page { display: none; }
.page.active { display: block; }

/* --- Section Title --- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Leaderboard Hero Banner --- */
.lb-hero {
  text-align: center;
  padding: 48px 24px 36px;
  background: linear-gradient(135deg, rgba(255,122,0,0.08) 0%, rgba(30,136,229,0.06) 50%, rgba(26,147,111,0.05) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.lb-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,122,0,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(30,136,229,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.lb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.lb-hero-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.4;
}

.lb-hero-slogan {
  font-size: 18px;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.lb-hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* --- Quick Entry Buttons --- */
.lb-quick-entries {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lb-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.lb-quick-btn:hover {
  border-color: var(--primary);
  background: rgba(255,122,0,0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.lb-quick-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
}

.lb-quick-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.trust-bar i {
  font-size: 11px;
}

.trust-sep {
  color: var(--border-light);
  margin: 0 4px;
}

/* --- Tab System --- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

/* --- RTL Support (Arabic) --- */
html[dir="rtl"] .lb-hero-title,
html[dir="rtl"] .lb-hero-slogan,
html[dir="rtl"] .lb-hero-subtitle {
  text-align: center;
}

html[dir="rtl"] .trust-bar {
  direction: rtl;
}

html[dir="rtl"] .footer-inner {
  direction: rtl;
}

html[dir="rtl"] .footer-contact {
  direction: ltr;
  text-align: right;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* --- Group Selector --- */
.group-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.group-selector label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.group-selector select {
  padding: 8px 32px 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892A4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.group-selector select:focus {
  border-color: var(--primary);
}

/* --- Leaderboard Table --- */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.leaderboard-table thead {
  background: rgba(255,122,0,0.06);
}

.leaderboard-table th {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.leaderboard-table tbody tr:hover {
  background: rgba(255,122,0,0.04);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a1a; box-shadow: 0 0 12px rgba(255,215,0,0.4); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1a1a1a; box-shadow: 0 0 12px rgba(192,192,192,0.3); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #B06A28); color: #fff; box-shadow: 0 0 12px rgba(205,127,50,0.3); }
.rank-default { background: var(--bg-input); color: var(--text-secondary); }

/* User cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.user-name { font-weight: 500; }
.user-city { font-size: 12px; color: var(--text-muted); }

/* Value cell */
.value-cell {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

/* Trend */
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-same { color: var(--text-muted); }

/* Group ranking specific */
.brand-logo, .city-icon, .country-flag {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-logo { background: rgba(255,122,0,0.15); }
.city-icon { background: rgba(26,147,111,0.15); }
.country-flag { background: rgba(30,136,229,0.15); }

.group-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-name { font-weight: 600; }
.group-sub { font-size: 12px; color: var(--text-muted); }

.score-bar {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

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

/* --- Profile Page --- */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px var(--primary-glow);
  overflow: visible;
}

.avatar-actions {
  position: absolute;
  bottom: -4px;
  right: -4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-avatar-lg:hover .avatar-actions {
  opacity: 1;
}

.avatar-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
}

.avatar-action-btn:hover {
  transform: scale(1.15);
  background: var(--primary-dark);
}

.avatar-action-btn:active {
  transform: scale(0.95);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-group {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,122,0,0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.profile-info-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.profile-info-item .label { color: var(--text-secondary); }
.profile-info-item .value { font-weight: 500; }

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i { color: var(--primary); }

/* Edit form */
.edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.edit-form .form-group.full-width {
  grid-column: 1 / -1;
}

.btn-save {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  justify-self: start;
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(255,122,0,0.05);
}

.upload-area i {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-area p {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-area .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* --- News Page --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.news-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.3);
}

.news-card-body {
  padding: 20px;
}

.news-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tag-announcement { background: rgba(255,122,0,0.15); color: var(--primary); }
.tag-sports { background: rgba(26,147,111,0.15); color: var(--accent-light); }
.tag-ranking { background: rgba(255,215,0,0.15); color: var(--gold); }
.tag-event { background: rgba(30,136,229,0.15); color: var(--secondary-light); }

.news-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- About Page --- */
.about-hero {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(255,122,0,0.08), rgba(30,136,229,0.06), rgba(26,147,111,0.05));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.about-hero h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-section {
  margin-bottom: 32px;
}

.about-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section-title i {
  color: var(--primary);
  font-size: 22px;
}

.about-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-content p { margin-bottom: 12px; }
.about-content p:last-child { margin-bottom: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.team-member {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 12px;
}

.team-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--text-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
}

.contact-item i {
  font-size: 20px;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,122,0,0.1);
  border-radius: var(--radius-sm);
}

.contact-item .info { font-size: 14px; }
.contact-item .info .label { font-size: 12px; color: var(--text-muted); }

.coop-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.coop-card {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.coop-card:hover {
  border-color: var(--primary);
  background: rgba(255,122,0,0.05);
}

.coop-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.coop-card h4 { font-size: 16px; margin-bottom: 8px; }
.coop-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* --- Footer --- */
.footer {
  background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
  border-top: 1px solid var(--border);
  padding: 40px 24px 0;
  margin-top: 40px;
  color: #E2E8F0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 320px;
}

.footer-slogan {
  font-size: 14px;
  color: #94A3B8;
  margin: 6px 0 8px;
  line-height: 1.6;
}

.footer-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-features {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-feat-sep {
  margin: 0 6px;
  color: #64748B;
}

.footer-contact {
  font-size: 13px;
  color: #64748B;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #94A3B8;
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748B;
}

/* --- Share & Data Bar --- */
.share-data-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}

.share-btn.wechat:hover { background: #07C160; border-color: #07C160; }
.share-btn.tiktok:hover { background: #000; border-color: #000; }
.share-btn.youtube:hover { background: #FF0000; border-color: #FF0000; }

.data-update-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.data-update-note i {
  color: var(--success);
  font-size: 11px;
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--secondary-light); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p { font-size: 14px; }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.page-btn.active { background: var(--primary); color: #fff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   Event Page - 公益大赛
   ============================================ */
.event-hero {
  background: linear-gradient(135deg, rgba(255,122,0,0.08) 0%, rgba(30,136,229,0.06) 50%, rgba(26,147,111,0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.event-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,122,0,0.08) 0%, transparent 50%);
  animation: eventGlow 6s ease-in-out infinite;
}
@keyframes eventGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}
.event-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: #000;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.event-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
}
.event-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}
.event-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.event-stat {
  text-align: center;
}
.event-stat-value {
  font-size: 36px;
  margin-bottom: 4px;
}
.event-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.event-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.event-info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.event-info-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.event-info-card h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.event-info-card ul {
  list-style: none;
  padding: 0;
}
.event-info-card li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(30,42,69,0.5);
}
.event-info-card li:last-child {
  border-bottom: none;
}

.event-section {
  margin-bottom: 40px;
}
.event-section-title {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-section-title i {
  color: var(--primary);
}

.event-timeline {
  position: relative;
  padding-left: 32px;
}
.event-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.event-timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.event-timeline-item:last-child {
  margin-bottom: 0;
}
.event-timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-body);
}
.event-timeline-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.event-timeline-title {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.event-timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.event-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.event-sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.event-sponsor-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.event-sponsor-badge {
  display: inline-block;
  color: #000;
  padding: 4px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.event-sponsor-card h4 {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.event-sponsor-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.event-sponsor-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}
.event-sponsor-card li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.event-sponsor-card li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.event-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.event-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(30,136,229,0.3);
}

.event-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.event-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.event-step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.event-step-content h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.event-step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Featured news card */
.news-card-featured {
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px rgba(255,122,0,0.15);
}
.news-card-featured .news-card-img {
  background: linear-gradient(135deg, var(--primary), #FF8C5A) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .event-hero { padding: 32px 20px; }
  .event-hero-title { font-size: 24px; }
  .event-hero-stats { gap: 20px; }
  .event-stat-value { font-size: 28px; }
  .event-info-grid { grid-template-columns: 1fr; }
  .event-sponsor-grid { grid-template-columns: 1fr; }
  .event-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav.open { display: flex; }

  .nav-item {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .menu-toggle { display: block; }

  .main { padding: 80px 16px 32px; }

  .section-title { font-size: 22px; }
  .lb-hero { padding: 32px 16px 24px; }
  .lb-hero-title { font-size: 22px; }
  .lb-hero-slogan { font-size: 15px; }
  .lb-hero-subtitle { font-size: 12px; }
  .lb-quick-btn { padding: 10px 16px; font-size: 13px; }
  .trust-bar { font-size: 11px; gap: 4px; }
  .trust-sep { display: none; }

  .tabs { gap: 2px; }
  .tab-btn { padding: 8px 14px; font-size: 13px; }

  .leaderboard-table th,
  .leaderboard-table td { padding: 10px 12px; font-size: 13px; }

  .edit-form { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }

  .profile-stats { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; text-align: center; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 4px; }
}

@media (max-width: 480px) {
  .logo span { font-size: 16px; }
  .btn-login span { display: none; }
  .modal { padding: 24px; }
  .group-selector { flex-direction: column; align-items: flex-start; }
}

/* --- My Rank Banner --- */
.my-rank-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.my-rank-banner .rank-label {
  font-weight: 600;
  color: var(--primary);
  margin-right: 4px;
}
.my-rank-banner .rank-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.my-rank-banner .rank-num {
  font-weight: 700;
  color: #f59e0b;
  font-size: 16px;
}
.my-rank-banner .rank-region {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===== Get RunOrb CTA Banner ===== */
.get-runorb-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,122,0,0.12) 0%, rgba(255,122,0,0.04) 100%);
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease;
}
.get-runorb-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.get-runorb-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.get-runorb-text strong {
  color: var(--text-primary);
  font-size: 16px;
}
.get-runorb-text span {
  color: var(--text-secondary);
  font-size: 13px;
}
.get-runorb-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}
.get-runorb-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,122,0,0.3);
}

/* ============================================
   Videos Page - 摇跑视频
   ============================================ */

/* --- Videos Hero --- */
.videos-hero {
  text-align: center;
  padding: 40px 24px 32px;
  background: linear-gradient(135deg, rgba(255,122,0,0.08) 0%, rgba(30,136,229,0.06) 50%, rgba(26,147,111,0.05) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.videos-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,122,0,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(30,136,229,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.videos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.videos-hero-title {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
}
.videos-hero-slogan {
  font-size: 16px;
  color: var(--primary-light);
  font-weight: 600;
  position: relative;
}

/* --- Upload CTA --- */
.videos-upload-cta {
  margin-bottom: 24px;
}
.videos-upload-cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(255,122,0,0.12) 0%, rgba(255,122,0,0.04) 100%);
  border: 1px solid rgba(255,122,0,0.25);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.5s ease;
}
.videos-upload-cta-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.videos-upload-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.videos-upload-cta-text strong {
  color: var(--text-primary);
  font-size: 16px;
}
.videos-upload-cta-text span {
  color: var(--text-secondary);
  font-size: 13px;
}
.videos-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
  box-shadow: 0 2px 12px var(--primary-glow);
}
.videos-upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* --- Login Prompt --- */
.videos-login-prompt {
  margin-bottom: 24px;
}
.videos-login-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.videos-login-prompt i {
  font-size: 28px;
  color: var(--text-muted);
}
.videos-login-prompt p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Video Grid (Card Layout) --- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.4s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* Video thumbnail area */
.video-card-thumb {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  overflow: hidden;
  border-radius: 8px;
}
.video-card-thumb video {
  width: 100%;
  display: block;
  background: #1e2a3a;
  border-radius: 8px;
}
.video-card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255,122,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s;
  pointer-events: none;
}
.video-card:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
}
.video-card-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Video card body */
.video-card-body {
  padding: 16px;
}
.video-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.video-card-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.video-card-avatar:hover {
  transform: scale(1.1);
}
.video-card-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.video-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.video-card-meta i {
  margin-right: 3px;
}

/* --- Video Badge on Avatar (Leaderboard) --- */
.user-avatar-wrapper {
  position: relative;
  display: inline-flex;
}
.user-video-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--primary);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 1;
}
.user-video-badge:hover {
  transform: scale(1.3);
}

/* --- Video Upload Modal --- */
.modal-lg {
  width: 560px;
}
.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.video-upload-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.video-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-dropzone:hover,
.video-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(255,122,0,0.05);
}
.video-dropzone-content i {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.video-dropzone-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.video-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.video-preview-container {
  width: 100%;
  position: relative;
}
.video-preview-container video {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius-sm);
  background: #1e2a3a;
}
.video-remove-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
}
.video-remove-btn:hover {
  background: var(--danger);
}
.video-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.video-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}
.video-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 0.3s;
  width: 0%;
}
.video-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  min-width: 36px;
  text-align: right;
}
.btn-primary-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Video Player Modal --- */
.modal-video {
  width: 680px;
  max-width: 95vw;
  padding: 0;
  overflow: hidden;
}
.video-player-wrapper {
  width: 100%;
  background: #1e2a3a;
}
.video-player-wrapper video {
  width: 100%;
  max-height: 70vh;
  display: block;
}
.video-player-info {
  padding: 20px 24px;
}
.video-player-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.video-player-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.video-player-meta {
  display: flex;
  flex-direction: column;
}
.video-player-meta strong {
  font-size: 14px;
  color: var(--text-primary);
}
.video-player-meta span {
  font-size: 12px;
  color: var(--text-muted);
}
.video-player-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.video-player-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- User Videos Modal --- */
.modal-user-videos {
  width: 600px;
  max-width: 95vw;
}
.user-videos-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.user-videos-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-videos-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.user-videos-count {
  font-size: 13px;
  color: var(--text-muted);
}
.user-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}
.user-video-thumb {
  position: relative;
  padding-top: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.user-video-thumb:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.user-video-thumb video,
.user-video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.user-video-thumb .video-card-play {
  width: 40px; height: 40px;
  font-size: 16px;
}

/* --- Videos Empty & Load More --- */
.videos-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.videos-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.videos-empty p {
  font-size: 14px;
}
.videos-load-more {
  text-align: center;
  padding: 20px;
}
.videos-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.videos-load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,122,0,0.05);
}

/* --- Videos Responsive --- */
@media (max-width: 768px) {
  .videos-hero { padding: 28px 16px 24px; }
  .videos-hero-title { font-size: 22px; }
  .videos-hero-slogan { font-size: 14px; }
  .videos-grid { grid-template-columns: 1fr; }
  .videos-upload-cta-inner { flex-direction: column; text-align: center; }
  .modal-lg { width: 95vw; }
  .modal-video { width: 95vw; }
  .modal-user-videos { width: 95vw; }
  .user-videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .get-runorb-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .get-runorb-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Phase 1 Optimizations
   ============================================ */

/* --- Accessibility Mode --- */
body.a11y-mode {
  font-size: 18px !important;
  background: #F5F5F5 !important;
}
body.a11y-mode .lb-hero,
body.a11y-mode .event-hero,
body.a11y-mode .about-hero,
body.a11y-mode .get-runorb-banner {
  background: #F5F5F5 !important;
  border: 1px solid #E0E0E0 !important;
}
body.a11y-mode .lb-hero::before,
body.a11y-mode .event-hero::before { display: none; }
body.a11y-mode .leaderboard-card,
body.a11y-mode .card,
body.a11y-mode .stat-card,
body.a11y-mode .news-card,
body.a11y-mode .about-content {
  background: #FFFFFF !important;
  border: 1px solid #E0E0E0 !important;
  box-shadow: none !important;
}
body.a11y-mode .section-title { font-size: 24px !important; }
body.a11y-mode .leaderboard-table th,
body.a11y-mode .leaderboard-table td { font-size: 16px !important; padding: 16px !important; }
body.a11y-mode .value-cell { font-size: 18px !important; }

.a11y-toggle {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.a11y-toggle:hover { border-color: var(--primary); color: var(--primary); }
.a11y-toggle.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Like & Share Buttons --- */
.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }
.action-btn:active { transform: scale(0.95); }
.action-btn.liked { color: #EF4444; border-color: #EF4444; background: rgba(239,68,68,0.08); }
.action-btn.liked i { animation: likePopIn 0.3s ease; }

@keyframes likePopIn {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.action-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Load More --- */
.load-more-container {
  text-align: center;
  padding: 20px;
}
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); }
.load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.load-more-btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.load-more-btn.loading .spinner { display: block; }
.load-more-btn.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Data Sync Banner --- */
.sync-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(30,136,229,0.06);
  border: 1px solid rgba(30,136,229,0.15);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333333;
}
.sync-banner.sync-error {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.2);
  color: #EF4444;
}
.sync-banner i { font-size: 14px; }

/* --- Login Prompt Modal --- */
.login-prompt {
  text-align: center;
  padding: 32px 24px;
}
.login-prompt h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.login-prompt p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.login-prompt .login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-prompt .btn-wechat,
.login-prompt .btn-primary {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: 16px;
}

/* --- Share Modal --- */
.share-modal-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  color: var(--text-secondary);
}
.share-option:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,122,0,0.04); }
.share-option i { font-size: 24px; }
.share-option.wechat i { color: #07C160; }
.share-option.weibo i { color: #E6162D; }
.share-option.facebook i { color: #1877F2; }
.share-option.copy i { color: var(--secondary); }

/* --- Region display --- */
.region-cell {
  font-size: 13px;
  color: var(--text-secondary);
}
.update-time-cell {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}


/* ============================================
   Phase 2: Visual & Responsive Optimizations
   ============================================ */

/* Base font 16px */
body { font-size: 16px !important; line-height: 1.5 !important; }

/* Title hierarchy */
h1, .lb-hero-title, .videos-hero-title, .about-hero-title { font-size: 20px !important; }
h2, .section-title { font-size: 18px !important; }

/* Card design */
.leaderboard-card, .card, .stat-card {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: none !important;
}

/* Button consistency */
button, .btn-primary, .btn-login, .tab-btn, .share-btn {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}
button:hover, .tab-btn:hover {
  filter: brightness(0.95);
}

/* Page whitespace >= 20% */
.page { padding: 24px 16px !important; max-width: 1200px; margin: 0 auto; }

/* Mobile responsive: <= 768px */
@media (max-width: 768px) {
  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5),
  .leaderboard-table th:nth-child(6),
  .leaderboard-table td:nth-child(6),
  .leaderboard-table th:nth-child(7),
  .leaderboard-table td:nth-child(7) {
    display: none;
  }
  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    display: none;
  }
  .lb-quick-entries { flex-direction: column; }
  .share-data-bar { flex-direction: column; gap: 12px; }
  .group-selector { flex-direction: column; align-items: stretch; }
  .group-selector select { width: 100%; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs .tab-btn { white-space: nowrap; font-size: 14px; padding: 8px 16px; }
  .action-cell { gap: 10px; }
  .action-btn { width: 40px; height: 40px; }
  .my-rank-banner { flex-direction: column; text-align: center; }
}

/* Tablet: > 768px */
@media (min-width: 769px) {
  .leaderboard-table th, .leaderboard-table td { padding: 12px 16px !important; }
}

/* Image lazy loading */
img[data-src] { opacity: 0; transition: opacity 0.3s; }
img.loaded { opacity: 1; }

/* Placeholder for failed images */
img::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: #F5F5F5;
  border-radius: 8px;
}

/* ============================================
   FAQ & About RunOrb Styles
   ============================================ */
.faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child { border-bottom: none; }
.faq-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.faq-item.hidden { display: none; }

/* ============================================
   Privacy Toggle Switch
   ============================================ */
.privacy-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.privacy-toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.privacy-toggle:checked {
  background: var(--primary);
}
.privacy-toggle:checked::before {
  left: 22px;
}

/* ============================================
   Trend Chart
   ============================================ */
#trendChart {
  display: block;
}

/* ============================================
   Badge Styles
   ============================================ */
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 80px;
  text-align: center;
}
.badge-item.earned {
  border-color: var(--primary);
  background: rgba(255,122,0,0.04);
}
.badge-item .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-input);
  color: var(--text-muted);
}
.badge-item.earned .badge-icon {
  background: var(--primary);
  color: #fff;
}
.badge-item .badge-name {
  font-size: 12px;
  color: var(--text-secondary);
}
.badge-item.earned .badge-name {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   Image Optimization
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}

/* ============================================
   Sync Troubleshoot
   ============================================ */
.sync-step {
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.sync-step-icon { font-size: 18px; }
.sync-step.pass { border-color: var(--success); background: rgba(76,175,80,0.04); }
.sync-step.fail { border-color: var(--danger); background: rgba(231,76,60,0.04); }

/* ============================================
   Guide Steps
   ============================================ */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.guide-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-step-content h4 {
  margin: 0 0 4px;
  font-size: 16px;
}
.guide-step-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   User Reviews
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.review-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.review-name {
  font-size: 15px;
  font-weight: 600;
}
.review-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.review-stars {
  margin-left: auto;
  color: #FFB300;
  font-size: 14px;
  letter-spacing: 1px;
}
.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

/* ============================================
   Mobile Expand Button
   ============================================ */
.expand-detail-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.expand-detail-btn:hover { text-decoration: underline; }
.row-extra-detail {
  display: none;
}
.row-extra-detail.show {
  display: table-row;
}

@media (max-width: 768px) {
  .expand-detail-btn { display: inline; }
  .hide-mobile { display: none !important; }
}

/* ============================================
   Tablet Two-Column Layout
   ============================================ */
@media (min-width: 1024px) {
  .leaderboard-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
  }
  .leaderboard-sidebar {
    position: sticky;
    top: 80px;
  }
}

/* ============================================
   Voice Feedback
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   404 Page
   ============================================ */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 {
  font-size: 120px;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}
.page-404 p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 16px 0 24px;
}

/* ============================================
   Image Placeholder
   ============================================ */
.img-placeholder {
  background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 200%;
  animation: shimmer 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 14px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
img {
  max-width: 100%;
  height: auto;
}
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}
img.loaded {
  opacity: 1;
}

/* Sync error banner */
.sync-banner.error {
  background: rgba(231,76,60,0.9) !important;
}
