
/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-size: 300% 300%;
  animation: gradientBackground 15s ease infinite;
  color: #ffffff;
  line-height: 1.6;
}

@keyframes gradientBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

header {
  text-align: center;
  padding: 50px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #ffffff;
}

header h1 {
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #a29bfe;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

nav {
  margin-top: 20px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #a29bfe;
}

.section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.section:nth-child(even) {
  background: rgba(42, 58, 73, 0.7);
}

.section h2,
.section h3,
.section h4 {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.section h2 {
  font-size: 2rem;
  border-bottom: 2px solid #a29bfe;
  padding-bottom: 10px;
}

.section h3 {
  font-size: 1.5rem;
  margin-top: 40px;
}

.section h4 {
  font-size: 1.2rem;
  margin-top: 30px;
}

.section p {
  font-size: 1rem;
  color: #dfe6e9;
}

.section ul {
  list-style: disc inside;
  color: #b2bec3;
}

.section li {
  margin-bottom: 10px;
}

.section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.section table, .section th, .section td {
  border: 1px solid #74b9ff;
}

.section th, .section td {
  padding: 10px;
  text-align: left;
}

.section pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.section code {
  color: #dfe6e9;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
}

.button {
  display: inline-block;
  background: #6c5ce7;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.button:hover {
  background: #a29bfe;
  transform: scale(1.05);
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.image-gallery img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.footer {
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.9rem;
}

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

  nav a {
    display: block;
    margin: 10px 0;
  }

  .section {
    padding: 40px 10px;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .section h3 {
    font-size: 1.3rem;
  }

  .section h4 {
    font-size: 1rem;
  }

  .section p {
    font-size: 0.9rem;
  }

  .button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .image-gallery {
    flex-direction: column;
    align-items: center;
  }
}

