/* ==========================================
   足球赛前 AI 深度分析 — 激情专业风格
   ========================================== */

/* ========== 字体引入 ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap');

/* ========== 变量 ========== */
:root {
  --pitch-green: #0d5c2e;
  --pitch-green-light: #22c55e;
  --pitch-green-dark: #083d1e;
  --flame: #ff3d00;
  --flame-light: #ff6d30;
  --gold: #ffc107;
  --gold-light: #ffd54f;
  --bg-primary: #0a1208;
  --bg-secondary: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  --surface: rgba(240, 244, 248, 0.95);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.12);
  --border-light: rgba(0, 0, 0, 0.08);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.2);
  --shadow-glow-orange: 0 0 20px rgba(255, 61, 0, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a1208;
  cursor: url('data:image/svg+xml,%253Csvg%2520xmlns%253D%2522http%253A%252F%252Fwww.w3.org%252F2000%252Fsvg%2522%2520width%253D%252224%2522%2520height%253D%252224%2522%253E%253Ccircle%2520cx%253D%252212%2522%2520cy%253D%252212%2522%2520r%253D%25228%2522%2520fill%253D%2522rgba(0,0,0,0.5)%2522%252F%253E%253Ccircle%2520cx%253D%252212%2522%2520cy%253D%252212%2522%2520r%253D%25226%2522%2520fill%253D%2522%2522%2520stroke%253D%2522%2523fff%2522%2520stroke-width%253D%25221.5%2522%252F%253E%253C%252Fsvg%253E') 12 12, auto;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* 世界杯海报背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('bg.jpg') center center / cover no-repeat fixed;
  filter: brightness(0.6) saturate(1.3) contrast(1.1);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.15) 100%);
}

/* ========== 球场装饰元素（固定定位） ========== */

/* 足球 — 右下角 */
.ball-deco {
  position: fixed;
  bottom: -20px;
  right: -20px;
  width: 280px;
  height: 280px;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

/* 球门剪影 — 左下 */
.goal-deco {
  position: fixed;
  bottom: 0;
  left: -30px;
  width: 200px;
  height: 180px;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}

/* 速度线 — 右上区域 */
.speed-lines {
  position: fixed;
  top: 80px;
  right: 40px;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}

/* 中场圆环（中圈）装饰 */
.center-circle-deco {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border: 2px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.center-circle-deco::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

/* 动感粒子 — 随机散布 */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 3px; height: 3px; background: var(--gold); top: 15%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 2px; height: 2px; background: var(--pitch-green-light); top: 25%; left: 85%; animation-delay: 1s; }
.particle:nth-child(3) { width: 4px; height: 4px; background: var(--flame-light); top: 60%; left: 5%; animation-delay: 2s; }
.particle:nth-child(4) { width: 2px; height: 2px; background: var(--gold); top: 75%; left: 80%; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 3px; height: 3px; background: white; top: 40%; left: 92%; animation-delay: 1.5s; }
.particle:nth-child(6) { width: 2px; height: 2px; background: var(--pitch-green-light); top: 85%; left: 20%; animation-delay: 3s; }
.particle:nth-child(7) { width: 3px; height: 3px; background: var(--flame-light); top: 10%; left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { width: 2px; height: 2px; background: var(--gold); top: 50%; left: 15%; animation-delay: 4s; }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  25% { opacity: 0.6; }
  50% { opacity: 0.8; transform: translateY(-30px) scale(1); }
  75% { opacity: 0.3; }
}

/* ========== 容器 ========== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ========== 头部 ========== */
header {
  text-align: center;
  padding: 32px 0 20px;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pitch-green-light), var(--gold), var(--flame-light), transparent);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

.logo .icon { font-size: 42px; filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.4)); }
.logo .football-enhanced { font-size: 44px; display: inline-block; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.5)); }

.logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #4ade80, #facc15, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.subtitle {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}


/* ========== 功能介绍卡片 ========== */
.feature-row {
  display: flex;
  gap: 10px;
  margin: 20px 0 16px;
  overflow-x: auto;
  padding: 2px;
}

.feature-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #22c55e;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}



/* ========== 热门赛事快捷入口 ========== */
.hot-matches-section {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.hot-matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hot-matches-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.hot-matches-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* 今日比赛滚动容器 */
.hot-matches-row {
  display: flex;
  gap: 10px;
  padding: 4px 2px 12px 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.hot-matches-row::-webkit-scrollbar { height: 4px; }
.hot-matches-row::-webkit-scrollbar-track { background: transparent; }
.hot-matches-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.hot-matches-row::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== 分页导航 ========== */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.page-btn {
  padding: 6px 20px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  font-family: inherit;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
  border-color: #22c55e;
  color: #22c55e;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-indicator {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.hot-match-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  min-width: 150px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.hot-match-btn:hover {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.15);
  transform: translateY(-1px);
}

.hot-league { font-size: 10px; color: #64748b; font-weight: 600; padding: 2px 8px; background: #f1f5f9; border-radius: 4px; margin-bottom: 2px; }
.hot-time { font-size: 11px; color: #94a3b8; font-weight: 500; margin-top: 2px; }
.hot-match-teams { display: flex; align-items: center; gap: 6px; }
.hot-loading { font-size: 13px; color: #94a3b8; padding: 8px 0; }
.hot-odds { display: flex; gap: 4px; margin-top: 2px; }
.hot-odds-item { padding: 1px 5px; font-size: 10px; font-weight: 700; background: #f0fdf4; border-radius: 3px; color: #16a34a; }
.hot-home {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}

.hot-vs {
  font-size: 10px;
  font-weight: 800;
  color: #d97706;
}

.hot-away {
  font-size: 13px;
  font-weight: 700;
  color: #ea580c;
}

/* ========== 数据面板 ========== */
.data-bar {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.data-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: #ffffff;
  gap: 2px;
}

.data-item + .data-item {
  border-left: 1px solid #f1f5f9;
}

.data-icon {
  font-size: 18px;
}

.data-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.data-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* ========== 分析历史 ========== */
.history-section {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.history-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.history-count {
  font-size: 12px;
  color: #64748b;
}

.history-list {
  max-height: 320px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.2s;
}

.history-item:last-child { border-bottom: none; }
.history-item:hover { background: #f8fafc; }

.history-icon { font-size: 14px; }
.history-teams { flex: 1; font-size: 13px; font-weight: 600; color: #0f172a; }
.history-cost { font-size: 12px; color: #ef4444; font-weight: 600; }
.history-time { font-size: 11px; color: #94a3b8; }

/* ========== 背景动效增强 ========== */
/* 光晕扫描动画 */
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.center-circle-deco::after {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

/* 粒子数量增加 */
.particle:nth-child(9) { width: 3px; height: 3px; background: #22c55e; top: 30%; left: 50%; animation-delay: 1s; }
.particle:nth-child(10) { width: 2px; height: 2px; background: #facc15; top: 70%; left: 60%; animation-delay: 2.5s; }
.particle:nth-child(11) { width: 4px; height: 4px; background: #ff6d30; top: 45%; left: 30%; animation-delay: 3.5s; }
.particle:nth-child(12) { width: 2px; height: 2px; background: #4ade80; top: 80%; left: 75%; animation-delay: 0.8s; }

/* 页面渐入动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-row, .hot-matches-section, .data-bar, .input-section {
  animation: fadeInUp 0.6s ease both;
}

.hot-matches-section { animation-delay: 0.1s; }
.data-bar { animation-delay: 0.2s; }

/* ========== Auth 头部按钮 ========== */
.header-actions, #vue-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-buttons {
  display: flex;
  gap: 8px;
}

.auth-btn {
  padding: 6px 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.login-btn:hover {
  border-color: #4ade80;
  color: #ffffff;
  background: rgba(34, 197, 94, 0.2);
}

.register-btn {
  background: linear-gradient(135deg, var(--pitch-green), var(--pitch-green-light));
  border-color: transparent;
}

.register-btn:hover {
  box-shadow: 0 0 16px rgba(26, 138, 68, 0.3);
}

.logout-btn {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
  background: rgba(239, 68, 68, 0.15);
}

.logout-btn:hover {
  border-color: #ef4444;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.3);
}

.admin-header-link {
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #4ade80;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.admin-header-link:hover {
  background: rgba(74, 222, 128, 0.15);
}

.header-checkin-btn {
  padding: 4px 10px; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: white;
  border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.header-checkin-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(245,158,11,0.3); }
.header-checkin-btn.checked-in { background: #475569; cursor: default; box-shadow: none; transform: none; }

.invite-code {
  font-size: 11px; color: #60a5fa; cursor: pointer; padding: 2px 6px;
  border: 1px dashed rgba(96,165,250,0.3); border-radius: 4px;
  white-space: nowrap;
}
.invite-code:hover { background: rgba(96,165,250,0.08); }

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.user-email {
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ========== Auth 表单 ========== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--pitch-green-light);
  box-shadow: 0 0 0 3px rgba(26, 138, 68, 0.12);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--flame), var(--flame-light));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  margin-bottom: 12px;
}

.auth-submit-btn:hover {
  box-shadow: 0 4px 20px rgba(255, 61, 0, 0.4);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.auth-switch a {
  color: var(--pitch-green-light);
  text-decoration: none;
  font-weight: 600;
}

.verify-code-row {
  display: flex;
  gap: 8px;
}

.verify-code-row input {
  flex: 1;
}

.resend-code-btn {
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}

.resend-code-btn:hover {
  border-color: var(--pitch-green-light);
  color: var(--pitch-green-light);
}

/* ========== 积分徽章 ========== */
.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.points-icon {
  font-size: 15px;
}

.points-amount {
  font-weight: 800;
  color: var(--gold);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.points-unit {
  color: var(--text-secondary);
  font-size: 12px;
  margin-right: 4px;
}

.header-recharge-btn {
  padding: 4px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--flame), var(--flame-light));
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.header-recharge-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(255, 61, 0, 0.5);
}

/* ========== 输入区 ========== */
.input-section {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.input-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pitch-green-light), var(--gold), var(--flame-light));
}

.teams-input {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.team-input-wrapper {
  flex: 1;
}

.team-input-wrapper label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-input-wrapper input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s;
  outline: none;
  font-family: inherit;
}

.team-input-wrapper input:focus {
  border-color: var(--pitch-green-light);
  box-shadow: 0 0 0 3px rgba(26, 138, 68, 0.15), var(--shadow-glow-green);
}

.team-input-wrapper input::placeholder {
  color: #64748b;
  font-weight: 400;
  font-size: 15px;
}

/* VS 分割线 */
.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 22px;
  flex-shrink: 0;
}

.vs-line {
  width: 1px;
  height: 16px;
  background: var(--border-light);
}

.vs-text {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

/* 比赛日期 */
.match-time-wrapper {
  margin-bottom: 20px;
}

.match-time-wrapper label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-time-wrapper input {
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s;
  color-scheme: dark;
  font-family: inherit;
}

.match-time-wrapper input:focus {
  border-color: var(--pitch-green-light);
  box-shadow: 0 0 0 3px rgba(26, 138, 68, 0.15);
}

.match-time-wrapper input::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* 分析按钮 */
#analyzeBtn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--flame), var(--flame-light));
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

#analyzeBtn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  transition: background-position 0.4s;
}

#analyzeBtn:hover::after {
  background-position: 100% 0;
}

#analyzeBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 61, 0, 0.4);
}

#analyzeBtn:active {
  transform: translateY(0);
}

#analyzeBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-svg-icon {
  flex-shrink: 0;
}

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

/* ========== 加载状态 ========== */
.loading-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.loading-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pitch-green-light), var(--gold), var(--flame-light));
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.spinner-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.spinner-circle {
  width: 56px;
  height: 56px;
  border: 4px solid transparent;
  border-top-color: var(--pitch-green-light);
  border-right-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.8;
}

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

.loading-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f172a;
}

.loading-detail {
  font-size: 16px;
  color: #0f172a;
  font-weight: 600;
}

/* ========== 圆形进度网格（15项） ========== */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  margin-top: 24px;
}

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

.circ-ring {
  width: 48px;
  height: 48px;
}

.circ-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3;
}

.circ-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circ-fill[stroke-dasharray="0, 100"] { stroke: var(--text-muted); }
.circ-fill[stroke-dasharray="100, 100"] { stroke: #4ade80; filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.4)); }

.circ-num {
  fill: #0f172a;
  font-weight: 800;
  font-size: 8px;
}

.circ-label {
  font-size: 10px;
  color: #475569;
  text-align: center;
  line-height: 1.2;
  max-width: 68px;
  font-weight: 500;
}



/* ========== 页面过渡动画 ========== */

/* 结果区域淡入 */


/* 维度卡片逐个弹出 */
.viz-section.dimension-card {
  animation: cardPopIn 0.4s ease both;
}

.dim-text-card {
  animation: cardPopIn 0.4s ease both;
}

/* 卡片按出现顺序延迟 */
.viz-section.dimension-card:nth-child(2) { animation-delay: 0.05s; }
.viz-section.dimension-card:nth-child(3) { animation-delay: 0.10s; }
.viz-section.dimension-card:nth-child(4) { animation-delay: 0.15s; }
.viz-section.dimension-card:nth-child(5) { animation-delay: 0.20s; }
.viz-section.dimension-card:nth-child(6) { animation-delay: 0.25s; }
.viz-section.dimension-card:nth-child(7) { animation-delay: 0.30s; }
.viz-section.dimension-card:nth-child(8) { animation-delay: 0.35s; }
.viz-section.dimension-card:nth-child(9) { animation-delay: 0.40s; }
.viz-section.dimension-card:nth-child(10) { animation-delay: 0.45s; }
.viz-section.dimension-card:nth-child(11) { animation-delay: 0.50s; }
.viz-section.dimension-card:nth-child(12) { animation-delay: 0.55s; }
.viz-section.dimension-card:nth-child(13) { animation-delay: 0.60s; }
.viz-section.dimension-card:nth-child(14) { animation-delay: 0.65s; }
.viz-section.dimension-card:nth-child(15) { animation-delay: 0.70s; }

/* 文字分析卡片延迟 */
.dim-text-card:nth-child(16) { animation-delay: 0.75s; }
.dim-text-card:nth-child(17) { animation-delay: 0.80s; }
.dim-text-card:nth-child(18) { animation-delay: 0.85s; }

@keyframes cardPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 加载到结果的过渡 - 隐藏加载动画 */




/* 结果头部淡入 */
.result-header {
  animation: headerSlideIn 0.6s ease both;
}

@keyframes headerSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 活跃圆环脉冲 */
.circle-item.active-ring::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  animation: ringPulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

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

/* 已完成圆环发光 */
.circle-item.done-ring .circ-fill {
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.6));
}

/* 圆圈内数字加大 */
.circ-num {
  fill: #94a3b8;
  font-weight: 800;
  font-size: 10px;
}

/* 圆圈背景加粗 */
.circ-bg {
  stroke: #e2e8f0;
  stroke-width: 3;
}

/* 圆圈间距 */
.circle-grid {
  gap: 16px;
  padding: 0 8px;
}

@media (max-width: 640px) {
  .circle-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 6px;
  }
  .circ-ring { width: 40px; height: 40px; }
  .circ-label { font-size: 9px; }
}

.step {
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: #64748b;
  transition: all 0.3s;
}

.step-label {
  font-size: 11px;
  transition: color 0.3s;
}

.step-check {
  display: none;
  font-size: 12px;
  color: white;
}

.step.active {
  background: linear-gradient(135deg, rgba(26, 138, 68, 0.15), rgba(255, 193, 7, 0.08));
  border-color: var(--pitch-green-light);
  box-shadow: 0 0 16px rgba(26, 138, 68, 0.2);
}

.step.active .step-num {
  background: #ffffff;
  border-color: #ffffff;
  color: #16a34a;
}

.step.active .step-label {
  color: #ffffff;
  font-weight: 700;
}

.step.done {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
}

.step.done .step-num {
  display: none;
}

.step.done .step-check {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
}

.step.done .step-label {
  color: #ffffff;
}

/* ========== 错误提示 ========== */
.error-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.error-content {
  text-align: center;
}

.error-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.error-content p {
  font-size: 16px;
  color: var(--error);
  margin-bottom: 20px;
  line-height: 1.7;
}

.error-content p strong {
  color: var(--gold);
}

.retry-btn {
  padding: 10px 28px;
  border: 2px solid var(--error);
  border-radius: 10px;
  background: transparent;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.retry-btn:hover {
  background: var(--error);
  color: white;
}

.error-recharge {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--flame), var(--flame-light));
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.3s;
  font-family: inherit;
}

.error-recharge:hover {
  box-shadow: 0 4px 16px rgba(255, 61, 0, 0.4);
}

/* ========== 结果区域 ========== */
.result-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(135deg, #1a8a44, #22c55e);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
  gap: 12px;
}

.result-teams {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 200px;
}

.result-team-wrap {
  flex: 1;
  text-align: center;
}

.result-team {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.home-side .result-team {
  color: #ffffff;
}

.away-side .result-team {
  color: #ffffff;
}

.result-vs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
}

.result-vs-line {
  width: 24px;
  height: 1px;
  background: rgba(255, 193, 7, 0.3);
}

.result-vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
}

.result-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.new-analysis-btn {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.new-analysis-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.result-content {
  padding: 20px 24px 28px;
}

/* ========== 可视化组件 ========== */
.viz-section {
  background: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
}

/* 文字分析卡片 */
.dim-text-card {
  padding: 20px 28px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: #ffffff;
}
.dim-text-card .dim-title {
  margin-bottom: 4px;
}
.dim-text-card .markdown-body h2 {
  display: none;
}
.dim-text-card .dim-title {
  font-size: 15px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #bbf7d0;
}

/* 文字类 viz-card 增加内边距 */
.viz-section.dim-strength:has(.markdown-body),
.viz-section.dim-form:has(.markdown-body),
.viz-section.dim-players:has(.markdown-body),
.viz-section.dim-injuries:has(.markdown-body) {
  padding: 24px 28px;
}

/* markdown 区域最大宽度，防止文字过长 */

.viz-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.viz-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

/* ========== 维度卡片（八维度仪表盘） ========== */
.dimension-card {
  border-left: 3px solid var(--border);
  transition: border-color 0.3s;
}

.dimension-card.dim-strength { border-left-color: var(--pitch-green-light); }
.dimension-card.dim-efficiency { border-left-color: #06b6d4; }
.dimension-card.dim-odds-comparison { border-left-color: #f59e0b; }

/* 赔率对比 */
.odds-comp-table { width: 100%; font-size: 14px; }
.odds-comp-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--border); }
.odds-comp-row.header { font-weight: 700; color: #0f172a; font-size: 12px; }
.odds-comp-label { color: #334155; font-size: 13px; font-weight: 600; }
.odds-comp-val { text-align: center; font-weight: 700; color: #0f172a; font-family: monospace; font-size: 16px; padding: 2px 6px; background: rgba(34,197,94,0.08); border-radius: 4px; }
.odds-comp-note { font-size: 11px; color: #64748b; margin-top: 8px; padding: 8px; background: rgba(0,0,0,0.03); border-radius: 6px; }
.dimension-card.dim-form { border-left-color: var(--gold); }
.dimension-card.dim-prob { border-left-color: var(--flame-light); }
.dimension-card.dim-players { border-left-color: #a78bfa; }
.dimension-card.dim-injuries { border-left-color: var(--error); }
.dimension-card.dim-lineup { border-left-color: #34d399; }
.dimension-card.dim-prediction { border-left-color: var(--gold); }

.dim-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.dim-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.dim-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}

.dim-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
  letter-spacing: 0.5px;
}

.dim-badge.warning {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
}

.dim-badge.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.2);
}

/* 指标条（Elo等） */
.metric-strip {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.metric-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-value {
  font-size: 15px;
  font-weight: 700;
}

.metric-vs {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* 攻防效率网格 */
.efficiency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.ef-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}

.ef-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ef-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ef-bar-wrap {
  flex: 1;
  height: 22px;
  border-radius: 11px;
  background: #e2e8f0;
  overflow: hidden;
}

.ef-bar {
  height: 100%;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  transition: width 0.6s ease;
  min-width: 32px;
}

.ef-bar.home-fill {
  background: linear-gradient(90deg, var(--pitch-green), var(--pitch-green-light));
}

.ef-bar.away-fill {
  background: linear-gradient(90deg, var(--flame-light), var(--flame));
  margin-left: auto;
}

.ef-divider {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
}

.ef-teams {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.net-eff-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #0891b2;
  font-size: 13px;
  font-weight: 600;
}

/* 赛前准备网格 */
.prep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.prep-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}

.prep-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.prep-content {
  flex: 1;
  min-width: 0;
}

.prep-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.prep-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prep-val {
  font-size: 13px;
  font-weight: 600;
}

.prep-vs {
  font-size: 10px;
  color: #64748b;
}

/* 战意徽章 */
.motivation-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}

/* 概率百分比标签 */
.prob-pct {
  font-size: 14px;
  font-weight: 800;
  color: white;
  padding: 0 10px;
  line-height: 36px;
  white-space: nowrap;
}

.prob-pct.draw {
  color: #1a2332;
}

/* 三栏概率标签 */
.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
}

/* 比分展示 */
.score-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== 联赛积分卡片 ========== */
.league-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.league-card {
  flex: 1;
  text-align: center;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.league-team {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.league-pts {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
}

.league-unit {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  margin-left: 2px;
}

.league-rank {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.league-vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
}

/* 射手榜 */
.top-scorers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scorer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
}

.scorer-icon {
  font-size: 16px;
}

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

.scorer-goals {
  font-weight: 700;
  color: var(--gold);
}

.scorer-assist {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
}

.form-detail {
  font-size: 12px;
  color: #64748b;
  padding: 4px 12px;
}

/* 历史交锋 */
.h2h-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.h2h-bar-wrap {
  display: flex;
  height: 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.h2h-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  transition: width 0.6s ease;
  min-width: 30px;
}

.h2h-bar.home-bar { background: linear-gradient(90deg, var(--pitch-green), var(--pitch-green-light)); }
.h2h-bar.draw-bar { background: linear-gradient(90deg, #f59e0b, var(--gold)); color: #1a2332; }
.h2h-bar.away-h2h-bar { background: linear-gradient(90deg, var(--flame-light), var(--flame)); }

.h2h-bar-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.h2h-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.h2h-goals {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.h2h-goal-item {
  text-align: center;
}

.h2h-goal-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.h2h-goal-num {
  font-size: 22px;
  font-weight: 900;
}

/* 进球时间分布 */
.timing-grid {
  display: flex;
  gap: 24px;
}

.timing-col {
  flex: 1;
}

.timing-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.timing-team {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.tm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tm-label {
  font-size: 11px;
  color: #64748b;
  width: 52px;
  flex-shrink: 0;
  text-align: right;
}

.tm-track {
  flex: 1;
  height: 20px;
  border-radius: 10px;
  background: #e2e8f0;
  overflow: hidden;
}

.tm-fill {
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 0.6s ease;
  min-width: 28px;
}

.tm-val {
  font-size: 10px;
  font-weight: 700;
  color: white;
  padding-right: 6px;
}

/* ========== 战术风格标签 ========== */
.tactic-grid {
  display: flex;
  gap: 16px;
}

.tactic-col {
  flex: 1;
}

.tactic-team {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tactic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tactic-tag {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(26, 138, 68, 0.1);
  border: 1px solid rgba(26, 138, 68, 0.2);
  color: var(--text-primary);
}

.tactic-col:last-child .tactic-tag {
  background: rgba(255, 61, 0, 0.08);
  border-color: rgba(255, 61, 0, 0.2);
}

/* ========== 防守深度 ========== */
.defense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.def-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}

.def-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.def-row {
  display: flex;
  gap: 6px;
}

.def-bar-wrap {
  flex: 1;
  height: 20px;
  border-radius: 10px;
  background: #e2e8f0;
  overflow: hidden;
}

.def-bar {
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  min-width: 28px;
}

.def-bar.home-fill { background: linear-gradient(90deg, var(--pitch-green), var(--pitch-green-light)); }
.def-bar.away-fill { background: linear-gradient(90deg, var(--flame-light), var(--flame)); }

/* ========== 主客场战绩 ========== */
.away-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.away-card {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.away-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.away-record {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.away-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.away-concede { color: var(--error); }

.away-vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
}

/* ========== 主帅对比 ========== */
.coach-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coach-col {
  flex: 1;
  text-align: center;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.coach-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.coach-rate {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.coach-vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
  padding: 0 4px;
}

/* ========== 原有的实力对比条 continue ========== */
.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-label {
  font-size: 12px;
  color: #64748b;
  width: 64px;
  flex-shrink: 0;
  font-weight: 500;
}

.compare-track {
  flex: 1;
  height: 30px;
  border-radius: 15px;
  background: #e2e8f0;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-fill {
  display: flex;
  align-items: center;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-fill.home-fill {
  background: linear-gradient(90deg, var(--pitch-green), var(--pitch-green-light));
  justify-content: flex-start;
}

.compare-fill.away-fill {
  background: linear-gradient(90deg, var(--flame-light), var(--flame));
  justify-content: flex-end;
}

.bar-val {
  font-size: 12px;
  font-weight: 700;
  color: white;
  padding: 0 10px;
}

/* 状态卡片 */
.form-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-team {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.form-ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.form-ring {
  width: 76px;
  height: 76px;
}

.ring-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s ease;
}

.ring-text {
  fill: #0f172a;
  font-weight: 800;
  font-size: 7px;
}

.form-info {
  font-size: 12px;
  color: #64748b;
}

/* 胜负概率条 */
.prob-bar-container {
  padding: 4px 0;
}

.prob-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0;
  color: #334155;
}

.prob-track {
  height: 36px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  margin: 6px 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.prob-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.prob-fill.home-fill {
  background: linear-gradient(90deg, var(--pitch-green), var(--pitch-green-light));
}

.prob-fill.draw-fill {
  background: linear-gradient(90deg, #f59e0b, var(--gold));
}

.prob-fill.away-fill {
  background: linear-gradient(90deg, var(--flame-light), var(--flame));
}

/* 球员标签 */
.players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.players-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.players-col-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.home-color { color: #15803d; }
.away-color { color: #ea580c; }

.player-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

.player-tag.injury {
  border-color: var(--error);
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
}

/* 首发阵容 */
.lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lineup-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.lineup-header {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formation-badge {
  font-size: 12px;
  color: var(--gold);
  background: rgba(255, 193, 7, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.lineup-list {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lineup-player {
  font-size: 12px;
  padding: 5px 10px;
  background: #f8fafc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(50% - 2px);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.lineup-player:hover {
  border-color: var(--border-light);
}

.player-num {
  font-size: 10px;
  color: #64748b;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* 比分预测 */
.prediction-card {
  text-align: center;
}

.score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.score-team {
  font-size: 18px;
  font-weight: 800;
}

.score-value {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  background: #ffffff;
  padding: 8px 28px;
  border-radius: var(--radius-md);
  border: 2px solid #f59e0b;
  letter-spacing: 6px;
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.15);
}

.recommendation-box {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 17px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.5px;
}

/* ========== Markdown 渲染（优化排版） ========== */
.markdown-body {
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}

.markdown-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: #15803d;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}

.markdown-body h2:first-child {
  margin-top: 0;
}

.markdown-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 16px 0 8px;
}

.markdown-body p {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #475569;
  font-size: 14px;
}

.markdown-body ul, .markdown-body ol {
  margin: 6px 0 14px;
  padding-left: 20px;
}

.markdown-body li {
  margin-bottom: 5px;
  line-height: 1.7;
  color: #475569;
  font-size: 14px;
}

.markdown-body li::marker {
  color: #22c55e;
}

.markdown-body strong {
  color: #d97706;
  font-weight: 600;
}

.markdown-body hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 20px 0;
}

/* 内联代码 */
.markdown-body p > code {
  background: #f0fdf4;
  color: #15803d;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 13px;
  border: 1px solid #dcfce7;
}

/* 数据卡片样式：表格或关键数据块自动美化 */
.markdown-body p:has(code) {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #22c55e;
}
/* ========== 充值弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-content {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
  border-radius: 6px;
}

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

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 15px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.modal-desc strong {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.recharge-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.recharge-option {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.recharge-option:hover {
  border-color: var(--pitch-green-light);
  background: var(--bg-card-hover);
  box-shadow: 0 0 12px rgba(26, 138, 68, 0.1);
}

.recharge-option.selected {
  border-color: var(--pitch-green-light);
  background: rgba(26, 138, 68, 0.15);
  box-shadow: 0 0 12px rgba(26, 138, 68, 0.15);
}

.recharge-custom {
  margin-bottom: 16px;
}

.recharge-custom label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.recharge-custom input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}

.recharge-custom input:focus {
  border-color: var(--pitch-green-light);
  box-shadow: 0 0 0 3px rgba(26, 138, 68, 0.12);
}

.recharge-confirm-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--pitch-green), var(--pitch-green-light));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.recharge-confirm-btn:hover {
  box-shadow: 0 4px 20px rgba(26, 138, 68, 0.4);
}
.recharge-confirm-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.recharge-badge {
  display: inline-block; padding: 1px 6px; margin-left: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; border-radius: 4px; font-size: 10px; font-weight: 700;
  vertical-align: middle;
}

/* 支付流程 */
.recharge-payment { text-align: center; }
.payment-qr-container { margin: 16px 0; }
.payment-qr-label { font-size: 14px; color: #94a3b8; margin-bottom: 12px; }
.payment-qr-code { display: flex; justify-content: center; align-items: center; min-height: 220px; }
.payment-qr-placeholder { text-align: center; }
.payment-loading { color: #475569; font-size: 14px; }
.payment-info { text-align: left; margin: 16px 0; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.payment-info p { font-size: 13px; color: #94a3b8; margin-bottom: 4px; }
.payment-info span { color: #e2e8f0; font-weight: 600; }
.payment-status { font-size: 15px; font-weight: 700; color: #fbbf24; margin: 12px 0; }
.payment-status.paid { color: #4ade80; }
.recharge-back-btn {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: none; border: 1px solid #2d3a4f; color: #64748b;
  border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.recharge-back-btn:hover { border-color: #475569; color: #94a3b8; }

.recharge-message {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.recharge-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.recharge-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ========== 球队自动补全 ========== */
.autocomplete-wrap {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.autocomplete-dropdown.show { display: block; }

.auto-item {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f1f5f9;
}

.auto-item:last-child { border-bottom: none; }
.auto-item:hover, .auto-item.active { background: #f0fdf4; color: #15803d; font-weight: 600; }

/* ========== 结果锚点导航 ========== */
.result-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  overflow-x: auto;
  background: rgba(248,250,252,0.95);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.result-tabs::-webkit-scrollbar { height: 2px; }
.result-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.result-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.result-tab:hover { border-color: #22c55e; color: #22c55e; }
.result-tab.active { background: #22c55e; color: #ffffff; border-color: #22c55e; }

/* 维度卡片滚动偏移 */
.viz-section.dimension-card {
  scroll-margin-top: 52px;
}
/* ========== 底部 ========== */
footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.5px;
}

footer p::before {
  content: '— ';
}

footer p::after {
  content: ' —';
}

/* ========== 工具类 ========== */
.hidden {
  display: none !important;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .feature-row { flex-direction: column; gap: 8px; }
  .feature-card { padding: 12px; }
  .header-actions, #vue-header { flex-wrap: wrap; gap: 8px; }
  .user-info { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .points-badge { flex-wrap: wrap; justify-content: center; }
  .data-bar { flex-direction: column; gap: 8px; padding: 12px; }
  .data-item { justify-content: center; }
  .hot-matches-row { gap: 8px; }
  .hot-match-btn { font-size: 12px; padding: 6px 12px; white-space: nowrap; }
  .recharge-options { grid-template-columns: repeat(2, 1fr); }
  .result-tabs { gap: 0; }
  .result-tab { font-size: 12px; padding: 8px 12px; white-space: nowrap; }
  .circle-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .lineup-grid { flex-direction: column; gap: 12px; }
  .lineup-vs-divider { padding: 8px 0; }
  .players-grid { grid-template-columns: 1fr; }
  .form-cards { flex-direction: column; gap: 8px; }
  .modal-content { width: 95%; max-width: 95%; }
  .share-modal-content { width: 95%; max-width: 95%; }
}

@media (max-width: 640px) {
  .container {
    padding: 12px;
  }

  header {
    padding: 20px 0 16px;
  }

  .logo { gap: 8px; }
  .logo h1 {
    font-size: 18px;
  }

  .subtitle {
    font-size: 11px;
  }

  .teams-input {
    flex-direction: column;
    gap: 8px;
  }

  .team-input-wrapper label { font-size: 12px; }

  .vs-divider {
    flex-direction: row;
    padding-top: 0;
    gap: 8px;
  }

  .vs-line {
    width: 40px;
    height: 1px;
  }

  .input-section {
    padding: 16px;
  }

  .match-time-wrapper { margin-top: 4px; }

  #analyzeBtn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

  .data-val { font-size: 14px; }

  .auth-buttons { gap: 8px; }
  .auth-btn { font-size: 13px; padding: 6px 14px; }

  .hot-matches-section { padding: 12px; }

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

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

  .prob-pct {
    font-size: 10px;
    padding: 0 4px;
  }

  .league-grid {
    flex-direction: column;
    gap: 8px;
  }

  .h2h-goals {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .timing-grid {
    flex-direction: column;
    gap: 12px;
  }

  .timing-divider {
    display: none;
  }

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

  .away-grid, .coach-grid, .tactic-grid {
    flex-direction: column;
    gap: 10px;
  }

  .away-vs, .coach-vs {
    padding: 4px 0;
  }

  .result-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px;
  }

  .result-teams { gap: 8px; }
  .result-team {
    font-size: 15px;
  }

  .result-vs-wrap {
    padding: 0 8px;
  }

  .result-content {
    padding: 12px;
  }

  .new-analysis-btn, .share-result-btn { font-size: 12px; padding: 6px 12px; }

  .viz-section-title { font-size: 15px; }
  .dim-card-text { font-size: 13px; }

  .history-item { flex-wrap: wrap; gap: 4px; font-size: 12px; padding: 8px 10px; }

  .modal-content { border-radius: 12px; }
  .modal-header { padding: 14px 16px; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 16px; }

  .recharge-option { padding: 10px; font-size: 13px; }

  .auth-submit-btn { padding: 12px; font-size: 15px; }

  .score-display { font-size: 36px; gap: 8px; }
  .score-team-name { font-size: 14px; }
  .score-vs { font-size: 18px; }

  .circ-label { font-size: 10px; }
  .circ-num { font-size: 12px; }

  footer p { font-size: 11px; }

  .share-modal-content { border-radius: 12px; }
  .poster-card { width: 300px; }
  .poster-header-text { font-size: 12px; }
  .poster-team-name { font-size: 14px; }
  .poster-score { font-size: 28px; }
  .poster-metrics, .poster-probs, .poster-teams { padding-left: 12px; padding-right: 12px; }
  .share-download-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 8px; }
  .logo h1 { font-size: 16px; }
  .icon.football-enhanced { font-size: 24px; }
  .input-section { padding: 12px; border-radius: 12px; }
  .feature-card { padding: 10px; }
  .feature-icon { font-size: 20px; }
  .feature-title { font-size: 13px; }
  .hot-match-btn { font-size: 11px; padding: 5px 10px; }
  .result-team { font-size: 13px; }
  .score-display { font-size: 28px; }
  .result-content { padding: 8px; }
  .circle-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; }
  .circ-label { font-size: 9px; }
  .admin-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .poster-card { width: 260px; }
  .poster-team-name { font-size: 12px; }
  .poster-score { font-size: 24px; }
  .poster-metric { flex-wrap: wrap; }
  .poster-metric-label { width: 100%; margin-bottom: 4px; }

  .form-cards,
  .players-grid,
  .lineup-grid { grid-template-columns: 1fr; }
  .score-value { font-size: 28px; padding: 6px 18px; }
  .score-team { font-size: 14px; }
}

/* ========== 历史记录 ========== */
.history-toggle-btn {
  padding: 10px 24px; background: #ffffff; border: 1px solid #e2e8f0;
  color: #0f172a; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.history-toggle-btn:hover { border-color: #22c55e; color: #16a34a; box-shadow: 0 0 0 2px rgba(34,197,94,0.12); }
.history-section {
  margin-top: 12px; background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.history-header {
  display: flex; justify-content: space-between; padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.history-title { color: #0f172a; font-weight: 700; font-size: 14px; }
.history-count { color: #64748b; font-size: 13px; }
.history-list { max-height: 300px; overflow-y: auto; }
.history-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.15s;
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: #f8fafc; }
.history-icon { flex-shrink: 0; font-size: 16px; }
.history-teams { flex: 1; font-size: 14px; color: #0f172a; font-weight: 600; }
.history-cost { font-size: 13px; color: #ef4444; font-weight: 600; }
.history-time { font-size: 12px; color: #94a3b8; font-weight: 500; }

/* ========== 公告栏 ========== */
.announce-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(96,165,250,0.05));
  border: 1px solid rgba(59,130,246,0.15); border-radius: 10px;
}
.announce-icon { font-size: 16px; flex-shrink: 0; }
.announce-title { font-weight: 700; font-size: 13px; color: #60a5fa; white-space: nowrap; }
.announce-content { flex: 1; font-size: 13px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-close { background: none; border: none; color: #475569; cursor: pointer; font-size: 14px; padding: 2px 6px; }
.announce-close:hover { color: #ef4444; }

/* ========== 分享按钮 ========== */
.share-result-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: #ffffff; border-radius: 8px; font-size: 13px;
  font-weight: 700; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.share-result-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ========== 分享弹窗 ========== */
.share-modal-content {
  background: #0a1208; border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 16px; width: 90%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.share-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}
.share-modal-header h2 { font-size: 16px; color: #f0f4f8; }
.share-modal-body { padding: 20px; }
.poster-container {
  border-radius: 12px; overflow: hidden;
  min-height: 300px; display: flex; align-items: center; justify-content: center;
}
.poster-loading { color: #475569; font-size: 14px; }

/* 海报卡片 */
.poster-card {
  width: 380px; padding: 0; background: linear-gradient(160deg, #0d1810, #132018);
  border-radius: 12px; font-family: 'Noto Sans SC', sans-serif; overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.12);
}
.poster-top-bar { height: 3px; background: linear-gradient(90deg, #22c55e, #f59e0b, #3b82f6); }
.poster-header { text-align: center; padding: 18px 20px 0; }
.poster-logo { font-size: 28px; display: block; margin-bottom: 4px; }
.poster-header-text { font-size: 14px; font-weight: 700; color: #4ade80; letter-spacing: 3px; }
.poster-date { font-size: 11px; color: #64748b; margin-top: 4px; }
.poster-teams { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; }
.poster-team { flex: 1; text-align: center; }
.poster-team-badge { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; font-size: 12px; font-weight: 900; color: white; background: linear-gradient(135deg, #22c55e, #16a34a); margin-bottom: 6px; }
.poster-team-badge.away { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.poster-team-name { font-size: 16px; font-weight: 800; color: #f0f4f8; line-height: 1.3; }
.poster-team-meta { font-size: 10px; color: #475569; margin-top: 2px; }
.poster-vs-col { text-align: center; flex-shrink: 0; }
.poster-score { font-size: 34px; font-weight: 900; color: #fbbf24; letter-spacing: 3px; line-height: 1; }
.poster-vs-label { font-size: 10px; color: #64748b; margin-top: 2px; }

/* 概率条 */
.poster-probs { padding: 0 20px; margin-bottom: 16px; }
.poster-prob-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.poster-prob-label { width: 32px; font-size: 10px; font-weight: 700; text-align: right; }
.poster-prob-label.h { color: #4ade80; }
.poster-prob-label.d { color: #facc15; }
.poster-prob-label.a { color: #60a5fa; }
.poster-prob-track { flex: 1; height: 16px; background: rgba(255,255,255,0.04); border-radius: 8px; overflow: hidden; }
.poster-prob-fill { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 9px; font-weight: 700; color: white; height: 100%; border-radius: 8px; min-width: 0; }
.poster-prob-fill.home { background: linear-gradient(90deg, #16a34a, #22c55e); }
.poster-prob-fill.draw { background: linear-gradient(90deg, #d97706, #f59e0b); }
.poster-prob-fill.away { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.poster-prob-val { width: 36px; font-size: 11px; font-weight: 700; color: #e2e8f0; text-align: left; }

/* 关键指标 */
.poster-metrics { padding: 0 20px; margin-bottom: 16px; }
.poster-section-title { font-size: 12px; font-weight: 700; color: #94a3b8; margin-bottom: 10px; }
.poster-metric { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.poster-metric-label { width: 60px; font-size: 11px; color: #94a3b8; flex-shrink: 0; line-height: 20px; }
.poster-metric-content { flex: 1; }
.poster-metric-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.poster-metric-track { flex: 1; height: 10px; background: rgba(255,255,255,0.04); border-radius: 5px; overflow: hidden; }
.poster-mbar { height: 100%; border-radius: 5px; }
.poster-mbar.home { background: linear-gradient(90deg, #16a34a, #4ade80); }
.poster-mbar.away { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.poster-mbar-val { font-size: 10px; font-weight: 700; color: #cbd5e1; width: 28px; text-align: center; flex-shrink: 0; }
.poster-metric-vals { display: flex; justify-content: space-between; width: 50px; font-size: 10px; font-weight: 700; color: #cbd5e1; flex-shrink: 0; }
.poster-metric-vals span { min-width: 20px; text-align: center; }

/* 推荐 */
.poster-rec {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 20px 16px;
  padding: 12px 14px; background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.15); border-radius: 10px;
}
.poster-rec-icon { font-size: 18px; line-height: 1; }
.poster-rec-content { flex: 1; }
.poster-rec-label { font-size: 11px; color: #fbbf24; font-weight: 700; margin-bottom: 2px; }
.poster-rec-text { font-size: 13px; color: #f0f4f8; font-weight: 600; line-height: 1.4; }

/* 底部 */
.poster-footer { text-align: center; font-size: 10px; color: #334155; padding: 12px 20px; border-top: 1px solid rgba(74, 222, 128, 0.06); background: rgba(0,0,0,0.15); }

/* 分享操作 */
.share-actions { text-align: center; margin-top: 16px; }
.share-download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.share-download-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,0.3); }
.share-tip { color: #475569; font-size: 12px; margin-top: 10px; }

/* Toast */
.app-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; background: #22c55e; color: white;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

  .form-cards,
  .players-grid,
  .lineup-grid {
    grid-template-columns: 1fr;
  }

  .score-value {
    font-size: 28px;
    padding: 6px 18px;
  }

  .score-team {
    font-size: 14px;
  }
