
  /* 定义全局变量 */
  :root {
    --primary-color: #0A2342; /* 主色调 - 深蓝色 */
    --secondary-color: #B0BEC5; /* 辅色调 - 银灰色 */
    --accent-color: #FF9800; /* 点缀色 - 橙色 */
    --background-color: #f5f5f5; /* 页面背景色 */
    --font-family: 'Roboto', sans-serif; /* 全局字体 */
    --max-width: 1200px; /* 最大内容宽度 */
  }

  /* 重置默认样式 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* 页面背景及字体设置 */
  body {
    background-color: var(--background-color);
    font-family: var(--font-family);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* 禁止横向滚动 */
  }

  /* 全局容器 */
  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
  }

  /* 导航栏样式 */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 35, 66, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 1000;
  }

  /* 导航菜单项样式 */
  .navbar .menu-item {
    margin: 0 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
  }

  .navbar .menu-item:hover {
    color: var(--accent-color);
  }

  /* 主内容区样式 */
  main {
    padding-top: 80px; /* 为固定导航栏留出空间 */
  }

  /* 文章样式 */
  article {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  article h2, article h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
  }

  article h2 {
    font-size: 24px;
  }

  article h3 {
    font-size: 20px;
  }

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

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

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

  /* 图片装饰样式 */
  .decorative-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
  }

  .decorative-images img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .decorative-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  /* 显著提示样式 */
  .highlight-text {
    text-align: center;
    font-size: 18px;
    color: var(--accent-color);
    margin: 30px 0;
    animation: fadeIn 2s ease-in-out;
  }

  /* 按钮样式 */
  .button {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
  }

  .button:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transform: scale(1.05);
  }

  /* 关键帧动画 */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      align-items: flex-start;
    }

    .navbar .menu-item {
      margin: 10px 0;
      font-size: 18px;
    }

    article {
      padding: 20px;
    }

    .decorative-images img {
      width: 120px;
      height: 120px;
    }

    .highlight-text {
      font-size: 16px;
    }
  }

  @media (max-width: 480px) {
    .navbar .menu-item {
      font-size: 14px;
    }

    article {
      padding: 15px;
    }

    .decorative-images img {
      width: 100px;
      height: 100px;
    }

    .highlight-text {
      font-size: 14px;
    }
  }
  
  /* 内部链接样式 */
  a[rel="nofollow"] {
    color: var(--accent-color);
    text-decoration: none;
  }

  a[rel="nofollow"]:hover {
    text-decoration: underline;
  }
  

