
/* 
整体页面样式设计
采用未来科技风与高级质感相结合的视觉风格，色彩运用遵循黄金比配色原则，主色占70%，辅色占25%，点缀色占5%。背景使用深蓝色与黑色的渐变，搭配荧光蓝绿和紫色点缀，增强科技感。字体选择现代感强的无衬线字体，如Roboto和Montserrat，确保文字清晰易读。

导航栏样式
固定在页面顶部，采用透明半透明背景，使用Flexbox布局，左右两侧分别放置Logo和导航链接。导航链接在普通状态下为白色，悬停时变为紫色，并有轻微的放大效果。导航栏在移动端通过媒体查询转换为汉堡菜单，点击后展开垂直排列的菜单选项。

主视觉区
全屏大图或视频背景，配合半透明覆盖层，确保文字可读性。标题字体加大，颜色为白色，通过淡入动画逐渐显示。行动召唤按钮设计为圆角矩形，背景为点缀色，悬停时颜色变深并稍微放大，吸引用户点击。

功能介绍区
采用模块化设计，每个功能块包含图标、标题和简短描述。图标使用线性简洁风格，配合阴影效果，悬停时图标轻微上浮。模块通过CSS3的过渡效果，实现滚动触发的渐显和滑动动画，增加动态感和层次感。

用户案例区
轮播展示用户成功案例，包含用户头像、评价星级和简短描述。轮播效果通过CSS3的transform和transition实现平滑切换，控制按钮在悬停时变色增强可点击性。星级评价使用字体图标，颜色为金色，突出用户满意度。

投资模拟器区
包含输入框和下拉菜单，设计简洁现代，边框圆角。按钮样式与主视觉区保持一致，悬停时有颜色和尺寸的变化。生成的图表区域采用动态背景填充效果，通过CSS3动画实现数据的实时可视化展示。

响应式设计
通过媒体查询确保页面在320px到1920px宽度范围内均能良好展示。移动端布局调整为单列，导航栏转换为汉堡菜单，图片和模块缩放适应屏幕尺寸。所有模块和文字大小按比例缩放，确保可读性和操作便捷性。

微交互与动画
全局统一的过渡效果，确保元素在交互时有一致的动画反馈。按钮和链接悬停时有颜色变化和轻微放大。滚动触发的元素动画通过CSS3的关键帧实现，如渐显、滑入和缩放，提升用户体验的沉浸感。

装饰性元素
使用动态粒子效果和抽象3D图形作为背景装饰，增强页面的科技感和动感。粒子通过CSS3动画不断移动，3D图形缓慢旋转，形成视觉上的层次和深度。所有装饰性图片的描述属性为空，确保符合SEO要求。

代码示例区样式
代码块采用深色背景，字体为等宽字体，文字颜色为浅色。关键字和注释通过不同颜色区分，增加可读性。代码块有圆角和阴影效果，悬停时轻微放大，提升视觉美感。

折叠区域
对于补充说明或次要信息，设计为可点击展开的折叠区域。折叠按钮设计为简洁的箭头图标，展开时箭头向下，收起时向上。内容区域通过CSS3的max-height和过渡实现平滑展开和收起动画。

图像样式
所有装饰性图片采用圆角设计，添加轻微阴影，悬停时有放大效果和边框高亮。图片之间有适当的间距，确保页面不显得拥挤，通过Flexbox和Grid布局实现美观的排列方式。

章节导航系统
设计清晰易用的章节导航，放置在固定侧边栏或顶部导航栏，通过点击快速定位到对应内容区域。导航项使用有意义的标题，字体和颜色与整体风格一致，确保用户在任何设备上都能方便地使用。

代码示例样式
代码示例区域采用不同于正文的样式，背景颜色稍深，代码字体加大，关键部分有颜色高亮。代码块外有适当的边距和内边距，确保不与正文内容混淆。通过滚动条或复制按钮提升用户体验。
*/

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(32, 58, 67, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}
.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #00d2ff;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}
.navbar ul li a:hover {
  color: #af7ae1;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    background: rgba(32, 58, 67, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }
  .navbar ul.active {
    display: flex;
  }
  .navbar .menu-toggle {
    display: block;
    cursor: pointer;
  }
}

/* 主视觉区样式 */
.hero {
  height: 100vh;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 58, 67, 0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeIn 2s ease-in-out;
}
.hero button {
  padding: 15px 30px;
  background: #00d2ff;
  border: none;
  border-radius: 25px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero button:hover {
  background: #af7ae1;
  transform: scale(1.05);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 功能介绍区样式 */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 60px 20px;
  background: #203a43;
}
.feature {
  width: 300px;
  text-align: center;
  margin: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.feature.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature img {
  width: 80px;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.feature p {
  font-size: 16px;
  margin-bottom: 20px;
}
.feature button {
  padding: 10px 20px;
  background: #00d2ff;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s;
}
.feature button:hover {
  background: #af7ae1;
}

/* 用户案例区样式 */
.carousel {
  position: relative;
  width: 80%;
  margin: 40px auto;
  overflow: hidden;
  background: #2c5364;
  border-radius: 10px;
  padding: 20px;
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  color: #ffffff;
  text-align: center;
}
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.carousel-controls button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s;
}
.carousel-controls button:hover {
  color: #af7ae1;
}
.stars {
  display: inline-block;
  color: #ffd700;
  font-size: 20px;
}

/* 投资模拟器区样式 */
.simulator {
  padding: 40px 20px;
  background: #0f2027;
  color: #ffffff;
  text-align: center;
}
.simulator input,
.simulator select {
  padding: 10px;
  margin: 10px;
  border: none;
  border-radius: 5px;
}
.simulator button {
  padding: 15px 30px;
  background: #00d2ff;
  border: none;
  border-radius: 25px;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.simulator button:hover {
  background: #af7ae1;
  transform: scale(1.05);
}
.chart {
  margin-top: 30px;
  width: 80%;
  height: 300px;
  background: #203a43;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease-in-out;
}
.chart::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #00d2ff, #af7ae1);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s ease-in-out;
}
.chart.active::before {
  transform: scaleY(1);
}

/* 章节导航样式 */
.chapter-nav {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(32, 58, 67, 0.9);
  padding: 10px;
  border-radius: 10px;
}
.chapter-nav ul {
  list-style: none;
  padding: 0;
}
.chapter-nav ul li {
  margin: 10px 0;
}
.chapter-nav ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}
.chapter-nav ul li a:hover {
  color: #af7ae1;
}

/* 代码示例区样式 */
.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 10px;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
  margin: 20px 0;
}
.code-block code {
  display: block;
}
.code-block .keyword {
  color: #569cd6;
}
.code-block .string {
  color: #ce9178;
}
.code-block .comment {
  color: #6a9955;
}

/* 图片样式 */
.decorative-image {
  width: 320px;
  height: 320px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.decorative-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 折叠区域样式 */
.collapsible {
  background-color: #203a43;
  color: #ffffff;
  cursor: pointer;
  padding: 18px;
  width: 80%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  margin: 10px auto;
  border-radius: 5px;
  transition: background 0.3s;
}
.collapsible:hover {
  background-color: #2c5364;
}
.content {
  padding: 0 18px;
  display: none;
  background-color: #2c5364;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
}
.content.show {
  display: block;
}

