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

/* 滚动自动加载样式 - 移除手动加载按钮 */

/* 移除所有元素的焦点轮廓 - 使用最高优先级 */
*:focus,
*:focus-visible,
*:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* 移除按钮的焦点轮廓 */
button:focus,
button:focus-visible,
button:focus-within,
.btn:focus,
.btn:focus-visible,
.btn:focus-within,
input:focus,
input:focus-visible,
input:focus-within,
select:focus,
select:focus-visible,
select:focus-within,
textarea:focus,
textarea:focus-visible,
textarea:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* 移除可点击元素的焦点轮廓 */
[role="button"]:focus,
[role="button"]:focus-visible,
[role="button"]:focus-within,
.clickable:focus,
.clickable:focus-visible,
.clickable:focus-within,
.close:focus,
.close:focus-visible,
.close:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* 特别针对投注选项的焦点轮廓移除 */
.betting-option:focus,
.betting-option:focus-visible,
.betting-option:focus-within,
.betting-option:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Safari移动端颜色修复 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  * {
    -webkit-appearance: none;
    appearance: none;
  }

  body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #333 !important;
  }

  .header {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .lottery-display {
    background: rgba(255, 255, 255, 0.1) !important;
    /* 保持开奖信息文字为白色 */
    color: white !important;
  }

  /* 确保开奖信息内的文字保持白色 */
  .lottery-display .lottery-time,
  .lottery-display .lottery-status,
  .lottery-display .lottery-result {
    color: white !important;
  }

  .lottery-display .lottery-time span,
  .lottery-display .lottery-status span,
  .lottery-display .lottery-result span {
    color: white !important;
  }

  .lottery-display .lottery-time i,
  .lottery-display .lottery-status i,
  .lottery-display .lottery-result i {
    color: white !important;
  }

  /* 确保状态标签也保持正确颜色 */
  .lottery-display .status-badge {
    color: white !important;
  }

  /* 确保所有开奖信息相关的文字都是白色 */
  .lottery-display * {
    color: white !important;
  }

  /* 但投注区域内的文字保持原来的颜色 */
  .betting-area * {
    color: #333 !important;
  }

  .user-info {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }

  .betting-area {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
  }
}

/* 减少页面跳动优化 - 只添加平滑过渡，不影响功能 */
.title,
#nextLotteryTime,
#bettingStatus,
#lastLotteryResult {
  transition: opacity 0.2s ease;
}

/* 防止状态标签跳动 */
.status-badge {
  display: inline-block;
  min-width: 60px;
  text-align: center;
}



/* 主页特定变量 */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  min-height: 100vh;
  color: #333 !important;
  line-height: 1.6;
  position: relative;
  /* 防止Safari自动调整颜色 */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--radius-2xl);
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--radius-2xl);
  animation: fadeInUp 0.8s ease-out;
}

.title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
  letter-spacing: -0.02em;
  position: relative;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  border-radius: 2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderGlow {
  0% {
    box-shadow:
      0 2px 8px rgba(102, 126, 234, 0.3),
      0 4px 16px rgba(139, 92, 246, 0.2);
  }

  100% {
    box-shadow:
      0 4px 12px rgba(102, 126, 234, 0.5),
      0 8px 24px rgba(139, 92, 246, 0.4),
      0 0 20px rgba(240, 147, 251, 0.3);
  }
}

/* 开奖显示区域样式 */
.lottery-display {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 20px 30px;
  margin: 0;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lottery-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.lottery-display:hover::before {
  left: 100%;
}

.lottery-display:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lottery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: white;
}

.lottery-time,
.lottery-status,
.lottery-result {
  display: flex;
  align-items: center;
  gap: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
}

.lottery-time {
  justify-content: flex-start;
  color: white;
}

.lottery-status {
  justify-content: center;
}

.lottery-result {
  justify-content: flex-end;
}

.lottery-time i {
  font-size: 1.1rem;
  opacity: 0.9;
  color: white;
}

.lottery-status i,
.lottery-result i {
  font-size: 1.1rem;
  opacity: 0.9;
}

.lottery-time span,
.lottery-status span,
.lottery-result span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lottery-time span {
  color: white;
}

/* 投注状态样式 */
.lottery-status.betting {
  color: var(--success-color);
}

.lottery-status.betting i {
  color: var(--success-color);
}

.lottery-status.stopped {
  color: var(--error-color);
}

.lottery-status.stopped i {
  color: var(--error-color);
}

.lottery-status.completed {
  color: var(--warning-color);
}

.lottery-status.completed i {
  color: var(--warning-color);
}

.lottery-status.maintenance {
  color: var(--info-color);
}

.lottery-status.maintenance i {
  color: var(--info-color);
}

/* 投注状态元素样式 */
.status-badge {
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-left: 4px;
  /* 增加优先级，确保样式不被覆盖 */
  background-color: inherit !important;
  color: inherit !important;
}

.status-badge.status-active {
  color: white !important;
  background: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.status-badge.status-inactive {
  color: white !important;
  background: #6b7280 !important;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3) !important;
}

.status-badge.status-stopped {
  color: white !important;
  background: #f59e0b !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.status-badge.status-completed {
  color: white !important;
  background: #ef4444 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}


.lottery-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--radius-md);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 400;
}

.lottery-note i {
  font-size: 0.9rem;
  opacity: 0.7;
}

.lottery-note span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* 用户操作区域 */
.user-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--radius-md);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 100px;
  max-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  outline: none !important;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-btn i {
  font-size: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.user-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.user-info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 var(--radius-sm) var(--radius-lg) rgba(0, 0, 0, 0.1);
}

.info-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.username {
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-balance-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success-color);
  background: white;
  padding: 3px var(--radius-md);
  border-radius: 15px;
  border: 1px solid rgba(40, 167, 69, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(220, 53, 69, 0.8);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  outline: none !important;
}

.logout-btn:hover {
  background: rgba(220, 53, 69, 1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.betting-area {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.betting-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg,
      #667eea 0%,
      #764ba2 25%,
      #f093fb 50%,
      #f5576c 75%,
      #4facfe 100%);
  border-radius: 30px 30px 0 0;
  box-shadow:
    0 2px 8px rgba(102, 126, 234, 0.3),
    0 4px 16px rgba(139, 92, 246, 0.2);
  animation: borderGlow 3s ease-in-out infinite alternate;
}

.betting-area:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

/* 投注区域头部 */
.betting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

/* 本场总投注金额显示 */
.betting-total-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow:
    0 4px 15px rgba(59, 130, 246, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.betting-total-amount::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.betting-total-amount::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 2px;
  background: linear-gradient(45deg, #60a5fa, #a78bfa, #60a5fa);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.6;
}

.betting-total-amount:hover::before {
  left: 100%;
}

.betting-total-amount:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(59, 130, 246, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.betting-total-amount:hover::after {
  opacity: 0.8;
  animation: pulse 2s infinite;
}

.betting-total-amount .total-label {
  font-size: 0.9rem;
  opacity: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: #f8fafc;
  position: relative;
  z-index: 2;
}

.betting-total-amount .total-value {
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* 机甲感脉冲动画 */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* 投注区域标题样式 */
.betting-area h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* 状态信息行布局 */
.status-info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.game-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-session-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.session-value {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 25px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
}

.betting-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.betting-option {
  aspect-ratio: 1;
  border: 2px solid rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  padding: var(--radius-md);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  outline: none !important;
}

.betting-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.betting-option:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(99, 102, 241, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.betting-option:hover::before {
  opacity: 1;
}

.betting-option.selected {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow:
    0 12px 30px rgba(99, 102, 241, 0.4),
    0 6px 16px rgba(139, 92, 246, 0.3);
  animation: pulse 2s infinite;
}

.betting-option.bet-placed {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: 3px solid #28a745;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  transform: scale(1.05);
  font-weight: bold;
}

.betting-option.bet-placed:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.betting-option.selected::before {
  opacity: 0;
}

.betting-option.selected::before {
  content: '';
  position: absolute;
  top: 5px;
  right: var(--radius-md);
  font-size: 0.8rem;
  font-weight: bold;
}

/* 已投注选项的样式 - 允许重复投注 */
.betting-option.bet-placed {
  background: linear-gradient(145deg, #e8f5e8, #d4edda);
  color: #155724;
  border: 2px solid #28a745;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
  font-weight: 600;
  cursor: pointer;
}

.betting-option.bet-placed:hover {
  background: linear-gradient(145deg, #d1e7dd, #c3e6cb);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

/* 确保已投注选项不会被选中样式覆盖 */
.betting-option.bet-placed.selected {
  background: linear-gradient(145deg, #e8f5e8, #d4edda);
  color: #155724;
  border: 2px solid #28a745;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
  font-weight: 600;
  cursor: pointer;
}

.option-number {
  font-size: 0.7rem;
  font-weight: 600;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: inherit;
  z-index: 1;
  line-height: 1;
}

.option-animal {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: inherit;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-bet-amount {
  font-size: 0.75rem;
  font-weight: 600;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 2;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.betting-history {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.betting-history h3 {
  margin-bottom: var(--radius-2xl);
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

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

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.3s ease;
}

.history-item:hover {
  background-color: #f8f9fa;
}

.history-item:last-child {
  border-bottom: none;
}

.history-number {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.history-amount {
  font-weight: 500;
  color: var(--success-color);
}

.history-time {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.history-status {
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: var(--radius-md);
  font-weight: 500;
  margin-left: var(--radius-md);
}

.history-status.won {
  background: rgba(40, 167, 69, 0.2);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.history-status.lost {
  background: rgba(220, 53, 69, 0.2);
  color: var(--error-color);
  border: 1px solid rgba(220, 53, 69, 0.3);
}


/* ===== 模态框基础样式 ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  touch-action: none;
}

body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ===== 登录模态框独立设计 ===== */
#loginModal {
  background: transparent;
  backdrop-filter: blur(15px);
}

#loginModal .modal-content {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  margin: 20% auto;
  padding: 0;
  border-radius: 25px;
  width: 90%;
  max-width: 260px;
  max-height: auto;
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.3),
    0 10px 20px rgba(139, 92, 246, 0.2);
  animation: loginSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

#loginModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
  animation: loginGradientShift 3s ease-in-out infinite;
}

@keyframes loginSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginGradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#loginModal .modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 25px 25px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#loginModal .modal-header h3 {
  margin: 0;
  color: #6366f1;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#loginModal .close {
  color: #6366f1;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
}

#loginModal .close:hover {
  color: #8b5cf6;
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

#loginModal .modal-body {
  padding: 6px 20px 8px 20px;
}

#loginModal .form-group {
  margin-bottom: 10px;
}

#loginModal .form-group:last-child {
  margin-bottom: 0;
}

#loginModal .form-group label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
}

#loginModal .form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

#loginModal .form-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

#loginModal .modal-footer {
  padding: 8px 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(99, 102, 241, 0.02);
  border-radius: 0 0 25px 25px;
}

#loginModal .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}

#loginModal .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#loginModal .btn-primary:hover {
  background: linear-gradient(135deg, #5b5bd6, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

#loginModal .btn-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

#loginModal .btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #374151);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* ===== 注册模态框独立设计 ===== */
#registerModal {
  background: transparent;
  backdrop-filter: blur(15px);
}

#registerModal .modal-content {
  background: linear-gradient(145deg, #ffffff, #f0fdf4);
  margin: 15% auto;
  padding: 0;
  border-radius: 25px;
  width: 90%;
  max-width: 300px;
  max-height: auto;
  box-shadow:
    0 25px 50px rgba(34, 197, 94, 0.3),
    0 12px 24px rgba(16, 185, 129, 0.2);
  animation: registerSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(34, 197, 94, 0.2);
  position: relative;
  overflow: hidden;
}

#registerModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #10b981, #059669);
  animation: registerGradientShift 4s ease-in-out infinite;
}

@keyframes registerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes registerGradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#registerModal .modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.05), rgba(16, 185, 129, 0.05));
  border-radius: 25px 25px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#registerModal .modal-header h3 {
  margin: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #22c55e, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#registerModal .close {
  color: #22c55e;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
}

#registerModal .close:hover {
  color: #10b981;
  background: rgba(34, 197, 94, 0.2);
  transform: scale(1.1);
}

#registerModal .modal-body {
  padding: 12px 22px;
}

#registerModal .form-group {
  margin-bottom: 12px;
}

#registerModal .form-group:last-child {
  margin-bottom: 0;
}

#registerModal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

#registerModal .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

#registerModal .form-group input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  background: white;
}

#registerModal .modal-footer {
  padding: 12px 22px;
  border-top: 1px solid rgba(34, 197, 94, 0.1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: rgba(34, 197, 94, 0.02);
  border-radius: 0 0 24px 24px;
}

#registerModal .btn {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 70px;
}

#registerModal .btn-primary {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#registerModal .btn-primary:hover {
  background: linear-gradient(135deg, #16a34a, #059669);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

#registerModal .btn-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

#registerModal .btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #374151);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* ===== 投注模态框独立设计 ===== */
#bettingModal {
  background: transparent;
  backdrop-filter: blur(15px);
  z-index: 1000;
}

/* 确保投注选项在弹窗之上保持可见 */
.betting-option {
  z-index: 1001 !important;
}

#bettingModal .modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  margin: 12% auto;
  padding: 0;
  border-radius: 30px;
  width: 90%;
  max-width: 360px;
  max-height: auto;
  box-shadow:
    0 30px 60px rgba(245, 158, 11, 0.3),
    0 15px 30px rgba(251, 146, 60, 0.2);
  animation: bettingSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
}

#bettingModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f59e0b, #fb923c, #f97316);
  animation: bettingGradientShift 3.5s ease-in-out infinite;
}

@keyframes bettingSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bettingGradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#bettingModal .modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.05), rgba(251, 146, 60, 0.05));
  border-radius: 30px 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#bettingModal .modal-header h3 {
  margin: 0;
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#bettingModal .close {
  color: #f59e0b;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
}

#bettingModal .close:hover {
  color: #fb923c;
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.1);
}

#bettingModal .modal-body {
  padding: 16px 25px;
}

#bettingModal .betting-info {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.05), rgba(251, 146, 60, 0.05));
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

#bettingModal .selected-option,
#bettingModal .balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#bettingModal .selected-option:last-child,
#bettingModal .balance-info:last-child {
  margin-bottom: 0;
}

#bettingModal .option-label,
#bettingModal .balance-label {
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
}

#bettingModal .option-value,
#bettingModal .balance-value {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1rem;
}

#bettingModal .form-group {
  margin-bottom: 12px;
  position: relative;
}

#bettingModal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

#bettingModal .form-group input {
  width: 100%;
  padding: 14px 45px 14px 16px;
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

#bettingModal .form-group input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  background: white;
}

#bettingModal .currency {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  height: 9px;
  display: flex;
  align-items: center;
  margin-top: 12px;
}

#bettingModal .modal-footer {
  padding: 14px 25px;
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  background: rgba(245, 158, 11, 0.02);
  border-radius: 0 0 30px 30px;
}

#bettingModal .btn {
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

#bettingModal .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#bettingModal .btn-primary:hover {
  background: linear-gradient(135deg, #d97706, #ea580c);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* 投注按钮加载状态 */
#bettingModal .btn-primary:disabled {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
}

#bettingModal .btn-primary:disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

#bettingModal .btn-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

#bettingModal .btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #374151);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* ===== 客服模态框独立设计 ===== */
#customerServiceModal {
  background: transparent;
  backdrop-filter: blur(15px);
}

#customerServiceModal .modal-content {
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  margin: 10% auto;
  padding: 0;
  border-radius: 32px;
  width: 90%;
  max-width: 420px;
  max-height: auto;
  box-shadow:
    0 35px 70px rgba(59, 130, 246, 0.3),
    0 18px 36px rgba(99, 102, 241, 0.2);
  animation: serviceSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

#customerServiceModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
  animation: serviceGradientShift 4s ease-in-out infinite;
}

@keyframes serviceSlideIn {
  from {
    opacity: 0;
    transform: translateY(-60px) scale(0.85);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes serviceGradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#customerServiceModal .modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
  border-radius: 32px 32px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#customerServiceModal .modal-header h3 {
  margin: 0;
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#customerServiceModal .close {
  color: #3b82f6;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
}

#customerServiceModal .close:hover {
  color: #6366f1;
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

#customerServiceModal .modal-body {
  padding: 18px 28px;
}

#customerServiceModal .customer-service-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

#customerServiceModal .service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

#customerServiceModal .service-item:hover {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

#customerServiceModal .service-item i {
  font-size: 1.8rem;
  color: #3b82f6;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
}

#customerServiceModal .service-details h4 {
  margin: 0 0 4px 0;
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
}

#customerServiceModal .service-details p {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
}

#customerServiceModal .service-note {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

#customerServiceModal .service-note p {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

#customerServiceModal .service-note i {
  color: #3b82f6;
  font-size: 1rem;
}

#customerServiceModal .modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  justify-content: center;
  background: rgba(59, 130, 246, 0.02);
  border-radius: 0 0 32px 32px;
}

#customerServiceModal .btn {
  padding: 14px 24px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

#customerServiceModal .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#customerServiceModal .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ===== 题目模态框独立设计 ===== */
#questionModal {
  background: transparent;
  backdrop-filter: blur(15px);
}

#questionModal .modal-content {
  background: linear-gradient(145deg, #ffffff, #faf5ff);
  margin: 8% auto;
  padding: 0;
  border-radius: 36px;
  width: 90%;
  max-width: 480px;
  max-height: auto;
  box-shadow:
    0 40px 80px rgba(168, 85, 247, 0.3),
    0 20px 40px rgba(236, 72, 153, 0.2);
  animation: questionSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(168, 85, 247, 0.2);
  position: relative;
  overflow: hidden;
}

#questionModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, #a855f7, #ec4899, #f43f5e);
  animation: questionGradientShift 4.5s ease-in-out infinite;
}

@keyframes questionSlideIn {
  from {
    opacity: 0;
    transform: translateY(-70px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes questionGradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

#questionModal .modal-header {
  padding: 0px 32px 1px 32px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 36px 36px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#questionModal .modal-header h3 {
  margin: 0;
  color: #a855f7;
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#questionModal .close {
  color: #a855f7;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
}

#questionModal .close:hover {
  color: #ec4899;
  background: rgba(168, 85, 247, 0.2);
  transform: scale(1.1);
}

#questionModal .modal-body {
  padding: 0px 32px 20px 32px;
}

#questionModal .question-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#questionModal .question-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #a855f7;
  text-align: center;
  padding: 8px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  margin-bottom: 0px;
}

#questionModal .question-text {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
  padding: 12px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.03), rgba(236, 72, 153, 0.03));
  border-radius: 18px;
  border: 1px solid rgba(168, 85, 247, 0.08);
  text-align: center;
  margin-bottom: 0px;
}

#questionModal .question-image {
  text-align: center;
}

#questionModal .question-image {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* 减少间距 */
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 5px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  #questionModal .question-image {
    max-height: 35vh;
    margin-bottom: 5px;
  }

  #questionModal .modal-footer {
    margin-top: 5px;
    padding: 12px 32px;
    position: relative;
    z-index: 10;
  }

  #questionModal .modal-body {
    max-height: 55vh;
    overflow-y: auto;
    padding-bottom: 15px;
  }

  .question-modal {
    max-width: 95%;
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
  }

  #questionModal {
    max-height: 90vh;
  }

  #questionModal .question-content {
    gap: 2px;
  }

  #questionModal .question-title {
    margin-bottom: 2px;
    padding: 6px;
  }

  #questionModal .question-text {
    margin-bottom: 2px;
    padding: 8px;
  }
}

#questionModal .question-image .image-item {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.03), rgba(236, 72, 153, 0.03));
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.08);
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
}

#questionModal .question-image .image-item:hover {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
  border-color: rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
}

#questionModal .question-image img {
  max-width: 100%;
  max-height: 300px;
  /* 限制最大高度 */
  width: auto;
  height: auto;
  border-radius: 8px;
  /* 减少圆角 */
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
  /* 减少阴影 */
  border: 1px solid rgba(168, 85, 247, 0.1);
  object-fit: contain;
  /* 保持图片比例 */
}

#questionModal .modal-footer {
  padding: 18px 32px;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  display: flex;
  justify-content: center;
  background: rgba(168, 85, 247, 0.02);
  border-radius: 0 0 36px 36px;
}

#questionModal .btn {
  padding: 16px 28px;
  border: none;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

#questionModal .btn-primary {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

#questionModal .btn-primary:hover {
  background: linear-gradient(135deg, #9333ea, #db2777);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

/* ===== 投注记录收纳盒子 ===== */
.betting-records-container {
  background: white;
  border-radius: var(--radius-2xl);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.records-header {
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--radius-2xl) 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.records-header:hover {
  background: linear-gradient(145deg, #5a6fd8, #6a5acd);
}

.records-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.records-count {
  font-size: 0.9rem;
  opacity: 0.8;
}

.records-toggle-icon {
  transition: transform 0.3s ease;
}

.records-toggle-icon.rotated {
  transform: rotate(180deg);
}

.records-content {
  max-height: 0;
  /* 默认收起状态 */
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease, visibility 0.2s ease;
  background: #f8f9fa;
  border-radius: 0 0 30px 30px;
  opacity: 0;
  visibility: hidden;
  padding: 0;
}

.records-content.collapsed {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  visibility: hidden;
}

.records-content.expanded {
  max-height: 5000px;
  /* 增大高度，确保完全展开 */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px;
  opacity: 1;
  visibility: visible;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

.loading-message i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #667eea;
}




.record-item {
  background: white;
  border-radius: 20px;
  padding: var(--radius-lg);
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.record-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px var(--radius-2xl) rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.record-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 6px;
}


.record-winnings {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: var(--radius-sm);
}


/* 投注对话框样式 */
.betting-info {
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 15px;
  padding: var(--radius-2xl);
  margin-bottom: var(--radius-2xl);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.selected-option,
.balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.selected-option:last-child,
.balance-info:last-child {
  margin-bottom: 0;
}

.option-label,
.balance-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.option-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.balance-value {
  font-weight: 700;
  color: var(--success-color);
  font-size: 1.1rem;
}

/* 开彩记录区域样式 */
.history-records-section {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

/* 开奖记录容器过渡效果 */
#lotteryRecordsList {
  transition: opacity 0.3s ease-in-out;
  min-height: 200px;
}

/* 开奖记录项样式 - 方形盒子 */
.lottery-record-item {
  background: #ffffff;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e5e9;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.lottery-record-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.lottery-record-item .record-header {
  background: #667eea;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lottery-record-item .record-session {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.lottery-record-item .session-icon {
  font-style: normal;
  font-size: 1.1rem;
}

.lottery-record-item .session-text {
  font-size: 0.95rem;
}


.lottery-record-item .record-content {
  padding: 15px 20px;
}

.lottery-record-item .winning-result {
  text-align: center;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e9ecef;
}

.lottery-record-item .winning-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lottery-record-item .winning-number .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  background: white;
  padding: 6px 12px;
  border-radius: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.lottery-record-item .winning-number .animal {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lottery-record-item .record-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lottery-record-item .stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.lottery-record-item .stat-item:hover {
  background: #f1f3f4;
  transform: translateX(5px);
}

.lottery-record-item .stat-item.highlight {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
  border-color: rgba(34, 197, 94, 0.2);
}

.lottery-record-item .stat-item.highlight:hover {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
}

.lottery-record-item .stat-icon {
  font-size: 1rem;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.lottery-record-item .stat-item.highlight .stat-icon {
  color: var(--success-color);
}

.lottery-record-item .stat-item .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 80px;
}

.lottery-record-item .stat-item .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-left: auto;
}

.lottery-record-item .stat-item.highlight .value {
  color: var(--success-color);
}

/* 开奖记录空状态样式 */
.lottery-empty-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  border-radius: 16px;
  border: 2px dashed rgba(102, 126, 234, 0.2);
  margin: 20px 0;
}

.lottery-empty-message i {
  font-size: 4rem;
  color: rgba(102, 126, 234, 0.3);
  margin-bottom: 20px;
  display: block;
}

.lottery-empty-message h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.lottery-empty-message p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.history-header {
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--radius-2xl) 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header h3 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.history-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.month-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--radius-md) var(--space-4);
  border-radius: var(--radius-2xl);
}

.month-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: var(--radius-sm) var(--radius-md);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.current-month {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 80px;
  text-align: center;
}

.history-content {
  padding: var(--radius-2xl);
  max-height: 400px;
  overflow-y: auto;
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.lottery-result-item {
  background: #f8f9fa;
  border-radius: var(--radius-lg);
  padding: 15px;
  border-left: var(--radius-sm) solid var(--primary-color);
  transition: all 0.3s ease;
}

.lottery-result-item:hover {
  background: var(--border-light);
  transform: translateX(5px);
}

.lottery-result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--radius-md);
}

.lottery-round {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.lottery-number {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.lottery-time {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--radius-md);
}

.lottery-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.lottery-stat {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  padding: var(--radius-sm) var(--radius-md);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.empty-message {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
}

.empty-message i {
  font-size: 2rem;
  opacity: 0.5;
}

.empty-message div {
  font-size: 1.2rem;
}

.empty-message small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.empty-message .fas.fa-user-lock {
  color: #f59e0b;
}

/* 滚动条样式 */
.records-list::-webkit-scrollbar {
  width: 6px;
}

.records-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.records-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.records-list::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

/* 投注记录内容滚动条样式 */
.records-content::-webkit-scrollbar {
  width: 6px;
}

.records-content::-webkit-scrollbar-track {
  background: transparent;
}

.records-content::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.records-content::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* 登录提示容器样式 */
.login-prompt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  margin: 0;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  min-height: 200px;
  max-width: 300px;
  width: 100%;
}

.login-prompt-icon {
  margin-bottom: 20px;
}

.login-prompt-icon i {
  font-size: 48px;
  color: #667eea;
  opacity: 0.8;
  text-shadow: 0 2px 4px rgba(102, 126, 234, 0.15);
}

.login-prompt-text h4 {
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}


/* 响应式设计 - 确保在不同屏幕尺寸下都能完美居中 */
@media (max-width: 768px) {
  .login-prompt-container {
    margin: 0;
    padding: 30px 15px;
    min-height: 180px;
    max-width: 280px;
    width: 100%;
  }

  .login-prompt-icon i {
    font-size: 42px;
  }

  .login-prompt-text h4 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .login-prompt-container {
    margin: 0;
    padding: 25px 12px;
    min-height: 160px;
    max-width: 260px;
    width: 100%;
  }

  .login-prompt-icon i {
    font-size: 36px;
  }

  .login-prompt-text h4 {
    font-size: 15px;
  }
}

/* 无记录提示信息样式（保留原有样式作为备用） */
.no-records-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin: 20px;
  border: 2px dashed #ddd;
}

.no-records-message i {
  font-size: 24px;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

/* 投注记录网格布局 */
.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 10px 0;
}

/* 当records-grid包含空状态消息时，使用flex布局居中 */
.records-grid:has(.empty-message) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 200px !important;
}


/* 当records-grid包含登录提示时，使用flex布局居中 */
.records-grid.login-prompt-mode {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 300px !important;
}



.bet-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.bet-status.won {
  color: var(--success-color);
}

.bet-status.lost {
  color: var(--danger-color);
}






.modal-body .form-group {
  position: relative;
}

.modal-body .form-group .currency {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-body .form-group input[type="number"] {
  padding: 20px 24px;
  padding-right: 40px;
  font-size: 1.2rem;
  min-height: 68px;
}

/* 联系客服模态框样式 */
.customer-service-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 var(--radius-sm) var(--radius-lg) rgba(102, 126, 234, 0.2);
}

.service-item i {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 var(--radius-sm) var(--radius-lg) rgba(102, 126, 234, 0.3);
}

.service-item .fab.fa-weixin {
  background: linear-gradient(145deg, #07c160, #00d4aa);
  box-shadow: 0 var(--radius-sm) var(--radius-lg) rgba(7, 193, 96, 0.3);
}

.service-item .fab.fa-qq {
  background: linear-gradient(145deg, #12b7f5, #1e90ff);
  box-shadow: 0 var(--radius-sm) var(--radius-lg) rgba(18, 183, 245, 0.3);
}

.service-item .fas.fa-phone {
  background: linear-gradient(145deg, var(--success-color), #20c997);
  box-shadow: 0 var(--radius-sm) var(--radius-lg) rgba(40, 167, 69, 0.3);
}

.service-details h4 {
  margin: 0 0 var(--radius-md) 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-details p {
  margin: 0 0 var(--radius-sm) 0;
  color: #666;
  font-size: 0.9rem;
}

.service-details p:last-child {
  margin-bottom: 0;
  color: #999;
  font-size: 0.8rem;
}

.service-note {
  background: linear-gradient(145deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: var(--radius-md);
  padding: var(--radius-lg);
  margin-top: 15px;
}

.service-note p {
  margin: 0;
  color: #856404;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--radius-md);
}

.service-note i {
  color: var(--warning-color);
  font-size: 1rem;
}

/* 联系客服按钮样式 */
.customer-service-btn {
  position: fixed;
  top: var(--radius-2xl);
  left: var(--radius-2xl);
  display: flex;
  align-items: center;
  gap: var(--radius-md);
  padding: var(--radius-lg) var(--space-4);
  background: linear-gradient(145deg, var(--success-color), #20c997);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 var(--radius-sm) 15px rgba(40, 167, 69, 0.3);
  z-index: 1000;
  outline: none !important;
}

.customer-service-btn:hover {
  background: linear-gradient(145deg, #20c997, var(--info-color));
  transform: translateY(-2px);
  box-shadow: 0 6px var(--radius-2xl) rgba(40, 167, 69, 0.4);
}

.customer-service-btn i {
  font-size: 1rem;
}

.customer-service-btn span {
  font-weight: 600;
}

/* 题目区域样式 */
.question-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.question-btn {
  display: flex;
  align-items: center;
  gap: var(--radius-md);
  padding: 10px var(--radius-2xl);
  background: linear-gradient(145deg, var(--warning-color), #fd7e14);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 var(--radius-sm) 15px rgba(255, 193, 7, 0.3);
  outline: none !important;
}

.question-btn:hover {
  background: linear-gradient(145deg, #fd7e14, #e55a00);
  transform: translateY(-2px);
  box-shadow: 0 6px var(--radius-2xl) rgba(255, 193, 7, 0.4);
}

.question-btn i {
  font-size: 1rem;
}

.question-btn span {
  font-weight: 600;
}

/* 现场直播按钮样式 */
.live-btn {
  display: flex;
  align-items: center;
  gap: var(--radius-md);
  padding: 12px var(--radius-2xl);
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 15px rgba(229, 62, 62, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  outline: none !important;
}

.live-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.live-btn:hover::before {
  left: 100%;
}

.live-btn:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(229, 62, 62, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.live-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 15px rgba(229, 62, 62, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.live-btn:disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.live-btn:disabled::before {
  display: none;
}

.live-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.live-btn:hover i {
  transform: scale(1.1);
}

.live-btn span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 视频按钮样式 */
.video-btn {
  display: flex;
  align-items: center;
  gap: var(--radius-md);
  padding: 12px var(--radius-2xl);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 15px rgba(102, 126, 234, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  outline: none !important;
}

.video-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.video-btn:hover::before {
  left: 100%;
}

.video-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(102, 126, 234, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.video-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 15px rgba(102, 126, 234, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-btn:disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.video-btn:disabled::before {
  display: none;
}

.video-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.video-btn:hover i {
  transform: scale(1.1);
}

.video-btn span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 题目弹窗样式 */
.question-modal {
  max-width: 90%;
  width: 500px;
  margin: 10% auto;
}

/* 视频模态框样式 */
.video-modal {
  max-width: 95%;
  width: 900px;
  margin: 1% auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 25px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
}

.video-modal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 25px 25px 0 0;
  padding: 8px 25px;
  border-bottom: none;
  position: relative;
}

.video-modal .modal-header h3 {
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 50px;
}

.video-modal .modal-header h3::before {
  content: '🎬';
  font-size: 1.5rem;
}

.video-modal .close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.video-modal .close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.video-modal .modal-body {
  padding: 20px 30px 15px 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.no-video-message {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 20px;
  border: 2px dashed #d1d5db;
  margin: 20px 0;
}

.no-video-message i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #9ca3af;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.video-modal {
  animation: fadeInUp 0.4s ease-out;
}

.video-btn {
  animation: slideIn 0.3s ease-out;
}



#videoContainer {
  min-height: 400px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  padding: 20px;
}

.video-title {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  display: none;
}

.video-title h4 {
  margin: 0;
  color: #1f2937;
  font-size: 1.3rem;
  font-weight: 700;
}

.video-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.video-header h4 {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 1.3rem;
  font-weight: 700;
}

.video-info {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}



.video-modal .modal-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 0 0 25px 25px;
  padding: 20px 25px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal .modal-footer .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.video-modal .modal-footer .btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .question-section {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .records-header {
    padding: 15px 25px;
    transition: background 0.25s ease;
    touch-action: manipulation;
  }

  .records-content.expanded {
    max-height: 350px;
    padding: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }


  /* 中等屏幕开奖记录样式 */
  .lottery-record-item {
    margin-bottom: 12px;
  }

  .lottery-record-item .record-header {
    padding: 13px 18px;
  }

  .lottery-record-item .record-content {
    padding: 14px 18px;
  }

  .lottery-record-item .winning-number .number {
    font-size: 1.6rem;
    padding: 6px 12px;
  }

  .lottery-record-item .winning-number .animal {
    font-size: 1.2rem;
  }

  .lottery-record-item .stat-item {
    padding: 8px 12px;
  }

  .question-btn,
  .live-btn,
  .video-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }

  .video-modal {
    max-width: 98%;
    width: 95%;
    margin: 1% auto;
  }

  .video-modal .modal-body {
    padding: 15px 20px 10px 20px;
  }

  .video-modal .modal-footer {
    padding: 15px 20px;
  }

  .video-modal .modal-footer .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    min-width: 100px;
  }

  #videoContainer {
    min-height: 300px;
  }

  .no-video-message {
    padding: 40px 15px;
  }

  .no-video-message i {
    font-size: 3rem;
  }

  .no-video-message p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .video-modal {
    margin: 0.5% auto;
  }

  .question-section {
    flex-direction: row;
    gap: 8px;
  }

  .question-btn,
  .live-btn,
  .video-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .question-btn i,
  .live-btn i,
  .video-btn i {
    font-size: 0.9rem;
  }

  .video-modal .modal-header {
    padding: 4px 20px;
    position: relative;
  }

  .video-modal .modal-header h3 {
    font-size: 1.1rem;
    padding-right: 40px;
  }

  .video-modal .close {
    top: 4px;
    right: 12px;
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
  }

  .video-modal .modal-body {
    padding: 10px 15px 8px 15px;
  }

  .video-modal .modal-footer {
    padding: 12px 15px;
  }

  .video-modal .modal-footer .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    min-width: 80px;
  }



  .no-video-message {
    padding: 30px 10px;
  }

  .no-video-message i {
    font-size: 2.5rem;
  }

  .no-video-message p {
    font-size: 1.1rem;
  }

  .no-video-message small {
    font-size: 0.9rem;
  }
}

.question-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 减少间距 */
}

.question-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  padding: 8px;
  /* 减少内边距 */
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.question-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 8px;
  /* 减少内边距 */
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  white-space: pre-wrap;
}

/* 题目图片容器布局 */
.question-image-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.question-image {
  flex: 1;
  text-align: center;
}

/* 往下滑提示样式 - 垂直排列 */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 160px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.scroll-hint span {
  display: block;
  margin: 6px 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-3px);
  }
}

.question-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 var(--radius-sm) 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  margin: 5px;
  display: inline-block;
  vertical-align: top;
}

/* 多图片网格布局 */
.question-image {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* 减少最小宽度 */
  gap: 8px;
  /* 减少间距 */
  margin-top: 8px;
  /* 减少顶部间距 */
}

.question-image img {
  width: 100%;
  height: 180px;
  /* 减少高度 */
  object-fit: cover;
  border-radius: 8px;
  /* 减少圆角 */
  box-shadow: 0 var(--radius-sm) 10px rgba(0, 0, 0, 0.1);
  /* 减少阴影 */
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.question-image img:hover {
  transform: scale(1.05);
}

/* 个人投注记录区域 */
.personal-betting-records {
  background: white;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* 个人历史投注记录区域 */
.historical-betting-records {
  background: white;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* 加载状态提示样式 */
.loading-status {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-text i {
  font-size: 18px;
  animation: spin 1s linear infinite;
}

/* 骨架屏样式 */
.skeleton-container {
  padding: 20px;
  min-height: 800px;
  /* 确保骨架屏容器有足够高度，与真实数据展开高度一致 */
}

.skeleton-session {
  margin-bottom: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #f9fafb;
}

.skeleton-header {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  height: 80px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skeleton-title {
  height: 24px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 12px;
  width: 60%;
}

.skeleton-subtitle {
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  width: 40%;
  margin-top: 8px;
}

.skeleton-expand-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 50%;
}

@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* 开奖记录骨架屏样式 */
.lottery-skeleton-container {
  padding: 20px;
  min-height: 600px;
}

.lottery-skeleton-item {
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 20px;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.skeleton-session-info {
  flex: 1;
}

.skeleton-session-code {
  height: 20px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-draw-time {
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  width: 40%;
}

.skeleton-winning-info {
  text-align: right;
}

.skeleton-winning-number {
  height: 24px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 12px;
  width: 80px;
  margin-bottom: 8px;
  margin-left: auto;
}

.skeleton-winning-animal {
  height: 18px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 9px;
  width: 60px;
  margin-left: auto;
}

.skeleton-record-stats {
  display: flex;
  gap: 15px;
}

.skeleton-stat-item {
  flex: 1;
  height: 16px;
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

/* 开奖记录样式 */
.lottery-record-item {
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 20px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.lottery-record-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.session-info {
  flex: 1;
}

.session-code {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.draw-time {
  font-size: 14px;
  color: #718096;
}

.winning-info {
  text-align: right;
}

.winning-number {
  font-size: 24px;
  font-weight: bold;
  color: #e53e3e;
  margin-bottom: 5px;
}

.winning-animal {
  font-size: 16px;
  color: #38a169;
  font-weight: 500;
}

.record-stats {
  display: flex;
  gap: 15px;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #f7fafc;
  border-radius: 10px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #718096;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
}

/* 加载更多按钮样式 */
.load-more-lottery-btn {
  width: 100%;
  padding: 15px;
  margin: 20px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-lottery-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.load-more-lottery-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* 分批显示动画 */
.lottery-batch-item {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lottery-batch-item.show {
  opacity: 1;
}

/* 错误消息样式 */
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #e53e3e;
}

.error-message i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.error-message div {
  font-size: 18px;
  margin-bottom: 20px;
}

.retry-btn {
  padding: 10px 20px;
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.retry-btn:hover {
  background: #c53030;
}

/* 无记录消息样式 */
.no-records-message {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
}

.no-records-message i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.no-records-message div {
  font-size: 18px;
}

/* 加载更多按钮样式 */
.load-more-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

.historical-records-container {
  padding: 20px;
  min-height: 50px;
  /* 确保即使在collapsed状态下也有最小高度 */
}

.historical-session {
  margin-bottom: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.historical-session:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d1d5db, transparent);
  border-radius: 1px;
}

.historical-session:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.historical-session-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-wrap: wrap;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.session-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.session-time {
  font-size: 0.9rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 15px;
}

.session-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.stat-item.won {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.stat-item.won:hover {
  background: rgba(34, 197, 94, 0.4);
}

.stat-item.lost {
  background: rgba(156, 163, 175, 0.2);
  color: #6b7280;
}

.stat-item.lost:hover {
  background: rgba(156, 163, 175, 0.3);
}

.historical-session-header:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.historical-session-header .toggle-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.historical-session-header .toggle-icon.fa-chevron-right {
  transform: rotate(-90deg);
}

.historical-session-header i {
  font-size: 1rem;
}

/* 历史场次内容区域 */
.historical-session-content {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* 加载动画 */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-container {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.historical-session-content[style*="display: block"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.historical-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 20px;
  background: #f9fafb;
  transition: all 0.3s ease;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .historical-bets-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 15px;
  }
}


.historical-bet-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.historical-bet-item.won {
  border-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.historical-bet-item.lost {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.historical-bet-item.pending {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.historical-bet-item.won::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.historical-bet-item.lost::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.historical-bet-item.pending::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.historical-bet-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.historical-bet-animal {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
  text-align: center;
  line-height: 1.2;
}

.historical-bet-amount {
  font-size: 1rem;
  color: #059669;
  font-weight: 600;
  text-align: center;
}

.historical-bet-time {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

.historical-bet-number {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
  align-self: center;
}

.historical-bet-winnings {
  font-size: 1rem;
  color: #22c55e;
  font-weight: 700;
  text-align: center;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.historical-bet-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-top: auto;
}

.historical-bet-item.won .historical-bet-status {
  background: #22c55e;
  color: white;
}

.historical-bet-item.lost .historical-bet-status {
  background: #ef4444;
  color: white;
}

.historical-bet-item.pending .historical-bet-status {
  background: #f59e0b;
  color: white;
}

.historical-session-empty {
  padding: 30px;
  text-align: center;
  color: #6b7280;
  font-style: italic;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.historical-session-empty i {
  font-size: 2rem;
  opacity: 0.5;
}

.historical-session-empty div {
  font-size: 1.2rem;
}

.historical-session-empty small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.historical-session-empty .fas.fa-user-lock {
  color: #f59e0b;
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 无限滚动完成状态 */
.infinite-scroll-complete {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
}

.infinite-scroll-complete i {
  margin-right: 8px;
  color: #10b981;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .historical-records-container {
    padding: 15px;
  }

  .historical-session {
    margin-bottom: 20px;
  }

  .historical-session-header {
    padding: 15px;
    font-size: 0.95rem;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .session-info {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .session-title {
    font-size: 0.95rem;
    flex: 1;
    margin-right: 10px;
  }

  .session-time {
    font-size: 0.75rem;
    padding: 2px 6px;
    white-space: nowrap;
  }

  .session-stats {
    width: 100%;
    justify-content: space-between;
    margin-right: 0;
    gap: 6px;
    flex-wrap: wrap;
  }

  .stat-item {
    font-size: 0.75rem;
    padding: 3px 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
  }

  .historical-bets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
  }

  .historical-bet-item {
    padding: 8px;
    gap: 4px;
    min-height: 80px;
  }

  .historical-bet-number {
    font-size: 0.9rem;
    padding: 2px 4px;
  }

  .historical-bet-animal {
    font-size: 0.8rem;
  }

  .historical-bet-amount {
    font-size: 0.8rem;
  }

  .historical-bet-time {
    font-size: 0.7rem;
  }

  .historical-bet-winnings {
    font-size: 0.8rem;
    padding: 2px 4px;
  }

  .historical-bet-status {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .historical-records-container {
    padding: 10px;
  }

  .historical-session-header {
    padding: 10px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .session-info {
    gap: 8px;
  }

  .session-title {
    font-size: 0.85rem;
    margin-right: 8px;
  }

  .session-time {
    font-size: 0.7rem;
    padding: 2px 4px;
  }

  .session-stats {
    gap: 4px;
  }

  .stat-item {
    font-size: 0.7rem;
    padding: 2px 4px;
  }

  .historical-bets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px;
  }

  .historical-bet-item {
    padding: 6px;
    gap: 3px;
    min-height: 70px;
  }

  .historical-bet-number {
    font-size: 0.8rem;
    padding: 1px 3px;
  }

  .historical-bet-animal {
    font-size: 0.75rem;
  }

  .historical-bet-amount {
    font-size: 0.75rem;
  }

  .historical-bet-time {
    font-size: 0.75rem;
    font-weight: 500;
  }

  .historical-bet-winnings {
    font-size: 0.75rem;
    padding: 1px 3px;
  }

  .historical-bet-status {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header {
    gap: 15px;
  }

  .title {
    font-size: 2rem;
  }

  .lottery-display {
    padding: var(--radius-lg) var(--radius-2xl);
    max-width: 100%;
  }

  .lottery-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .lottery-time,
  .lottery-status,
  .lottery-result {
    justify-content: center;
  }

  /* 移动端弹窗优化 */
  #loginModal .modal-content {
    margin: 20% auto;
    max-width: 280px;
  }

  #registerModal .modal-content {
    margin: 15% auto;
    max-width: 320px;
  }

  #bettingModal .modal-content {
    margin: 12% auto;
    max-width: 380px;
  }

  #customerServiceModal .modal-content {
    margin: 10% auto;
    max-width: 440px;
  }

  #questionModal .modal-content {
    margin: 8% auto;
    max-width: 500px;
  }

  /* 移动端表单优化 */
  .modal-body .form-group {
    margin-bottom: 14px;
  }

  .modal-body .form-group input {
    padding: 12px 16px;
    font-size: 0.95rem;
    min-height: 46px;
  }

  .modal-body .form-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  /* 移动端按钮优化 */
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* 移动端投注区域头部优化 */
  .betting-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  .betting-area h2 {
    text-align: left;
    margin: 0;
    font-size: 1.8rem;
  }

  .betting-total-amount {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 120px;
  }

  .betting-total-amount .total-label {
    font-size: 0.85rem;
  }

  .betting-total-amount .total-value {
    font-size: 1rem;
  }


  /* 移动端投注记录和投注区域间距优化 */
  .personal-betting-records {
    margin-bottom: 8px;
  }

  .betting-area {
    margin-bottom: 10px;
    padding: 20px 15px;
  }

  /* 移动端投注记录内容优化 */
  .records-content.expanded {
    padding: 6px;
  }

  .record-item {
    padding: 8px;
    margin-bottom: 4px;
  }

  /* 移动端投注区域边框优化 */
  .betting-area::before {
    height: 5px;
    border-radius: 20px 20px 0 0;
  }

  /* 移动端投注网格优化 */
  .betting-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 6px;
  }

  .betting-option {
    padding: 8px 6px;
    font-size: 0.85rem;
    min-height: 55px;
  }

  .option-number {
    font-size: 0.95rem;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .option-animal {
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 600;
  }

  .option-bet-amount {
    font-size: 0.65rem;
    padding: 2px 6px;
    bottom: 6px;
  }

  /* 移动端标题优化 */
  .title {
    font-size: 3rem;
  }

  /* 移动端状态徽章优化 */
  .status-badge {
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.9rem;
  }
}

.user-actions {
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.user-info {
  flex-direction: row;
  gap: 10px;
  padding: 8px 15px;
  width: 100%;
  justify-content: center;
}

.user-details {
  align-items: center;
  width: auto;
  flex-direction: row;
  gap: 10px;
}

/* 移动端用户信息上下布局 */
@media (max-width: 768px) {
  .user-details {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .user-info-item {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .user-info {
    flex-direction: column;
    gap: 8px;
    padding: 10px 15px;
  }
}

.user-info-item {
  width: auto;
  justify-content: center;
}

.logout-btn {
  width: auto;
  justify-content: center;
}

.auth-btn {
  width: 100%;
  justify-content: center;
}

/* 开彩记录移动端优化 */
.history-header {
  padding: 15px var(--radius-2xl);
}

.history-controls {
  flex-direction: column;
  gap: 10px;
}

.record-type-selector {
  width: 100%;
  justify-content: center;
}

.record-type-btn {
  flex: 1;
  max-width: 120px;
  justify-content: center;
}

.month-selector {
  order: 2;
}

.winning-stats {
  order: 3;
  width: 100%;
  justify-content: space-around;
}

.winning-count,
.winning-amount {
  font-size: 0.8rem;
  padding: 3px 6px;
}

.history-content {
  min-height: 250px;
}

.records-list {
  padding: 15px;
  max-height: 300px;
}

.records-list .lottery-result-item,
.records-list .winning-record-item {
  padding: var(--radius-lg);
}

.records-list .lottery-result-info,
.records-list .winning-record-info {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.records-list .lottery-stats,
.records-list .winning-stats-detail {
  flex-wrap: wrap;
  gap: var(--radius-md);
}

/* 移动端输入框优化 */
.modal-body .form-group input {
  padding: 16px 20px;
  font-size: 1rem;
  min-height: 56px;
}

.modal-body .form-group input[type="number"] {
  padding: 16px 20px;
  padding-right: 40px;
  font-size: 1rem;
  min-height: 56px;
}

.modal-body .form-group select {
  padding: 16px 20px;
  font-size: 1rem;
  min-height: 56px;
}

.modal-body .form-group textarea {
  padding: 16px 20px;
  font-size: 1rem;
  min-height: 120px;
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .records-header {
    padding: 12px 20px;
    transition: background 0.2s ease;
    touch-action: manipulation;
  }

  .records-header h3 {
    font-size: 1.1rem;
  }

  .records-content.expanded {
    max-height: 300px;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .records-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 9px;
  }




  .bet-status {
    font-size: 0.7rem;
  }



  /* 移动端开奖记录样式 */
  .lottery-record-item {
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .lottery-record-item .record-header {
    padding: 12px 15px;
  }

  .lottery-record-item .session-text {
    font-size: 0.9rem;
  }


  .lottery-record-item .record-content {
    padding: 12px 15px;
  }

  .lottery-record-item .winning-result {
    margin-bottom: 12px;
    padding: 10px;
  }

  .lottery-record-item .winning-number .number {
    font-size: 1.3rem;
    padding: 5px 10px;
  }

  .lottery-record-item .winning-number .animal {
    font-size: 1.1rem;
  }

  .lottery-record-item .record-stats {
    gap: 6px;
  }

  .lottery-record-item .stat-item {
    padding: 6px 10px;
    gap: 6px;
  }

  .lottery-record-item .stat-icon {
    font-size: 0.85rem;
    width: 14px;
  }

  .lottery-record-item .stat-item .label {
    font-size: 0.75rem;
    min-width: 60px;
  }

  .lottery-record-item .stat-item .value {
    font-size: 0.85rem;
  }

  /* 移动端开奖记录空状态样式 */
  .lottery-empty-message {
    padding: 40px 15px;
    margin: 15px 0;
  }

  .lottery-empty-message i {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .lottery-empty-message h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .lottery-empty-message p {
    font-size: 0.85rem;
  }

  .header {
    gap: var(--radius-lg);
  }

  .title {
    font-size: 1.8rem;
  }

  .lottery-display {
    padding: 10px 15px;
    margin: 10px 0;
  }

  .lottery-time,
  .lottery-result {
    font-size: 0.8rem;
  }

  .lottery-time i,
  .lottery-result i {
    font-size: 1rem;
  }

  .user-info {
    padding: 6px 12px;
    max-width: 280px;
    gap: 8px;
    flex-direction: column;
  }

  .user-info-item {
    padding: 4px 8px;
    border-radius: 10px;
    gap: 4px;
  }

  .info-label {
    font-size: 0.7rem;
  }

  .username {
    font-size: 0.8rem;
  }

  .user-balance-display {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .logout-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    width: 80px;
  }

  .auth-btn {
    padding: var(--radius-md) var(--space-2);
    font-size: 0.8rem;
    min-width: 80px;
    max-width: 110px;
  }

  /* 开彩记录小屏幕优化 */
  .history-header {
    padding: var(--radius-lg) 15px;
  }

  .history-header h3 {
    font-size: 1.1rem;
    margin-bottom: var(--radius-lg);
  }

  .history-controls {
    gap: 10px;
  }

  .record-type-btn {
    padding: 6px var(--radius-lg);
    font-size: 0.8rem;
    gap: var(--radius-sm);
  }

  .record-type-btn i {
    font-size: 0.7rem;
  }

  .month-btn {
    width: var(--space-6);
    height: var(--space-6);
  }

  .current-month {
    font-size: 0.8rem;
    min-width: 80px;
  }

  .winning-stats {
    gap: 10px;
  }

  /* 小屏幕弹窗优化 */
  #loginModal .modal-content {
    margin: 25% auto;
    max-width: 260px;
    border-radius: 16px;
  }

  #loginModal .modal-header {
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
  }

  #loginModal .modal-body {
    padding: 6px 16px 8px 16px;
  }

  #loginModal .modal-footer {
    padding: 10px 16px;
    border-radius: 0 0 16px 16px;
  }

  #registerModal .modal-content {
    margin: 20% auto;
    max-width: 300px;
    border-radius: 20px;
  }

  #registerModal .modal-header {
    padding: 15px 18px;
    border-radius: 20px 20px 0 0;
  }

  #registerModal .modal-body {
    padding: 12px 18px;
  }

  #registerModal .modal-footer {
    padding: 12px 18px;
    border-radius: 0 0 20px 20px;
  }

  #bettingModal .modal-content {
    margin: 15% auto;
    max-width: 340px;
    border-radius: 24px;
  }

  #bettingModal .modal-header {
    padding: 18px 20px;
    border-radius: 24px 24px 0 0;
  }

  #bettingModal .modal-body {
    padding: 18px 20px;
  }

  #bettingModal .modal-footer {
    padding: 16px 20px;
    border-radius: 0 0 24px 24px;
  }

  #customerServiceModal .modal-content {
    margin: 12% auto;
    max-width: 380px;
    border-radius: 28px;
  }

  #customerServiceModal .modal-header {
    padding: 20px 24px;
    border-radius: 28px 28px 0 0;
  }

  #customerServiceModal .modal-body {
    padding: 20px 24px;
  }

  #customerServiceModal .modal-footer {
    padding: 18px 24px;
    border-radius: 0 0 28px 28px;
  }

  #questionModal .modal-content {
    margin: 10% auto;
    max-width: 420px;
    border-radius: 32px;
  }

  #questionModal .modal-header {
    padding: 22px 28px;
    border-radius: 32px 32px 0 0;
  }

  #questionModal .modal-body {
    padding: 22px 28px;
  }

  #questionModal .modal-footer {
    padding: 20px 28px;
    border-radius: 0 0 32px 32px;
  }
}

.winning-count,
.winning-amount {
  font-size: 0.7rem;
  padding: 2px 4px;
}

.records-list {
  padding: 10px;
  max-height: 250px;
}

.records-list .lottery-result-item,
.records-list .winning-record-item {
  padding: var(--radius-md);
}

.records-list .lottery-result-info,
.records-list .winning-record-info {
  gap: 3px;
}

.records-list .lottery-stats,
.records-list .winning-stats-detail {
  gap: var(--radius-sm);
}

/* 小屏幕输入框优化 */
.modal-body .form-group input {
  padding: 14px 18px;
  font-size: 0.9rem;
  min-height: 52px;
}

.modal-body .form-group input[type="number"] {
  padding: 14px 18px;
  padding-right: 40px;
  font-size: 0.9rem;
  min-height: 52px;
}

.modal-body .form-group select {
  padding: 14px 18px;
  font-size: 0.9rem;
  min-height: 52px;
}

.modal-body .form-group textarea {
  padding: 14px 18px;
  font-size: 0.9rem;
  min-height: 100px;
}

@media (max-width: 360px) {
  .container {
    padding: 10px;
  }

  .header {
    gap: var(--radius-md);
  }

  .title {
    font-size: 1.5rem;
  }

  .lottery-display {
    padding: 8px 12px;
    margin: 8px 0;
  }

  .lottery-time,
  .lottery-result {
    font-size: 0.75rem;
  }

  .user-info {
    padding: var(--radius-md);
    max-width: 250px;
  }

  .user-info-item {
    padding: 2px var(--radius-sm);
  }

  .info-label {
    font-size: 0.65rem;
  }

  .username {
    font-size: 0.75rem;
  }

  .user-balance-display {
    font-size: 0.7rem;
    padding: 1px 4px;
  }

  .logout-btn {
    padding: 4px 8px;
    font-size: 0.65rem;
    width: 70px;
  }

  .auth-btn {
    padding: var(--radius-sm) var(--space-1);
    font-size: 0.75rem;
    min-width: 70px;
    max-width: 90px;
  }

  /* 超小屏幕输入框优化 */
  .modal-body .form-group input {
    padding: 12px 16px;
    font-size: 0.85rem;
    min-height: 48px;
  }

  .modal-body .form-group input[type="number"] {
    padding: 12px 16px;
    padding-right: 40px;
    font-size: 0.85rem;
    min-height: 48px;
  }

  .modal-body .form-group select {
    padding: 12px 16px;
    font-size: 0.85rem;
    min-height: 48px;
  }

  .modal-body .form-group textarea {
    padding: 12px 16px;
    font-size: 0.85rem;
    min-height: 90px;
  }

  /* 超小屏幕弹窗优化 */
  #loginModal .modal-content {
    width: 92%;
    max-width: 260px;
    margin: 8% auto;
    max-height: 85vh;
  }

  #loginModal .modal-header {
    padding: 10px 12px;
  }

  #loginModal .modal-header h3 {
    font-size: 0.9rem;
  }

  #loginModal .modal-body {
    padding: 10px 12px;
  }

  #loginModal .modal-footer {
    padding: 3px 12px;
    gap: 6px;
  }

  #registerModal .modal-content {
    width: 92%;
    max-width: 260px;
    margin: 8% auto;
    max-height: 85vh;
  }

  #registerModal .modal-header {
    padding: 10px 12px;
  }

  #registerModal .modal-header h3 {
    font-size: 0.9rem;
  }

  #registerModal .modal-body {
    padding: 10px 12px;
  }

  #registerModal .modal-footer {
    padding: 3px 12px;
    gap: 6px;
  }

  #bettingModal .modal-content {
    width: 92%;
    max-width: 260px;
    margin: 8% auto;
    max-height: 85vh;
  }

  #bettingModal .modal-header {
    padding: 10px 12px;
  }

  #bettingModal .modal-header h3 {
    font-size: 0.9rem;
  }

  #bettingModal .modal-body {
    padding: 10px 12px;
  }

  #bettingModal .modal-footer {
    padding: 3px 12px;
    gap: 6px;
  }

  /* 超小屏幕投注区域头部优化 */
  .betting-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .betting-area h2 {
    text-align: left;
    margin: 0;
    font-size: 1.4rem;
  }

  .betting-total-amount {
    padding: 8px 14px;
    font-size: 0.8rem;
    min-width: 100px;
  }

  .betting-total-amount .total-label {
    font-size: 0.75rem;
  }

  .betting-total-amount .total-value {
    font-size: 0.9rem;
  }


  /* 超小屏幕投注记录和投注区域间距优化 */
  .personal-betting-records {
    margin-bottom: 5px;
  }

  .betting-area {
    margin-bottom: 8px;
    padding: 15px 12px;
  }

  /* 超小屏幕投注记录内容优化 */
  .records-content.expanded {
    padding: 4px;
  }

  .record-item {
    padding: 6px;
    margin-bottom: 3px;
  }

  /* 超小屏幕投注区域边框优化 */
  .betting-area::before {
    height: 3px;
    border-radius: 16px 16px 0 0;
  }

  /* 超小屏幕标题优化 */
  .title {
    font-size: 2rem;
  }

  /* 超小屏幕状态徽章优化 */
  .status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  /* 超小屏幕投注网格优化 */
  .betting-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 3px;
  }

  .betting-option {
    padding: 4px 2px;
    font-size: 0.8rem;
    min-height: 45px;
  }

  .option-number {
    font-size: 0.9rem;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }

  .option-animal {
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 600;
  }

  .option-bet-amount {
    font-size: 0.6rem;
    padding: 2px 5px;
    bottom: 5px;
  }

  /* 小屏幕客服弹窗优化 */
  .customer-service-info {
    gap: 10px;
  }

  .service-item {
    gap: 10px;
    padding: 10px;
  }

  .service-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .service-details h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .service-details p {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  /* 小屏幕触摸优化 */
  .btn,
  .betting-option,
  .close {
    min-height: 44px;
    min-width: 44px;
  }

  /* 小屏幕间距优化 */
  .container {
    padding: 10px;
  }

  .lottery-display {
    margin: 8px 0;
  }

  /* 小屏幕字体优化 */
  .title {
    font-size: 2.5rem;
  }

  .lottery-info {
    gap: 8px;
  }

  /* 移动端触摸优化 */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .btn,
  .betting-option,
  .close,
  .nav-btn,
  .action-btn {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    touch-action: manipulation;
  }

  /* 移动端滚动优化 */
  .modal-content {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    max-height: 90vh;
  }

  /* 移动端模态框优化 */
  .modal {
    padding: 10px;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }

  /* 移动端输入优化 */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* 滚动条样式 */
.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

/* 投注记录项样式 */
.betting-record-item {
  aspect-ratio: 1;
  border: 1px solid #ff9800 !important;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff8e1 !important;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  padding: 10px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 80px;
  gap: 6px;
}

.betting-record-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.betting-record-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(255, 152, 0, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.08);
  border-color: #ff9800;
}

.betting-record-item:hover::before {
  opacity: 1;
}

.record-option-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1976d2 !important;
  line-height: 1.2;
  margin-bottom: 3px;
}

.record-option-animal {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: #333 !important;
  margin-bottom: 5px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-amount {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4caf50 !important;
  background: rgba(76, 175, 80, 0.15) !important;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  margin-top: auto;
}


/* 个人投注记录区域 */
.personal-betting-records {
  background: white;
  border-radius: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* 移动端投注记录优化 */
@media (max-width: 768px) {
  .records-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
    width: 100%;
    margin: 0;
  }

  .betting-record-item {
    padding: 6px;
    min-height: 70px;
  }

  .record-option-number {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .record-option-animal {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .record-amount {
    font-size: 0.7rem;
    padding: 1px 3px;
    margin-bottom: 2px;
  }

}

@media (max-width: 480px) {
  .records-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
    width: 100%;
    margin: 0;
  }

  .betting-record-item {
    padding: 4px;
    min-height: 60px;
  }

  .record-option-number {
    font-size: 0.7rem;
    margin-bottom: 1px;
  }

  .record-option-animal {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .record-amount {
    font-size: 0.6rem;
    padding: 1px 2px;
    margin-bottom: 1px;
  }

}






/* 投注状态样式 */
.bet-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.5rem;
  font-weight: 600;
  margin-top: 2px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

.bet-won {
  border-color: #059669;
  background: linear-gradient(145deg, #f0fdf4, #ecfdf5);
}

.bet-won .bet-status {
  color: #059669;
}

.bet-won .bet-status i {
  color: #059669;
}

.bet-lost {
  border-color: #dc2626;
  background: linear-gradient(145deg, #fef2f2, #fef2f2);
}

.bet-lost .bet-status {
  color: #dc2626;
}

.bet-lost .bet-status i {
  color: #dc2626;
}

.bet-pending {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
}

.bet-pending .bet-status {
  color: #f59e0b;
}

.bet-pending .bet-status i {
  color: #f59e0b;
}

/* 移动端投注状态样式 */
@media (max-width: 768px) {
  .bet-status {
    font-size: 0.4rem;
    padding: 1px 2px;
  }
}

@media (max-width: 480px) {
  .bet-status {
    font-size: 0.3rem;
    padding: 1px 2px;
  }
}

/* 滑动内容样式 */
.scrollable-content {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.scrollable-content::-webkit-scrollbar {
  width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}


/* 今日题目滑动样式 */
.question-text.scrollable-content {
  max-height: 200px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  margin: 10px 0;
}

.question-image.scrollable-content {
  max-height: 300px;
  padding: 10px;
}

/* 移动端滑动样式调整 */
@media (max-width: 768px) {
  .scrollable-content {
    max-height: 250px;
  }

  .question-text.scrollable-content {
    max-height: 150px;
    padding: 10px;
  }

  .question-image.scrollable-content {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .scrollable-content {
    max-height: 200px;
  }

  .question-text.scrollable-content {
    max-height: 120px;
    padding: 8px;
  }

  .question-image.scrollable-content {
    max-height: 150px;
  }
}

/* 开奖结果更新动画 */
.result-updated {
  animation: resultUpdate 2s ease-in-out;
}

@keyframes resultUpdate {
  0% {
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.1);
  }

  50% {
    transform: scale(1.05);
    background-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
  }

  100% {
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.1);
  }
}


/* 视频加载状态 */
.video-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 增强视频播放器 */
.enhanced-video-player {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 70vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.enhanced-video-player video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

/* 视频容器自适应宽高比 */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 70vh;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 根据视频宽高比自适应容器 */
.video-container.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.video-container.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.video-container.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

/* 默认宽高比 */
.video-container:not([class*="aspect-"]) {
  aspect-ratio: 16 / 9;
}

/* 自定义控制栏 */
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.enhanced-video-player:hover .custom-controls {
  opacity: 1;
}

/* 进度条 */
.progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin-bottom: 15px;
  cursor: pointer;
}

.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

/* 控制按钮 */
.controls-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

/* 时间显示 */
.time-display {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 音量控制 */
.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* 播放速度选择 */
.playback-speed select {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.playback-speed select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.playback-speed select option {
  background: #374151;
  color: white;
}

/* 移动端点击提示 */
.mobile-play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

/* 强制隐藏播放按钮 */
.mobile-play-hint.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mobile-play-hint i {
  font-size: 1.5rem;
  color: #667eea;
}

.mobile-play-hint:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* 移动端视频播放器优化 */
@media (max-width: 768px) {

  .enhanced-video-player,
  .video-container {
    max-width: 95%;
    max-height: 60vh;
    /* 支持触摸缩放 */
    touch-action: manipulation;
  }

  /* 移动端全屏样式 */
  .enhanced-video-player video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
  }

  .enhanced-video-player video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
  }

  .enhanced-video-player video:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
  }

  .enhanced-video-player video:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
  }

  .enhanced-video-player video {
    max-height: 60vh;
  }

  #videoContainer {
    max-height: 70vh;
    padding: 15px;
  }

  .custom-controls {
    padding: 12px;
  }

  .controls-left,
  .controls-right {
    gap: 8px;
  }

  .control-btn {
    width: 28px;
    height: 28px;
  }

  .time-display {
    font-size: 0.75rem;
  }

  .volume {
    width: 50px;
  }

  .playback-speed {
    display: none;
  }

  .mobile-play-hint {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .mobile-play-hint i {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .enhanced-video-player {
    max-width: 98%;
    max-height: 50vh;
  }

  .enhanced-video-player video {
    max-height: 50vh;
  }

  #videoContainer {
    max-height: 60vh;
    padding: 10px;
  }

  .custom-controls {
    padding: 8px;
  }

  .controls-left,
  .controls-right {
    gap: 6px;
  }

  .control-btn {
    width: 24px;
    height: 24px;
  }

  .time-display {
    font-size: 0.7rem;
  }

  .volume {
    width: 40px;
  }

  .mobile-play-hint {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .mobile-play-hint i {
    font-size: 1.1rem;
  }

  /* 移动端全屏按钮样式 */
  .control-btn#fullscreenBtn {
    display: block !important;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .control-btn#fullscreenBtn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
  }

  .control-btn#fullscreenBtn:active {
    transform: scale(0.95);
  }

  /* 移动端图片放大优化 */
  .zoomable-image {
    transition: all 0.15s ease;
  }

  .zoomable-image:hover {
    transform: scale(1.02);
  }

  .zoomable-image:active {
    transform: scale(0.98);
  }

}

/* 强制移除所有焦点轮廓 - 最高优先级规则 */
html *:focus,
html *:focus-visible,
html *:focus-within,
html *:active,
html button:focus,
html button:focus-visible,
html button:focus-within,
html button:active,
html .betting-option:focus,
html .betting-option:focus-visible,
html .betting-option:focus-within,
html .betting-option:active,
html .btn:focus,
html .btn:focus-visible,
html .btn:focus-within,
html .btn:active {
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
}


.checkbox-label:hover input[type="checkbox"]:checked+.checkmark {
  transform: scale(1.15);
}

/* 密码输入框容器 */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  width: 100%;
  padding-right: 40px;
  /* 为眼睛图标留出空间 */
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  padding: 5px;
  border-radius: 3px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #667eea;
}

/* 自动加载指示器样式 */
.auto-load-indicator {
  text-align: center;
  padding: 20px;
  margin: 10px 0;
}

.auto-load-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #667eea;
  font-size: 14px;
  font-weight: 500;
}

.auto-load-spinner i {
  font-size: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.password-toggle:focus {
  outline: none;
  color: #667eea;
}

/* 直播模态框样式 */
#liveModal {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
}

#liveModal .modal-content {
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  margin: 8% auto;
  padding: 0;
  border-radius: 20px;
  width: 95%;
  max-width: 900px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.3);
  animation: liveSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#liveModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e53e3e, #c53030, #9c2626);
  animation: liveGradientShift 3s ease-in-out infinite;
}

#liveModal .modal-header {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: visible;
}

#liveModal .modal-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#liveModal .modal-header .close {
  color: #ffffff !important;
  font-size: 2rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  position: absolute !important;
  right: 20px !important;
  top: 60% !important;
  transform: translateY(-50%) !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  line-height: 1 !important;
  text-align: center !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#liveModal .modal-header .close:hover {
  color: #e53e3e !important;
  transform: translateY(-50%) scale(1.1) !important;
}

#liveModal .modal-body {
  padding: 0;
  background: #000;
}

.live-container {
  position: relative;
  width: 100%;
  height: 450px;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

.live-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

#liveModal .modal-footer {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  padding: 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 20px 20px;
  text-align: center;
}

#liveModal .modal-footer .btn {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

#liveModal .modal-footer .btn:hover {
  background: linear-gradient(135deg, #c53030, #9c2626);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* 直播加载动画样式 */
.live-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.live-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.live-loading-spinner {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.spinner-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-circle:nth-child(1) {
  animation-delay: -0.32s;
}

.spinner-circle:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.live-loading-text {
  text-align: center;
  color: #ffffff;
}

.live-loading-text i {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.live-loading-text p {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0;
  color: #ffffff;
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.live-loading-text small {
  font-size: 15px;
  color: #b8b8b8;
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.5;
  opacity: 0.9;
}

/* 直播推荐内容样式 */
.live-recommendations {
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 1px;
}

.recommendation-content {
  color: #f0f0f0;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 10px;
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: pre-line;
  word-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes liveSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes liveGradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* 直播模态框响应式设计 */
@media (max-width: 768px) {
  #liveModal .modal-content {
    margin: 15px;
    width: calc(100% - 30px);
    max-width: none;
  }

  .live-container {
    height: 300px;
  }

  .live-loading {
    height: 300px;
  }

  .live-loading-text i {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .live-loading-text p {
    font-size: 17px;
    letter-spacing: 0.8px;
    margin: 10px 0;
  }

  .live-loading-text small {
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  #liveModal .modal-header {
    padding: 15px 20px;
  }

  #liveModal .modal-header h3 {
    font-size: 1.3rem;
  }

  #liveModal .modal-footer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .live-container {
    height: 250px;
  }

  .live-loading {
    height: 250px;
  }

  .live-loading-spinner {
    gap: 8px;
    margin-bottom: 20px;
  }

  .spinner-circle {
    width: 12px;
    height: 12px;
  }

  .live-loading-text i {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .live-loading-text p {
    font-size: 16px;
    letter-spacing: 0.6px;
    margin: 8px 0;
  }

  .live-loading-text small {
    font-size: 13px;
    letter-spacing: 0.2px;
  }

  #liveModal .modal-header h3 {
    font-size: 1.2rem;
  }
}