
/* 全局样式设置 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #1c0a4d, #3a2f8a, #6a11cb);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  background: -webkit-linear-gradient(#ff7eb3, #ffae42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.module {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.module:hover {
  transform: translateY(-5px);
}

.code-block {
  background: rgba(0, 0, 0, 0.7);
  color: #00ff00;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  margin: 10px 0;
}

button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: linear-gradient(90deg, #ff7eb3, #ffae42);
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

button:hover::before {
  width: 200px;
  height: 200px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

  .module {
    padding: 15px;
  }

  .code-block {
    font-size: 12px;
  }
}

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

  .container {
    padding: 10px;
  }
}

