
/* 全局样式定义 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #1e0054, #2c007f);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(to right, #ff00cc, #3333ff);
  position: relative;
  animation: fadeIn 2s ease-in-out;
}

header h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

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

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffcc00;
  text-transform: uppercase;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: #dcdcdc;
}

pre {
  background-color: #222;
  color: #00ff99;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

code {
  color: #ffcc00;
}

.button {
  background-color: #00ff99;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 255, 153, 0.5);
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  pre {
    font-size: 0.8rem;
  }
}

.neon-text {
  color: #00ff99;
  text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99, 0 0 20px #00ff99;
  animation: neon-glow 1.5s infinite alternate;
}

@keyframes neon-glow {
  from { text-shadow: 0 0 5px #00ff99, 0 0 10px #00ff99, 0 0 20px #00ff99; }
  to { text-shadow: 0 0 10px #00ff99, 0 0 20px #00ff99, 0 0 40px #00ff99; }
}

