
/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #000046, #283149);
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.module {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

h1, h2, h3 {
  font-weight: bold;
  color: #39FF14;
  text-align: center;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 20px;
}

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

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

button {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid #39FF14;
  padding: 10px;
  text-align: center;
}

th {
  background-color: rgba(0, 255, 0, 0.2);
}

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

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

@media (max-width: 480px) {
  p {
    font-size: 0.9rem;
  }

  pre {
    font-size: 0.8rem;
  }
}

