
/* 
  =====================================
  页面整体样式设置
  =====================================
*/

/* 设置全局字体和背景 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif; /* 使用无衬线字体，提升现代感 */
  background: linear-gradient(135deg, #1A73E8 70%, #34C759 25%, #FFAB40 5%); /* 渐变背景，符合黄金比例 */
  color: #333333;
}

/* 固定导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(13, 110, 253, 0.9); /* 半透明科技蓝 */
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.5s ease;
}

/* 导航栏滚动效果 */
.navbar.scrolled {
  background-color: #0D6EFD;
}

/* 导航栏中的品牌Logo */
.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFFFF;
}

/* 导航链接样式 */
.navbar .nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 1em;
  transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
  color: #FFAB40; /* 点缀色高亮 */
}

/* 主要内容区域的网格布局 */
.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 100px 40px 40px 40px; /* 留出导航栏空间 */
}

/* 章节块样式 */
section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

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

/* 正文段落样式 */
p {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

/* 按钮样式 */
.button {
  background-color: #FFAB40;
  border: none;
  padding: 10px 20px;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s, background-color 0.3s;
}

.button:hover {
  background-color: #e69533;
  transform: scale(1.05);
}

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

img.decorative:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* 折叠内容样式 */
.collapsible {
  background-color: #f1f1f1;
  color: #333333;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  margin-top: 10px;
}

.collapsible:hover {
  background-color: #ddd;
}

.collapsible:after {
  content: '\002B';
  float: right;
  margin-left: 5px;
}

.collapsible.active:after {
  content: "\2212";
}

.content {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
  border-radius: 5px;
}

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

.fade-in {
  animation: fadeIn 2s ease-in;
}

/* 代码块样式 */
code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
}

pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
}

/* 章节导航样式 */
.chapter-nav {
  position: fixed;
  right: 20px;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-nav a {
  text-decoration: none;
  color: #0D6EFD;
  background-color: #FFFFFF;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chapter-nav a:hover {
  background-color: #0D6EFD;
  color: #FFFFFF;
}

/* 回到顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #FFAB40;
  color: #FFFFFF;
  padding: 10px 15px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #e69533;
  transform: scale(1.1);
}

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

  .navbar .nav-links {
    display: none;
  }

  .navbar .nav-links.active {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .main-content {
    padding: 120px 20px 20px 20px;
  }

  .chapter-nav {
    display: none;
  }
}

/* 代码高亮样式 */
.code-block {
  background-color: #2d2d2d;
  color: #ccc;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
}

/* 动态数据部分样式 */
.dynamic-data {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  background: linear-gradient(45deg, #e0f7fa, #80deea);
  border-radius: 10px;
  animation: fadeIn 2s ease-in;
}

/* 动态字体效果 */
.dynamic-text {
  animation: titleFadeIn 1s forwards;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 图标和按钮的悬停效果 */
.icon:hover, .button:hover {
  transform: scale(1.05);
}

/* 结束语样式 */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #0D6EFD;
  color: #FFFFFF;
}

/* 提示语样式 */
.reference-note {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 171, 64, 0.9);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 图片容器样式 */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-container img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

/* 高亮文字样式 */
.highlight {
  color: #FFAB40;
  font-weight: bold;
  transition: color 0.3s ease;
}

.highlight:hover {
  color: #e69533;
}

/* 组块与对齐 */
.section-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 图文并茂布局 */
.image-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.image-text img {
  width: 50%;
  border-radius: 10px;
}

/* 全屏显示模块 */
.fullscreen-section {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1A73E8, #34C759);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  flex-direction: column;
  text-align: center;
}

/* 动态背景效果 */
.dynamic-background {
  position: relative;
  overflow: hidden;
}

.dynamic-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: url('https://images.gptkong.com/demo/sample1.png') repeat;
  opacity: 0.1;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  from { transform: translate(0, 0); }
  to { transform: translate(-50%, -50%); }
}

/* 数据实时更新动画 */
.real-time-data {
  font-size: 1.2em;
  color: #34C759;
  transition: color 0.5s ease;
}

.real-time-data.updating {
  color: #FFAB40;
}

/* 滑动触发淡入效果 */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 创意元素装饰 */
.decorative-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #1A73E8, #34C759);
  margin: 20px 0;
  border-radius: 1px;
}

/* 智能推荐系统模块 */
.recommendation {
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.recommendation h4 {
  color: #34C759;
}

.recommendation p {
  color: #555555;
}

/* 自动化交易工具样式 */
.automation-tool {
  background-color: #F1F1F1;
  padding: 20px;
  border-radius: 10px;
}

.automation-tool ul {
  list-style: none;
  padding: 0;
}

.automation-tool li {
  margin-bottom: 10px;
  color: #333333;
}

