
/* 全局样式与配色方案 */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(45deg, #000000, #0a2463, #00ff8f);
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid #00ff8f;
}
header h1 {
  font-family: 'Futura', sans-serif;
  font-size: 2.5rem;
  transform: rotate(-5deg);
  display: inline-block;
  color: #ff6f00;
}
main {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
section {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 255, 143, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 255, 143, 0.5);
}
h2 {
  font-family: 'Futura', sans-serif;
  color: #00ff8f;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  color: #dcdcdc;
}
pre {
  background: #0a2463;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}
code {
  color: #ff6f00;
  font-family: 'Courier New', monospace;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
footer {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  main {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) {
  section:nth-child(even) {
    transform: rotate(2deg);
  }
  section:nth-child(odd) {
    transform: rotate(-2deg);
  }
}

