body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

canvas {
  display: block;
}

.music-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  font-size: 16px;
  z-index: 1;
  cursor: pointer;
}

.animation-btn {
  position: absolute;
  top: 80px; 
  left: 20px;
  padding: 10px 20px;
  font-size: 16px;
  z-index: 1;
  cursor: pointer;
}

.music-btn, .animation-btn {
  background-color: #f8f4e6;
  border: 1px solid #e8e4d6;
  border-radius: 15px;
  padding: 12px 24px;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(173, 216, 230, 0.5);
  color: #555;
  font-weight: 500;
  transition: all 0.3s ease;
}

.music-btn:hover, .animation-btn:hover {
  background-color: #f0ece0;
  box-shadow: 0 6px 16px rgba(173, 216, 230, 0.7);
  transform: translateY(-2px);
}

.music-btn:active, .animation-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(173, 216, 230, 0.3);
}


.animated-title {
  position: absolute;
  top: -70px;
  left: 0px;
  right: 0px;
  text-align: center;
  font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; 
  font-size: 90px; 
  font-weight: bold;
  color: #f8f4e6; 
  text-shadow: 0 0 10px rgba(173, 216, 230, 0.7); 
  opacity: 0;
  transform: scale(0.9);
  animation: titleAnimation 8s infinite ease-in-out;
  z-index: 10;
}

@keyframes titleAnimation {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  15% {
    opacity: 1;
    transform: scale(1.2);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  85% {
    opacity: 1;
    transform: scale(1.2); 
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .animated-title {
    font-size: 36px;
    top: 15px;
  }
}