/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e1b4b;
  --darker: #0f0a1e;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--darker);
  color: var(--light);
  min-height: 100vh;
  line-height: 1.6;
}

/* 页面容器 */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* 登录页面 */
#login-page {
  background: var(--gradient-1);
  padding: 20px;
}

#login-page.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.logo p {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* 登录标签页 */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--light);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: var(--primary);
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-desc {
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.8;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.3);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 按钮 */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
}

/* 登录页脚 */
.login-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.login-footer p {
  margin-bottom: 8px;
}

.disclaimer {
  opacity: 0.6;
  font-size: 0.75rem;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 10, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.header-left .logo-small {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--gray-light);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--light);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--light);
  background: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-points {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-weight: 600;
}

.points-icon {
  font-size: 1.1rem;
}

.user-menu {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--light);
  text-decoration: none;
  transition: all 0.2s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* 主内容区 */
.section {
  display: none;
  padding: 88px 24px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section.active {
  display: block;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* 首页 */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: var(--gradient-1);
  border-radius: 24px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.hero p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

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

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 首页网格 - 新布局 */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "games sports"
    "leaderboard leaderboard";
  gap: 24px;
}

.home-card.games-card {
  grid-area: games;
}

.home-card.sports-card {
  grid-area: sports;
}

.home-card.leaderboard-card {
  grid-area: leaderboard;
}

.home-card {
  background: var(--dark);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 快速游戏 */
.quick-games {
  display: flex;
  gap: 12px;
}

.game-btn {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.game-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.game-icon {
  font-size: 2rem;
}

.game-name {
  font-size: 0.85rem;
}

/* 列表样式 */
.match-list,
.leaderboard-list,
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 热门赛事样式 */
.match-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.match-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 8px;
}

.match-teams span:first-child,
.match-teams span:last-child {
  flex: 1;
  text-align: center;
}

.match-teams .vs {
  color: var(--primary);
  font-weight: 700;
  padding: 0 8px;
  font-size: 0.9rem;
}

.match-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
}

.match-league {
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.match-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.empty {
  text-align: center;
  padding: 32px;
  color: var(--gray);
}

/* 游戏大厅 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--dark);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-image {
  height: 160px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.game-info {
  padding: 24px;
}

.game-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.game-info p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.game-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.game-meta span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* 体育竞猜 */
.sports-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  background: var(--dark);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-league {
  font-size: 0.85rem;
  color: var(--gray-light);
}

.event-time {
  font-size: 0.85rem;
  color: var(--gray-light);
}

.event-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.team-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.vs {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
}

.event-odds {
  display: flex;
  gap: 12px;
}

.odds-btn {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.odds-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.odds-btn .odds-value {
  font-weight: 600;
  color: var(--success);
}

.odds-btn .odds-label {
  font-size: 0.8rem;
  color: var(--gray-light);
}

/* 我的下注记录 */
.my-bets-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.my-bets-section h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.bets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bet-item {
  background: var(--dark);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bet-info-main {
  flex: 1;
  min-width: 200px;
}

.bet-match {
  font-weight: 500;
  margin-bottom: 4px;
}

.bet-selection {
  font-size: 0.85rem;
  color: var(--gray-light);
}

.bet-odds {
  color: var(--success);
  font-weight: 600;
}

.bet-stake {
  text-align: center;
}

.bet-stake-label {
  font-size: 0.75rem;
  color: var(--gray);
}

.bet-stake-value {
  font-weight: 600;
}

.bet-potential {
  text-align: center;
}

.bet-potential-label {
  font-size: 0.75rem;
  color: var(--gray);
}

.bet-potential-value {
  font-weight: 600;
  color: var(--success);
}

.bet-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.bet-status.pending {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.bet-status.won {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.bet-status.lost {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* 排行榜 */
.leaderboard-tabs,
.tasks-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.leaderboard-table,
.tasks-list {
  background: var(--dark);
  border-radius: 16px;
  overflow: hidden;
}

.table-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row.header {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.9rem;
}

.rank {
  width: 50px;
  text-align: center;
  font-weight: 700;
}

.rank.top3 {
  font-size: 1.2rem;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.user-name {
  font-weight: 500;
}

.points-cell {
  width: 120px;
  text-align: right;
  font-weight: 600;
  color: var(--success);
}

/* 任务 */
.task-item {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 16px;
}

.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.task-info {
  flex: 1;
}

.task-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.task-desc {
  font-size: 0.85rem;
  color: var(--gray-light);
}

.task-progress {
  width: 200px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--gray-light);
  text-align: right;
}

.task-reward {
  text-align: right;
  min-width: 80px;
}

.reward-points {
  font-weight: 600;
  color: var(--success);
}

.task-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.task-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.task-btn.claim {
  background: var(--success);
  color: white;
  border: none;
}

.task-btn.completed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
  border: none;
}

/* 个人资料 */
.profile-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.profile-info h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--gray-light);
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row .stat-value {
  font-weight: 600;
  color: var(--success);
}

/* 游戏记录 */
.history-filters {
  margin-bottom: 24px;
}

.history-filters select {
  padding: 10px 16px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--light);
  font-size: 0.95rem;
}

.history-table {
  background: var(--dark);
  border-radius: 16px;
  overflow: hidden;
}

.history-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-game {
  width: 100px;
}

.history-bet,
.history-win {
  width: 120px;
  text-align: right;
}

.history-result {
  width: 80px;
  text-align: center;
}

.result-win {
  color: var(--success);
}

.result-loss {
  color: var(--danger);
}

.result-push {
  color: var(--gray-light);
}

.history-time {
  flex: 1;
  text-align: right;
  color: var(--gray-light);
  font-size: 0.85rem;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--dark);
  border-radius: 24px;
  padding: 32px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 下注弹窗 */
.bet-modal-content {
  max-width: 420px;
  text-align: center;
}

.bet-modal-content h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.bet-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.bet-info p {
  margin: 8px 0;
  color: var(--gray);
}

.bet-info p strong {
  color: var(--light);
  font-size: 1.1rem;
}

.bet-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.bet-actions .btn {
  flex: 1;
  max-width: 150px;
}

/* 游戏容器 */
#game-container {
  min-height: 500px;
}

/* 老虎机样式 */
.slot-machine {
  text-align: center;
}

.slot-reels {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
}

.slot-reel {
  width: 80px;
  height: 120px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.slot-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bet-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bet-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.bet-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.bet-amount {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 100px;
  text-align: center;
}

.spin-btn {
  padding: 16px 48px;
  font-size: 1.2rem;
}

.slot-result {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
}

.slot-result.win {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid var(--success);
}

.slot-result.loss {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--danger);
}

.win-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

/* 老虎机主题选择 */
.slot-themes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.theme-btn {
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s;
}

.theme-btn:hover {
  border-color: var(--primary);
  color: var(--light);
}

.theme-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.bonus-win {
  color: #8b5cf6;
  font-weight: 600;
  margin-top: 8px;
}

/* 游戏玩法说明 */
.game-rules {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  text-align: left;
}

.game-rules h4 {
  margin-bottom: 12px;
  color: var(--primary);
}

.game-rules ul {
  list-style: none;
  padding: 0;
}

.game-rules li {
  padding: 6px 0;
  color: var(--gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-rules li:last-child {
  border-bottom: none;
}

.game-rules strong {
  color: var(--light);
}

/* 组合下注样式 */
.combo-bet-bar {
  position: sticky;
  top: 0;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.combo-bet-info {
  display: flex;
  gap: 20px;
}

.combo-count {
  font-weight: 600;
  color: var(--primary);
}

.combo-odds {
  font-weight: 600;
  color: var(--success);
}

.combo-bet-actions {
  display: flex;
  gap: 8px;
}

.event-card.in-combo {
  border: 2px solid var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.combo-add {
  margin-top: 12px;
  text-align: center;
}

.combo-selection {
  text-align: center;
}

.combo-selection p {
  margin-bottom: 16px;
  font-weight: 600;
}

.combo-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.combo-bet-modal {
  min-width: 400px;
}

.combo-type {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.combo-matches {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.combo-match {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
}

.match-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.match-teams {
  flex: 1;
  font-size: 0.9rem;
}

.match-selection {
  color: var(--primary);
  font-weight: 600;
}

.match-odds {
  font-weight: 600;
  color: var(--success);
}

.combo-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.combo-total-odds {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 12px;
}

.combo-stake {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.combo-stake input {
  width: 120px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
}

.combo-potential {
  font-size: 1.1rem;
  color: var(--warning);
}

.combo-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 轮盘样式 */
.roulette-game {
  text-align: center;
}

.roulette-wheel {
  width: 300px;
  height: 300px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: conic-gradient(
    #ef4444 0deg 9.73deg,
    #000 9.73deg 19.46deg,
    #ef4444 19.46deg 29.19deg,
    #000 29.19deg 38.92deg,
    #ef4444 38.92deg 48.65deg,
    #ef4444 48.65deg 58.38deg,
    #000 58.38deg 68.11deg,
    #ef4444 68.11deg 77.84deg,
    #000 77.84deg 87.57deg,
    #ef4444 87.57deg 97.3deg,
    #ef4444 97.3deg 107.03deg,
    #000 107.03deg 116.76deg,
    #ef4444 116.76deg 126.49deg,
    #000 126.49deg 136.22deg,
    #ef4444 136.22deg 145.95deg,
    #ef4444 145.95deg 155.68deg,
    #000 155.68deg 165.41deg,
    #ef4444 165.41deg 175.14deg,
    #22c55e 175.14deg 184.86deg,
    #ef4444 184.86deg 194.59deg,
    #000 194.59deg 204.32deg,
    #ef4444 204.32deg 214.05deg,
    #ef4444 214.05deg 223.78deg,
    #000 223.78deg 233.51deg,
    #ef4444 233.51deg 243.24deg,
    #000 243.24deg 252.97deg,
    #ef4444 252.97deg 262.7deg,
    #ef4444 262.7deg 272.43deg,
    #000 272.43deg 282.16deg,
    #ef4444 282.16deg 291.89deg,
    #000 291.89deg 301.62deg,
    #ef4444 301.62deg 311.35deg,
    #ef4444 311.35deg 321.08deg,
    #000 321.08deg 330.81deg,
    #ef4444 330.81deg 340.54deg,
    #000 340.54deg 350.27deg,
    #ef4444 350.27deg 360deg
  );
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.roulette-wheel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--dark);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.roulette-wheel::after {
  content: '▼';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #ffd700;
}

.roulette-table {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  max-width: 600px;
  margin: 0 auto;
}

.roulette-number {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.roulette-number:hover {
  transform: scale(1.1);
}

.roulette-number.red {
  background: #ef4444;
}

.roulette-number.black {
  background: #1f2937;
}

.roulette-number.green {
  background: #22c55e;
  grid-row: span 3;
}

/* 二十一点样式 */
.blackjack-game {
  text-align: center;
}

.blackjack-table {
  background: #0d5c3b;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  min-height: 400px;
}

.dealer-hand,
.player-hand {
  margin-bottom: 24px;
}

.hand-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

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

.card {
  width: 80px;
  height: 112px;
  background: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card.red {
  color: #ef4444;
}

.card-back {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.hand-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.blackjack-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 百家乐游戏 */
.baccarat-game {
  padding: 20px;
}

.baccarat-table {
  background: linear-gradient(135deg, #1a5f3c 0%, #0d3d26 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.baccarat-hands {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.baccarat-hand {
  text-align: center;
  flex: 1;
}

.baccarat-hand .hand-label {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffd700;
}

.baccarat-hand .cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 80px;
}

.baccarat-vs {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
}

.baccarat-bet-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.baccarat-btn {
  padding: 20px 30px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.baccarat-btn.player {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.baccarat-btn.banker {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.baccarat-btn.tie {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.baccarat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.baccarat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.baccarat-btn .bet-odds {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* 德州扑克游戏 */
.texas-game {
  padding: 20px;
}

.texas-table {
  background: linear-gradient(135deg, #1a5f3c 0%, #0d3d26 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.texas-pot {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 20px;
}

.community-cards {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  min-height: 80px;
}

.card-placeholder {
  width: 50px;
  height: 70px;
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.texas-hands {
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.texas-hand {
  text-align: center;
}

.texas-hand .hand-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffd700;
}

.texas-hand .cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 2rem;
  min-height: 60px;
}

.texas-hand .hand-eval {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: 600;
}

.texas-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.texas-controls .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 扑克牌样式 */
.card {
  width: 50px;
  height: 70px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card.hearts, .card.diamonds {
  color: #dc2626;
}

.card.clubs, .card.spades {
  color: #1f2937;
}

/* 玩法说明 */
.game-rules {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.game-rules h4 {
  margin-bottom: 12px;
  color: var(--primary);
}

.game-rules ul {
  list-style: none;
  padding: 0;
}

.game-rules li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.game-rules li strong {
  color: var(--text-primary);
}

/* Toast 提示 */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.warning {
  background: var(--warning);
}

.toast.info {
  background: var(--primary);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .quick-games {
    flex-direction: column;
  }

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

  .section {
    padding: 80px 16px 16px;
  }

  .login-container {
    padding: 24px;
  }

  .roulette-table {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* 隐藏元素 */
.hidden {
  display: none !important;
}
