
/* 全局样式与页面基础布局 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #f0f8ff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  padding: 20px 0;
}
h1, h2, h3 {
  font-weight: bold;
  text-align: center;
  letter-spacing: 1.5px;
}
h1 {
  font-size: 3rem;
  background: linear-gradient(45deg, #1e0066, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
h2 {
  font-size: 2.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
}
h3 {
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 15px;
}
p {
  font-size: 1rem;
  margin-bottom: 15px;
}
a {
  color: #39ff14;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #ffffff;
}
button {
  background: linear-gradient(45deg, #1e0066, #8a2be2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
button:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #8a2be2, #1e0066);
}
pre {
  background-color: rgba(0, 0, 0, 0.7);
  color: #00ff00;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 15px 0;
}
code {
  color: #ff007f;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.module {
  background-color: #1c1c1c;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
}
.module img {
  margin-bottom: 15px;
}
.module p {
  font-size: 0.9rem;
}
.particles {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: float 5s infinite ease-in-out;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
@keyframes float {
  0% { transform: translateY(0) translateX(-50%); opacity: 1; }
  100% { transform: translateY(-200px) translateX(-50%); opacity: 0; }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }
}

