
/* 
  全局样式设置，确保页面在各种设备上都具有良好的响应性和一致的视觉效果。
  使用现代CSS3技术，如Flexbox和Grid布局，实现灵活的排版和模块化设计。
*/

/* 设置全局字体和背景渐变 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用Roboto字体，现代感强 */
  background: linear-gradient(135deg, #1e3c72 70%, #2a5298 25%, #8e44ad 5%); /* 黄金比例的渐变色彩搭配 */
  color: #333; /* 正文颜色，确保良好的可读性 */
  transition: background 0.5s ease; /* 背景过渡效果 */
}

/* 设置导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1); /* 半透明背景 */
  backdrop-filter: blur(10px); /* 背景模糊效果 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
}

/* 导航链接样式 */
.navbar a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  position: relative;
}

/* 导航链接悬停效果 */
.navbar a:hover {
  color: #ffcc00;
  transition: color 0.3s ease;
}

/* 主视觉区样式 */
.main-visual {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5); /* 半透明覆盖层 */
}

/* 主标题样式 */
.main-visual h1 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

/* 副标题样式 */
.main-visual p {
  font-size: 24px;
  animation: fadeInUp 1s ease forwards;
}

/* 功能模块区块样式 */
.features {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* 单个功能模块卡片样式 */
.feature-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* 功能模块图标样式 */
.feature-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card img:hover {
  transform: scale(1.1);
}

/* 功能模块标题样式 */
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* 功能模块描述样式 */
.feature-card p {
  font-size: 16px;
  line-height: 1.5;
}

/* 信息展示区块样式 */
.info-section {
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* 信息区标题样式 */
.info-section h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.info-section h2::after {
  content: '';
  width: 100px;
  height: 4px;
  background: #ffcc00;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* 文章内容样式 */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 17px;
  color: #ffffff;
}

/* 文章标题样式 */
.article-content h2, .article-content h3 {
  color: #ffcc00;
  margin-top: 40px;
}

.article-content h2 {
  font-size: 28px;
}

.article-content h3 {
  font-size: 24px;
  margin-top: 30px;
}

/* 文章段落样式 */
.article-content p {
  margin-bottom: 20px;
  text-indent: 2em;
}

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

.article-content code {
  color: #ffcc00;
  font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.article-content img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  transition: transform 0.3s ease;
}

.article-content img:hover {
  transform: scale(1.05);
}

/* 章节导航样式 */
.chapter-nav {
  position: fixed;
  right: 20px;
  top: 100px;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 8px;
}

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

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

.chapter-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
}

.chapter-nav a:hover {
  color: #ffcc00;
}

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

  .chapter-nav {
    display: none;
  }

  .main-visual h1 {
    font-size: 32px;
  }

  .main-visual p {
    font-size: 18px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-content {
    padding: 0 20px;
    font-size: 15px;
  }
}

/* 动画效果 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background: #ffcc00;
  color: #1e3c72;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
  background: #e6b800;
  transform: scale(1.05);
}

/* 背景图层效果 */
.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
}

/* 卡片悬停时的阴影增强 */
.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* 定义链接的nofollow属性样式 */
a[rel="nofollow"] {
  cursor: not-allowed;
  pointer-events: none;
}

/* 表单样式，尽管页面不使用文本框 */
.form-section {
  display: none;
}

/* 提示信息样式 */
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 204, 0, 0.9);
  color: #1e3c72;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  z-index: 1001;
}

/* 图片描述属性为空 */
img[alt=""] {
  display: block;
}

