
  /* 定义色彩变量 */
  :root {
    --primary-color: #1F2937; /* 主色调：深灰 */
    --secondary-color: #3B82F6; /* 辅助色：亮蓝 */
    --accent-color: #F97316; /* 点缀色：暖橙 */
    --background-color: #111827; /* 背景色：深色 */
    --text-color: #ffffff; /* 文字颜色：白色 */
    --container-max-width: 1200px; /* 最大容器宽度 */
    --shadow-color: rgba(0, 0, 0, 0.3); /* 阴影颜色 */
  }

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

  body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
  }

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

  .navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
  }

  .navbar ul {
    list-style: none;
    display: flex;
  }

  .navbar ul li {
    margin-left: 20px;
    position: relative;
  }

  .navbar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
  }

  .navbar ul li a:hover {
    color: var(--accent-color);
  }

  /* 下拉菜单 */
  .navbar ul li .dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    background-color: var(--secondary-color);
    display: none;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
  }

  .navbar ul li:hover .dropdown {
    display: flex;
  }

  .navbar ul li .dropdown a {
    padding: 10px 20px;
    color: var(--text-color);
    transition: background 0.3s ease;
    white-space: nowrap;
  }

  .navbar ul li .dropdown a:hover {
    background-color: var(--accent-color);
  }

  /* 主容器样式 */
  .container {
    max-width: var(--container-max-width);
    margin: 100px auto 50px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 引导区样式 */
  .hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    opacity: 0.1;
    z-index: 0;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }

  .hero p {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
  }

  /* 提示语 */
  .prompt {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-left: 5px solid var(--accent-color);
    margin: 20px 0;
    border-radius: 5px;
  }

  /* 图文模块 */
  .section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .section .content {
    flex: 1 1 500px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .section .content:hover {
    transform: translateY(-10px);
    opacity: 1;
  }

  .section .content h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
  }

  .section .content p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1rem;
  }

  /* 图片样式 */
  .section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .section img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px var(--shadow-color);
  }

  /* 文章样式 */
  article {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
  }

  article h2, article h3 {
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 20px;
  }

  article p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1rem;
  }

  /* 代码块样式 */
  pre code {
    display: block;
    padding: 20px;
    background-color: rgba(0,0,0,0.7);
    color: #39FF14;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
  }

  pre code::before {
    content: '代码示例';
    display: block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 0.9rem;
    position: absolute;
    top: 0;
    left: 0;
  }

  pre code {
    padding-top: 25px;
  }

  /* 响应式设计 */
  @media (max-width: 768px) {
    .navbar ul {
      display: none;
    }
    .container {
      margin: 80px auto 30px;
    }
    .section {
      flex-direction: column;
    }
    pre code::before {
      font-size: 0.8rem;
    }
  }

  @media (min-width: 769px) and (max-width: 1200px) {
    .container {
      padding: 40px;
    }
    article {
      padding: 30px;
    }
    pre code::before {
      font-size: 0.9rem;
    }
  }

  /* 固定导航栏调整 */
  .navbar {
    padding: 15px 30px;
  }

