
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 设置全局字体 */
  font-size: 16px; /* 设置基础字体大小 */
  color: #ffffff; /* 文字颜色为白色 */
  background: linear-gradient(135deg, #0d47a1 70%, #1976d2 25%, #ff9800 5%); /* 黄金比配色，主色70%，辅色25%，点缀色5% */
  overflow-x: hidden; /* 防止出现横向滚动 */
}

/* 固定导航栏样式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.9); /* 半透明背景 */
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav .logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff9800; /* 点缀色悬停效果 */
}

/* 主视觉区块 */
.header {
  height: 100vh;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 71, 161, 0.7); /* 半透明覆盖层 */
}

.header-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.header-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffffff;
  animation: fadeInDown 1s ease-out;
}

.header-content p {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out;
}

.header-content .cta-button {
  background-color: #ff9800;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-content .cta-button:hover {
  background-color: #fb8c00;
  transform: scale(1.05);
}

/* 动画效果 */
@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);
  }
}

/* 章节导航系统 */
.section-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-nav a {
  text-decoration: none;
  background-color: rgba(25, 118, 210, 0.8);
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.section-nav a:hover {
  background-color: #1976d2;
}

/* 主要内容区块样式 */
.section {
  padding: 100px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background-color: rgba(25, 118, 210, 0.1);
}

.section:nth-child(even) {
  background-color: rgba(21, 101, 192, 0.1);
}

.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffffff;
}

.section p {
  font-size: 16px;
  line-height: 1.6;
  color: #e0f7fa;
}

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

.section img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* 模块化网格布局 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 代码块样式 */
pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: rgba(13, 71, 161, 0.95);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
  }
}

@media (max-width: 480px) {
  .header-content h1 {
    font-size: 32px;
  }

  .header-content p {
    font-size: 16px;
  }

  .section {
    padding: 80px 20px;
  }
}

/* 提示文字样式 */
.prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 152, 0, 0.9);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1000;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

a:hover {
  color: #ff9800;
}

/* 按钮样式 */
.button {
  background-color: #ff9800;
  border: none;
  padding: 15px 30px;
  color: white;
  font-size: 16px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #fb8c00;
}

/* 动态粒子背景 */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: moveParticles 60s linear infinite;
}

@keyframes moveParticles {
  from { transform: translateX(0) translateY(0); }
  to { transform: translateX(-1000px) translateY(-1000px); }
}

/* 图表样式 */
.chart-bar {
  width: 50px;
  background-color: #1976d2;
  margin: 0 5px;
  transition: height 0.5s ease, background-color 0.3s ease;
}

.chart-bar:hover {
  background-color: #64b5f6;
}

.chart-container {
  display: flex;
  align-items: flex-end;
  animation: fadeIn 2s ease-in;
}

/* 内容模块动画 */
.section-content {
  animation: slideIn 1s ease-out;
}

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

.button:active {
  transform: scale(0.95);
}

