/* 全局设置 */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #000;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#oscilloscope-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  opacity: 1;
  transition: opacity 2s ease;
}

.grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
                    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridAnimation 1s infinite alternate;
}

.waveform {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
  background: none;
  border-top: 3px solid rgba(0, 255, 0, 0.8); /* 更粗的波形线 */
  animation: waveform 4s ease-in-out forwards, pulseWaveform 1.5s ease-in-out infinite alternate;
}

.text {
  position: absolute;
  text-align: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  animation: fadeInText 2s ease-out forwards;
}

#booting {
  opacity: 1;
  animation: fadeOutText 2s ease-out forwards 3s;
}

.main-content {
  display: none; /* 初始不显示主内容 */
  opacity: 0;
  transition: opacity 2s ease;
  padding: 20px;
  width: 100%;
  max-width: 600px; /* 限制最大宽度 */
  box-sizing: border-box;
}

.hero h1 {
  font-size: 4rem;
  margin: 20px 0;
  font-family: 'Montserrat', sans-serif;
  color: #00ff99; /* 波形线色和一致 */
}

.hero p.slogan {
  font-size: 1.5rem;
  margin-top: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  opacity: 0;
  animation: fadeInSlogan 3s ease-out forwards;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #00ff99;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); /* 增加头像的光晕效果 */
}

@keyframes waveform {
  0% {
    transform: translateY(-50%) scaleX(0);
  }
  100% {
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes pulseWaveform {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOutText {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeInSlogan {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes gridAnimation {
  0% {
    background-color: rgba(0, 255, 255, 0.1);
  }
  100% {
    background-color: rgba(0, 255, 255, 0.3);
  }
}