
/* 页面全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle, #000000, #1a1a1a);
  color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Arial Black', sans-serif;
  color: #00ff7f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.module {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.glass-effect {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent),
              linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 200%;
  background-position: 0 0, 100% 100%;
  border-radius: 10px;
  padding: 20px;
}

.button {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 255, 127, 0.8);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.button:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: explode 0.3s ease-out;
}

@keyframes explode {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(0, 255, 127, 0.8);
  border-radius: 50%;
  animation: move-particles 5s infinite linear;
}

@keyframes move-particles {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, 50px); }
}

pre {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  color: #00ff7f;
  font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
}

