
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: linear-gradient(to bottom, #03256C, #1E90FF);
  color: white;
  overflow-x: hidden;
  animation: aurora-move 15s linear infinite;
}

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

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #FFC107;
}

/* 模块化布局 */
section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

section:nth-child(even) {
  background: radial-gradient(circle, rgb(255, 87, 34), transparent);
}

section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

section p {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.6;
}

/* 图片展示 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.1);
}

/* 动画效果 */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease-in-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* 代码区块 */
code-block {
  background-color: rgba(0, 0, 0, 0.7);
  color: #00ff00;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  overflow-x: auto;
}

code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 响应式设计 */
@media (max-width: 768px) {
  section h2 {
    font-size: 28px;
  }

  section p {
    font-size: 16px;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .navbar a {
    font-size: 14px;
  }

  section p {
    font-size: 14px;
  }
}

/* 提示信息 */
.info-tip {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
}

