/* 2. 开奖模块（美化版） */
.lottery-wrap {
  width: 100%;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-bottom: 1px solid #eee;
  padding: 0px 0px;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  overflow: hidden;
}

/* 增加装饰元素 */
.lottery-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #ffc107, #28a745, #007bff);
  background-size: 200% 100%;
  animation: gradientShift 8s ease infinite;
}

.lottery-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 倒计时标题栏 */
.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #f0f0f0;
}

.lottery-title {
  font-size: 17px;
  font-weight: bold;
  color: #dc3545;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.lottery-title i {
  margin-right: 8px;
  font-size: 18px;
  animation: pulse 2s infinite;
}

#countdownTimer {
  font-size: 14px;
  color: #555;
  text-align: right;
  padding: 4px 10px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

#countdownTimer .next-issue {
  color: #dc3545;
  font-weight: bold;
  font-size: 15px;
  margin: 0 3px;
}

#countdownText {
  color: #333;
  font-weight: bold;
}

/* 开奖中提示 */
#drawingStatus {
  font-size: 15px;
  color: #dc3545;
  text-align: center;
  margin: 12px 0;
  display: none;
  padding: 8px;
  background-color: rgba(220, 53, 69, 0.05);
  border-radius: 6px;
  border-left: 3px solid #dc3545;
}

#drawingStatus i {
  margin-right: 6px;
  animation: spin 1s linear infinite;
}

/* 开奖数字容器 */
#lotteryNumbers {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin: 15px 0;
  padding: 10px 5px;
  min-height: 68px;
  background-color: #fafafa;
  border-radius: 8px;
  position: relative;
}

/* 数字容器装饰 */
#lotteryNumbers::before,
#lotteryNumbers::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 60%;
  background: linear-gradient(90deg, transparent, #eee, transparent);
  top: 62%;
}

#lotteryNumbers::before { left: 0; }
#lotteryNumbers::after { right: 0; }

/* 单个数字容器 */
.lottery-number-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12%;
  max-width: 60px;
  transition: transform 0.3s ease;
}

.lottery-number-container:hover {
  transform: scale(1.05);
}

/* 数字圆圈 */
.lottery-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: bold;
  color: #888;
  position: relative;
  margin-bottom: 6px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* 波色样式 - 增加不同颜色区分 */
.lottery-number.red { background-color: #fff0f0; border-color: #ffcccc; }
.lottery-number.blue { background-color: #f0f7ff; border-color: #cce0ff; }
.lottery-number.green { background-color: #f0fff4; border-color: #ccffd9; }

/* 数字揭晓动画 */
.lottery-number.revealed {
  color: #fff;
  animation: numberReveal 0.5s ease-out forwards, 
             numberPulse 1.5s infinite;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 波色标签 */
.wave-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wave-badge.red { background-color: #dc3545; }
.wave-badge.blue { background-color: #007bff; }
.wave-badge.green { background-color: #28a745; }

/* 生肖标签 */
.zodiac-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  width: 100%;
  padding: 3px 5px;
  border-radius: 4px;
  margin-top: -4px;
  background-color: #f5f5f5;
  text-transform: capitalize;
}

/* 开奖信息提示 */
#currentDrawInfo {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  padding: 0px 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  line-height: 1.6;
}

#currentDrawInfo strong {
  color: #dc3545;
  margin: 0 3px;
}

/* 新增动画效果 */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes numberPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* 响应式优化 */
@media (max-width: 360px) {
  .lottery-number {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  
  .zodiac-label {
    font-size: 11px;
  }
  
  .lottery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  #countdownTimer {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 420px) {
  .lottery-number {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}
