
/* 全局样式设置 */
body {
  /* 使用线性渐变作为背景，角度135度，从深蓝到浅蓝过渡，营造科技感 */
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  /* 字体颜色设为白色，确保与背景形成高对比 */
  color: #ffffff;
  /* 选用现代无衬线字体，提升阅读体验 */
  font-family: 'Roboto', sans-serif;
  /* 设置基本的行高，增强可读性 */
  line-height: 1.6;
  /* 设置网页的内边距，避免内容贴边 */
  padding: 20px;
  /* 边距设置为自动居中 */
  margin: 0 auto;
  /* 最大宽度限制，确保内容在大屏幕上的舒适阅读 */
  max-width: 1200px;
}

/* 导航栏样式 */
.navbar {
  /* 固定在页面顶部，始终可见 */
  position: fixed;
  top: 0;
  width: 100%;
  /* 背景为与页面相同的渐变色，保持视觉一致性 */
  background: linear-gradient(to right, #1e3c72, #2a5298);
  /* 内边距适中，确保导航元素有足够的点击空间 */
  padding: 15px;
  /* 使用Flexbox进行水平对齐 */
  display: flex;
  justify-content: space-around;
  /* 添加阴影效果，增强层次感 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  /* 设置较高的z-index，确保导航栏位于最上层 */
  z-index: 1000;
}

/* 导航链接样式 */
.navbar a {
  /* 移除默认的下划线 */
  text-decoration: none;
  /* 字体大小适中 */
  font-size: 16px;
  /* 颜色与背景形成对比 */
  color: #ffffff;
  /* 添加过渡效果，提升交互感 */
  transition: color 0.3s ease, transform 0.3s ease;
}

/* 导航链接悬停效果 */
.navbar a:hover {
  /* 改变字体颜色，提供视觉反馈 */
  color: #feb47b;
  /* 增加轻微放大效果 */
  transform: scale(1.1);
}

/* 主标题样式 */
h2 {
  /* 字体大小适中 */
  font-size: 24px;
  /* 下边距增加，确保段落之间的间隔 */
  margin-bottom: 15px;
  /* 添加渐变文本效果 */
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  /* 设置文本为透明，以显示渐变背景 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 副标题样式 */
h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ff7e5f;
}

/* 段落样式 */
p {
  font-size: 16px;
  margin-bottom: 20px;
  /* 增加文本阴影，提升深度感 */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 代码块样式 */
pre {
  /* 设置背景为半透明白色，增强可读性 */
  background: rgba(255, 255, 255, 0.1);
  /* 内边距适中 */
  padding: 15px;
  /* 圆角边框 */
  border-radius: 8px;
  /* 添加阴影效果 */
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  /* 滚动条样式 */
  overflow: auto;
}

/* 代码块内的代码样式 */
code {
  /* 使用等宽字体，提升代码可读性 */
  font-family: 'Courier New', Courier, monospace;
  /* 字体大小稍小 */
  font-size: 14px;
  /* 颜色对比，便于阅读 */
  color: #00ffcc;
}

/* 图片样式 */
img {
  /* 设置固定宽度，自动高度，保持比例 */
  width: 100%;
  height: auto;
  /* 圆角 */
  border-radius: 10px;
  /* 添加阴影效果 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  /* 增加过渡效果 */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* 图片悬停效果 */
img:hover {
  /* 轻微放大 */
  transform: scale(1.05);
  /* 增加亮度 */
  filter: brightness(1.1);
}

/* 卡片式布局 */
.card {
  /* 背景为半透明白色 */
  background: rgba(255, 255, 255, 0.1);
  /* 圆角边框 */
  border-radius: 10px;
  /* 内边距 */
  padding: 20px;
  /* 外边距 */
  margin: 20px 0;
  /* 添加阴影 */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  /* 背景模糊效果 */
  backdrop-filter: blur(10px);
  /* 过渡效果 */
  transition: transform 0.3s ease;
}

/* 卡片悬停效果 */
.card:hover {
  /* 放大效果 */
  transform: scale(1.05);
}

/* 按钮样式 */
.button {
  /* 渐变背景色 */
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  /* 无边框 */
  border: none;
  /* 内边距 */
  padding: 10px 20px;
  /* 白色文字 */
  color: #fff;
  /* 圆角 */
  border-radius: 5px;
  /* 指针手型 */
  cursor: pointer;
  /* 添加过渡效果 */
  transition: background 0.3s ease, transform 0.3s ease;
}

/* 按钮悬停效果 */
.button:hover {
  /* 渐变方向反转 */
  background: linear-gradient(to left, #ff7e5f, #feb47b);
  /* 放大 */
  transform: scale(1.1);
}

/* 导航系统样式 */
.nav {
  /* 使用Flexbox进行布局 */
  display: flex;
  /* 水平间距 */
  gap: 20px;
  /* 底部边距 */
  margin-bottom: 30px;
}

/* 导航链接样式 */
.nav a {
  /* 颜色与背景对比 */
  color: #ffffff;
  /* 无下划线 */
  text-decoration: none;
  /* 字体大小 */
  font-size: 16px;
  /* 添加底部边框 */
  border-bottom: 2px solid transparent;
  /* 过渡效果 */
  transition: border-bottom 0.3s ease, color 0.3s ease;
}

/* 导航链接激活状态 */
.nav a.active {
  /* 底部边框颜色 */
  border-bottom: 2px solid #feb47b;
  /* 改变文字颜色 */
  color: #feb47b;
}

/* 响应式设计：屏幕宽度小于768px */
@media (max-width: 768px) {
  /* 调整导航栏 */
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  
  /* 调整主标题 */
  h2 {
    font-size: 20px;
  }
  
  /* 调整副标题 */
  h3 {
    font-size: 18px;
  }
  
  /* 调整段落 */
  p {
    font-size: 14px;
  }
}

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

/* 应用动画到所有段落 */
p {
  animation: fadeIn 1s ease-in-out;
}

/* 数据可视化图表容器样式 */
.chart-container {
  width: 100%;
  height: 400px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 仪表板网格布局 */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* 品牌图片样式 */
.brand-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  filter: brightness(0.9) contrast(1.2);
  transition: filter 0.3s ease;
}

.brand-image:hover {
  filter: brightness(1.1) contrast(1.3);
}

/* 清晰的章节导航系统 */
.section-nav {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 30px;
}

.section-nav a {
  color: #ffffff;
  margin-right: 15px;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.section-nav a:hover {
  color: #feb47b;
}

/* 清晰的章节导航系统响应式 */
@media (max-width: 768px) {
  .section-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-nav a {
    margin: 5px 0;
  }
}

/* 结束语样式 */
.footer {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #cccccc;
}

/* 优化链接 */
a {
  color: #feb47b;
}

a:hover {
  color: #ff7e5f;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* 使用Flexbox响应式布局 */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 使用Grid布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* 按钮组样式 */
.button-group {
  display: flex;
  gap: 10px;
}

/* 强调文本 */
strong {
  color: #ff7e5f;
}

/* 链接按钮 */
.link-button {
  background: linear-gradient(to right, #1e3c72, #2a5298);
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.link-button:hover {
  background: linear-gradient(to left, #1e3c72, #2a5298);
}

/* 隐藏链接属性 */
a[rel="nofollow"]::after {
  content: "";
}

