
/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #000066, #660099);
  color: #ffffff;
  overflow-x: hidden;
}

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

a:hover {
  color: #00ff7f;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 10px 0 0 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

section {
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.section-title {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: #ff69b4;
}

.section-content {
  max-width: 800px;
  text-align: center;
  line-height: 1.6;
}

.module {
  margin: 50px 0;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
  animation: fadeIn 1s ease-in-out;
}

.module h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #00ff7f;
}

.module p {
  font-size: 18px;
  margin-bottom: 15px;
}

.module ul {
  list-style: none;
  padding: 0;
}

.module ul li {
  margin: 10px 0;
  font-size: 16px;
}

.code-block {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  margin: 20px 0;
}

.code-block code {
  color: #00ff7f;
}

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

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

table th {
  background: #ff69b4;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background: #00ff7f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header h1 {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .module {
    padding: 20px;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 10px 0;
  }
}

