/* 号码球颜色 */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.ball-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.ball-lg {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.ball-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.ball-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.ball-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.ball-special { box-shadow: 0 0 0 3px #f59e0b, 0 0 16px rgba(245,158,11,0.6); }

/* 导航栏 */
.navbar {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 16px;
  font-weight: 800;
  color: #f59e0b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
  transition: all 0.15s;
  gap: 2px;
}
.nav-link i { font-size: 14px; }
.nav-link:hover, .nav-link.active {
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
}

/* 卡片 */
.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: #f59e0b; }

/* 按钮 */
.btn-primary {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: #fbbf24; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-ghost:hover, .btn-ghost.active {
  border-color: #f59e0b;
  color: #f59e0b;
}
.btn-ghost.active {
  background: rgba(245,158,11,0.12);
}

/* 筛选按钮 */
.filter-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: #f59e0b; color: #f59e0b; }
.filter-btn.active {
  background: rgba(245,158,11,0.15);
  border-color: #f59e0b;
  color: #f59e0b;
  font-weight: 600;
}

/* 广告位 */
.ad-slot {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px dashed #334155;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 12px;
  text-align: center;
}

/* 状态徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-live { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-brand { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-muted { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* 开奖记录行 */
.draw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}
.draw-row:last-child { border-bottom: none; }
.draw-issue {
  color: #64748b;
  font-size: 12px;
  min-width: 60px;
  flex-shrink: 0;
}

/* 加载动画 */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #334155;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* 滚动条 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.page-wrap {
  padding: 16px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 页脚 */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 20px 16px;
  text-align: center;
  color: #475569;
  font-size: 12px;
  margin-top: 24px;
}

/* 响应式 */
@media (min-width: 768px) {
  .ball { width: 40px; height: 40px; font-size: 15px; }
  .nav-link { font-size: 12px; padding: 6px 14px; }
  .card { padding: 20px; }
}

/* 遗漏条形图 */
.miss-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.miss-bar-bg {
  flex: 1;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}
.miss-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* 生肖标签 */
.zodiac-tag {
  font-size: 10px;
  color: #64748b;
  text-align: center;
  margin-top: 2px;
}
.zodiac-tag.special { color: #f59e0b; }

/* 号码格子 */
.num-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.num-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
