
/* 
整体页面样式设计，融合未来感与高级质感
主色调为蓝色，象征专业与信任，辅以橙色和绿色增加活力
使用CSS Grid和Flexbox进行响应式布局，确保各设备上的良好展示
背景采用线性渐变和抽象几何图形，增强科技感和动态效果
导航栏固定于顶部，使用阴影和透明度提升层次感
模块化设计，每个板块宽度不低于500px，确保内容清晰分明
图片采用圆角、阴影和悬浮效果，提升视觉美感
文本使用现代无衬线字体，大小协调，确保可读性
按钮和交互元素添加过渡效果和悬停动画，增强用户体验
使用媒体查询优化移动端显示，调整布局以适应不同屏幕尺寸
代码示例部分样式独立，使用背景颜色区分，便于阅读
整体留白合理，避免页面过于拥挤，提升视觉舒适度
阴影和渐变效果增加元素的立体感和视觉层次
所有内部链接添加rel="nofollow"属性，确保SEO规范
*/

/* 设置全局字体和背景 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #333;
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(30, 60, 114, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 15px 0;
  margin: 0;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* 主容器样式 */
.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 100px 20px 20px 20px;
}

/* 模块样式 */
.module {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* 图片样式 */
.module img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.module img:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
h2, h3, h4 {
  color: #1e3c72;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 100px 10px 10px 10px;
  }

  .module {
    width: 100%;
  }
}

/* 代码示例样式 */
pre code {
  display: block;
  padding: 15px;
  background-color: #f4f4f4;
  border-radius: 5px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

pre code::before {
  content: "代码示例";
  position: absolute;
  top: -20px;
  left: 0;
  background-color: #1e3c72;
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
}


