/* 动态炫彩文字效果 */
@keyframes gradient-text {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes neon-glow {
  0% {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0073e6, 0 0 20px #0073e6, 0 0 25px #0073e6, 0 0 30px #0073e6, 0 0 35px #0073e6;
  }
  50% {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff00ff, 0 0 40px #ff00ff, 0 0 50px #ff00ff, 0 0 60px #ff00ff, 0 0 70px #ff00ff;
  }
  100% {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #00ff00, 0 0 20px #00ff00, 0 0 25px #00ff00, 0 0 30px #00ff00, 0 0 35px #00ff00;
  }
}

@keyframes rainbow-border {
  0% {
    border-color: #ff0000;
  }
  16% {
    border-color: #ff7f00;
  }
  33% {
    border-color: #ffff00;
  }
  50% {
    border-color: #00ff00;
  }
  66% {
    border-color: #0000ff;
  }
  83% {
    border-color: #4b0082;
  }
  100% {
    border-color: #9400d3;
  }
}

.colorful-text {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient-text 15s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.neon-text {
  color: #fff;
  animation: neon-glow 2s ease-in-out infinite alternate;
}

.colorful-border {
  border: 2px solid #ff0000;
  animation: rainbow-border 3s linear infinite;
}

/* 应用到特定元素 */
.main h1#slogan {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.main h2 {
  font-size: 1.8rem;
}

.main h2.chtitle {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.main h2.chtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 200% auto;
  animation: gradient-text 3s ease infinite;
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}