/* ============================================================
   世界杯竞猜网站 - 卡通插画风格主样式
   主色：亮绿 #4CAF50 / 天蓝 #2196F3 / 金黄 #FFC107
   ============================================================ */

/* ── 全局重置 & 变量 ── */
:root {
  --green:    #4CAF50;
  --green-d:  #388E3C;
  --green-l:  #E8F5E9;
  --blue:     #2196F3;
  --blue-d:   #1565C0;
  --blue-l:   #E3F2FD;
  --gold:     #FFC107;
  --gold-d:   #F57F17;
  --red:      #F44336;
  --white:    #FFFFFF;
  --bg:       #F0F7F0;
  --card-bg:  #FFFFFF;
  --text:     #2D3748;
  --muted:    #718096;
  --border:   #E2E8F0;
  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 4px 20px rgba(76, 175, 80, 0.12);
  --shadow-lg: 0 8px 32px rgba(33, 150, 243, 0.15);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC',
               'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  /* 草地网格线背景 */
  background-image:
    linear-gradient(rgba(76,175,80,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,175,80,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
}

/* ── 布局容器 ── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── 顶部导航栏 ── */
.navbar {
  background: linear-gradient(135deg, var(--green) 0%, #43A047 60%, var(--blue) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(76,175,80,0.35);
}

.navbar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.3px;
}

.navbar-brand .emoji { font-size: 22px; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background var(--transition);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.nav-user-btn {
  background: rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  font-weight: 600 !important;
}

/* ── 闪烁通知 ── */
.flash-messages { max-width: 640px; margin: 12px auto 0; padding: 0 16px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid var(--green); }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid var(--red); }
.alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid var(--gold); }
.alert-info    { background: #E3F2FD; color: #1565C0; border-left: 4px solid var(--blue); }

/* ── 区块标题 ── */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--green);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title .emoji { font-size: 22px; }

/* ── 卡片通用样式 ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(76,175,80,0.08);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 卡片顶部彩条 */
.card-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── 轮播图 Banner ── */
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  background: #ddd;
  aspect-ratio: 16/7;
  box-shadow: var(--shadow-lg);
}

.banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.banner-slide a { display: block; height: 100%; }

.banner-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}

.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* 无 banner 占位 */
.banner-placeholder {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  aspect-ratio: 16/7;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 16px 0;
  font-size: 40px;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}
.banner-placeholder p {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.9;
}

/* ── 比赛卡片 ── */
.match-card {
  padding: 0;
  overflow: hidden;
}

.match-card-header {
  background: linear-gradient(135deg, #E8F5E9, #E3F2FD);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-upcoming  { background: #E3F2FD; color: var(--blue-d); }
.status-ongoing   { background: #FFF3E0; color: #E65100; animation: pulse 1.5s infinite; }
.status-finished  { background: #F3E5F5; color: #6A1B9A; }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.match-card-body {
  padding: 18px;
}

.match-vs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.team-flag { font-size: 36px; line-height: 1; }

/* 国旗图片（世界杯球队）*/
.team-flag-img {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: block;
}

/* 国内联赛：拼音首字母圆角标签 */
.team-initial {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vs-text {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-score {
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
  text-align: center;
}

/* ── 竞猜表单 ── */
.predict-form {
  background: linear-gradient(135deg, var(--green-l), var(--blue-l));
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 8px;
}

.predict-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-d);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.score-input {
  width: 56px;
  height: 48px;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.score-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}

.score-colon {
  font-size: 24px;
  font-weight: 900;
  color: var(--muted);
}

.already-predicted {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green-d);
  font-weight: 600;
  margin-top: 8px;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #43A047);
  color: #fff;
  box-shadow: 0 4px 14px rgba(76,175,80,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-d), var(--green));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76,175,80,0.45);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), #1E88E5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(33,150,243,0.35);
}
.btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #FFB300);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(255,193,7,0.35);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red), #E53935);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 16px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-full { width: 100%; margin-top: 12px; }

/* ── 猜中用户滚动区 ── */
.winners-scroll {
  overflow: hidden;
  height: 44px;
  position: relative;
  background: linear-gradient(135deg, var(--green-l), #FFFDE7);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76,175,80,0.2);
}

.winners-ticker {
  display: flex;
  flex-direction: column;
  animation: tickerScroll 8s linear infinite;
}

.winner-item {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  font-size: 13px;
  color: var(--green-d);
  font-weight: 500;
  flex-shrink: 0;
}

.winner-badge {
  background: var(--gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

@keyframes tickerScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ── 排行榜 ── */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.leaderboard-item:last-child { border-bottom: none; }

.rank-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA000); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #B0BEC5, #78909C); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #FFAB40, #E65100); color: #fff; }
.rank-n { background: var(--border); color: var(--muted); }

.leaderboard-info { flex: 1; }
.leaderboard-name { font-weight: 700; font-size: 14px; }
.leaderboard-sub  { font-size: 12px; color: var(--muted); }

.points-tag {
  background: linear-gradient(135deg, var(--gold), #FFB300);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 16px;
}

/* ── 社区热议评论卡片 ── */
.hot-comment-card {
  background: linear-gradient(135deg, #F3E5F5, #E8EAF6);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid #9C27B0;
  text-decoration: none;
  display: block;
  transition: transform var(--transition);
}
.hot-comment-card:hover { transform: translateX(4px); }

.hot-comment-meta {
  font-size: 12px;
  color: #7B1FA2;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hot-comment-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 公告列表 ── */
.announcement-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
}
.announcement-item:last-child { border-bottom: none; }

.ann-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ann-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}

.ann-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.ann-content {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
  background: var(--green-l);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.ann-content.show { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0); }
}

.ann-arrow {
  transition: transform var(--transition);
  color: var(--muted);
  font-size: 12px;
}
.announcement-item.open .ann-arrow { transform: rotate(180deg); }

/* ── 评论区 ── */
.comment-list { margin-top: 12px; }

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.comment-item:last-child { border-bottom: none; }

.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.comment-body { flex: 1; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-user { font-weight: 700; font-size: 13px; color: var(--blue-d); }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; color: var(--text); line-height: 1.5; }

.comment-form-area {
  background: var(--blue-l);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 16px;
}

.comment-form-area textarea {
  width: 100%;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color var(--transition);
  background: #fff;
  color: var(--text);
}

.comment-form-area textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

/* ── 表单 ── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

/* ── 登录/注册页面 ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--gold));
}

.auth-logo {
  text-align: center;
  font-size: 48px;
  margin-bottom: 8px;
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.auth-link a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ── 规则页面 ── */
.rules-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text);
  border: 1px solid rgba(76,175,80,0.12);
}

/* ── 标签 ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.tag-green { background: var(--green-l); color: var(--green-d); }
.tag-blue  { background: var(--blue-l);  color: var(--blue-d); }
.tag-gold  { background: #FFF8E1; color: var(--gold-d); }

/* ── 空状态 ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ── 底部导航 ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  min-width: 60px;
}
.bottom-nav-item .icon { font-size: 22px; line-height: 1; }
.bottom-nav-item.active { color: var(--green); }
.bottom-nav-item:hover { color: var(--green); }

/* 底部导航的内容留白 */
.page-content {
  padding-bottom: 80px;
}

/* ── 猜中名单详情页 ── */
.winners-list { list-style: none; }
.winners-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.winners-list li:last-child { border-bottom: none; }

/* ── 页面标题英雄区 ── */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: #fff;
  padding: 28px 16px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '⚽';
  position: absolute;
  font-size: 120px;
  opacity: 0.07;
  right: -20px;
  top: -20px;
  transform: rotate(15deg);
}

.page-hero h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-hero p {
  font-size: 13px;
  opacity: 0.85;
}

/* ── SVG 装饰波浪 ── */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 响应式微调 ── */
@media (max-width: 400px) {
  .team-flag  { font-size: 28px; }
  .team-name  { font-size: 13px; }
  .score-input { width: 48px; height: 42px; font-size: 18px; }
}

/* ── 滚动条美化 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ── 比赛详情页特殊样式 ── */
.match-detail-hero {
  background: linear-gradient(135deg, #1a3a1a 0%, #0d2b4a 100%);
  color: #fff;
  padding: 32px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.match-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(76,175,80,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(33,150,243,0.3) 0%, transparent 50%);
}

.match-detail-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.detail-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.detail-team-flag { font-size: 52px; }

/* 详情页国旗图片 */
.match-detail-hero .team-flag-img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 详情页国内联赛首字母 */
.match-detail-hero .team-initial {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255,255,255,0.15);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-team-name {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
}

.detail-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.detail-vs-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
}

.detail-score-display {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.detail-match-time {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ── 登录提示 ── */
.login-prompt {
  text-align: center;
  padding: 16px;
  background: var(--blue-l);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 13px;
  color: var(--blue-d);
}
.login-prompt a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* ── 数字统计 ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat-box {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ── 工具类 ── */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-green  { color: var(--green-d); }
.text-blue   { color: var(--blue-d); }
.text-sm     { font-size: 12px; }
.fw-bold     { font-weight: 700; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ── 赛事类型标签 ─────────────────────────────────── */
.tournament-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-worldcup {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}
.badge-dongbei {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
}
.badge-zhongchao {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}
.badge-default {
  background: #f5f5f5;
  color: #666;
}

/* ── 统计卡片（我的竞猜页）──────────────────────── */
.stat-card {
  background: linear-gradient(135deg, #f0fff0, #e8f5e9);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #2e7d32;
}
.stat-label {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* ── 我的预测标签 ────────────────────────────────── */
.my-prediction {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
}
.tag-waiting {
  background: #e3f2fd;
  color: #1565c0;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
}

/* ── 排行榜：显示全部用户 ──────────────────────── */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.leaderboard-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f0f7f0;
  color: #2d3748;
  font-size: 13px;
}
.leaderboard-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.leaderboard-table tr:last-child td {
  border-bottom: none;
}

/* ── Banner 图片适应 ────────────────────────────── */
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .banner-slider { aspect-ratio: 16 / 7.5; }
}
@media (min-width: 641px) {
  .banner-slider { aspect-ratio: 16 / 7; }
}

/* ── 注册页提示文字 ────────────────────────────── */
.form-tip {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  display: block;
}

/* ── 网站副标题栏 ────────────────────────────── */
.subtitle-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: linear-gradient(90deg, #f0fff0, #e8f5e9, #f0fff0);
  border-bottom: 1px solid #e8f5e9;
  letter-spacing: 1px;
}
.subtitle-sep {
  color: #c8e6c9;
  font-weight: 400;
}
@media (max-width: 420px) {
  .subtitle-bar { font-size: 11px; gap: 5px; padding: 8px 10px; }
}


/* ═══ 分页导航 ═══ */
.pagination-wrapper {
  margin: 16px 0;
  text-align: center;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff !important;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.page-btn:active {
  transform: scale(0.95);
}
.page-info {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 4px;
}
.pagination-hint {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 6px;
}
