
/* 全局样式定义 */
body {
  font-family: 'Futura', 'Roboto Mono', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #000033, #000000, #330066);
  color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #00ffaa;
  font-weight: bold;
  margin-top: 2rem;
}

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

a {
  color: #ffaa00;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffdd00;
}

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

.header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(90deg, #000033, #110044, #330066);
  position: relative;
}

.header h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #00ffaa;
  text-shadow: 0 0 10px #00ffaa;
}

.header p {
  font-size: 1.2rem;
  color: #cccccc;
}

.section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

.code-block {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Roboto Mono', monospace;
  color: #00ffaa;
  margin: 20px 0;
}

.code-block code {
  display: block;
  white-space: pre-wrap;
}

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

.grid-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.05);
}

.particles {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 5s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.2); }
  100% { transform: translateY(0) scale(1); }
}

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

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.9rem;
  }
}

.footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(90deg, #330066, #000033);
  color: #aaaaaa;
  font-size: 0.9rem;
}

