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

  :root {
    --primary-color: #121212; /* 深灰色 */
    --secondary-color: #4CAF50; /* 霓虹绿色 */
    --highlight-color: #6495ED; /* 霓虹蓝色 */
    --accent-color: #8A2BE2; /* 霓虹紫色 */
    --background-gradient: linear-gradient(135deg, #1f1f1f, #2c2c2c);
    --button-gradient: linear-gradient(135deg, #4CAF50, #6495ED);
    --text-color: #ffffff;
    --nav-bg: rgba(18, 18, 18, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    padding: 20px;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 10px 20px;
    z-index: 1000;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    color: var(--highlight-color);
    text-decoration: none;
  }

  .nav-links a {
    margin-left: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--highlight-color);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  main {
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    color: var(--highlight-color);
    margin-bottom: 15px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }

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

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

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

  .button {
    background: var(--button-gradient);
    border: none;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px var(--shadow-color);
  }

  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }

  .item {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
  }

  .item:hover {
    transform: translateY(-10px);
  }

  .image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
  }

  .image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
  }

  .code-example {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
  }

  .footer {
    text-align: center;
    padding: 20px 0;
    color: var(--highlight-color);
    font-size: 14px;
  }

  /* 动画效果 */
  .button {
    position: relative;
    overflow: hidden;
  }

  .button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: 0;
    left: -100%;
    transition: all 0.5s;
  }

  .button:hover::after {
    left: 0;
  }

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

    .nav-links {
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    .nav-links a {
      margin: 10px 0;
    }

    h1 {
      font-size: 28px;
    }

    h2 {
      font-size: 24px;
    }

    h3 {
      font-size: 20px;
    }

    h4 {
      font-size: 18px;
    }

    .button {
      width: 100%;
      text-align: center;
    }
  }

  @media (min-width: 1440px) {
    main {
      max-width: 1400px;
    }

    h1 {
      font-size: 48px;
    }

    h2 {
      font-size: 36px;
    }

    h3 {
      font-size: 28px;
    }

    h4 {
      font-size: 24px;
    }
  }

