.content {
  padding: 45px 55px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
/* 抽奖公告样式 */
.winning-announce {
  width: 364px;
  height: 557px;
  border-radius: 28px;
  background-color: #fdf9f0;
  border: 2px solid #fed29c;
}
/* 整体容器样式 */
.winner-indicator {
  width: 100%;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 20px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #333;
  font-size: 16px;
}

.arrow {
  width: 0;
  height: 0;
  border-style: solid;
}
.arrow-left {
  border-width: 5px 8px 5px 0;
  border-color: transparent #333 transparent transparent;
}

.arrow-right {
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #333;
}

.arrow-center {
  width: 90px;
  text-align: center;
  font-weight: 550;
  letter-spacing: 2px;
}
/* 六宫格样式 */
.lottery-section {
  width: 655px;
  height: 463px;
  margin: 0 0 0 0;
  background: url("../../images/double_festival/raffle_bg.png") no-repeat center
    center;
  background-size: cover;
}
.lottery-grid {
  width: 613px;
  height: 426px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 19px 20px 19px 20px;
  user-select: none;
  border-radius: 40px;
  overflow: hidden;
  justify-items: stretch;
  justify-content: space-between;
  align-content: space-between;
  position: relative;
}

.lottery-item {
  width: 205px;
  height: 213px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lottery-grid-kuang {
  width: 209px;
  height: 215px;
  border: 6px solid #FFFF87;
  border-radius: 40px 0 0 0;
  position: absolute;
  top: 0px;
  left: 3px;
}
.active-0 {
  width: 209px;
  height: 215px;
  border: 6px solid #FFFF87;
  border-radius: 40px 0 0 0;
  position: absolute;
  top: 0px;
  left: 3px;
}
.active-1 {
  width: 211px;
  border-radius: 0 0 0 0;
  position: absolute;
  top: 0px;
  left: 206px;
}

.active-2 {
  width: 201px;
  border-radius: 0 40px 0 0;
  position: absolute;
  top: 0px;
  left: 412px;
}

.active-3 {
  width: 201px;
  height: 216px;
  border-radius: 0 0 40px 0;
  position: absolute;
  top: 210px;
  left: 412px;
}

.active-4 {
  width: 212px;
  height: 216px;
  border-radius: 0 0 0 0;
  position: absolute;
  top: 210px;
  left: 206px;
}
.active-5 {
  width: 209px;
  height: 216px;
  border-radius: 0 0 0 40px;
  position: absolute;
  top: 210px;
  left: 3px;
}

.prize-content {
  text-align: center;
}

.prize-name {
  font-weight: bold;
  color: #e43618;
  font-size: 13px;
}

.prize-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 140px;
}
.prize-icon img {
  max-width: 155px;
  max-height: 135px;
}

/* 开始按钮 */
.chou-jiang-kong {
  position: relative;
}
.start-button {
  width: 380px;
  height: 117px;
  background: url(../../images/double_festival/raffle_button.png);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: -20px auto 0;
  user-select: none;
  animation: breathe 2s infinite ease-in-out;
}
.fudong {
  width: 380px;
  height: 117px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: -20px auto 0;
  user-select: none;
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
}

/* 呼吸动画 */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* 原有悬停效果调整 */
.start-button:hover:not(:disabled)::before {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.start-button:active:not(:disabled)::before {
  transform: scale(1);
  transition: transform 0.1s ease;
}

/* 原有文字样式保持不变 */
.start-button-text {
  color: #ffffff;
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
}
.chance-info {
  text-align: center;
  font-size: 20px;
  color: #ffffff;
}

/* 激活状态 */
.lottery-item.active {
  background-color: #ffe2bb;
  transform: scale(1.05);
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.05);
  }
}

.history-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #555;
  text-align: center;
}

.history-list {
  max-height: 150px;
  overflow-y: auto;
  background: white;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #eee;
}

.history-item {
  padding: 8px;
  border-bottom: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
}

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

.prize-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 5px;
}

.grand-prize {
  background: #fff0f0;
  color: #ff6b6b;
}

.first-prize {
  background: #fff5e6;
  color: #ffa502;
}

.second-prize {
  background: #f0f8ff;
  color: #1e90ff;
}

.api-status {
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
  font-weight: bold;
}

.api-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.api-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

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

/* 预览结果样式 */
.preview-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ff6b6b;
}

.preview-content {
  font-size: 18px;
  margin: 10px 0;
}

.preview-button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.preview-button:hover {
  background: #ff5252;
  transform: scale(1.05);
}
