
  /* ===================== 基础样式与重置 ===================== */
  /* 这里进行CSS重置，移除默认的外边距和内边距，确保不同浏览器的兼容性 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* ===================== 全局字体与背景设置 ===================== */
  /* 设置全局字体，颜色和背景渐变，营造科技感与高级质感 */
  body {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E3A8A, #6D28D9);
    line-height: 1.6;
  }

  /* ===================== 导航栏样式 ===================== */
  /* 定义固定在顶部的导航栏，包含透明和模糊效果 */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
  }

  /* 导航链接样式，包括颜色和悬停效果 */
  .navbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  .navbar a:hover {
    color: #3B82F6;
  }

  /* ===================== 提示信息样式 ===================== */
  /* 突出显示“这是一个网页样式设计参考”的提示信息 */
  .notice {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 5px;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
  }

  /* ===================== 容器与布局 ===================== */
  /* 主要内容容器，采用流式布局和响应式设计 */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; /* 导航栏高度 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  /* ===================== 章节导航样式 ===================== */
  /* 设计清晰的章节导航系统，帮助用户快速定位内容 */
  .chapter-nav {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    margin: 20px;
  }

  .chapter-nav ul {
    list-style: none;
  }

  .chapter-nav li {
    margin: 10px 0;
  }

  .chapter-nav a {
    color: #3B82F6;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
  }

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

  /* ===================== 文章内容样式 ===================== */
  /* 样式化文章内容，确保可读性与视觉层次 */
  article {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
  }

  article h2, article h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: #FFFFFF;
  }

  article p {
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-size: 1rem;
  }

  /* 样式化代码示例部分，与正文内容区分开 */
  article pre {
    background: #2D2D2D;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
    color: #FFFFFF;
  }

  article code {
    color: #F59E0B;
    font-family: 'Courier New', Courier, monospace;
  }

  /* ===================== 图片画廊样式 ===================== */
  /* 利用CSS Grid布局展示图片，确保响应式和美观 */
  .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 2rem 0;
  }

  .image-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.5);
  }

  /* ===================== 按钮样式 ===================== */
  /* 美观且具有交互反馈的按钮样式 */
  .button {
    background: #3B82F6;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #3B82F6, #F59E0B);
  }

  /* ===================== 折叠内容样式 ===================== */
  /* 设计折叠区域，用于显示次要信息 */
  .collapsible {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    transition: background 0.3s ease;
    border-radius: 5px;
    margin-bottom: 1rem;
  }

  .collapsible:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .content {
    padding: 0 1rem;
    display: none;
    overflow: hidden;
    background-color: rgba(255,255,255,0.05);
    border-radius: 5px;
    margin-bottom: 1rem;
  }

  /* ===================== 代码示例样式 ===================== */
  /* 样式化文章中的CSS3代码示例，使其美观且易读 */
  .code-example {
    background: #2D2D2D;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    color: #FFFFFF;
    overflow-x: auto;
    margin-bottom: 1rem;
  }

  /* ===================== 响应式设计 ===================== */
  /* 使用媒体查询确保网站在各种设备上均有良好展示效果 */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
    }
    .chapter-nav {
      display: none;
    }
    .image-gallery {
      grid-template-columns: 1fr;
    }
  }

  /* ===================== 点缀色使用 ===================== */
  /* 高亮显示重要内容，吸引用户注意 */
  .highlight {
    color: #F59E0B;
  }

  /* ===================== 章节导航固定位置 ===================== */
  /* 使章节导航在页面滚动时保持可见 */
  .chapter-nav {
    position: fixed;
    top: 100px;
  }

  /* ===================== 装饰性图片样式 ===================== */
  /* 美化图片的边框、圆角及交互效果 */
  .decorative-img {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
  }

  .decorative-img:hover {
    transform: rotate(5deg) scale(1.05);
  }

