html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  background: radial-gradient(circle, #0f0c29, #302b63, #24243e);
  font-family: 'Arial', sans-serif;
}

canvas {
  display: block;
}

.content-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 1px 1px 0 #00cccc,
               2px 2px 0 #009999,
               3px 3px 0 #006666,
               4px 4px 0 #003333;
  margin-bottom: 30px;
}

.tagline {
  color: white;
  margin-bottom: 30px;
  line-height: 1.6;
}

.tagline h1 {
  font-size: 2em;
  margin: 0;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.tagline p {
  font-size: 1em;
  margin-top: 15px;
  opacity: 0.9;
}

.waitlist-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}

.email-input {
  padding: 12px 20px;
  width: 250px;
  border: none;
  border-radius: 30px;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.email-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #00ffff, 0 4px 15px rgba(0, 0, 0, 0.2);
}

.subscribe-btn {
  padding: 12px 30px;
  background: linear-gradient(45deg, #00ffff, #0088ff);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.subscribe-btn:active {
  transform: translateY(0);
}

/* 修改旋转文本容器的样式 */
#rotating-text {
  display: inline-block;
  min-width: 300px;
  width: 300px; /* 固定宽度 */
  text-align: center; /* 文字居中 */
  position: relative;
  color: #00ffff;
  height: 1.5em; /* 固定高度 */
  vertical-align: bottom; /* 对齐底部 */
}

#rotating-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #0088ff);
  animation: underline 0.5s ease-out;
}

@keyframes underline {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

@media (max-width: 768px) {
  .logo {
    font-size: 2em;
  }
  
  .tagline h1 {
    font-size: 1.5em;
  }
  
  .tagline p {
    font-size: 0.9em;
  }
  
  .waitlist-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .email-input {
    width: 100%;
  }
}

/* 新增文本轮廓样式 */
.content-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  background: rgba(15, 12, 41, 0.7); /* 半透明背景 */
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3),
              inset 0 0 10px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

/* 打字动画效果 */
#rotating-text {
  display: inline-block;
  min-width: 300px;
  position: relative;
  color: #2CB3F1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 调整打字动画 */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* 调整删除动画 - 不再改变宽度 */
@keyframes deleting {
  from { opacity: 1 }
  to { opacity: 0 }
}

.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 0.5s steps(40, end);
  width: 0;
}
.deleting {
  display: inline-block;
  animation: deleting 0.3s ease-out;
  opacity: 1;
}
