
  /* 全局样式 */
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Pacifico&display=swap');

  :root {
    --primary-color: #81C784; /* 苔藓绿 */
    --secondary-color: #B2EBF2; /* 薄荷绿 */
    --accent-color1: #90A4AE; /* 浅灰色 */
    --accent-color2: #7986CB; /* 金属蓝 */
    --accent-color3: #BA68C8; /* 紫铜色 */
    --text-color: #3E2723;     /* 深木色 */
    --background-color: #FAFAFA; /* 米白色 */
    --header-height: 60px;
    --transition-speed: 0.3s;
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Pacifico', cursive;
  }

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

  body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--background-color), var(--primary-color));
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
  }

  a {
    color: var(--accent-color2);
    text-decoration: none;
    transition: color var(--transition-speed);
  }

  a:hover {
    color: var(--accent-color3);
  }

  header {
    height: var(--header-height);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  header h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
  }

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

  nav ul li a {
    color: white;
    font-weight: 500;
    transition: color var(--transition-speed);
  }

  nav ul li a:hover {
    color: #FFF176;
  }

  main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  section {
    margin-bottom: 40px;
  }

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

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

  pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
  }

  code {
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent-color2);
  }

  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }

  .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  }

  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .card-content {
    padding: 15px;
  }

  .button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    font-size: 1rem;
    font-family: var(--font-body);
  }

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

  .irregular-box {
    width: 100%;
    height: 200px;
    background: var(--primary-color);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .irregular-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
  }

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

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

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

  @media (max-width: 1200px) {
    main {
      padding: 15px;
    }
  }

  @media (max-width: 1024px) {
    header h1 {
      font-size: 1.3rem;
    }
  }

  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
      background: var(--primary-color);
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      display: none;
    }

    nav ul.show {
      display: flex;
    }

    .menu-toggle {
      display: block;
      cursor: pointer;
      color: white;
      font-size: 1.5rem;
    }
  }

  @media (max-width: 480px) {
    .card img {
      height: 150px;
    }

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

  @media (max-width: 320px) {
    header {
      padding: 10px;
    }

    header h1 {
      font-size: 1.2rem;
    }
  }

  /* 样式参考提示 */
  .reference-note {
    text-align: center;
    font-size: 1rem;
    color: var(--accent-color1);
    margin-bottom: 30px;
  }

  /* 代码块样式 */
  .code-block {
    background: #263238;
    color: #ECEFF1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
  }

  /* 示例展示样式 */
  .example-display {
    border: 2px dashed var(--accent-color2);
    padding: 20px;
    border-radius: 10px;
    background: #FFFFFF;
    margin-bottom: 40px;
  }

  .example-display h2 {
    color: var(--accent-color2);
  }

  /* 图片样式 */
  .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }

  /* Footer样式 */
  footer {
    background: var(--accent-color1);
    text-align: center;
    padding: 20px;
    color: #555;
  }


