
  /* 全局样式设定 */
  body {
    font-family: 'Roboto', sans-serif; /* 使用Roboto无衬线字体 */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* 渐变背景色 */
    color: #ffffff; /* 文字颜色 */
    margin: 0;
    padding: 0;
    transition: background 0.5s; /* 背景渐变过渡 */
  }

  /* 确保页面不出现水平滚动条 */
  html, body {
    overflow-x: hidden;
  }

  /* 顶部导航栏样式 */
  .navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 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 a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s; /* 颜色过渡效果 */
  }

  /* 导航链接悬停效果 */
  .navbar a:hover {
    color: #ffa500; /* 橙色点缀 */
  }

  /* 主内容区布局 */
  .main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    padding: 100px 50px 50px 50px; /* 上方留出导航栏空间 */
  }

  /* 侧边栏样式 */
  .sidebar {
    background: rgba(30, 60, 114, 0.8); /* 半透明背景 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky; /* 粘性定位 */
    top: 100px;
    height: fit-content;
  }

  /* 侧边栏链接样式 */
  .sidebar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 10px 0;
    font-size: 16px;
    transition: color 0.3s;
  }

  /* 侧边栏链接悬停效果 */
  .sidebar a:hover {
    color: #32cd32; /* 绿色点缀 */
  }

  /* 文章内容样式 */
  article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05); /* 半透明背景 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  /* 文章标题样式 */
  article h2, article h3, article h4 {
    color: #ffffff;
    margin-bottom: 20px;
    transition: color 0.3s;
  }

  /* 标题悬停效果 */
  article h2:hover, article h3:hover, article h4:hover {
    color: #ffa500; /* 橙色点缀 */
  }

  /* 文章段落样式 */
  article p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
    color: #f0f0f0;
  }

  /* 强调文本样式 */
  article strong {
    color: #ffa500; /* 橙色强调 */
  }

  /* 代码块样式 */
  article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  article code {
    color: #00ff00; /* 绿色代码字体 */
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
  }

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

  article table th, article table td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
    color: #ffffff;
  }

  article table th {
    background: #2a5298; /* 蓝色背景 */
  }

  /* 图片样式 */
  img {
    max-width: 650px;
    width: 100%;
    height: auto;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 阴影效果 */
    transition: transform 0.3s, box-shadow 0.3s; /* 过渡效果 */
    margin-bottom: 20px;
  }

  /* 图片悬停效果 */
  img:hover {
    transform: scale(1.05); /* 放大效果 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  /* 按钮样式 */
  .button {
    background-color: #32cd32; /* 绿色按钮 */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
  }

  /* 按钮悬停效果 */
  .button:hover {
    background-color: #228b22; /* 深绿色 */
    transform: scale(1.05);
  }

  /* 响应式设计 */
  @media (max-width: 1200px) {
    .main-content {
      grid-template-columns: 1fr 2fr;
      padding: 100px 30px 30px 30px;
    }
  }

  @media (max-width: 768px) {
    .main-content {
      grid-template-columns: 1fr;
      padding: 100px 20px 20px 20px;
    }

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

  /* 提示信息样式 */
  .reference-note {
    background: #ffa500; /* 橙色背景 */
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeIn 1s;
  }

  /* 折叠区域样式 */
  details {
    background: rgba(255, 165, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
  }

  summary {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #ffa500;
  }

  /* 代码高亮样式 */
  .code-block {
    background: #2a5298; /* 蓝色背景 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00; /* 绿色字体 */
    margin-bottom: 20px;
  }

  /* 提示文字样式 */
  .tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #ffa500;
  }

  .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2a5298;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* 顶部位置 */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  /* 导航栏优化 */
  .navbar {
    padding: 15px 20px; /* 调整padding */
  }

  /* 确保导航栏自适应宽度 */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }

    .navbar a {
      margin: 5px 0;
    }
  }

  /* 确保内容宽度不小于500px */
  .main-content article {
    min-width: 500px;
  }

  /* 进一步增强视觉吸引力 */
  article h2 {
    font-size: 24px;
    border-bottom: 2px solid #ffa500;
    padding-bottom: 10px;
  }

  article h3 {
    font-size: 20px;
    border-left: 4px solid #32cd32;
    padding-left: 10px;
    margin-top: 30px;
  }

  article h4 {
    font-size: 18px;
    color: #32cd32;
    margin-top: 20px;
  }

  /* 高级动画效果 */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes grow {
    from { height: 0; }
    to { height: 100%; }
  }

  /* 高亮关键词样式 */
  .highlight {
    background: #ffa500;
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
  }

  /* 特殊段落样式 */
  .special-paragraph {
    background: rgba(50, 205, 50, 0.1);
    padding: 15px;
    border-left: 4px solid #32cd32;
    margin-bottom: 20px;
  }

  /* 内部链接添加 nofollow 属性 */
  a[rel="nofollow"] {
    /* 强制不做任何解释 */
  }

  /* 图片描述属性为空 */
  img::after {
    content: "";
  }

  /* 页脚样式 */
  footer {
    background: rgba(30, 60, 114, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    position: relative;
  }

  /* 页脚链接样式 */
  footer a {
    color: #ffa500;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
  }

  /* 页脚链接悬停效果 */
  footer a:hover {
    color: #32cd32;
  }

  /* 避免代码块遮挡内容 */
  .code-container {
    position: relative;
    z-index: 1;
  }

  /* 确保文字清晰 */
  body, article {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* 图片最大宽度设定 */
  img {
    max-width: 650px;
  }

  /* 留白与排版优化 */
  .section {
    margin-bottom: 40px;
  }

  /* CSS代码示例块独立样式 */
  .css-example {
    background: #1e3c72;
    padding: 20px;
    border-radius: 8px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  /* 提示区域样式 */
  .info-box {
    background: rgba(255, 165, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
  }

  /* 高级 hover 过渡效果 */
  a:hover, .button:hover, img:hover {
    transition: all 0.3s ease-in-out;
  }

  /* 结束样式设计 */

