
  /* 全局样式设置 */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体，提高可读性 */
    background-color: #F0F4F8; /* 设置非白色背景，柔和的浅灰蓝色 */
    color: #333333; /* 主体文字颜色，保证良好的对比度 */
    line-height: 1.6; /* 提高行高，增强阅读舒适度 */
  }

  /* 导航栏样式 */
  header {
    background: linear-gradient(135deg, #C5E1A5 70%, #A1887F 25%, #FFEB3B 5%); /* 渐变色背景，符合黄金比例配色 */
    position: fixed; /* 固定在顶部，保持可见 */
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 轻微阴影，增加层次感 */
    z-index: 1000;
  }

  /* 导航内部布局 */
  nav {
    display: flex; /* 使用Flexbox布局 */
    justify-content: space-between; /* 主轴两端对齐 */
    align-items: center; /* 交叉轴居中对齐 */
    padding: 15px 30px; /* 内边距，保证内容不紧贴边缘 */
  }

  /* 网站标志样式 */
  nav .logo {
    font-size: 24px; /* 标题大小 */
    font-weight: bold; /* 加粗字体 */
    color: #FFF3E0; /* 标志文字颜色，与背景形成对比 */
    text-decoration: none; /* 去除下划线 */
    transition: color 0.3s ease; /* 平滑过渡效果 */
  }

  nav .logo:hover {
    color: #FFEB3B; /* 悬停时变色，提升互动感 */
  }

  /* 导航菜单样式 */
  nav .menu {
    display: flex; /* Flex布局 */
    gap: 25px; /* 菜单项间距 */
  }

  nav .menu a {
    text-decoration: none; /* 去除下划线 */
    color: #FFF3E0; /* 菜单文字颜色 */
    font-size: 16px; /* 字体大小 */
    position: relative;
    transition: color 0.3s ease; /* 颜色变化过渡 */
  }

  nav .menu a:hover {
    color: #FFEB3B; /* 悬停时颜色变化 */
  }

  /* 汉堡菜单图标样式，用于小屏幕设备 */
  nav .hamburger {
    display: none; /* 默认隐藏 */
    flex-direction: column; /* 垂直排列 */
    cursor: pointer; /* 鼠标指针变为手型 */
  }

  nav .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #FFF3E0;
    margin: 4px 0;
    transition: all 0.3s ease; /* 平滑过渡 */
  }

  /* 响应式设计：屏幕宽度小于768px时调整导航样式 */
  @media (max-width: 768px) {
    nav .menu {
      display: none; /* 隐藏菜单 */
      flex-direction: column; /* 垂直排列 */
      background: #A1887F; /* 背景颜色 */
      position: absolute;
      top: 60px;
      right: 30px;
      width: 200px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 阴影效果 */
      padding: 15px;
    }

    nav .menu.active {
      display: flex; /* 激活时显示菜单 */
    }

    nav .hamburger {
      display: flex; /* 显示汉堡菜单图标 */
    }
  }

  /* 主内容区样式 */
  main {
    padding: 100px 20px 60px 20px; /* 上部留出导航栏空间 */
    max-width: 1200px; /* 最大宽度 */
    margin: auto; /* 居中对齐 */
  }

  /* 文章样式 */
  article {
    background: #FFF3E0; /* 文章背景色 */
    padding: 30px;
    border-radius: 8px; /* 圆角边框 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 轻微阴影 */
  }

  /* 文章标题样式 */
  article h2 {
    color: #C5E1A5; /* 标题颜色 */
    font-size: 28px; /* 字体大小 */
    margin-bottom: 20px; /* 下边距 */
  }

  article h3 {
    color: #A1887F; /* 副标题颜色 */
    font-size: 22px; /* 字体大小 */
    margin-top: 30px;
    margin-bottom: 15px;
  }

  /* 文章段落样式 */
  article p {
    font-size: 16px; /* 字体大小 */
    line-height: 1.8; /* 行高 */
    margin-bottom: 20px; /* 下边距 */
  }

  /* 代码块样式 */
  pre {
    background: #ECEFF1; /* 背景色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 横向滚动 */
    margin-bottom: 20px;
  }

  code.language-css {
    font-family: 'Courier New', monospace; /* 等宽字体 */
    color: #A1887F; /* 代码文字颜色 */
  }

  /* 图片样式 */
  img.decorative {
    width: 100%;
    max-width: 320px; /* 最大宽度 */
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 阴影效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 变换过渡 */
    margin: 20px 0; /* 上下边距 */
  }

  img.decorative:hover {
    transform: scale(1.05); /* 放大效果 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.3); /* 加深阴影 */
  }

  /* 分隔线样式 */
  .divider {
    height: 2px;
    background: linear-gradient(90deg, #C5E1A5, #A1887F, #FFEB3B);
    margin: 40px 0;
    border: none;
  }

  /* 按钮样式 */
  .button {
    background: #FFC107; /* 按钮背景色 */
    color: #FFFFFF; /* 按钮文字颜色 */
    padding: 10px 20px; /* 内边距 */
    border: none; /* 去除边框 */
    border-radius: 25px; /* 圆角 */
    cursor: pointer; /* 鼠标指针 */
    transition: background 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */
    font-size: 16px;
  }

  .button:hover {
    background: linear-gradient(45deg, #FFEB3B, #FFC107); /* 悬停时渐变背景 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 增强阴影 */
  }

  /* 章节导航样式 */
  .toc {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #FFF3E0; /* 背景色 */
    padding: 20px;
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 阴影效果 */
    max-width: 200px;
  }

  .toc h3 {
    margin-top: 0;
    color: #A1887F;
    font-size: 18px;
  }

  .toc ul {
    list-style: none; /* 去除列表样式 */
    padding: 0;
  }

  .toc ul li {
    margin-bottom: 10px; /* 下边距 */
  }

  .toc ul li a {
    text-decoration: none; /* 去除下划线 */
    color: #333333; /* 文字颜色 */
    transition: color 0.3s ease; /* 过渡效果 */
  }

  .toc ul li a:hover {
    color: #FFEB3B; /* 悬停时变色 */
  }

  /* 底部参考信息样式 */
  .reference {
    background-color: #A1887F; /* 背景色 */
    color: #FFF3E0; /* 文字颜色 */
    text-align: center; /* 文字居中 */
    padding: 15px 0; /* 内边距 */
    font-size: 18px; /* 字体大小 */
    position: fixed; /* 固定在底部 */
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1); /* 阴影效果 */
  }

  /* CSS3 动画示例代码块样式 */
  .code-example {
    background: #ECEFF1;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  .code-example code {
    font-family: 'Courier New', monospace;
    color: #A1887F;
  }

  /* 用户仪表盘样式 */
  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    background: #FFF3E0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .dashboard .summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .dashboard .summary .card {
    background: #FFC107;
    border: 1px solid #A1887F;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  .dashboard .summary .card:hover {
    transform: translateY(-10px); /* 悬停时向上移动 */
  }

  /* 交互动效样式 */
  .interactive:hover {
    transform: scale(1.05); /* 放大效果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 增强阴影 */
  }

  /* 表格样式 */
  table {
    width: 100%;
    border-collapse: collapse; /* 合并边框 */
    margin-bottom: 20px;
  }

  table, th, td {
    border: 1px solid #A1887F; /* 边框颜色 */
  }

  th, td {
    padding: 10px;
    text-align: left;
  }

  th {
    background-color: #C5E1A5; /* 表头背景色 */
    color: #FFFFFF; /* 表头文字颜色 */
  }

  /* 图标样式 */
  .icon {
    width: 40px;
    height: 40px;
    background: url('https://images.gptkong.com/demo/sample4.png') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-right: 10px;
  }

  .icon:hover {
    transform: rotate(10deg) scale(1.2); /* 旋转与放大效果 */
  }

  /* 连接样式 */
  a {
    color: #A1887F;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }

  a:hover {
    color: #FFEB3B; /* 悬停时颜色变化 */
  }

  /* 列表样式 */
  ul {
    list-style-type: disc; /* 列表类型 */
    padding-left: 20px; /* 左侧内边距 */
    margin-bottom: 20px;
  }

  /* 表单元素样式 */
  input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px; /* 下边距 */
    border: 1px solid #A1887F; /* 边框颜色 */
    border-radius: 4px; /* 圆角 */
    box-sizing: border-box; /* 包括内边距和边框 */
  }

  input[type="submit"], .button {
    background: #FFC107; /* 按钮背景色 */
    color: #FFF3E0; /* 按钮文字颜色 */
    border: none; /* 去除边框 */
    padding: 10px 20px; /* 内边距 */
    border-radius: 25px; /* 圆角 */
    cursor: pointer; /* 鼠标指针 */
    transition: background 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */
    font-size: 16px;
  }

  input[type="submit"]:hover, .button:hover {
    background: linear-gradient(45deg, #FFEB3B, #FFC107); /* 悬停时背景渐变 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 阴影效果 */
  }

  /* 过渡效果类 */
  .transition {
    transition: all 0.3s ease;
  }

  /* 键帧动画 */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 应用动画类 */
  .fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
  }

  /* 其他组件样式 */

  /* 表单标签样式 */
  label {
    font-weight: bold;
    color: #A1887F;
    display: block;
    margin-bottom: 5px;
  }

  /* 图标按钮样式 */
  .icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .icon-button img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
  }

  .icon-button:hover img {
    transform: scale(1.2);
  }

  /* 高级数据可视化样式 */
  .chart {
    position: relative;
    width: 100%;
    height: 400px;
    background: #FFF3E0;
    border: 1px solid #A1887F;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border: 1px solid #A1887F;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .tooltip.visible {
    opacity: 1;
  }

  /* 用户社区模块样式 */
  .community {
    background: #C5E1A5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }

  .community h3 {
    color: #A1887F;
    margin-top: 0;
  }

  .community p {
    margin-bottom: 15px;
  }

  /* 页脚样式 */
  footer {
    background: #A1887F;
    color: #FFF3E0;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  }

  /* 表单按钮样式 */
  .form-button {
    background: #FFC107;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
  }

  .form-button:hover {
    background: linear-gradient(45deg, #FFEB3B, #FFC107);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  /* 高级排版样式 */
  .advanced-typography {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
  }

  .advanced-typography strong {
    color: #A1887F;
  }

  /* 结束语部分样式 */
  .conclusion {
    background: #FFC107;
    color: #FFF3E0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    margin-top: 40px;
  }

