
/* 渐变极光背景动画 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #141E30, #243B55, #FF4B82);
  background-size: 400% 400%;
  animation: gradient-flow 15s ease infinite;
  color: #fff;
  line-height: 1.6;
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 全局样式与排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 2rem;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
p, li { font-size: 1rem; line-height: 1.8; }

/* 容器布局与模块化设计 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  color: #333;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }

/* 图片装饰与样式 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}

/* 按钮与交互效果 */
button {
  background-color: #243B55;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
button:hover {
  background-color: #FF4B82;
  transform: scale(1.1);
}

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

/* 响应式调整 */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  .container { grid-template-columns: 1fr; }
}

/* 提示信息样式 */
.notice {
  text-align: center;
  font-size: 1.2rem;
  color: #FF4B82;
  margin: 20px 0;
}

/* 页脚设计 */
footer {
  background-color: #141E30;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

