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

h1, h2, h3 {
  font-family: 'Neometric', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header {
  background: rgba(10, 31, 68, 0.8);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

header h1 {
  background: linear-gradient(90deg, #39FF14, #7B68EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.module {
  background-color: #B0BEC5;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.item {
  transition: transform 0.3s ease-in-out;
}

.item:hover {
  transform: scale(1.1);
}

code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px;
  border-radius: 5px;
  font-family: 'Roboto Mono', monospace;
}

pre {
  background: #1E1E1E;
  color: #39FF14;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
}

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

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

th {
  background-color: #7B68EE;
}

svg {
  fill: none;
  stroke: #39FF14;
  stroke-width: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .module {
    grid-column: span 2;
  }

  pre {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

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

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1.5s ease-in-out;
}

.particle-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.3), transparent);
  pointer-events: none;
}

