* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  min-height: 100vh;
  color: #e0e0e0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  font-size: 28px;
  color: #ffd700;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: #888;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.tab-btn {
  padding: 10px 32px;
  border: 1px solid #555;
  background: rgba(255,255,255,0.05);
  color: #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(255,215,0,0.15);
  border-color: #ffd700;
  color: #ffd700;
}

.tab-btn:hover {
  border-color: #ffd700;
}

/* Stats panel */
.stats-panel {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-around;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #888;
  display: block;
}

.stat-value {
  font-size: 16px;
  color: #ffd700;
  font-weight: bold;
}

.stats-detail {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.stats-grid .stat-cell {
  font-size: 12px;
  color: #aaa;
}

.stats-grid .stat-cell span {
  color: #ffd700;
}

.hot-cold {
  display: flex;
  gap: 24px;
}

.hot-section, .cold-section {
  flex: 1;
}

.hot-section h4, .cold-section h4 {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.hot-section h4 { color: #ff6b6b; }
.cold-section h4 { color: #4ecdc4; }

.ball-sm {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  margin: 2px;
}

.ball-sm.red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.ball-sm.blue {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
}

.ball-sm.green {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: #fff;
}

.typicality-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.typ-label {
  font-size: 14px;
  color: #aaa;
}

.typicality-control input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.typ-hint {
  color: #666;
  font-size: 12px;
  margin-left: 8px;
}

/* Bet mode control */
.bet-mode-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.bet-label {
  font-size: 14px;
  color: #aaa;
}

.bet-mode-control select {
  padding: 6px 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}

.bet-mode-control select option {
  background: #2a2a3e;
  color: #fff;
}

.bet-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.bet-options label {
  font-size: 13px;
  color: #888;
}

.bet-options input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.bet-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.bet-extras label {
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bet-extras input[type="number"] {
  width: 50px;
  padding: 4px 6px;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.bet-info {
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #ffd700;
}

.banker-row {
  margin-top: 4px;
  font-size: 12px;
}

.banker-label {
  color: #ffd700;
  font-weight: bold;
  margin-right: 4px;
}

.ball.banker {
  box-shadow: 0 0 6px #ffd700, inset 0 0 3px #ffd700;
  border: 2px solid #ffd700;
}

.prize-checker {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.prize-checker h3 {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 4px;
}

.prize-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.prize-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.prize-row label {
  width: 80px;
  font-size: 14px;
  color: #aaa;
}

.prize-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}

.btn-secondary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 4px;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.prize-results {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.success-rate-panel {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.success-rate-panel h3 {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 12px;
}

.ticker-wrap {
  overflow: hidden;
  position: relative;
}

.ticker-host {
  overflow: hidden;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ticker-marquee {
  overflow: hidden;
  width: 100%;
}

.ticker-marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: ticker-marquee-scroll var(--ticker-duration, 80s) linear infinite;
}

@keyframes ticker-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-marquee-track {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
    row-gap: 8px;
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 48px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  flex-shrink: 0;
}

.ticker-user {
  font-weight: bold;
  white-space: nowrap;
}

.ticker-balls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ticker-date {
  color: #666;
  font-size: 12px;
  white-space: nowrap;
}

.win-badge {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.lose-badge {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.user-numbers {
  margin-bottom: 12px;
  font-size: 14px;
  color: #aaa;
}

.user-numbers .ball {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  margin: 2px;
  color: #fff;
}

.typicality-info {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.typ-label {
  color: #aaa;
  margin-right: 4px;
}

.typ-value {
  color: #ffd700;
  font-weight: bold;
  font-size: 16px;
}

.typ-interval {
  color: #888;
  margin-left: 8px;
}

.typ-ratio {
  color: #aaa;
  margin-left: 12px;
  font-size: 13px;
}

.prize-summary {
  font-size: 14px;
  color: #ffd700;
  margin-bottom: 12px;
}

.no-prize {
  color: #888;
  font-size: 14px;
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prize-table th,
.prize-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.prize-table th {
  color: #aaa;
  font-weight: normal;
  background: rgba(255,255,255,0.03);
}

.prize-table td {
  color: #ddd;
}

.prize-table strong {
  color: #ffd700;
}

.btn-link {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 4px;
}

.btn-link:hover { color: #ffd700; }

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 12px 40px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  letter-spacing: 2px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(243,156,18,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.count-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.count-hint {
  font-size: 12px;
  color: #8b93a5;
  line-height: 1.35;
  max-width: 280px;
}

.count-label {
  font-size: 14px;
  color: #aaa;
}

.count-label input {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

/* Latest draw */
.latest-draw {
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #888;
}

.latest-label { color: #666; }

.range-info {
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #aaa;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 160px;
  text-align: center;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: rgba(255,215,0,0.4);
}

.card .balls-row {
  margin-bottom: 8px;
}

.card .ball {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  margin: 2px;
  color: #fff;
}

.card .ball.red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 2px 8px rgba(231,76,60,0.3);
}

.card .ball.blue {
  background: linear-gradient(135deg, #3498db, #2980b9);
  box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

.card .ball.green {
  background: linear-gradient(135deg, #27ae60, #229954);
  box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}

.card .score {
  font-size: 12px;
  color: #ffd700;
  margin-top: 4px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 16px;
}

/* ========== 新增：导航栏 ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-brand a {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  text-decoration: none;
}

.nav-slogan {
  font-size: 11px;
  color: #888;
  margin-left: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffd700;
}

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

.nav-login,
.nav-register,
.nav-username,
.nav-logout {
  font-size: 13px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-login {
  color: #aaa;
}

.nav-login:hover { color: #ffd700; }

.nav-register {
  background: rgba(255,215,0,0.15);
  color: #ffd700;
  border: 1px solid rgba(255,215,0,0.3);
}

.nav-register:hover {
  background: rgba(255,215,0,0.25);
}

.nav-username {
  color: #ffd700;
  font-weight: bold;
}

.nav-logout {
  color: #888;
}

.nav-logout:hover { color: #ff6b6b; }

/* ========== 新增：用户状态栏 ========== */
.user-status-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #aaa;
}

.user-status-bar span {
  color: #ffd700;
  font-weight: bold;
}

/* ========== 新增：VIP 徽章 ========== */
.vip-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.vip-badge-nav {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

/* ========== 新增：杀码预测 ========== */
.kill-numbers {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.kill-numbers h3 {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 12px;
}

.kill-balls {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.kill-balls .ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.kill-balls .ball.red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.kill-balls .ball.blue {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.ball.kill {
  opacity: 0.5;
  background: linear-gradient(135deg, #666, #444);
  text-decoration: line-through;
}

.kill-reasons {
  font-size: 12px;
  color: #aaa;
  margin-top: 8px;
}

.kill-reasons p {
  margin: 4px 0;
}

.kill-verify {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #4ecdc4;
}

/* ========== 新增：升级横幅 ========== */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(243,156,18,0.15);
  border: 1px solid rgba(243,156,18,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #f39c12;
}

.upgrade-banner .btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* ========== 新增：历史中奖分析 ========== */
.prize-analysis {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(78,205,196,0.08);
  border: 1px solid rgba(78,205,196,0.2);
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.prize-analysis .pa-title {
  color: #4ecdc4;
  font-weight: bold;
}

.prize-analysis .pa-count {
  color: #ffd700;
}

.prize-analysis .pa-max {
  color: #ff6b6b;
}

.prize-analysis .pa-typ {
  color: #aaa;
}

.cost-info,
.daily-info {
  text-align: center;
  font-size: 13px;
  color: #f39c12;
  margin-bottom: 16px;
}

/* ========== 新增：登录/注册页 ========== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 24px;
}

.auth-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
}

.auth-card h2 {
  color: #ffd700;
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #ffd700;
}

.btn-full {
  width: 100%;
}

.btn-outline {
  padding: 12px 40px;
  background: transparent;
  color: #ffd700;
  border: 1px solid #ffd700;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(255,215,0,0.15);
}

.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}

.auth-link a {
  color: #ffd700;
  text-decoration: none;
}

.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}

/* ========== 新增：定价页 ========== */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-tab {
  padding: 8px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #555;
  border-radius: 6px;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
}

.pricing-tab.active {
  background: rgba(255,215,0,0.15);
  border-color: #ffd700;
  color: #ffd700;
}

.pricing-tab .discount {
  font-size: 11px;
  color: #ff6b6b;
  margin-left: 4px;
}

.pricing-page {
  max-width: 1100px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
  min-width: 0;
}

.pricing-card:hover {
  border-color: rgba(255,215,0,0.3);
  transform: translateY(-2px);
}

.pricing-card.supreme {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.05);
}

.pricing-header h3 {
  color: #ffd700;
  font-size: 16px;
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 26px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 12px;
}

.pricing-price .currency {
  font-size: 16px;
  color: #ffd700;
}

.pricing-price .period {
  font-size: 13px;
  color: #888;
  font-weight: normal;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
}

.pricing-features li {
  padding: 4px 0;
  font-size: 12px;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features li.disabled {
  color: #555;
  text-decoration: line-through;
}

.pricing-features li::before {
  content: "✓ ";
  color: #27ae60;
}

.pricing-features li.disabled::before {
  content: "✗ ";
  color: #555;
}

.pay-per-use {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.pay-per-use h3 {
  color: #ffd700;
  margin-bottom: 8px;
}

.pay-per-use p {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 12px;
}

.pay-per-use ul {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.pay-per-use ul li {
  padding: 4px 0;
  font-size: 13px;
  color: #ccc;
}

/* ========== 新增：科普页 ========== */
.knowledge-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.knowledge-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
}

.knowledge-item h3 {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 12px;
}

.knowledge-body p,
.knowledge-body li {
  font-size: 14px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 8px;
}

.knowledge-body ul,
.knowledge-body ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.knowledge-body strong {
  color: #ffd700;
}

.knowledge-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.knowledge-table th,
.knowledge-table td {
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.knowledge-table th {
  background: rgba(255,255,255,0.05);
  color: #ffd700;
}

.knowledge-table td {
  color: #ccc;
}

.highlight {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 6px;
  padding: 12px;
  color: #ffd700;
  font-weight: bold;
}

/* ========== 新增：用户中心 ========== */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.user-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
}

.user-card.full-width {
  grid-column: 1 / -1;
}

.user-card h3 {
  color: #ffd700;
  font-size: 16px;
  margin-bottom: 12px;
}

.user-info p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 8px;
}

.user-info .label {
  color: #888;
}

.user-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.permissions-list {
  font-size: 13px;
  color: #ccc;
}

.permissions-list p {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.permissions-list p.disabled {
  color: #555;
  text-decoration: line-through;
}

.permissions-list p.perm-note {
  color: #9aa3b5;
  font-size: 12px;
  border-bottom: none;
  padding-top: 2px;
}

.ticker-muted {
  color: #8b93a5;
  font-size: 12px;
  white-space: nowrap;
}

.gen-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.gen-logs-header h3 {
  margin: 0;
}

.gen-logs-header .btn-outline.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.gen-logs,
.orders-list {
  font-size: 13px;
  color: #ccc;
}

.gen-logs p,
.orders-list p {
  color: #888;
}

.log-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 12px;
}

.log-meta span:first-child {
  color: #fff;
  font-weight: bold;
}

.log-balls {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ========== 新增：历史数据页 ========== */
.history-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.history-info {
  font-size: 13px;
  color: #888;
}

.history-table-wrapper {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.history-table th,
.history-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.history-table th {
  color: #ffd700;
  font-weight: normal;
  background: rgba(255,255,255,0.03);
}

.history-table td {
  color: #ddd;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pagination button {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #555;
  color: #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.pagination button:hover {
  border-color: #ffd700;
  color: #ffd700;
}

.pagination button.active {
  background: rgba(255,215,0,0.15);
  border-color: #ffd700;
  color: #ffd700;
}

/* ========== 新增：关于页 ========== */
.about-content section {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.about-content h2 {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 12px;
}

.about-content p,
.about-content li {
  font-size: 14px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 8px;
}

.about-content ul {
  margin-left: 20px;
}

.about-content strong {
  color: #ffd700;
}

.disclaimer-box {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: 8px;
  padding: 16px;
}

.disclaimer-box p {
  color: #ff9f9f;
}

/* ========== 新增：页脚 ========== */
.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 32px;
  font-size: 12px;
  color: #666;
}

.site-footer a {
  color: #888;
  text-decoration: none;
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
}

.main-content {
  min-height: calc(100vh - 120px);
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    gap: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

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

  .user-status-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .upgrade-banner {
    flex-direction: column;
    text-align: center;
  }

  .kill-numbers {
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .container { padding: 12px 8px; }
  .card { min-width: 130px; padding: 12px 14px; }
  .card .ball { width: 28px; height: 28px; line-height: 28px; font-size: 11px; }
  .controls { justify-content: center; }

  .auth-card {
    padding: 20px;
    margin: 12px;
  }

  .pricing-card {
    padding: 16px;
  }

  .history-table {
    font-size: 11px;
  }

  .history-table th,
  .history-table td {
    padding: 4px;
  }
}
