
    :root {
      color-scheme: dark;
      --bg: #070a12;
      --panel-border: rgba(255, 255, 255, 0.2);
      --text: #f5f7fb;
      --muted: #b4bfce;
      --accent: #6ee7d8;
      --accent-strong: #ffcc66;
      --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
    }

    * {
      box-sizing: border-box;
    }

    html {
      height: 100%;
      min-height: 100%;
      background: var(--bg);
    }

    body {
      display: flex;
      flex-direction: column;
      min-height: 100svh;
      margin: 0;
      font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 12% 12%, rgba(110, 231, 216, 0.18), transparent 28rem),
        radial-gradient(circle at 82% 4%, rgba(255, 204, 102, 0.12), transparent 26rem),
        radial-gradient(circle at 50% 92%, rgba(99, 102, 241, 0.12), transparent 30rem),
        linear-gradient(145deg, #070a12 0%, #101725 54%, #070a12 100%);
    }

    body::before {
      position: fixed;
      inset: 0;
      z-index: 0;
      content: "";
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
    }

    .meteor-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    button,
    a {
      font: inherit;
    }

    .page-shell {
      position: relative;
      z-index: 2;
      display: flex;
      flex: 1 0 auto;
      flex-direction: column;
      justify-content: center;
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
      padding: 36px 0 24px;
    }

    .hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 24px;
      min-height: 220px;
      padding: clamp(24px, 4vw, 44px);
    }

    .hero__content,
    .hero__logo {
      position: relative;
      z-index: 1;
    }

    .section-kicker:empty {
      display: none;
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      margin-bottom: 12px;
      font-size: clamp(32px, 5vw, 56px);
      line-height: 1.08;
      letter-spacing: 0;
      text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
      cursor: pointer;
      user-select: none;
    }

    h1:hover {
      opacity: 0.85;
    }

    .hero__slogan {
      max-width: 620px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: clamp(16px, 2vw, 20px);
      line-height: 1.8;
    }

    .hero__logo {
      display: block;
      width: clamp(72px, 10vw, 110px);
      aspect-ratio: 1;
      border: 2px solid rgba(255, 255, 255, 0.22);
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
      animation: spinClockwise 4s linear infinite;
    }

    @keyframes spinClockwise {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }

    .panel {
      margin-top: 24px;
      padding: clamp(20px, 4vw, 32px);
    }

    .section-head {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(24px, 3vw, 34px);
      letter-spacing: 0;
    }

    .section-count {
      flex: 0 0 auto;
      white-space: nowrap;
      align-self: flex-end;
      color: var(--muted);
      font-size: 14px;
    }

    .api-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .api-card {
      min-height: 74px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      color: var(--text);
      background: rgba(255, 255, 255, 0.045);
      cursor: pointer;
      text-align: left;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }

    .api-card:hover,
    .api-card:focus-visible {
      outline: none;
      transform: translateY(-2px);
      border-color: rgba(110, 231, 216, 0.72);
      background: rgba(110, 231, 216, 0.13);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .api-card__name {
      display: block;
      font-weight: 800;
    }

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .resource-card {
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      min-height: 92px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 18px;
      color: inherit;
      background: rgba(255, 255, 255, 0.045);
      text-decoration: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }

    .resource-card:hover,
    .resource-card:focus-visible {
      outline: none;
      transform: translateY(-2px);
      border-color: rgba(255, 204, 102, 0.72);
      background: rgba(255, 204, 102, 0.11);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .resource-card__icon {
      display: grid;
      place-items: center;
      width: 48px;
      aspect-ratio: 1;
      border-radius: 18px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.12);
      color: var(--accent-strong);
      font-size: 22px;
      line-height: 1;
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    }

    .resource-card__icon img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .resource-card h3 {
      margin-bottom: 5px;
      overflow-wrap: anywhere;
      font-size: 16px;
      line-height: 1.35;
    }

    .resource-card p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .pagination button {
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.045);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
    }

    .pagination button:hover,
    .pagination button:focus-visible {
      outline: none;
      transform: translateY(-1px);
      border-color: rgba(255, 204, 102, 0.72);
      background: rgba(255, 204, 102, 0.11);
      color: var(--accent-strong);
    }

    .pagination button.is-current {
      border-color: rgba(255, 204, 102, 0.72);
      background: rgba(255, 204, 102, 0.15);
      color: var(--accent-strong);
      font-weight: 700;
    }

    .pagination button:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      transform: none;
      border-color: rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.045);
      color: var(--muted);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      z-index: 10;
      transform: translate(-50%, 16px);
      padding: 10px 16px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      color: #101217;
      background: var(--accent);
      font-weight: 800;
      opacity: 0;
      pointer-events: none;
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .toast.is-visible {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .site-footer {
      position: relative;
      z-index: 2;
      flex: 0 0 auto;
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
      padding: 18px 0 36px;
      color: var(--muted);
      text-align: center;
      font-size: 14px;
    }

    @media (max-width: 860px) {
      .page-shell {
        width: min(100% - 24px, 720px);
        padding-top: 24px;
      }

      .hero {
        grid-template-columns: 1fr;
      }

      .hero__logo {
        width: 92px;
      }

      .api-grid,
      .resource-grid,
      .hot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 560px) {
      .section-head {
        align-items: center;
        flex-direction: row;
      }

      .api-grid,
      .resource-grid,
      .hot-grid {
        grid-template-columns: 1fr;
      }

      .hero,
      .panel {
        padding: 20px;
      }
    }

    /* ═══ 搜索条（与下方卡片风格一致） ═══ */
    .searchbar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 24px clamp(20px, 4vw, 32px) 0;
      padding: 4px 8px 4px 16px;
      background: rgba(255, 255, 255, 0.045);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }

    .searchbar:focus-within {
      border-color: rgba(255, 204, 102, 0.72);
      background: rgba(255, 204, 102, 0.06);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .searchbar .sic {
      color: var(--muted);
      font-size: 16px;
      flex-shrink: 0;
    }

    .searchbar input {
      flex: 1;
      min-width: 0;
      background: none;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 14.5px;
      letter-spacing: 1px;
      padding: 11px 0;
    }

    .searchbar input::placeholder {
      color: #5a6272;
    }

    .searchbar .skey {
      flex-shrink: 0;
      font-size: 11px;
      color: var(--muted);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 6px;
      padding: 5px 10px;
      letter-spacing: 1px;
      background: rgba(255, 255, 255, 0.08);
      white-space: nowrap;
    }

    /* ═══ 热门推荐（与免费资源卡样式一致、3列两排） ═══ */
    .sec {
      margin-top: 24px;
      padding-left: clamp(20px, 4vw, 32px);
      padding-right: clamp(20px, 4vw, 32px);
    }

    .sec-h {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }

    .sec-h .no {
      font-size: 13px;
      font-weight: 800;
      color: #0b0d12;
      letter-spacing: 1px;
      padding: 5px 12px;
      border-radius: 6px;
      background: linear-gradient(90deg, var(--accent), #a5b4fc);
    }

    .sec-h h2 {
      margin: 0;
      font-size: clamp(24px, 3vw, 34px);
      font-weight: 800;
      letter-spacing: 2px;
    }

    .sec-h .cnt {
      margin-left: auto;
      flex: 0 0 auto;
      align-self: flex-end;
      font-size: 14px;
      color: var(--muted);
    }

    .hot-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .hot {
      position: relative;
      display: grid;
      grid-template-columns: 48px 1fr 70px;
      gap: 14px;
      align-items: center;
      min-height: 92px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      color: inherit;
      background: rgba(255, 255, 255, 0.045);
      text-decoration: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      overflow: hidden;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    }

    .hot:hover,
    .hot:focus-visible {
      outline: none;
      transform: translateY(-2px);
      border-color: rgba(255, 204, 102, 0.72);
      background: rgba(255, 204, 102, 0.11);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .hot .hic {
      position: relative;
    }

    .hot .ic {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 18px;
      font-size: 22px;
      background: linear-gradient(135deg, var(--c1, #2dd4bf), var(--c2, #818cf8));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 22px rgba(0, 0, 0, 0.2);
      line-height: 1;
    }

    .hot .rk {
      position: absolute;
      top: -7px;
      left: -7px;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 6px;
      font-size: 10.5px;
      font-weight: 800;
      font-style: normal;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hot:nth-child(1) .rk {
      color: #0b0d12;
      background: linear-gradient(135deg, #fcd34d, #f59e0b);
      border-color: transparent;
    }

    .hot:nth-child(2) .rk {
      color: #0b0d12;
      background: linear-gradient(135deg, #e5e7eb, #9ca3af);
      border-color: transparent;
    }

    .hot:nth-child(3) .rk {
      color: #0b0d12;
      background: linear-gradient(135deg, #d8b4a0, #b07d52);
      border-color: transparent;
    }

    .hot .hi {
      min-width: 0;
    }

    .hot .hn {
      margin-bottom: 5px;
      overflow-wrap: anywhere;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .hot .hd {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .hot .hv {
      flex-shrink: 0;
      font-size: 11px;
      color: #fca5a5;
      letter-spacing: 0.3px;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      text-align: right;
    }

    .hot .hv i {
      font-style: normal;
      opacity: 0.7;
    }

    @media (max-width: 560px) {
      .hot {
        padding: 16px;
        gap: 12px;
      }
    }
  