
  /* 基础样式设置 */
  body {
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2c3e50 70%, #34495e 25%, #1abc9c 5%); /* 主色、辅色、点缀色的渐变背景 */
    color: #2c3e50; /* 主文本颜色 */
    line-height: 1.6;
  }

  /* 导航栏样式 */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9); /* 半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 阴影效果 */
    z-index: 1000;
  }

  .navbar .logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
  }

  .navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .navbar .nav-links a:hover {
    color: #1abc9c; /* 点缀色悬停效果 */
  }

  /* 侧边导航栏样式 */
  .sidebar {
    position: fixed;
    top: 60px; /* 导航栏高度 */
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(52, 73, 94, 0.9); /* 辅色半透明背景 */
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* 侧边栏阴影 */
  }

  .sidebar a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 15px 0;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .sidebar a:hover {
    color: #1abc9c; /* 点缀色悬停效果 */
  }

  /* 章节导航样式 */
  .chapter-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(44, 62, 80, 0.8); /* 半透明背景 */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .chapter-nav a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    margin: 10px 0;
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .chapter-nav a:hover {
    color: #1abc9c; /* 点缀色悬停效果 */
  }

  /* 主内容区样式 */
  .main-content {
    margin-left: 270px; /* 侧边栏宽度 + 间距 */
    padding: 80px 20px 20px 20px; /* 顶部导航栏空间 */
    background: rgba(236, 240, 241, 0.8); /* 主内容背景 */
    min-height: 100vh;
    box-sizing: border-box;
  }

  /* 提示信息样式 */
  .reference-notice {
    text-align: center;
    background: #e67e22; /* 点缀色背景 */
    color: #fff;
    padding: 15px;
    font-size: 18px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* 文章样式 */
  article {
    max-width: 800px;
    margin: auto;
  }

  article h2, 
  article h3, 
  article h4 {
    color: #2c3e50;
  }

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

  article strong {
    color: #1abc9c; /* 点缀色强调 */
  }

  /* 代码示例样式 */
  .code-example {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
  }

  .code-example code {
    color: #e67e22; /* 点缀色代码 */
  }

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

  img:hover {
    transform: scale(1.05); /* 悬浮放大效果 */
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
  }

  /* 表格样式 */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
  }

  table, th, td {
    border: 1px solid #bdc3c7;
  }

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

  th {
    background: #2c3e50;
    color: #fff;
  }

  /* 按钮与链接样式 */
  .button, .link {
    background: #1abc9c; /* 点缀色背景 */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
  }

  .button:hover, .link:hover {
    background: #e67e22; /* 点缀色悬停 */
    transform: scale(1.05); /* 悬浮放大 */
  }

  /* 页面的磨砂玻璃效果 */
  .card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    margin: 20px 0;
  }

  /* 响应式设计 */
  @media (max-width: 1920px) {
    /* 大屏幕样式 */
  }

  @media (max-width: 768px) {
    .sidebar {
      width: 200px;
    }
    .main-content {
      margin-left: 220px;
    }
    .chapter-nav {
      display: none;
    }
  }

  @media (max-width: 480px) {
    .navbar, .sidebar {
      display: none;
    }
    .hamburger {
      display: block;
      position: fixed;
      top: 15px;
      left: 15px;
      background: #1abc9c;
      padding: 10px;
      border-radius: 5px;
      cursor: pointer;
      z-index: 1001;
    }
    .main-content {
      margin: 60px 10px 10px 10px;
    }
  }

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

  .page {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }

  .page.active {
    opacity: 1;
  }

  /* 图标悬停效果 */
  .icon {
    width: 24px;
    height: 24px;
    fill: #1abc9c;
    transition: fill 0.3s ease;
  }

  .icon:hover {
    fill: #e67e22;
  }

