/* 全局变量、基础样式和系统字体。 */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary: #6d5dfc;
      --text: #171724;
      --muted: #74748a;
      --bg: #f7f8fc;
      --border: #ececf4;
      --radius: 18px;
      --shadow: 0 14px 40px rgba(31, 32, 68, 0.08);
    }

    html {
      scroll-behavior: smooth;
    }

    #categories,
    #resources {
      scroll-margin-top: 88px;
    }

    body {
      /* 思源黑体 → 思源宋体 → 系统字体；仅调用设备本地字体，不加载或分发字体文件。 */
      font-family:
        "Source Han Sans SC", "Source Han Sans CN", "思源黑体",
        "Source Han Serif SC", "Source Han Serif CN", "思源宋体",
        system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      font: inherit;
    }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }
