
/* 整体页面的基础样式设置，包括字体、背景颜色与响应式布局 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用无衬线字体，提高可读性 */
  background: linear-gradient(135deg, #0B3D91 70%, #F5F5F5 25%, #FF8C00 5%); /* 渐变背景，符合黄金比例配色 */
  color: #333333;
  box-sizing: border-box;
}

/* 固定导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(11, 61, 145, 0.9); /* 半透明背景，提高视觉层次 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar .logo {
  font-size: 24px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
}

.navbar .menu {
  display: flex;
  gap: 30px;
}

.navbar .menu a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar .menu a:hover {
  color: #FF8C00; /* 点缀色用于悬停效果，吸引用户注意 */
}

/* 主内容容器，使用网格系统布局 */
.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12列响应式网格系统 */
  gap: 20px;
  max-width: 1200px;
  margin: 120px auto 0 auto; /* 上方留出导航栏空间 */
  padding: 20px;
}

/* 各个模块的样式，确保每个模块宽度不小于500px */
.section {
  grid-column: span 12;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡效果 */
}

.section:hover {
  transform: translateY(-10px); /* 悬浮时微微提升 */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* 标题样式 */
h2, h3, h4 {
  color: #0B3D91; /* 主色调用于标题 */
  margin-bottom: 20px;
}

h2 {
  font-size: 2em;
  border-bottom: 2px solid #FF8C00; /* 辅助色用于装饰线条 */
  padding-bottom: 10px;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

/* 段落样式，保证良好的可读性 */
p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* 图片样式，添加圆角和阴影，悬浮效果 */
img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05); /* 悬浮时放大效果 */
}

/* 代码块样式，与正文区分明显 */
pre {
  background-color: #F5F5F5;
  padding: 20px;
  border-radius: 5px;
  overflow: auto;
  margin-bottom: 20px;
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: #D32F2F;
}

/* 表格样式，响应式设计 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

thead {
  background-color: #0B3D91;
  color: #FFFFFF;
}

th, td {
  padding: 15px;
  text-align: left;
}

tbody tr:nth-child(even) {
  background-color: #F5F5F5;
}

tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .section {
    grid-column: span 6;
  }
  
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .menu {
    flex-direction: column;
    gap: 15px;
  }
}

/* 按钮样式，包含悬停与点击反馈 */
.button-highlight {
  background-color: #FF8C00; /* 点缀色用于按钮 */
  color: #FFFFFF;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-highlight:hover {
  background-color: #E57C00; /* 悬停时颜色加深 */
  transform: scale(1.05); /* 放大效果 */
}

.button-highlight:active {
  transform: scale(0.95); /* 点击时缩小 */
}

/* 折叠区域样式，用于次要信息 */
.collapsible {
  background-color: #F5F5F5;
  color: #0B3D91;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: #E0E0E0;
}

.content {
  padding: 0 20px;
  display: none;
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* CSS动画示例 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 2s ease-in-out forwards;
}

/* 预防导航栏内容因padding和宽度设置导致显示不全 */
.navbar .menu a {
  box-sizing: border-box;
}

