
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #6A5ACD, #4682B4);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: bold;
  font-size: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

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

a:hover {
  color: #FFA500;
}

/* 布局容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.header {
  background-color: rgba(74, 134, 232, 0.7);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header h1 {
  font-size: 2.5rem;
  margin: 0;
}

.module {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* 图片样式 */
.image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.image:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* 按钮样式 */
button {
  background-color: rgba(74, 134, 232, 0.8);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .module {
    padding: 15px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: 1fr;
  }

  h1, h2, h3 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.9rem;
  }
}

/* 代码块样式 */
pre {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

code {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
}

/* 特殊提示样式 */
.notice {
  background-color: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
}

