body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* 星空背景 */
#stars, #stars2, #stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -2;
}
#stars {
  background: transparent url('https://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
  animation: moveStars 100s linear infinite;
}
#stars2 {
  background: transparent url('https://www.script-tutorials.com/demos/360/images/stars2.png') repeat top center;
  animation: moveStars 200s linear infinite;
}
#stars3 {
  background: transparent url('https://www.script-tutorials.com/demos/360/images/stars3.png') repeat top center;
  animation: moveStars 300s linear infinite;
}
@keyframes moveStars {
  from { transform: translateY(0); }
  to { transform: translateY(-1000px); }
}

/* 波浪特效 */
#waves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  z-index: -1;
}
.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  opacity: 0.6;
  border-radius: 1000px;
  animation: waveMove 10s linear infinite;
}
#wave1 {
  background: linear-gradient(90deg, #ff6f91, #ff9671, #ffc75f, #f9f871, #92fe9d, #00c9a7, #845ec2);
  animation-duration: 12s;
  z-index: 1;
}
#wave2 {
  background: linear-gradient(90deg, #845ec2, #00c9a7, #92fe9d, #ffc75f, #ff9671, #ff6f91);
  animation-duration: 15s;
  bottom: 10px;
  z-index: 2;
}
#wave3 {
  background: linear-gradient(90deg, #f9f871, #ffc75f, #ff9671, #ff6f91, #845ec2);
  animation-duration: 18s;
  bottom: 20px;
  z-index: 3;
}
#wave4 {
  background: linear-gradient(90deg, #00c9a7, #92fe9d, #ffc75f, #ff9671, #845ec2, #ff6f91);
  animation-duration: 20s;
  bottom: 30px;
  z-index: 4;
}
@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.container {
  position: relative;
  z-index: 10;
  padding: 20px;
}

/* 冷知识文字渐变 */
#fact {
  font-size: 22px;
  min-height: 60px;
  margin: 20px 0;
  background: linear-gradient(90deg, #ff6f91, #ff9671, #ffc75f, #f9f871, #92fe9d, #00c9a7, #845ec2);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s infinite alternate;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 倒计时 */
#countdown {
  font-size: 14px;
  color: #ccc;
  margin: 5px 0 10px;
}
#seconds {
  font-weight: bold;
  color: #ff6f91;
  display: inline-block;
  transition: transform 0.2s ease;
}
#seconds.animate {
  transform: scale(1.6);
  color: #ff9671;
}
#seconds.explode {
  transform: scale(2);
  color: #fff;
}

/* 进度条 */
#progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  margin: 10px 0 20px;
  overflow: hidden;
}
#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6f91, #ff9671, #ffc75f, #f9f871);
  background-size: 200% 200%;
  animation: gradientMove 3s linear infinite;
  transition: width 0.1s linear;
}

/* 按钮 */
button {
  background: linear-gradient(90deg, #ff6f91, #ff9671);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin: 5px;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255, 111, 145, 0.6);
}
button:hover {
  box-shadow: 0 0 25px rgba(255, 111, 145, 0.9), 0 0 40px rgba(255, 150, 113, 0.8);
}
#toggle-auto {
  background: linear-gradient(90deg, #00c9a7, #92fe9d);
  box-shadow: 0 0 15px rgba(0, 201, 167, 0.6);
}
#toggle-auto:hover {
  box-shadow: 0 0 25px rgba(0, 201, 167, 0.9), 0 0 40px rgba(146, 254, 157, 0.8);
}
