
  /* 基础重置 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* 根元素变量定义 */
  :root {
    --primary-color: #1E3A8A; /* 深蓝色 */
    --accent-color: #8A2BE2;  /* 紫色渐变 */
    --background-gradient: linear-gradient(135deg, #1E3A8A, #8A2BE2);
    --text-color: #FFFFFF;
    --secondary-text-color: #E0E0E0;
    --card-background: rgba(255, 255, 255, 0.1);
    --card-hover-transform: scale(1.05);
    --transition-duration: 0.3s;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --nav-height: 60px;
  }

  body {
    font-family: var(--font-primary);
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* 导航栏样式 */
  nav {
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }

  nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color var(--transition-duration);
  }

  nav ul li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: -5px;
    animation: meteor 1s linear forwards;
  }

  @keyframes meteor {
    0% {
      width: 0;
      opacity: 1;
    }
    100% {
      width: 100%;
      opacity: 0;
    }
  }

  /* 主要内容区 */
  .container {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .card {
    background: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
  }

  .card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
  }

  .card h3 {
    font-family: var(--font-secondary);
    margin-bottom: 10px;
    color: var(--accent-color);
  }

  .card p {
    color: var(--secondary-text-color);
    margin-bottom: 10px;
  }

  .code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00;
    margin-bottom: 15px;
  }

  /* 示例展示区 */
  .example-display {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
  }

  .example-display h2 {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center;
  }

  .example-display article {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
  }

  .example-display pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
  }

  /* 底部提示 */
  footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-text-color);
    font-size: 14px;
  }

  /* 动画效果 */
  @keyframes aurora-move {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  body {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
  }

  /* 自适应设计 */
  @media (max-width: 1440px) {
    .container {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }

  @media (max-width: 1200px) {
    .container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }

  @media (max-width: 1024px) {
    nav ul {
      gap: 15px;
    }
  }

  @media (max-width: 768px) {
    .container {
      grid-template-columns: 1fr;
    }

    nav {
      justify-content: center;
    }
  }

  @media (max-width: 480px) {
    nav ul li a {
      font-size: 14px;
    }

    .card h3 {
      font-size: 18px;
    }
  }

  @media (max-width: 320px) {
    nav ul {
      flex-direction: column;
      gap: 10px;
    }
  }

