
  /* 全局样式设置 */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #002B5B 70%, #00AEEF 25%, #FFA500 5%);
    color: #333;
    line-height: 1.6;
  }

  /* 导航栏样式 */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #002B5B;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    z-index: 1000;
  }

  .navbar.collapsed {
    width: 80px;
  }

  .navbar .logo {
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    color: #fff;
    font-weight: bold;
  }

  .navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
  }

  .navbar ul li {
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
  }

  .navbar ul li:hover {
    background-color: #00AEEF;
  }

  .navbar ul li .icon {
    margin-right: 10px;
  }

  .navbar.collapsed ul li .text {
    display: none;
  }

  /* 顶部仪表盘样式 */
  .dashboard {
    margin-left: 250px;
    padding: 20px;
    background-color: #F5F5F5;
    transition: margin-left 0.3s;
  }

  .navbar.collapsed + .dashboard {
    margin-left: 80px;
  }

  .dashboard .indicator {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #00AEEF, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5em;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
  }

  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.7;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* 内容区域样式 */
  .content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .content .module {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .content .module:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

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

  article h2 {
    font-size: 1.8em;
    color: #002B5B;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  article h3 {
    font-size: 1.6em;
    color: #00AEEF;
    margin-top: 15px;
    margin-bottom: 8px;
  }

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

  article pre {
    background-color: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

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

  /* 图片样式 */
  .decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  /* 章节导航样式 */
  .toc {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: rgba(0,43,91,0.8);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
  }

  .toc h3 {
    margin-top: 0;
    font-size: 1.4em;
  }

  .toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .toc ul li {
    margin-bottom: 10px;
  }

  .toc ul li a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.3s;
  }

  .toc ul li a:hover {
    color: #00AEEF;
  }

  /* CSS代码示例样式 */
  .code-example {
    background-color: #2D2D2D;
    color: #ccc;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
  }

  /* 提示信息样式 */
  .warning {
    background-color: #FFA500;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    .navbar {
      width: 80px;
    }

    .navbar.collapsed {
      width: 0;
    }

    .dashboard {
      margin-left: 80px;
    }

    .toc {
      display: none;
    }
  }

