body,
      html {
        height: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-family: Arial, sans-serif;
        overflow: hidden;
        position: relative;
      }
      
      /* 在 CSS 文件的合适位置添加 */
.hidden {
  display: none !important;
}

/* =========================
   转盘抽奖（幸运大转盘）样式
   ========================= */
.wheel-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 20px;
}

.wheel-title {
  font-size: 64px;
  color: #ffd700;
  font-weight: bold;
  letter-spacing: 6px;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.7), 0 0 38px rgba(255, 215, 0, 0.45);
  margin: 0 0 25px 0;
  text-align: center;
}

.wheel-stage {
  position: relative;
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel {
  position: relative;
  --labelCounter: 0deg;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid rgba(255, 215, 0, 0.45);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(255, 215, 0, 0.2) inset,
    0 0 60px rgba(255, 215, 0, 0.25);
  overflow: hidden;
  transform: rotate(0deg);
  transition: transform 5.2s cubic-bezier(0.12, 0.78, 0.16, 1);
  will-change: transform;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 55%),
    conic-gradient(
      rgba(241, 15, 41, 0.85) 0 36deg,
      rgba(255, 215, 0, 0.85) 36deg 72deg,
      rgba(76, 175, 80, 0.85) 72deg 108deg,
      rgba(33, 150, 243, 0.85) 108deg 144deg,
      rgba(241, 15, 41, 0.85) 144deg 180deg,
      rgba(255, 215, 0, 0.85) 180deg 216deg,
      rgba(76, 175, 80, 0.85) 216deg 252deg,
      rgba(33, 150, 243, 0.85) 252deg 288deg,
      rgba(241, 15, 41, 0.85) 288deg 324deg,
      rgba(255, 215, 0, 0.85) 324deg 360deg
    );
}

.wheel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.35) 0 1deg,
    transparent 1deg 36deg
  );
  opacity: 0.35;
  pointer-events: none;
}

.wheel-sector-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  will-change: transform;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  user-select: none;
  white-space: nowrap;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 48px solid rgba(255, 215, 0, 0.95);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
  z-index: 3;
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 22px solid rgba(241, 15, 41, 0.95);
}

.wheel-start-btn {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid rgba(255, 215, 0, 0.65);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(145deg, #f10f29, #b40b1d);
  color: #fff;
  font-size: 44px;
  font-weight: bold;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(241, 15, 41, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wheel-start-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7), 0 0 45px rgba(241, 15, 41, 0.6);
}

.wheel-start-btn:active {
  transform: scale(0.98);
}

.wheel-start-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.wheel-hint {
  margin-top: 18px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  text-align: center;
}

/* 抽奖方式按钮（底部控制栏） */
.control-btn.mode-btn.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.9);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}

@media (max-width: 768px) {
  .wheel-title {
    font-size: 42px;
  }
  .wheel-start-btn {
    width: 120px;
    height: 120px;
    font-size: 36px;
  }
  .wheel-sector-label {
    font-size: 20px;
  }
  .wheel-hint {
    font-size: 18px;
  }
}
      
      /* 视频背景 */
      #video-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
      }
      
      /* 背景遮罩层，提高文字可读性 */
      .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
      }
      
/* LOGO靠右上角显示 */
.logo {
  position: fixed; /* 改为fixed定位 */
  top: 20px;
  right: 20px;
  z-index: 1000; /* 增加z-index到1000 */
  max-width: 200px;
  max-height: 80px;
}
      
      /* 底部控制栏 */
      .bottom-control-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 40px;
        z-index: 100;
        transform: translateY(100%);
        transition: transform 0.5s ease;
        border-top: 1px solid rgba(255, 215, 0, 0.3);
      }
      
      .bottom-control-bar.show {
        transform: translateY(0);
      }
      
      /* 底部控制栏触发区域 */
      .bottom-trigger {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 15px;
        z-index: 101;
        cursor: pointer;
        transition: height 0.3s ease;
      }
      
      .bottom-trigger:hover {
        height: 30px;
      }
      
      .bottom-trigger:hover + .bottom-control-bar,
      .bottom-control-bar:hover {
        transform: translateY(0);
      }
      
      /* 控制按钮样式 */
      .control-buttons {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        height: 100%;
      }
      
      .control-btn {
        width: 140px;
        height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 12px;
        border: 2px solid rgba(255, 215, 0, 0.5);
        color: #ffd700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 8px;
        box-sizing: border-box;
      }
      
      .control-btn:hover {
        background: rgba(255, 215, 0, 0.2);
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
        border-color: rgba(255, 215, 0, 0.9);
      }
      
      .control-btn.active {
        background: rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.9);
      }
      
      .control-btn .icon {
        font-size: 24px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
      }
      
      .control-btn div:not(.icon) {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20px;
        font-size: 16px;
      }
      
      .control-btn.music-btn .icon.music-on {
        display: block;
      }
      
      .control-btn.music-btn .icon.music-off {
        display: none;
      }
      
      .control-btn.music-btn.muted .icon.music-on {
        display: none;
      }
      
      .control-btn.music-btn.muted .icon.music-off {
        display: block;
      }
      
   /* 幸运大抽奖标题样式 */
.main-title {
  position: fixed; /* 改为fixed定位 */
  top: 70px;

    left: 50%;
  width: 100vw;
transform: translateX(-50%); /* 水平居中 */
  width: auto; /* 改为自动宽度 */
  text-align: center;
  font-size: 100px;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 
               0 0 40px rgba(255, 215, 0, 0.6),
               0 0 60px rgba(255, 215, 0, 0.4);
  margin: 0;
  padding: 20px 40px; /* 增加左右内边距 */
  background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.1), transparent);
  letter-spacing: 10px;
  font-family: "Microsoft YaHei", "SimHei", sans-serif;
  animation: titleGlow 2s ease-in-out infinite alternate;
  white-space: nowrap; /* 改为不换行 */
  overflow: visible;
  text-overflow: clip;
  box-sizing: border-box;
  z-index: 1000; /* 增加z-index到1000 */
  word-wrap: normal;
  word-break: keep-all;
}
      
      @keyframes titleGlow {
        0% {
          text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 
                       0 0 40px rgba(255, 215, 0, 0.6),
                       0 0 60px rgba(255, 215, 0, 0.4);
          transform: translateX(-50%) translateY(0);
}
        100% {
          text-shadow: 0 0 25px rgba(255, 215, 0, 1), 
                       0 0 50px rgba(255, 215, 0, 0.8),
                       0 0 75px rgba(255, 215, 0, 0.6);
          transform: translateX(-50%) translateY(-5px);
}
      }
      
 /* 结果区域容器 */
.result-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 200px; /* 增加上边距，避免被标题遮挡 */
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}
      
      /* 初始结果区域 */
      #result {
        font-size: 100px;
        color: #fde69a;
        font-weight: bold;
        min-height: 140px;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
        transition: all 0.3s ease;
        text-align: center;
        margin: 0;
        padding: 20px 40px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 20px;
        border: 3px solid rgba(255, 215, 0, 0.3);
        white-space: nowrap; 
        overflow: visible;
        text-overflow: clip;
        width: auto;
        min-width: 300px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      
      #result::-webkit-scrollbar {
        display: none;
      }
      
      #prizeInfo {
        font-size: 50px;
        color: #ffd700;
        margin-top: 50px;
        min-height: 60px;
        text-align: center;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      
      #prizeInfo::-webkit-scrollbar {
        display: none;
      }
      
      /* 合并后的抽奖按钮容器 */
      .lottery-btn-container {
        display: flex;
        justify-content: center;
        padding: 20px;
        margin-top: 50px;
        font-family: AlimamaShuHeiTi-Bold, Arial, Helvetica, sans-serif;
        width: 100%;
        box-sizing: border-box;
      }
      
      /* 抽奖按钮样式 */
      .lottery-btn {
        background-color: #f10f29;
        color: #f8e9e9;
        font-size: 30px;
        padding: 15px 60px;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(241, 15, 41, 0.4);
        min-width: 200px;
      }
      
      .lottery-btn:hover {
        background-color: #ff1a35;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(241, 15, 41, 0.6);
      }
      
      .lottery-btn:active {
        transform: translateY(1px);
        box-shadow: 0 3px 10px rgba(241, 15, 41, 0.4);
      }
      
      .lottery-btn:disabled {
        background-color: #666;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
      }
      
      /* 按钮流光效果 */
      .lottery-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.7s ease;
      }
      
      .lottery-btn:not(:disabled):hover::before {
        left: 100%;
      }
      
      /* 按钮脉冲效果 */
      @keyframes pulse {
        0% {
          box-shadow: 0 0 0 0 rgba(241, 15, 41, 0.7);
        }
        70% {
          box-shadow: 0 0 0 15px rgba(241, 15, 41, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(241, 15, 41, 0);
        }
      }
      
      .lottery-btn.breathing {
        animation: pulse 2s infinite;
      }
      
      /* 烟花画布 */
 #fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50; /* 确保低于标题和LOGO的1000 */
}
      
      /* 中奖号码发光效果 */
      @keyframes winnerGlow {
        0% {
          text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
          transform: scale(1);
        }
        50% {
          text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6);
          transform: scale(1.05);
        }
        100% {
          text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
          transform: scale(1);
        }
      }
      
      .winner-animation {
        animation: winnerGlow 1s ease-in-out;
      }
      
      /* 取消号码效果 */
      @keyframes invalidGlow {
        0% {
          text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6);
          transform: scale(1);
        }
        50% {
          text-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 40px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6);
          transform: scale(1.05);
        }
        100% {
          text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6);
          transform: scale(1);
        }
      }
      
      .invalid-animation {
        animation: invalidGlow 1s ease-in-out;
      }
      
      /* 按钮呼吸效果 */
      @keyframes breathing {
        0% {
          transform: scale(1);
          box-shadow: 0 5px 15px rgba(241, 15, 41, 0.4);
        }
        50% {
          transform: scale(1.05);
          box-shadow: 0 8px 25px rgba(241, 15, 41, 0.6);
        }
        100% {
          transform: scale(1);
          box-shadow: 0 5px 15px rgba(241, 15, 41, 0.4);
        }
      }
      
      .lottery-btn.breathing {
        animation: breathing 3s ease-in-out infinite;
      }
      
      /* 状态提示 */
      #statusMessage {
        font-size: 30px;
        color: #ff6b6b;
        margin-top: 20px;
        min-height: 40px;
        text-align: center;
        transition: all 0.3s ease;
        white-space: nowrap;
        overflow: visible;
        width: 100%;
        padding: 0 20px;
      }
      
      /* 自定义确认弹窗样式 */
      .confirm-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
      }
      
      .confirm-modal.active {
        display: flex;
        opacity: 1;
      }
      
      .confirm-content {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 40px;
        width: 600px;
        max-width: 90%;
        text-align: center;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(30px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      
      .confirm-modal.active .confirm-content {
        transform: translateY(0) scale(1);
      }
      
      .confirm-title {
        font-size: 48px;
        color: #ffd700;
        margin-bottom: 30px;
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
        font-weight: bold;
        white-space: normal;
        word-wrap: break-word;
        padding: 0 10px;
      }
      
      .confirm-number {
        font-size: 72px;
        color: #ffd700;
        margin: 30px 0;
        font-weight: bold;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        padding: 20px;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 15px;
        border: 2px solid rgba(255, 215, 0, 0.3);
        animation: winnerGlow 2s infinite;
        white-space: nowrap;
        overflow: visible;
        min-width: 200px;
      }
      
      .confirm-message {
        font-size: 32px;
        color: #fff;
        margin: 30px 0;
        line-height: 1.5;
        white-space: normal;
        word-wrap: break-word;
        padding: 0 10px;
      }
      
      .confirm-buttons {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 50px;
      }
      
      .confirm-btn {
        padding: 20px 50px;
        font-size: 32px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
        min-width: 200px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      }
      
      .confirm-btn-yes {
        background: linear-gradient(145deg, #4CAF50, #2E7D32);
        color: white;
      }
      
      .confirm-btn-yes:hover {
        background: linear-gradient(145deg, #66BB6A, #388E3C);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
      }
      
      .confirm-btn-no {
        background: linear-gradient(145deg, #F44336, #C62828);
        color: white;
      }
      
      .confirm-btn-no:hover {
        background: linear-gradient(145deg, #EF5350, #D32F2F);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(244, 67, 54, 0.4);
      }
      
      .confirm-btn:active {
        transform: translateY(0);
      }
      
      .prize-info-in-modal {
        font-size: 28px;
        color: #ffd700;
        margin-bottom: 20px;
        background: rgba(0, 0, 0, 0.3);
        padding: 10px 20px;
        border-radius: 10px;
        display: inline-block;
        white-space: nowrap;
        overflow: visible;
        max-width: 100%;
      }
      
      /* 弹窗关闭按钮 */
      .confirm-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 40px;
        cursor: pointer;
        transition: color 0.3s ease;
      }
      
      .confirm-close:hover {
        color: #ffd700;
      }
      
      /* 弹窗提示图标 */
      .confirm-icon {
        font-size: 80px;
        margin-bottom: 20px;
        color: #ffd700;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
      }
      
      /* 弹窗背景光效 */
      .confirm-content::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #ffd700, #f10f29, #4CAF50, #2196F3);
        border-radius: 22px;
        z-index: -1;
        animation: borderGlow 3s linear infinite;
        background-size: 400% 400%;
      }
      
      @keyframes borderGlow {
        0% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
        100% {
          background-position: 0% 50%;
        }
      }
      
      .confirm-content::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        border-radius: 20px;
        z-index: -1;
      }
      
      /* 修改为10个号码的网格样式 - 默认隐藏 */
      .numbers-grid {
        display: none;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        margin: 40px auto;
        width: 100%;
        max-width: 1400px;
        box-sizing: border-box;
        padding: 0 20px;
      }
      
      .numbers-grid.show {
        display: grid;
      }
      
      .grid-item {
        width: 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 15px;
        border: 3px solid rgba(255, 215, 0, 0.3);
        font-size: 80px;
        color: #fde69a;
        font-weight: bold;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        transition: all 0.2s ease;
        white-space: nowrap; 
        overflow: visible;
        text-overflow: clip;
        padding: 10px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      
      .grid-item::-webkit-scrollbar {
        display: none;
      }
      
      .grid-item.highlight {
        background: rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
        animation: winnerGlow 1s ease-in-out;
      }
      
      /* 结果区域样式 */
      .result-container {
        text-align: center;
        min-height: 200px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 1000px;
        box-sizing: border-box;
        padding: 0 20px;
      }
      
      .result-container.hidden {
        display: none;
      }
      
      /* 中奖号码+奖品图片显示区域样式 */
.winner-display {
  display: none; /* 默认隐藏 */
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: min(92vw, 2200px);
  margin: 40px auto;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px; /* 四个角都有圆角 */
  border: 3px solid rgba(255, 215, 0, 0.3); /* 金色边框 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden; /* 关键！防止内容破坏圆角 */
}
      
.winner-number {
  font-size: 180px;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  flex: 0 0 49%; /* 改为49%，给边框留点空间 */
  max-width: 49%;
  text-align: center;
  padding: 20px;
  animation: winnerGlow 2s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  /* 移除自己的背景和边框 */
  background: none;
  border: none;
  box-sizing: border-box; /* 确保padding不会增加总宽度 */
}

/* 中奖号码+奖品图片显示区域的大号码 */
.winner-number-large {
  font-size: 80px;  /* 保持大字体 */
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  flex: 0 0 49%;
  max-width: 49%;
  text-align: center;
  padding: 20px;
  animation: winnerGlow 2s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: none;
  border: none;
  box-sizing: border-box;
}

/* 已中奖号码列表中的小号码 */
.winner-number-small {
  font-size: 50px;  /* 保持小字体 */
  color: #fde69a;
  font-weight: bold;
  white-space: nowrap;
  overflow: visible;
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.winner-prize-image {
  flex: 0 0 49%; /* 改为49%，给边框留点空间 */
  max-width: 49%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 350px;
  /* 移除自己的背景和边框 */
  background: none;
  border: none;
  box-sizing: border-box; /* 确保padding不会增加总宽度 */
  overflow: hidden; /* 防止图片超出 */
}

.winner-prize-image img {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  /* 移除图片的圆角和边框，只让外框显示 */
  border-radius: 0;
  border: none;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.1);
}
      
      /* 奖品图片显示时的动画 */
      @keyframes prizeImageAppear {
        0% {
          opacity: 0;
          transform: scale(0.8);
        }
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }
      
      .winner-display.show {
        display: flex;
        animation: prizeImageAppear 0.5s ease-out;
      }
      
      /* 后台管理面板样式 */
      .admin-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(45, 113, 85, 0.95);
        display: none;
        justify-content: center;
        align-items: flex-start;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s ease;
        overflow-y: auto;
        padding: 40px 0;
      }
      
      .admin-modal.active {
        display: flex;
        opacity: 1;
      }
      
      .admin-content {
        background: linear-gradient(145deg, rgba(116, 225, 160, 0.95), rgba(20, 20, 20, 0.95));
        border-radius: 20px;
        padding: 40px;
        width: 90%;
        max-width: 1200px;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
                    0 0 0 1px rgba(255, 215, 0, 0.2);
        border: 1px solid rgba(255, 215, 0, 0.3);
        transform: translateY(30px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      
      .admin-modal.active .admin-content {
        transform: translateY(0) scale(1);
      }
      
      .admin-title {
        font-size: 36px;
        color: #ffd700;
        margin-bottom: 30px;
        text-align: center;
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
        font-weight: bold;
        white-space: normal;
        word-wrap: break-word;
        padding: 0 10px;
      }
      
/* 后台管理面板样式 - 修改后的布局 */
.admin-sections-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 两列布局 */
  grid-template-rows: auto auto auto; /* 3行布局 */
  gap: 30px;
  margin-bottom: 30px;
}

.admin-section {
  margin-bottom: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 参与抽奖号码设置 - 左侧第1列，占用第1-2行 */
.admin-section:first-of-type {
  grid-column: 1;        /* 第1列 */
  grid-row: 1 / span 2;  /* 从第1行开始，跨越2行 */
}

/* 系统状态 - 右侧第2列，第1行 */
.admin-section:nth-of-type(2) {
  grid-column: 2;  /* 第2列 */
  grid-row: 1;     /* 第1行 */
}

/* 文件上传设置 - 特殊处理，不要用full-width的规则 */
.admin-section.full-width:nth-of-type(3) {
  /* 重置full-width的规则 */
  grid-column: 2;  /* 第2列 */
  grid-row: 2;     /* 第2行 */
  width: auto;
  max-width: none;
}

/* 奖项设置 - 全宽，第3行 */
.admin-section.full-width:nth-of-type(4) {
  grid-column: 1 / -1;  /* 横跨所有列 */
  grid-row: 3;          /* 第3行 */
  margin-top: 0;
}
      
      .admin-section-title {
        font-size: 24px;
        color: #ffd700;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(255, 215, 0, 0.3);
        white-space: normal;
        word-wrap: break-word;
      }
      
      .admin-input-group {
        margin-bottom: 20px;
      }
      
      .admin-label {
        display: block;
        font-size: 18px;
        color: #fff;
        margin-bottom: 8px;
        font-weight: bold;
        white-space: normal;
        word-wrap: break-word;
      }
      
      .admin-input {
        width: 90%;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
        border: 2px solid rgba(255, 215, 0, 0.5);
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
      }
      
      .admin-input:focus {
        outline: none;
        border-color: #ffd700;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
      }
      
/* 只针对参与抽奖号码的文本域 */
#participantNumbers {
  height: 700px !important; /* 使用!important确保优先级 */
}

      .admin-textarea {
        width: 90%;
        height: 100px;
        padding: 15px;
        font-size: 16px;
        border-radius: 10px;
        border: 2px solid rgba(255, 215, 0, 0.5);
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        resize: none;
        line-height: 1.5;
      }
      
      .admin-textarea:focus {
        outline: none;
        border-color: #ffd700;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
      }
      
      .admin-note {
        font-size: 14px;
        color: #aaa;
        margin-top: 8px;
        font-style: italic;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
      }
      
      .prize-type-selector {
        display: flex;
        gap: 20px;
        margin-bottom: 15px;
      }
      
      .prize-type-option {
        display: flex;
        align-items: center;
        cursor: pointer;
      }
      
      .prize-type-option input {
        margin-right: 8px;
      }
      
      .prize-type-option label {
        font-size: 16px;
        color: #fff;
        cursor: pointer;
        white-space: nowrap;
      }
      
      .admin-buttons {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
      }
      
      .admin-btn {
        padding: 18px 50px;
        font-size: 16px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
        min-width: 180px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      }
      
      .admin-btn-save {
        background: linear-gradient(145deg, #4CAF50, #2E7D32);
        color: white;
      }
      
      .admin-btn-save:hover {
        background: linear-gradient(145deg, #66BB6A, #388E3C);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
      }
      
      .admin-btn-cancel {
        background: linear-gradient(145deg, #757575, #424242);
        color: white;
      }
      
      .admin-btn-cancel:hover {
        background: linear-gradient(145deg, #9E9E9E, #616161);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(117, 117, 117, 0.4);
      }
      
      .admin-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 40px;
        cursor: pointer;
        transition: color 0.3s ease;
      }
      
      .admin-close:hover {
        color: #ffd700;
      }
      
      .admin-status-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 20px;
      }
      
      .admin-status-item {
        background: rgba(0, 0, 0, 0.3);
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgba(255, 215, 0, 0.2);
      }
      
      .admin-status-label {
        font-size: 16px;
        color: #aaa;
        margin-bottom: 5px;
      }
      
      .admin-status-value {
        font-size: 20px;
        color: #ffd700;
        font-weight: bold;
        white-space: nowrap;
        overflow: visible;
      }
      
      /* 奖项设置网格 */
      .prize-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
      
      .prize-item {
        background: rgba(0, 0, 0, 0.3);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 215, 0, 0.2);
      }
      
      .prize-item-title {
        font-size: 20px;
        color: #ffd700;
        margin-bottom: 15px;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        white-space: normal;
        word-wrap: break-word;
      }
      
      .prize-item.inactive {
        opacity: 0.6;
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.1);
      }
      
      .prize-item.inactive .prize-item-title {
        color: #aaa;
      }
      
      /* 文件上传样式 */
      .file-upload-group {
        margin-top: 15px;
      }
      
      .file-upload-btn {
        display: inline-block;
        padding: 8px 15px;
        background: rgba(255, 215, 0, 0.2);
        color: #ffd700;
        border: 1px solid rgba(255, 215, 0, 0.5);
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-right: 10px;
      }
      
      .file-upload-btn:hover {
        background: rgba(255, 215, 0, 0.3);
        border-color: rgba(255, 215, 0, 0.8);
      }
      
      .file-name {
        font-size: 14px;
        color: #aaa;
        margin-top: 5px;
        white-space: normal;
        word-wrap: break-word;
      }
      
      /* 奖品列表弹窗样式 */
      .prize-list-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s ease;
      }
      
      .prize-list-modal.active {
        display: flex;
        opacity: 1;
      }
      
      .prize-list-content {
        background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(20, 20, 20, 0.95));
        border-radius: 20px;
        padding: 40px;
        width: 90%;
        max-width: 1000px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
                    0 0 0 1px rgba(255, 215, 0, 0.2);
        border: 1px solid rgba(255, 215, 0, 0.3);
        transform: translateY(30px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      
      .prize-list-modal.active .prize-list-content {
        transform: translateY(0) scale(1);
      }
      
      .prize-list-title {
        font-size: 36px;
        color: #ffd700;
        margin-bottom: 30px;
        text-align: center;
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
        font-weight: bold;
      }
      
      .prize-list-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
      }
      
      .prize-list-item {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid rgba(255, 215, 0, 0.2);
        transition: all 0.3s ease;
      }
      
      .prize-list-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.5);
      }
      
      .prize-list-image {
        width: 100%;
        height: 180px;
        object-fit: contain;
        padding-top: 30px;
        background: rgba(0, 0, 0, 0.5);
      }
      
      .prize-list-info {
        padding: 15px;
        text-align: center;
      }
      
      .prize-list-name {
        font-size: 20px;
        color: #ffd700;
        margin-bottom: 5px;
        font-weight: bold;
        white-space: normal;
        word-wrap: break-word;
      }
      
      .prize-list-count {
        font-size: 16px;
        color: #aaa;
      }
      
      .no-prize-image {
        width: 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.3);
        color: #aaa;
        font-size: 16px;
      }
      
      /* 已中奖号码弹窗样式 */
      .winners-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s ease;
      }
      
      .winners-modal.active {
        display: flex;
        opacity: 1;
      }
      
      .winners-content {
        background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(20, 20, 20, 0.95));
        border-radius: 20px;
        padding: 40px;
        width: 90%;
        max-width: 800px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
                    0 0 0 1px rgba(255, 215, 0, 0.2);
        border: 1px solid rgba(255, 215, 0, 0.3);
        transform: translateY(30px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      
      .winners-modal.active .winners-content {
        transform: translateY(0) scale(1);
      }
      
      .winners-title {
        font-size: 36px;
        color: #ffd700;
        margin-bottom: 30px;
        text-align: center;
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
        font-weight: bold;
      }
      
      .winners-list {
        max-height: 500px;
        overflow-y: auto;
      }
      
      .winner-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        margin-bottom: 10px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        border: 1px solid rgba(255, 215, 0, 0.1);
        flex-wrap: wrap;
      }
      
      .winner-prize {
        font-size: 20px;
        color: #ffd700;
        font-weight: bold;
        white-space: nowrap;
        overflow: visible;
        flex: 1;
        min-width: 100px;
      }
      
      .winner-number {
        font-size: 50px;
        color: #fde69a;
        font-weight: bold;
        white-space: nowrap;
        overflow: visible;
        flex: 1;
        min-width: 100px;
        text-align: center;
      }
      
      .winner-time {
        font-size: 14px;
        color: #aaa;
        white-space: nowrap;
        overflow: visible;
        flex: 1;
        min-width: 100px;
        text-align: right;
      }
      
      .no-winners {
        text-align: center;
        font-size: 24px;
        color: #aaa;
        padding: 40px 0;
      }
      
      /* 响应式设计 */
      @media (max-width: 1200px) {
  .main-title {
    font-size: 90px; /* 适当减小字体 */
    top: 40px; /* 调整位置 */
  }
        
        #result {
          font-size: 120px;
        }
        
        #prizeInfo {
          font-size: 45px;
        }
        
        .grid-item {
          font-size: 70px;
          height: 160px;
        }
        
        .prize-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        
        .prize-list-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        
        .winner-number {
          font-size: 160px;
          height: 300px;
        }
        
        .winner-prize-image {
          height: 300px;
        }
  .winner-number-large {
    font-size: 80px;
    height: 300px;
  }

      }
      
      @media (max-width: 992px) {
.main-title {
    font-size: 70px;
    letter-spacing: 6px;
    top: 30px;
    padding: 15px 30px; /* 调整内边距 */
  }
        
        .result-area {
          margin-top: 150px;
        }
        
        #result {
          font-size: 100px;
          min-width: 250px;
          padding: 15px 30px;
        }
        
        #prizeInfo {
          font-size: 40px;
        }
        
        .grid-item {
          font-size: 60px;
          height: 140px;
        }
        
        .numbers-grid {
          gap: 15px;
        }
        
        .winner-number {
          font-size: 140px;
          height: 280px;
        }
        
        .winner-prize-image {
          height: 280px;
        }
  .winner-number-large {
    font-size: 80px;
    height: 280px;
  }

      }
      
      @media (max-width: 768px) {
  .main-title {
    font-size: 60px;
    letter-spacing: 4px;
    top: 20px;
    padding: 10px 20px; /* 调整内边距 */
  }
        
    .winner-number-large {
    font-size: 80px;
    height: auto;
    min-height: 200px;
    padding: 30px 20px;
  }
        .result-area {
          margin-top: 130px;
        }
        
        #result {
          font-size: 80px;
          min-width: 200px;
          padding: 15px 25px;
        }
        
        #prizeInfo {
          font-size: 30px;
        }
        
        .grid-item {
          font-size: 50px;
          height: 120px;
        }
        
        .numbers-grid {
          gap: 12px;
          grid-template-columns: repeat(5, 1fr);
        }
        
        .lottery-btn {
          font-size: 30px;
          padding: 12px 40px;
        }
        
        .control-btn {
          width: 120px;
          height: 50px;
          font-size: 14px;
        }
        
        .control-btn .icon {
          font-size: 20px;
          margin-bottom: 3px;
        }
        
        .control-buttons {
          gap: 10px;
        }
        
        .prize-grid {
          grid-template-columns: 1fr;
        }
        
        .prize-list-grid {
          grid-template-columns: 1fr;
        }
        
        .admin-sections-container {
          grid-template-columns: 1fr;
        }
  .winner-display {
    flex-direction: column;
  }
        
  .winner-number {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 200px;
    font-size: 120px;
    margin-bottom: 0;
    padding: 30px 20px;
  }
  
  .winner-prize-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 200px;
    padding: 30px 20px;
  }
  
  .winner-prize-image img {
    max-height: 250px;
  }
}
      
      @media (max-width: 600px) {
  .main-title {
    font-size: 50px;
    padding: 10px 15px; /* 调整内边距 */
  }
        
        #result {
          font-size: 70px;
        }
        
        #prizeInfo {
          font-size: 28px;
        }
        
        .grid-item {
          font-size: 40px;
          height: 100px;
        }
        
        .numbers-grid {
          gap: 10px;
          grid-template-columns: repeat(5, 1fr);
        }
        
        .winner-number {
          font-size: 100px;
        }
        
        .winner-prize-image img {
          max-height: 200px;
        }

          .winner-number-large {
    font-size: 50px;
  }
      }
      
      @media (max-width: 480px) {
.main-title {
    font-size: 40px;
    letter-spacing: 2px;
    top: 15px;
    padding: 8px 12px; /* 调整内边距 */
  }
        
        .result-area {
          margin-top: 110px;
        }
        
        #result {
          font-size: 60px;
          min-width: 150px;
          padding: 10px 20px;
        }
        
        #prizeInfo {
          font-size: 24px;
        }
        
        .grid-item {
          font-size: 32px;
          height: 90px;
        }
        
        .numbers-grid {
          gap: 8px;
          grid-template-columns: repeat(5, 1fr);
        }
        
        .control-btn {
          width: 100px;
          height: 45px;
          font-size: 12px;
        }
        
        .control-btn .icon {
          font-size: 18px;
        }
        
        .lottery-btn {
          font-size: 24px;
          padding: 10px 30px;
        }
        
        .numbers-grid {
          gap: 5px;
        }
        
        .grid-item {
          font-size: 28px;
          height: 80px;
          border-radius: 10px;
          border-width: 2px;
        }
        
        .winner-number {
          font-size: 80px;
        }
        
        .winner-prize-image img {
          max-height: 180px;
        }
          .winner-number-large {
    font-size: 50px;
  }


  /* 删除按钮样式 */
.delete-bg-btn {
  margin-left: 10px;
  padding: 3px 8px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.delete-bg-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.file-upload-group {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* 删除按钮样式 */
.delete-image-btn {
  margin-left: 10px;
  padding: 3px 8px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.delete-image-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.file-upload-group {
  position: relative;
}

      }

      /* 金色呼吸渐变背景 */
.golden-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #ffd700, #ff6b6b, #2f0ee7, #388E3C,#45b7d1,#e440dc,#ffd700);
  background-size: 400% 400%;
  animation: goldenBreathing 8s ease infinite;
}

@keyframes goldenBreathing {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 密码验证弹窗样式 */
.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-modal.active {
  display: flex;
  opacity: 1;
}

.password-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.password-modal.active .password-content {
  transform: translateY(0) scale(1);
}

.password-title {
  font-size: 28px;
  color: #ffd700;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
  font-weight: bold;
}

.password-input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 10px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.password-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.password-message {
  font-size: 16px;
  color: #ff6b6b;
  margin-bottom: 20px;
  min-height: 24px;
}

.password-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.password-btn {
  padding: 12px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.password-confirm {
  background: linear-gradient(145deg, #4CAF50, #2E7D32);
  color: white;
}

.password-confirm:hover {
  background: linear-gradient(145deg, #66BB6A, #388E3C);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.password-cancel {
  background: linear-gradient(145deg, #757575, #424242);
  color: white;
}

.password-cancel:hover {
  background: linear-gradient(145deg, #9E9E9E, #616161);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(117, 117, 117, 0.4);
}

.password-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.password-close:hover {
  color: #ffd700;
}

.password-icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

/* 在 CSS 文件的合适位置添加删除按钮样式 */
.delete-endmusic-btn {
  margin-left: 10px;
  padding: 3px 8px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.delete-endmusic-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 使用说明弹窗样式 */
.help-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.help-modal.active {
  display: flex;
  opacity: 1;
}

.help-content {
  background: linear-gradient(145deg, rgba(30, 60, 100, 0.95), rgba(20, 20, 40, 0.95));
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-modal.active .help-content {
  transform: translateY(0) scale(1);
}

.help-title {
  font-size: 32px;
  color: #ffd700;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
  font-weight: bold;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.help-scrollable {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 10px;
}

.help-scrollable::-webkit-scrollbar {
  width: 8px;
}

.help-scrollable::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.help-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.5);
  border-radius: 4px;
}

.help-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.7);
}

.help-section {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-section:last-child {
  border-bottom: none;
}

.help-subtitle {
  font-size: 22px;
  color: #4ecdc4;
  margin-bottom: 15px;
  font-weight: bold;
  padding-left: 10px;
  border-left: 4px solid #4ecdc4;
}

.help-item {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 12px;
  line-height: 1.6;
  padding-left: 15px;
}

.help-item strong {
  color: #ffd700;
}

.help-sublist {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.help-sublist li {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 8px;
  line-height: 1.5;
}

.help-sublist li strong {
  color: #4ecdc4;
}

.help-highlight {
  color: #ff6b6b;
  font-weight: bold;
  background: rgba(255, 107, 107, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 2px;
}

.help-footer {
  font-size: 16px;
  color: #ffd700;
  text-align: center;
  margin-top: 25px;
  padding: 15px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  font-style: italic;
  border-left: 4px solid #ffd700;
}

.help-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.help-close:hover {
  color: #ffd700;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .help-content {
    padding: 30px 20px;
    width: 95%;
  }
  
  .help-title {
    font-size: 26px;
  }
  
  .help-subtitle {
    font-size: 20px;
  }
  
  .help-item {
    font-size: 15px;
  }
  
  .help-sublist li {
    font-size: 14px;
  }
  
  .help-footer {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .help-content {
    padding: 25px 15px;
  }
  
  .help-title {
    font-size: 22px;
  }
  
  .help-subtitle {
    font-size: 18px;
  }
  
  .help-item {
    font-size: 14px;
  }
  
  .help-sublist li {
    font-size: 13px;
  }
  
  .help-footer {
    font-size: 14px;
  }
}

/* 时间验证弹窗样式 */
#timeCheckModal .confirm-content {
  max-width: 700px;
  text-align: center;
  padding: 50px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

#timeCheckModal .confirm-content h1 {
  font-size: 36px;
  color: #ffd700;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

#timeCheckModal .confirm-content p {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.5;
}

#timeCheckModal .confirm-content p:nth-child(3) {
  font-size: 20px;
  color: #ff6b6b;
}

#timeCheckModal .confirm-content p:nth-child(4) {
  font-size: 18px;
  color: #aaa;
}

#timeCheckModal .confirm-content p:nth-child(5) {
  font-size: 16px;
  color: #666;
}

#timeCheckModal .confirm-icon {
  font-size: 100px;
  margin-bottom: 30px;
  color: #ffd700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 40px rgba(255, 215, 0, 1);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  }
}

/* ==================== 抽奖结束祝福语动效（年会氛围） ==================== */
.blessing-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
}

.blessing-overlay.hidden {
  display: none;
}

.blessing-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

.blessing-line {
  font-weight: 900;
  letter-spacing: 6px;
  text-align: center;
  line-height: 1.15;
  font-size: clamp(38px, 5.8vw, 92px);
  color: #fff;
  text-shadow:
    0 0 14px rgba(255, 215, 0, 0.9),
    0 0 34px rgba(255, 90, 0, 0.6),
    0 12px 45px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.92);
}

/* 右->左慢慢移动（循环逐行） */
.blessing-marquee {
  position: absolute;
  left: 0;
  white-space: nowrap;
  opacity: 1;
  transform: translate3d(110vw, 0, 0);
  animation: blessingMarquee linear forwards;
  will-change: transform;
}

@keyframes blessingMarquee {
  from { transform: translate3d(110vw, 0, 0); }
  to { transform: translate3d(-120vw, 0, 0); }
}

/* 从右往左逐行匀速出现（年会收官祝福语） */
.blessing-rtl {
  animation: blessingRtlIn 1000ms linear forwards;
}

/* 从不同方向飞入 */
.from-left { animation: blessingInLeft 1100ms cubic-bezier(.2,.9,.2,1) forwards; }
.from-right { animation: blessingInRight 1100ms cubic-bezier(.2,.9,.2,1) forwards; }
.from-top { animation: blessingInTop 1100ms cubic-bezier(.2,.9,.2,1) forwards; }
.from-bottom { animation: blessingInBottom 1100ms cubic-bezier(.2,.9,.2,1) forwards; }
.from-diag1 { animation: blessingInDiag1 1100ms cubic-bezier(.2,.9,.2,1) forwards; }
.from-diag2 { animation: blessingInDiag2 1100ms cubic-bezier(.2,.9,.2,1) forwards; }

@keyframes blessingInLeft {
  0% { opacity: 0; transform: translate3d(-110vw, 0, 0) scale(0.9) rotate(-6deg); filter: blur(8px); }
  60% { opacity: 1; transform: translate3d(10px, 0, 0) scale(1.04) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}
@keyframes blessingInRight {
  0% { opacity: 0; transform: translate3d(110vw, 0, 0) scale(0.9) rotate(6deg); filter: blur(8px); }
  60% { opacity: 1; transform: translate3d(-10px, 0, 0) scale(1.04) rotate(-1deg); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}
@keyframes blessingInTop {
  0% { opacity: 0; transform: translate3d(0, -90vh, 0) scale(0.9); filter: blur(8px); }
  60% { opacity: 1; transform: translate3d(0, 10px, 0) scale(1.05); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes blessingInBottom {
  0% { opacity: 0; transform: translate3d(0, 90vh, 0) scale(0.9); filter: blur(8px); }
  60% { opacity: 1; transform: translate3d(0, -10px, 0) scale(1.05); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes blessingInDiag1 {
  0% { opacity: 0; transform: translate3d(-90vw, -60vh, 0) scale(0.9) rotate(-10deg); filter: blur(9px); }
  60% { opacity: 1; transform: translate3d(12px, 8px, 0) scale(1.05) rotate(2deg); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}
@keyframes blessingInDiag2 {
  0% { opacity: 0; transform: translate3d(90vw, 60vh, 0) scale(0.9) rotate(10deg); filter: blur(9px); }
  60% { opacity: 1; transform: translate3d(-12px, -8px, 0) scale(1.05) rotate(-2deg); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

@keyframes blessingRtlIn {
  from { opacity: 0; transform: translate3d(110vw, 0, 0) scale(0.94); filter: blur(8px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

.blessing-tip {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.55);
  opacity: 1;
}

@keyframes blessingTipIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 祝福语动效结束 ==================== */


/* ==============================
   3-2-1 倒计时 & 金粉雨
   ============================== */
.control-btn.countdown-btn .icon.countdown-on { display: block; }
.control-btn.countdown-btn .icon.countdown-off { display: none; }
.control-btn.countdown-btn.off .icon.countdown-on { display: none; }
.control-btn.countdown-btn.off .icon.countdown-off { display: block; }
.control-btn.countdown-btn.off { opacity: 0.75; }

.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.85));
  pointer-events: none;
}

.countdown-overlay.show { display: flex; }

.countdown-number {
  font-size: clamp(96px, 16vw, 260px);
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 24px rgba(255,215,0,0.65), 0 0 60px rgba(255,215,0,0.35);
  transform: scale(0.9);
  opacity: 0;
  animation: countdownPop 0.95s ease forwards;
}

@keyframes countdownPop {
  0% { transform: scale(0.55); opacity: 0; filter: blur(6px); }
  35% { transform: scale(1.06); opacity: 1; filter: blur(0); }
  100% { transform: scale(0.98); opacity: 1; }
}

.gold-rain-canvas{
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  display: none;
}

.gold-rain-canvas.show { display: block; }

/* 标题爆闪（不影响居中：保留 translateX(-50%)） */
.main-title.title-flash {
  animation: titleFlash 0.65s ease-out 1;
}

@keyframes titleFlash {
  0%   { filter: brightness(1);   text-shadow: 0 0 18px rgba(255,215,0,.6), 0 0 40px rgba(255,215,0,.35); }
  25%  { filter: brightness(2.2); text-shadow: 0 0 30px rgba(255,255,255,.9), 0 0 80px rgba(255,215,0,.95); }
  55%  { filter: brightness(1.4); text-shadow: 0 0 22px rgba(255,215,0,.85), 0 0 65px rgba(255,215,0,.55); }
  100% { filter: brightness(1);   text-shadow: 0 0 18px rgba(255,215,0,.6), 0 0 40px rgba(255,215,0,.35); }
}


/* =========================
   后台保存提示 Toast（居中，不阻塞）
   ========================= */
.site-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 18px 26px;
  border-radius: 18px;

  background: linear-gradient(145deg, rgba(0,0,0,0.78), rgba(0,0,0,0.45));
  border: 1px solid rgba(255, 215, 0, 0.6);
  backdrop-filter: blur(12px);

  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  color: #ffd700;
  font-size: 20px;
  letter-spacing: 2px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.site-toast .site-toast-icon {
  font-size: 22px;
  filter: drop-shadow(0 6px 14px rgba(255,215,0,0.35));
}

.site-toast .site-toast-text {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}



/* =====================
   v21：最终修复
   - 明确把转盘、按钮都绝对居中（解决“开始按钮跑到右边/出现双转盘错位”）
   - 红环用 inset 方式画（完全在内部）
   - 灯固定在红环带中线（默认暗，开始后跑马）
   ===================== */

:root{
  --ring-border: 20px;
  --light-size: 12px;
}

/* wheelStage 不用 flex，避免绝对元素 static-position 异常 */
#wheelStage{
  display:block !important;
  position: relative;
}

/* 唯一红环（内部环带） */
#wheelStage::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  pointer-events:none;
  z-index: 20;
  box-shadow:
    inset 0 0 0 var(--ring-border) #d10000,
    0 0 30px rgba(255,0,0,0.55);
}

/* 让转盘实际盘面落在红环内侧 */
#wheel{
  position:absolute !important;
  inset: var(--ring-border) !important;
  width:auto !important;
  height:auto !important;
  border:none !important;
  box-shadow:none !important;      /* 防止原外圈阴影叠出第二圈 */
  overflow:hidden;
  z-index: 5;
}

/* 盘面不需要伪元素外圈时关闭，避免第二圈 */
#wheel::before,
#wheel::after{
  content:none !important;
  display:none !important;
}

/* 开始按钮强制居中 */
#wheelStartBtn, .wheel-start-btn{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  z-index: 70 !important;
}

/* 指针在顶部 */
.wheel-pointer{
  z-index: 60 !important;
}

/* 灯层不挡点击 */
#wheelLights{
  position:absolute;
  inset:0;
  border-radius:50%;
  pointer-events:none;
  z-index: 30;
}

/* 灯样式 */
#wheelLights .wheel-light{
  position:absolute;
  width:var(--light-size);
  height:var(--light-size);
  border-radius:50%;
  opacity:0.22;
}

/* 默认：金色 + 白色交替（red=金，white=白） */
#wheelLights .wheel-light.red{
  background:#ffe08a;
  box-shadow:0 0 6px rgba(245,230,184,0.6);
}
#wheelLights .wheel-light.white{
  background:#ffffff;
  box-shadow:0 0 6px rgba(255,255,255,0.55);
}

/* 亮灯 */
#wheelLights .wheel-light.active{
  opacity:1;
  transform:none !important;
}
#wheelLights .wheel-light.active.red{
  box-shadow:0 0 14px rgba(245,230,184,0.95);
}
#wheelLights .wheel-light.active.white{
  box-shadow:0 0 14px rgba(255,255,255,0.95);
}

/* 转动中：白色/金色交替闪（整体翻转颜色） */
#wheelLights.alt-flash .wheel-light.red{
  background:#ffffff;
  box-shadow:0 0 7px rgba(255,255,255,0.75);
}
#wheelLights.alt-flash .wheel-light.white{
  background:#ffe08a;
  box-shadow:0 0 7px rgba(245,230,184,0.75);
}
#wheelLights.alt-flash .wheel-light.active.red{
  box-shadow:0 0 16px rgba(255,255,255,0.98);
}
#wheelLights.alt-flash .wheel-light.active.white{
  box-shadow:0 0 16px rgba(245,230,184,0.98);
}
/* =====================
   v22：修正
   1) 指针移到最外圈上方（不在盘面里）
   2) 灯中心严格对齐红环带中线（半径在 JS 修）
   ===================== */

:root{
  --ring-border: 20px; /* 与 v21 一致 */
}

/* 指针：放到红环外侧正上方 */
.wheel-pointer{
  position: absolute !important;
  left: 50% !important;
  top: calc(var(--ring-border) * -0.65) !important; /* 往上提到外环外 */
  transform: translateX(-50%) !important;
  z-index: 80 !important;
}


/* =====================
   v23：指针精确对齐到红环带中线上方
   ===================== */

/* 红环厚度 = --ring-border
   指针高度约 36px，这里让指针尖端刚好落在红环中线 */
.wheel-pointer{
  top: calc(var(--ring-border) * -1 + 2px) !important;
}


/* =====================
   v24：指针锚定到“开始按钮圆圈外正上方”
   ===================== */
.wheel-pointer {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;

  /* 向上移动 = 开始按钮半径 + 指针高度 + 间隙 */
  transform: translate(
    -50%,
    calc(-1 * (75px + 48px + 6px))
  ) !important;

  z-index: 80 !important;
}

#wheelLights .wheel-light{opacity:0.5;}


/* =====================
   v26：灯更偏黄 + 转盘旋转 8 秒停止
   ===================== */
#wheel{
  transition-duration: 8s !important;
}


/* =====================
   v27：开始按钮“正在抽取”字体更小
   ===================== */
#wheelStartBtn.small,
.wheel-start-btn.small{
  font-size: 26px !important;  /* 原来更大，这里调小 */
  letter-spacing: 1px;
}
