
/* 基础样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用无衬线字体，保持现代感 */
  font-size: 16px; /* 正文字号设为16px */
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); /* 主色调渐变背景 */
  color: #ffffff; /* 白色文字，确保与深色背景对比度 */
}

/* 全局链接样式 */
a {
  color: #63a4ff; /* 点缀色用于链接 */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff; /* 悬停时链接变为白色 */
}

/* 标题样式 */
h2, h3, h4 {
  color: #ffffff;
  margin-bottom: 20px;
}

h2 {
  font-size: 24px; /* h2标题尺寸 */
}

h3 {
  font-size: 20px; /* h3标题尺寸 */
}

h4 {
  font-size: 18px; /* h4标题尺寸 */
}

/* 段落样式 */
p {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px; /* 正文字号建议16px */
}

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

.navbar a {
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
  background: rgba(99, 164, 255, 0.2);
  transform: scale(1.05); /* 悬停时放大 */
}

/* 主要内容容器 */
.container {
  max-width: 1200px;
  margin: 100px auto 50px; /* 顶部留白，避免导航遮挡 */
  padding: 20px;
}

/* 章节区块样式 */
section {
  margin-bottom: 50px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1); /* 辅色背景 */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 阴影效果 */
  transition: transform 0.3s ease, background 0.3s ease;
}

section:hover {
  transform: translateY(-5px); /* 悬停时轻微上移 */
  background: rgba(255, 255, 255, 0.15);
}

/* 文章标题提示 */
.hero {
  text-align: center;
  padding: 100px 20px 50px;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
  background-size: cover;
  color: #ffffff;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 20px;
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
}

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

img:hover {
  transform: scale(1.05); /* 悬停时放大 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* 增强阴影 */
}

/* 图片容器布局 */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

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

code {
  color: #63a4ff; /* 点缀色代码 */
  font-family: 'Courier New', Courier, monospace;
}

/* 代码块标题 */
.code-title {
  font-size: 18px;
  margin-bottom: 10px;
}

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

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

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

.chapter-nav a {
  color: #63a4ff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

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

  .navbar a {
    margin-bottom: 10px;
  }

  .chapter-nav {
    display: none; /* 移动设备隐藏章节导航 */
  }

  .image-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
  animation-delay: 0.5s;
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background: #1e90ff;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

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

/* 图表样式 */
.chart-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.chart-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.chart {
  width: 100%;
  height: 300px;
}

/* 高级分析工具模块样式 */
.advanced-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tool {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 45%;
  transition: background 0.3s ease;
}

.tool:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 账户管理模块样式 */
.account-section {
  background: #ffffff;
  color: #2c5364;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.account-section:hover {
  transform: translateY(-5px);
}

.account-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #0f2027;
}

/* 页面底部样式 */
.footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* 页面提示样式 */
.reference-note {
  text-align: center;
  font-size: 18px;
  margin: 40px 0;
  padding: 20px;
  background: rgba(99, 164, 255, 0.2);
  border-radius: 10px;
}

