body {
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f5f5f5;
}
.container {
  text-align: center;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  position: relative;
}
h1 {
  color: #333;
  margin-bottom: 20px;
}
.counter {
  font-size: 72px;
  font-weight: bold;
  color: #2196F3;
  margin: 30px 0;
  position: relative;
}
.deal-amount {
  font-size: 48px;
  font-weight: bold;
  color: #4CAF50;
  margin: 30px 0;
  position: relative;
}
.deal-amount::before {
  content: '¥';
  font-size: 24px;
  margin-right: 5px;
}
.info {
  margin-top: 30px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}
.api-url {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  margin: 10px 0;
  word-break: break-all;
}
.api-title {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
}
/* 动效样式 */
@keyframes flyUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}
@keyframes flyDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(100px) scale(1.5);
  }
}
@keyframes flyUpGreen {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}
.increment-animation {
  position: absolute;
  color: #4CAF50;
  font-weight: bold;
  font-size: 32px;
  animation: flyUp 1.5s ease-out forwards;
  z-index: 10;
}
.decrement-animation {
  position: absolute;
  color: #F44336;
  font-weight: bold;
  font-size: 32px;
  animation: flyDown 1.5s ease-out forwards;
  z-index: 10;
}
.deal-increment-animation {
  position: absolute;
  color: #4CAF50;
  font-weight: bold;
  font-size: 32px;
  animation: flyUpGreen 1.5s ease-out forwards;
  z-index: 10;
}
/* 数字变化动效 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.pulse {
  animation: pulse 0.5s ease-in-out;
}
/* 隐藏音频元素 */
.audio-player {
  display: none;
}
/* 设置按钮样式 */
.settings-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 100;
}
.settings-button:hover {
  background-color: #e0e0e0;
}
.settings-button svg {
  width: 24px;
  height: 24px;
  fill: #666;
}
/* 设置面板样式 */
.settings-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  z-index: 99;
  display: none;
}
.settings-panel.show {
  display: block;
}
.settings-panel h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}
.settings-group {
  margin-bottom: 15px;
}
.settings-group label {
  display: block;
  margin-bottom: 5px;
  color: #666;
}
.settings-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.settings-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.settings-actions .save {
  background-color: #2196F3;
  color: white;
}
.settings-actions .cancel {
  background-color: #f0f0f0;
  color: #666;
}
.settings-actions button:hover {
  opacity: 0.9;
}
.announcement-container {
  margin: 20px 0;
  padding: 15px;
  background-color: #fffde7;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
  opacity: 0;
  padding: 0;
}
.announcement-container.show {
  max-height: 200px;
  opacity: 1;
  padding: 15px;
}
.announcement-text {
  color: #ff6f00;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
@keyframes blink {
  0% { opacity: 1; background-color: #fffde7; }
  50% { opacity: 0.8; background-color: #fff9c4; }
  100% { opacity: 1; background-color: #fffde7; }
}
@keyframes textPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.announcement-container.blink {
  animation: blink 0.5s linear 3;
}
.announcement-text.pop {
  animation: textPop 0.5s ease-in-out 3;
}
/* 权限请求遮罩层 */
.permission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: white;
  font-size: 18px;
  text-align: center;
}
.permission-container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  color: #333;
  animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.permission-overlay h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}
.permission-overlay p {
  margin: 10px 0;
  max-width: 100%;
  line-height: 1.5;
  color: #555;
}
.permission-button {
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 18px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}
.permission-button:hover {
  background-color: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
}
.permission-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}
.device-icon {
  font-size: 40px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

/* 全屏庆祝动画样式 */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 900;
  display: block;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* 简化背景图案，减少复杂渲染 */
.celebration-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/g%3E%3C/svg%3E"), 
      linear-gradient(45deg, rgba(0,212,255,0.15) 0%, rgba(255,0,247,0.15) 100%);
  opacity: 0.5;
  z-index: -1;
  /* 使用固定背景而不是动画，减少GPU负担 */
  background-size: 100px, cover;
  /* 赛博朋克风格的格子效果 */
  background-image: 
    /* 赛博朋克风格网格线 */
    linear-gradient(to right, rgba(0,255,255,0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,255,255,0.1) 1px, transparent 1px),
    /* 对角线效果 */
    linear-gradient(45deg, rgba(0,212,255,0.15) 0%, rgba(255,0,247,0.15) 100%);
  background-size: 40px 40px, 40px 40px, cover;
}

/* 移除复杂的烟花特效 */
.celebration-firework {
  display: none;
}

.celebration-badge {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ff9800, #f44336);
  color: white;
  font-size: 30px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transform: rotate(15deg);
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.7), 
              0 0 40px rgba(255, 0, 128, 0.4);
  /* 添加故障效果边框 */
  border: 2px solid rgba(0, 255, 255, 0.7);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5),
               3px 3px 0 rgba(255,0,255,0.7);
  /* 添加霓虹效果 */
  filter: drop-shadow(0 0 5px rgba(255, 0, 128, 0.8));
  /* 为徽章添加一点微小动画 */
  animation: glitchBadge 2s infinite alternate;
}

/* 徽章故障动画 */
@keyframes glitchBadge {
  0% { transform: rotate(15deg) scale(1); filter: hue-rotate(0deg); }
  25% { transform: rotate(15deg) scale(1.02); filter: hue-rotate(30deg); }
  50% { transform: rotate(14deg) scale(1); filter: hue-rotate(60deg); }
  75% { transform: rotate(16deg) scale(0.98); filter: hue-rotate(90deg); }
  100% { transform: rotate(15deg) scale(1); filter: hue-rotate(0deg); }
}

.celebration-content {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  width: min(90vw, 2080px);
  box-sizing: border-box;
  padding: 32px 0 28px 0;
  border-radius: 20px;
  background: rgba(20,20,30,0.85);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 0 60px rgba(255, 0, 255, 0.2);
  border: 2px solid;
  border-image: linear-gradient(45deg, rgba(0, 255, 255, 1), rgba(255, 0, 255, 1), rgba(255, 255, 0, 1)) 1;
  margin: 0;
  background-image: linear-gradient(135deg, rgba(0,255,255,0.1) 25%, transparent 25%), repeating-linear-gradient(45deg, rgba(255,0,255,0.05) 0px, rgba(255,0,255,0.05) 1px, transparent 1px, transparent 5px);
  text-align: center;
}

.celebration-person {
  font-size: 85px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 30px;
  /* 赛博朋克风格文字效果 */
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.7),
    0 0 20px rgba(255, 215, 0, 0.5),
    3px 3px 0 rgba(255, 0, 255, 0.7);
  /* 添加故障效果 */
  animation: glitchText 3s infinite alternate;
  letter-spacing: 2px;
}

.celebration-amount {
  font-size: 75px;
  color: #4CAF50;
  margin-bottom: 35px;
  /* 霓虹灯效果 */
  text-shadow: 
    0 0 10px rgba(76, 175, 80, 0.7),
    0 0 20px rgba(76, 175, 80, 0.5),
    3px 3px 0 rgba(0, 255, 255, 0.7);
  /* 添加霓虹效果 */
  filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.8));
}

.celebration-platform {
  font-size: 48px;
  color: #2196F3;
  margin-bottom: 45px;
  /* 霓虹灯效果 */
  text-shadow: 
    0 0 10px rgba(33, 150, 243, 0.7),
    0 0 20px rgba(33, 150, 243, 0.5),
    3px 3px 0 rgba(255, 255, 0, 0.7);
  /* 添加未来风字形变形 */
  font-family: monospace, sans-serif;
  letter-spacing: 1px;
}

.celebration-message {
  font-size: 42px;
  color: white;
  line-height: 1.4;
  /* 简化动画 */
  animation: simpleAppear 0.8s ease-out;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
  /* 霓虹文字效果 */
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4),
    2px 2px 0 rgba(0, 255, 255, 0.7);
  /* 添加边框效果 */
  border-left: 4px solid rgba(0, 255, 255, 0.7);
  border-right: 4px solid rgba(255, 0, 255, 0.7);
}

/* 添加赛博朋克风格的故障文字动画 */
@keyframes glitchText {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(2deg); }
  23% { transform: skew(-1deg); }
  24% { transform: skew(0deg); }
  50% { transform: skew(0deg); }
  51% { transform: skew(-1deg); }
  52% { transform: skew(0deg); }
  90% { transform: skew(0deg); }
  91% { transform: skew(1deg); }
  92% { transform: skew(-1deg); }
  93% { transform: skew(0deg); }
}

/* 极大地减少纸屑和金币的数量与复杂度 */
.celebration-confetti, .celebration-coin {
  position: absolute;
  z-index: -1;
  /* 尝试减轻渲染压力 */
  will-change: transform;
  transform: translateZ(0);
}

.celebration-confetti {
  width: 10px;
  height: 10px;
  background-color: #FFD700;
  border-radius: 50%;
  opacity: 0.8;
}

.celebration-coin {
  display: none; /* 完全移除金币，减轻渲染压力 */
}

/* 简化的动画关键帧 */
@keyframes simpleZoom {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes simpleAppear {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes simpleConfettiFall {
  0% { transform: translateY(-100vh); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* 简化或移除不必要的动画 */
@keyframes flash {
  0% { background-color: rgba(0, 0, 0, 0.85); }
  100% { background-color: rgba(0, 0, 0, 0.85); }
}

/* 调整歌词容器与庆祝窗口的位置关系 */
.lyrics-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 850;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding-bottom: 140px; /* 让歌词整体上移，避免被播放器遮挡 */
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.lyrics-container.show {
  opacity: 1;
}

/* 修改歌词相关样式 */
.lyrics-wrapper {
  width: 100%;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 30px; /* 增加与播放控制器的距离 */
}

.lyrics-content {
  width: 100%;
  overflow: hidden;
  position: relative;
  max-height: 300px; /* 控制歌词区域高度 */
}

.lyrics-scroll {
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
}

.lyrics-line {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
  margin: 12px 0;
  padding: 5px 0;
  transition: all 0.3s ease;
  font-weight: normal;
  opacity: 0.6;
  /* 添加霓虹文字阴影，与庆祝框风格呼应 */
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.lyrics-line.current {
  font-size: 28px;
  color: white;
  font-weight: bold;
  opacity: 1;
  /* 添加霓虹文字效果，与庆祝框风格呼应 */
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(0, 255, 255, 0.5);
}

.lyrics-line.prev, .lyrics-line.next {
  font-size: 18px;
  opacity: 0.7;
}

/* 音乐控制条样式 */
.music-player {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  height: 70px;
  background-color: rgba(33, 33, 33, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 900; /* 与庆祝窗口同级 */
  transition: bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.music-player.show {
  bottom: 0;
}

.music-controls {
  display: flex;
  align-items: center;
  width: 100%;
}

.music-info {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  flex: 1;
  min-width: 0;
}

.music-title {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 12px;
  color: #666;
  margin: 3px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-container {
  flex: 2;
  height: 4px;
  background-color: rgb(255 255 255 / 10%);
  border-radius: 2px;
  margin: 0 10px;
  position: relative;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  background-color: #1E88E5;
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.progress-handle {
  width: 12px;
  height: 12px;
  background-color: #1E88E5;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-container:hover .progress-handle {
  opacity: 1;
}

.progress-time {
  font-size: 12px;
  color: #666;
  margin: 0 10px;
  min-width: 40px;
  text-align: center;
}

.control-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  transition: all 0.2s;
  color: #333;
}

.control-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.control-button.play-pause {
  background-color: #1E88E5;
  color: white;
}

.control-button.play-pause:hover {
  background-color: #1976D2;
  transform: scale(1.05);
}

.volume-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
  width: 120px;
}

.volume-icon {
  margin-right: 10px;
  color: #666;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.volume-level {
  height: 100%;
  background-color: #666;
  border-radius: 2px;
  width: 100%;
}

.volume-handle {
  width: 10px;
  height: 10px;
  background-color: #666;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.volume-slider:hover .volume-handle {
  opacity: 1;
}

.music-album-art {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.music-album-art::after {
  content: '🎵';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #999;
}

.music-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* 音乐波形动画 */
.music-waves {
  display: flex;
  align-items: center;
  height: 20px;
  margin-left: 10px;
}

.music-wave {
  width: 3px;
  height: 15px;
  margin: 0 1px;
  background-color: #1E88E5;
  border-radius: 1.5px;
  animation: wave 1.5s infinite ease-in-out;
}

.music-wave:nth-child(2) {
  animation-delay: 0.2s;
  height: 10px;
}

.music-wave:nth-child(3) {
  animation-delay: 0.4s;
  height: 18px;
}

.music-wave:nth-child(4) {
  animation-delay: 0.6s;
  height: 8px;
}

.music-wave:nth-child(5) {
  animation-delay: 0.8s;
  height: 12px;
}

@keyframes wave {
  0%, 100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1);
  }
}

/* 歌词显示样式 */
.lyrics-wrapper {
  display: inline-block;
  perspective: 1000px;
  max-width: 90%;
  margin: 0 auto;
}

.lyrics-content {
  max-height: 40vh;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
}

.lyrics-scroll {
  position: relative;
  transition: transform 0.5s ease;
  width: 100%; /* 确保使用全宽 */
}

.lyrics-line {
  padding: 8px 16px;
  margin: 4px auto; /* 居中显示 */
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  transition: all 0.3s ease;
  opacity: 0.6;
  transform: scale(0.9);
  white-space: pre-wrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  max-width: 90%; /* 修改最大宽度 */
  width: fit-content; /* 宽度适应内容 */
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: inline-block; /* 内联块元素可以居中 */
  box-sizing: border-box;
}

.lyrics-line.current {
  color: white;
  background-color: rgba(33, 150, 243, 0.7);
  transform: scale(1.05); /* 减小缩放比例 */
  opacity: 1;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
  max-width: 95%; /* 确保在缩放时不会溢出 */
  margin: 8px auto; /* 居中显示 */
}

.lyrics-line.prev, .lyrics-line.next {
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.8;
  transform: scale(1);
}

/* 庆祝模式下的样式调整 */
.celebration-mode .container {
  transform: scale(0.9) translateY(-50px);
  opacity: 0.8;
  transition: all 0.8s ease;
}

/* 音乐控制条在庆祝模式下的样式修改 */
.celebration-mode .music-player {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4000; /* 确保在全屏庆祝之上 */
  bottom: 0; /* 恢复到底部 */
  left: 0;
  right: 0;
  /* 移除右侧定位 */
  position: fixed;
  /* 移除固定宽度 */
  /* 移除边距和圆角 */
}

/* 歌词容器在庆祝模式下的样式修改 */
.celebration-mode .lyrics-container {
  z-index: 4000; /* 确保在全屏庆祝之上 */
  position: fixed;
  left: 50%;
  transform: translateX(-50%); /* 水平居中 */
  bottom: 100px; /* 位于播放器上方，但在庆祝框下方 */
  width: 1200px; /* 进一步增加宽度，从1000px改为1200px */
  text-align: center;
  opacity: 0.9;
  align-items: flex-end;
  padding-bottom: 150px; /* 增加底部间距，远离庆祝内容 */
  pointer-events: none;
  /* 添加渐变背景确保歌词可见 */
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
}

.celebration-mode .lyrics-wrapper {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  width: 100%; /* 确保使用容器的完整宽度 */
  box-sizing: border-box;
}

.celebration-mode .lyrics-content {
  max-height: unset; /* 取消高度限制 */
  height: auto;
  padding: 15px 0;
  width: 100%; /* 确保使用容器的完整宽度 */
}

.celebration-mode .lyrics-line {
  font-size: 32px; /* 更大的字体 */
  padding: 12px 20px;
  margin: 8px 0;
  opacity: 0.6;
  transform: scale(0.85);
  background-color: rgba(0, 0, 0, 0.4);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

.celebration-mode .lyrics-line.current {
  font-size: 36px; /* 当前行更大的字体 */
  transform: scale(1.1); /* 减小缩放比例，从1.2改为1.1 */
  opacity: 1;
  margin: 16px 0;
  background-color: rgba(33, 150, 243, 0.7);
  box-shadow: 0 0 25px rgba(33, 150, 243, 0.7);
  max-width: 95%; /* 确保在缩放时不会溢出 */
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* 确保只显示三行歌词 */
.celebration-mode .lyrics-scroll .lyrics-line:not(.prev):not(.current):not(.next) {
  display: none;
}

.celebration-mode .music-title,
.celebration-mode .music-artist {
  color: white;
}

.celebration-mode .control-button {
  color: white;
}

/* 页面底部庆祝语区域样式 */
.bottom-announcement-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px;
  background-color: #fffde7;
  border-top: 4px solid #ffc107;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
  opacity: 0;
  padding: 0;
  z-index: 800;
  text-align: center;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.bottom-announcement-container.show {
  max-height: 200px;
  opacity: 1;
  padding: 15px;
}

/* 继承原有庆祝语的动画和样式 */
.bottom-announcement-container.blink {
  animation: blink 0.5s linear 3;
}

/* 成交排队队列样式 */
.deal-queue {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 280px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.queue-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.queue-count {
  margin-left: auto;
  background: #ff3b30;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  min-width: 20px;
  text-align: center;
}

.queue-list {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.queue-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  color: white;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  animation: slideInRight 0.3s ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
}

.queue-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-amount {
  color: #4ade80;
  font-size: 12px;
  font-weight: 500;
}

.queue-item-platform {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.queue-item.playing {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
}

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

.queue-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.queue-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
} 