/* 跑步历程页样式 · EP-202611-05 · v=20261128g */
/* 与首页同构：页面骨架由 style.css / style_new.css / user.css 提供，本文件只补跑步专属件 */
.auth-state { color: var(--text-muted, #94a3b8); font-size: 12px; margin-right: 8px; white-space: nowrap; }

/* 登录门禁 */
.gate {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .92); z-index: 1003; padding: 20px;
}
.gate[hidden] { display: none; }
.gate-card {
  max-width: 420px; width: 100%; text-align: center; padding: 36px 28px;
  background: #1e293b; border: 1px solid #334155; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45); color: #f1f5f9;
}
.gate-icon { font-size: 40px; margin-bottom: 12px; }
.gate-card h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.gate-card p { color: #cbd5e1; font-size: 14px; line-height: 1.7; }
.gate-back { display: block; margin-top: 16px; color: #93c5fd; font-size: 13px; }
[data-theme="light"] .gate { background: rgba(241, 245, 249, .94); }
[data-theme="light"] .gate-card { background: #fff; border-color: #e2e8f0; color: #1e293b; }
[data-theme="light"] .gate-card p { color: #475569; }

/* 同意弹窗 / 登录弹窗 */
.consent-modal {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 23, .72); z-index: 100000; padding: 20px;
}
.consent-modal[hidden] { display: none; }
.consent-card {
  max-width: 520px; width: 100%; padding: 28px;
  background: #1e293b; border: 1px solid #334155; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); color: #f1f5f9;
}
[data-theme="light"] .consent-card { background: #fff; border-color: #e2e8f0; color: #1e293b; }
.consent-card h2 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.consent-card p, .consent-card li { font-size: 13px; line-height: 1.7; color: #cbd5e1; }
[data-theme="light"] .consent-card p,
[data-theme="light"] .consent-card li { color: #475569; }
.consent-card ul { padding-left: 20px; margin: 12px 0 20px; }
.consent-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.consent-card input[type=email], .consent-card input[type=password] {
  width: 100%; padding: 10px 12px; margin-bottom: 10px; box-sizing: border-box;
  background: #0f172a; color: #f1f5f9;
  border: 1px solid #334155; border-radius: 8px; font-size: 14px;
}
[data-theme="light"] .consent-card input[type=email],
[data-theme="light"] .consent-card input[type=password] {
  background: #f8fafc; color: #1e293b; border-color: #cbd5e1;
}
.login-error { color: #ef4444; font-size: 12px; min-height: 16px; }
.up-btn {
  border: none; border-radius: 8px; padding: 9px 18px; cursor: pointer;
  background: #2563eb; color: #fff; font-size: 14px;
}
.up-btn:hover { background: #1d4ed8; }
.up-btn.ghost { background: transparent; border: 1px solid #475569; color: inherit; }
.up-btn.ghost:hover { background: rgba(148,163,184,.15); }

/* 左侧跑步记录面板（复用首页 event-panel 外壳） */
.event-panel .run-item h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.event-panel .run-item p { margin: 0; font-size: 11.5px; color: var(--text-muted, #64748b); line-height: 1.4; }
.event-panel .run-empty { padding: 18px 12px; font-size: 12px; color: var(--text-muted, #64748b); text-align: center; line-height: 1.7; }
.event-panel .event-info { min-width: 0; }

/* 详情弹窗内容 */
#modalBody .run-detail-row,
.stats-year-list .run-detail-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  font-size: 13px; border-bottom: 1px solid var(--border, #334155);
}
#modalBody .run-detail-row span,
.stats-year-list .run-detail-row span { color: var(--text-muted, #64748b); }
#modalBody .run-detail-row b,
.stats-year-list .run-detail-row b { font-weight: 600; text-align: right; }
.modal-location { font-size: 11.5px; color: var(--text-muted, #64748b); line-height: 1.6; }

/* 统计面板 */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  padding: 14px 10px; text-align: center; border-radius: 10px;
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.18);
}
.stat-number { font-size: 22px; font-weight: 700; color: var(--primary, #2563eb); line-height: 1.2; }
.stat-label { font-size: 11.5px; color: var(--text-muted, #64748b); margin-top: 4px; }
.stats-year-list { max-height: 45vh; overflow-y: auto; }

/* 底部按钮（首页底栏结构 + 跑步专属动作） */
.withdraw-btn {
  padding: 3px 9px; font-size: 11px; cursor: pointer; color: #f87171;
  background: transparent; border: 1px solid #7f1d1d; border-radius: 5px;
}
.withdraw-btn:hover { background: #7f1d1d; color: #fff; }
.export-btn {
  padding: 3px 9px; font-size: 11px; cursor: pointer; color: var(--text-secondary, #64748b);
  background: transparent; border: 1px solid var(--border, #334155); border-radius: 5px;
}
.export-btn:hover { border-color: var(--primary, #2563eb); color: var(--text-primary, #1e293b); }

/* 窄屏适配 */
@media (max-width: 640px) {
  .auth-state { display: none; }
  .stats-grid { gap: 8px; }
  .stat-number { font-size: 18px; }
  .event-panel .run-item { padding: 9px; }
  .consent-card { padding: 20px; }
}
