
/* 全局样式与渐变背景 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle, #0A1F44, #6C5CE7);
  color: white;
  line-height: 1.6;
  animation: gradientChange 15s infinite alternate;
}
@keyframes gradientChange {
  0% { background: radial-gradient(circle, #0A1F44, #6C5CE7); }
  50% { background: radial-gradient(circle, #6C5CE7, #1ABC9C); }
  100% { background: radial-gradient(circle, #0A1F44, #6C5CE7); }
}

/* 导航栏与提示信息 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(10,31,68,0.9), rgba(108,92,231,0.9));
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.navbar h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  margin: 0;
  text-align: center;
}
.navbar p {
  font-size: 12px;
  margin: 5px 0 0;
  text-align: center;
}

/* 主内容区域 */
.container {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
p {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  margin: 10px 0;
}

/* 卡片布局与交互动画 */
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
  padding: 20px;
  margin: 15px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.8);
}
.card img {
  max-width: 100%;
  border-radius: 10px;
}

/* 代码块样式 */
pre {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 15px;
  overflow-x: auto;
}
code {
  color: #1ABC9C;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .card { padding: 15px; }
}
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .container { padding: 10px; }
}

