
/* 整体页面样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用无衬线字体，现代感强 */
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 冷色系渐变背景 */
  color: #ffffff; /* 文字颜色为白色，确保对比度 */
}

/* 标题样式 */
h2, h3, h4 {
  color: #00c6ff; /* 主色调，用于标题增强可见性 */
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

/* 段落样式 */
p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 链接样式 */
a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7); /* 半透明背景 */
  padding: 15px 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.navbar a {
  color: #00c6ff;
  margin: 0 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* 主内容区样式 */
.container {
  max-width: 1200px;
  margin: 100px auto 50px auto; /* 顶部留出导航栏空间 */
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* 信息模块卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.1); /* 半透明卡片背景 */
  border-radius: 10px;
  padding: 20px;
  margin: 15px;
  flex: 1 1 calc(33% - 40px); /* 三列布局 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影效果 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px); /* 悬停时微拉起 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 图片样式 */
img.decorative {
  width: 100%;
  height: auto;
  border-radius: 8px; /* 圆角 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 阴影 */
  transition: transform 0.3s ease;
}

img.decorative:hover {
  transform: scale(1.05); /* 悬停时放大 */
}

/* 按钮样式 */
button {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  border: none;
  padding: 15px 30px;
  color: #ffffff;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #0072ff, #00c6ff);
}

/* 加载动画样式 */
.loader {
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #00c6ff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 50px auto;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 视差滚动背景样式 */
.parallax {
  background-image: url('https://images.gptkong.com/demo/sample1.png');
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.5s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%; /* 单列布局 */
  }
  .navbar {
    flex-direction: column;
  }
}

/* 导航系统样式 */
.nav-section {
  margin-bottom: 50px;
}

.nav-section ul {
  list-style: none;
  padding: 0;
}

.nav-section li {
  margin-bottom: 10px;
}

.nav-section a {
  color: #00c6ff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

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

/* 代码块样式 */
pre {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

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

/* 章节分隔线样式 */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  margin: 40px 0;
  border: none;
}

/* 页面提示信息样式 */
.page-alert {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  text-align: center;
  font-size: 18px;
  border-radius: 5px;
  margin-bottom: 30px;
}

/* 文章内容样式 */
article {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 图片组合样式 */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.image-gallery img {
  width: calc(25% - 15px);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* 流动数据流动画效果 */
.data-flow {
  background: url('https://images.gptkong.com/demo/sample2.png') no-repeat center center;
  background-size: cover;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.data-flow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: flow 5s linear infinite;
}

@keyframes flow {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

