
  /* 全局样式 */
  :root {
    --background-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --primary-color: #4c2f7d;
    --secondary-color: #6c5ce7;
    --text-color: #ffffff;
    --accent-color: #ff7675;
    --font-family: 'Roboto', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
    --button-hover-shadow: 0 8px 20px rgba(76, 47, 125, 0.8);
    --button-shadow: 0 4px 10px rgba(76, 47, 125, 0.5);
    --code-background: #2c2c2c;
    --code-color: #f8f8f2;
    --container-padding: 20px;
  }

  /* 重置部分 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

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

  header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
  }

  header h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  header p {
    font-size: 1.2rem;
    color: #dddddd;
  }

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

  .section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .section h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ff7675;
  }

  .section p {
    margin-bottom: 15px;
    color: #f0f0f0;
  }

  .section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
  }

  .code-block {
    background: var(--code-background);
    color: var(--code-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
  }

  .code-block code {
    display: block;
    white-space: pre;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
  }

  table, th, td {
    border: 1px solid #555;
  }

  th, td {
    padding: 10px;
    text-align: left;
  }

  th {
    background: #4c2f7d;
    color: #ffffff;
  }

  a {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
  }

  a:hover {
    text-decoration: underline;
  }

  button {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: var(--button-shadow);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
  }

  button:hover {
    box-shadow: var(--button-hover-shadow);
    transform: translateY(-2px);
  }

  button:active {
    transform: scale(0.95);
    background: #3c2361;
  }

  .footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 20px;
  }

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

    .section h2 {
      font-size: 1.5rem;
    }

    button {
      width: 100%;
    }
  }

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

    .section {
      padding: 15px;
    }

    .code-block {
      padding: 10px;
    }
  }

  /* 动态粒子效果 */
  .star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
  }

  @keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  /* 按钮动画涟漪效果 */
  .ripple::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s, opacity 1s;
  }

  .ripple:active::after {
    transform: scale(2.5);
    opacity: 0;
    transition: 0s;
  }

  /* 代码块样式优化 */
  pre {
    background: var(--code-background);
    color: var(--code-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
  }

  pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
  }


