
  /* 引入字体 */
  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@900&family=Roboto:wght@400;700&display=swap');

  /* 全局样式 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00008B, #8A2BE2, #FFD700);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-left: 60px; /* 为侧边栏预留空间 */
    transition: background 0.5s ease;
  }

  /* 固定侧边栏 */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: linear-gradient(180deg, #00008B, #8A2BE2);
    transition: width 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1000;
  }

  .sidebar.active {
    width: 200px;
  }

  .sidebar a {
    color: #ffffff;
    text-decoration: none;
    margin: 15px 0;
    font-size: 18px;
    transition: transform 0.3s, color 0.3s;
  }

  .sidebar a:hover {
    transform: scale(1.1) rotate(5deg);
    color: #FF1493;
  }

  /* 导航图标 */
  .sidebar .icon {
    font-size: 24px;
    margin-bottom: 10px;
  }

  /* 主内容区域 */
  .content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }

  h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: #FF1493;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
  }

  p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 18px;
  }

  pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  code {
    font-family: 'Roboto', monospace;
    color: #FFD700;
  }

  /* 网格布局 */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
  }

  .grid-item {
    background: linear-gradient(45deg, #1E90FF, #FF69B4);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease-in-out;
  }

  .grid-item:hover {
    transform: scale(1.05);
  }

  /* 图片样式 */
  .grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
  }

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

  /* 粒子效果 */
  .particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FFD700;
    border-radius: 50%;
    animation: particles 3s infinite;
  }

  @keyframes particles {
    0% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
  }

  /* 响应式设计 */
  @media (max-width: 1440px) {
    .content {
      max-width: 1000px;
    }
  }

  @media (max-width: 1200px) {
    .content {
      max-width: 900px;
    }
  }

  @media (max-width: 1024px) {
    .content {
      max-width: 800px;
    }
  }

  @media (max-width: 768px) {
    .content {
      padding: 30px 15px;
    }

    .sidebar {
      width: 50px;
    }

    .sidebar.active {
      width: 150px;
    }

    h1 {
      font-size: 28px;
    }

    h2 {
      font-size: 24px;
    }

    p {
      font-size: 16px;
    }
  }

  @media (max-width: 480px) {
    .content {
      padding: 20px 10px;
    }

    h1 {
      font-size: 24px;
    }

    h2 {
      font-size: 20px;
    }

    p {
      font-size: 14px;
    }
  }

  @media (max-width: 320px) {
    .content {
      padding: 15px 5px;
    }

    h1 {
      font-size: 20px;
    }

    h2 {
      font-size: 18px;
    }

    p {
      font-size: 12px;
    }
  }

  /* 提示信息 */
  .reference-note {
    text-align: center;
    font-size: 16px;
    margin: 30px 0;
    color: #FFD700;
  }

  /* 示例数据展示 */
  .sample-data {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
  }

  .sample-data h2 {
    color: #8A2BE2;
    margin-bottom: 15px;
  }

  .sample-data ul {
    list-style: disc inside;
    margin-bottom: 20px;
  }

  .sample-data li {
    margin-bottom: 10px;
    font-size: 16px;
  }

  /* 动态背景渐变 */
  .dynamic-gradient {
    background: linear-gradient(135deg, #00008B, #8A2BE2, #FFD700);
    transition: background 1s ease;
  }

  /* 用户互动按钮 */
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FF69B4;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    font-size: 16px;
  }

  .btn:hover {
    transform: scale(1.1) rotate(2deg);
    background: #FFD700;
  }

  /* 标题特效 */
  .title-effect {
    position: relative;
    display: inline-block;
  }

  .title-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #8A2BE2;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .title-effect:hover::after {
    transform: scaleX(1);
  }


