
/* 主体背景样式，采用线性渐变营造科技感 */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #212140, #87CEEB);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  font-family: 'Helvetica', sans-serif;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 渐变动画关键帧 */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 导航栏样式，固定顶部 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(33, 33, 64, 0.9);
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* 导航项样式 */
.nav-item {
  position: relative;
  list-style: none;
  margin: 0 15px;
  cursor: pointer;
}

/* 下拉菜单默认隐藏 */
.nav-item:hover .dropdown {
  display: block;
}

/* 下拉菜单样式 */
.dropdown {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background-color: #212140;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 下拉菜单项样式 */
.dropdown-item {
  padding: 10px 20px;
  white-space: nowrap;
  transition: background 0.3s ease;
}

/* 下拉菜单项悬停效果 */
.dropdown-item:hover {
  background: #87CEEB;
}

/* 容器样式，使用网格布局 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  padding: 100px 20px 40px 20px;
  max-width: 1920px;
  width: 100%;
  box-sizing: border-box;
}

/* 模块样式，带有阴影和过渡效果 */
.module {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* 模块悬停时的变换效果 */
.module:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

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

/* 图像悬停时的效果 */
.module img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 文章标题样式 */
article h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

/* 文章副标题样式 */
article h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #87CEEB;
}

/* 段落文字样式 */
article p {
  font-size: 1em;
  line-height: 1.6;
  color: #D3D3D3;
}

/* 强调文字样式 */
.highlight {
  color: #90EE90;
}

/* 代码块样式，带有背景和边框 */
pre code {
  display: block;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: auto;
  font-family: 'Courier New', Courier, monospace;
  color: #FFFFFF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 代码块标题样式 */
pre code::before {
  content: '代码示例';
  display: block;
  font-size: 0.9em;
  color: #87CEEB;
  margin-bottom: 10px;
}

/* 表格样式，统一风格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

/* 表头样式 */
table thead {
  background-color: rgba(33, 33, 64, 0.8);
}

/* 表头单元格样式 */
table th {
  padding: 10px;
  text-align: left;
  border-bottom: 2px solid #87CEEB;
}

/* 表体单元格样式 */
table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA按钮样式 */
.cta-button {
  background-color: #90EE90;
  color: #212140;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* CTA按钮悬停效果 */
.cta-button:hover {
  background: #87CEEB;
  transform: scale(1.05);
}

/* 图标样式，线性图标 */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #87CEEB;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

/* 图标悬停颜色变化 */
.icon:hover {
  stroke: #90EE90;
}

/* 响应式设计，适配不同屏幕 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

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

  article h2 {
    font-size: 1.8em;
  }

  article h3 {
    font-size: 1.3em;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

