
  /* 全局样式设置 */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto字体，提升可读性和现代感 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 渐变背景，传达专业与科技感 */
    color: #ffffff; /* 统一文字颜色为白色，确保在深色背景上的良好可读性 */
  }

  /* 导航栏样式 */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 32, 39, 0.9); /* 半透明背景，突出导航条 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影，提升层次感 */
  }

  .navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
  }

  .navbar a:hover {
    color: #feb47b; /* 悬停时改变颜色，增强互动感 */
  }

  /* 搜索框样式 */
  .search-box {
    position: relative;
  }

  .search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
  }

  /* 主容器样式 */
  .container {
    display: flex;
    flex-direction: row;
    padding-top: 80px; /* 留出导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
  }

  /* 侧边栏样式 */
  .sidebar {
    width: 250px;
    background-color: #1a1a1a;
    padding: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 侧边栏阴影，增加立体感 */
  }

  .sidebar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .sidebar a:hover {
    color: #feb47b;
  }

  /* 主内容区域样式 */
  .main-content {
    margin-left: 270px; /* 考虑侧边栏宽度及间距 */
    flex: 1;
    padding: 20px;
    background-color: #121212;
  }

  /* 章节导航样式 */
  .chapter-nav {
    margin-bottom: 30px;
  }

  .chapter-nav a {
    display: inline-block;
    margin-right: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
  }

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

  /* 文章内容样式 */
  article {
    line-height: 1.8;
  }

  article h2, article h3, article h4 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  article h2 {
    font-size: 24px;
  }

  article h3 {
    font-size: 20px;
  }

  article h4 {
    font-size: 18px;
  }

  article p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 代码块样式 */
  pre {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  code {
    color: #feb47b;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
  }

  /* 图片样式 */
  .decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 12px; /* 圆角效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 阴影效果，提升立体感 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px 0;
  }

  .decorative-image:hover {
    transform: scale(1.05); /* 悬停时放大，增强互动感 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  }

  /* 提示信息样式 */
  .reference-note {
    background-color: rgba(254, 180, 123, 0.2); /* 点缀色背景 */
    padding: 15px;
    border-left: 5px solid #feb47b;
    margin-bottom: 30px;
    font-size: 16px;
  }

  /* 响应式设计 */
  @media (max-width: 1200px) {
    .sidebar {
      width: 200px;
    }

    .main-content {
      margin-left: 220px;
    }
  }

  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }

    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      margin-bottom: 20px;
    }

    .main-content {
      margin-left: 0;
    }

    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }

    .search-box {
      width: 100%;
      margin-top: 10px;
    }

    .decorative-image {
      max-width: 100%;
    }
  }

  /* 动画效果 */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

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

  .slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .slide-in.visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* 按钮样式 */
  .cta-button {
    background: linear-gradient(45deg, #ff7e5f, #feb47b); /* 渐变色按钮 */
    border: none;
    padding: 15px 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-decoration: none;
  }

  .cta-button:hover {
    transform: scale(1.05); /* 悬停时放大按钮 */
    background: linear-gradient(45deg, #ff6a00, #ee0979);
    box-shadow: 0 4px 15px rgba(254, 180, 123, 0.4);
  }

  /* 仪表盘样式 */
  .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #121212;
    color: #ffffff;
    border-radius: 8px;
  }

  .widget {
    background-color: #0f2027;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .widget:hover {
    transform: scale(1.02);
  }

  /* 高亮代码块样式 */
  .code-example {
    background-color: #1a1a1a;
    padding: 20px;
    border-left: 5px solid #feb47b;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  .code-example code {
    color: #ff7e5f;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
  }

