/* ============================================================
   glass.css · 玻璃卡片风格皮肤层（2026-10-19）
   加载在 site.css 之后，只改视觉不改结构。
   性能约束：
   - backdrop-filter 只用于 topbar 与 hero 两处，避免大面积合成开销
   - 卡片用半透明底 + 内描边高光模拟毛玻璃，不触发 GPU 滤镜
   - 所有动画尊重 prefers-reduced-motion
   ============================================================ */

:root {
  --g-accent: #6366f1;
  --g-accent-2: #a855f7;
  --g-accent-3: #ec4899;
  --g-ink: #0f172a;
  --g-ink-2: #334155;
  --g-muted: #64748b;
  --g-line: rgba(15, 23, 42, .08);
  --g-glass: rgba(255, 255, 255, .64);
  --g-glass-strong: rgba(255, 255, 255, .82);
  --g-radius: 18px;
  --g-radius-sm: 12px;
  --g-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .16);
  --g-shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 22px 44px -16px rgba(79, 70, 229, .28);
  --g-ring: 0 0 0 3px rgba(99, 102, 241, .18);
  --g-display-fallback: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
                        "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- 背景：静态渐变光斑，无图片请求 ---------- */
html { background: #f4f6fd; }
body {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(99, 102, 241, .20), transparent 60%),
    radial-gradient(760px 460px at 92% 4%, rgba(236, 72, 153, .16), transparent 62%),
    radial-gradient(820px 560px at 68% 92%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(180deg, #f7f8ff 0%, #f3f5fc 42%, #eef2fb 100%);
  background-attachment: fixed;
  color: var(--g-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航：唯一的实玻璃区域 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .62);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .35);
}
.topbar-in { min-height: 64px; }
.brand { font-weight: 800; letter-spacing: -.02em; }
/* 品牌字：得意黑子集（只含 logo 与海报用到的字） */
@font-face {
  font-family: "Smiley Display";
  src: url("/lab/assets/fonts/smiley-subset.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
.brand-word {
  display: inline-flex; align-items: baseline;
  font-family: "Smiley Display", var(--g-display-fallback);
  font-size: 20px; font-weight: 400; letter-spacing: .12em;
  padding-bottom: 1px;
}
.brand-dot {
  /* 用深一档的紫，20px 下才不会读成「字没写完」 */
  background: linear-gradient(135deg, #4338ca, #9333ea);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar nav a {
  color: var(--g-ink-2); font-weight: 550; padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: color .18s, border-color .18s;
}
.topbar nav a:hover { color: var(--g-accent); border-bottom-color: var(--g-accent); text-decoration: none; }

/* 搜索框：内嵌玻璃感 */
.search .input {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding-inline: 16px;
  transition: box-shadow .18s, border-color .18s, background .18s;
}
.search .input:focus {
  outline: none; background: #fff;
  border-color: rgba(99, 102, 241, .55);
  box-shadow: var(--g-ring);
}

/* ---------- 通用卡片表面 ---------- */
.board, .directory-main, .project-panel, .side-card,
.download, .steps, .not-verified, .page-total, .request-list, .request-form-panel {
  background: var(--g-glass);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: none;
}

/* ---------- 首屏榜单卡片 ---------- */
.board {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(236, 72, 153, .10) 46%, rgba(34, 211, 238, .12)),
    rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: 0 24px 60px -28px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255, 255, 255, .95);
  overflow: hidden;
}
.board-kicker, .board-label { color: var(--g-accent); letter-spacing: .12em; }
.board-number { font-variant-numeric: tabular-nums; }
.board-slide h3 a { color: var(--g-ink); }
.board-open {
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-2));
  color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 600;
  box-shadow: 0 10px 22px -12px rgba(99, 102, 241, .8);
  transition: transform .18s, box-shadow .18s;
}
.board-open:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(99, 102, 241, .9); }

/* ---------- 左侧索引轨 ---------- */
.directory-rail { background: rgba(255, 255, 255, .5); border-radius: var(--g-radius); }
.rail-link { border-radius: 10px; transition: background .16s, color .16s; }
.rail-link:hover { background: rgba(99, 102, 241, .10); text-decoration: none; }
.rail-link.current { background: rgba(99, 102, 241, .14); color: var(--g-accent); font-weight: 650; }

/* ---------- 项目列表：从行改成玻璃卡片网格 ---------- */
.repo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 16px;
  background: transparent;
}
.repo-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: var(--g-radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62));
  box-shadow: var(--g-shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.repo-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .78); }
.repo-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--g-shadow-hover), inset 0 1px 0 #fff;
  border-color: rgba(99, 102, 241, .35);
  background: linear-gradient(160deg, #fff, rgba(255, 255, 255, .78));
}
.repo-title a { color: var(--g-ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.repo-title a:hover { color: var(--g-accent); text-decoration: none; }
.repo-copy p { color: var(--g-muted); font-size: 12.5px; line-height: 1.7; }
.repo-meta { color: var(--g-muted); font-size: 11.5px; gap: 6px 14px; }
.repo-action {
  margin: 0; align-self: flex-end;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 999px; color: var(--g-accent);
  background: rgba(99, 102, 241, .10);
  transition: background .18s, transform .18s;
}
.repo-row:hover .repo-action { background: var(--g-accent); color: #fff; transform: translateX(2px); }

/* 实测徽标 */
.repo-verified, .badge {
  background: rgba(16, 185, 129, .12);
  color: #047857; border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 999px; font-weight: 600;
}

/* ---------- 详情页 ---------- */
.breadcrumbs { color: var(--g-muted); font-size: 12.5px; }
.breadcrumbs a:hover { color: var(--g-accent); }
.project-head h1 { font-size: 30px; letter-spacing: -.03em; line-height: 1.28; }
.project-tagline { color: var(--g-muted); font-size: 14.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts > * {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 999px; padding: 5px 12px; font-size: 12px;
}
.eyebrow { color: var(--g-accent); letter-spacing: .1em; font-weight: 700; font-size: 11px; }

/* 下载区：强调块 */
.download {
  background:
    linear-gradient(140deg, rgba(99, 102, 241, .12), rgba(34, 211, 238, .10)),
    rgba(255, 255, 255, .78);
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 20px;
}
.download-row { border-top: 1px dashed rgba(15, 23, 42, .10); }
.download-row:first-child { border-top: 0; }
.button.primary {
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-2));
  border: 0; border-radius: 999px; color: #fff; font-weight: 650;
  box-shadow: 0 10px 24px -14px rgba(99, 102, 241, .9);
  transition: transform .16s, box-shadow .16s;
}
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(99, 102, 241, 1); }
.hash { background: rgba(15, 23, 42, .05); border-radius: 8px; padding: 6px 10px; }

/* 步骤 */
.step { border-left: 2px solid rgba(99, 102, 241, .25); padding-left: 16px; }
.step-no {
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-2));
  color: #fff; border-radius: 999px; font-weight: 700;
}
.article-body { font-size: 15.5px; line-height: 1.85; color: var(--g-ink-2); }
.article-body h2 { color: var(--g-ink); letter-spacing: -.02em; }
.article-body img { border-radius: 12px; box-shadow: var(--g-shadow); }

/* 侧栏 */
.side-card b { color: var(--g-ink); }
.topic-list a {
  background: rgba(99, 102, 241, .10); color: var(--g-accent);
  border-radius: 999px; padding: 3px 10px; font-size: 12px;
}
.topic-list a:hover { background: var(--g-accent); color: #fff; text-decoration: none; }

/* 未验证提示 */
.not-verified {
  background: rgba(255, 251, 235, .82);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: var(--g-radius);
}

/* ---------- 页脚 ---------- */
.footer {
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--g-muted);
}
.footer a:hover { color: var(--g-accent); }

/* ---------- 动效与降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .repo-row, .board-open, .button.primary, .repo-action { transition: none !important; }
  .repo-row:hover { transform: none; }
}

/* 不支持 backdrop-filter 时，顶部改为实色，避免文字发虚 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .footer { background: rgba(255, 255, 255, .96); }
}

/* 移动端：单列卡片，减少合成层 */
@media (max-width: 820px) {
  .repo-list { grid-template-columns: 1fr; padding: 12px; }
  .project-head h1 { font-size: 23px; }
  .board { border-radius: 18px; }
}

/* ============================================================
   覆盖层：压掉基础框架的旧配色（绿色块 / 深色输入框 / 白字品牌）
   ============================================================ */

/* 品牌与导航可读性 */
.topbar .brand,
.topbar .brand span,
.topbar .brand small { color: var(--g-ink) !important; }
.topbar .brand-dot { color: transparent !important; }

/* 搜索框：改成浅色胶囊，按钮用主色渐变 */
.topbar .search .input,
.topbar .search input {
  background: rgba(255, 255, 255, .9) !important;
  color: var(--g-ink) !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
}
.topbar .search .input::placeholder,
.topbar .search input::placeholder { color: #94a3b8 !important; }
.topbar .search .btn,
.topbar .search button {
  background: var(--g-ink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}
.topbar .search .btn:hover,
.topbar .search button:hover { background: var(--g-accent) !important; }

/* 榜单左栏：深色渐变，压掉原来的荧光绿 */
.board-side {
  background: linear-gradient(150deg, #4f46e5 0%, #7c3aed 52%, #db2777 100%) !important;
  color: #fff !important;
  border-radius: 24px 0 0 24px;
}
.board-side * { color: #fff !important; }
.board-side .board-kicker { color: rgba(255, 255, 255, .78) !important; letter-spacing: .14em; }
.board-side h2, .board-side h3 { color: #fff !important; }
.board-side p { color: rgba(255, 255, 255, .82) !important; }

/* 榜单右栏：提亮文字，避免粉底浅字看不清 */
.board-slide, .board-track { background: transparent !important; }
.board-copy p, .board-slide p { color: #475569 !important; }
.board-label { color: var(--g-accent) !important; }
.board-number { color: rgba(79, 70, 229, .28) !important; }
.board-meta { color: #64748b !important; }

/* 目录面板表头 */
.list-columns, .list-toolbar { background: transparent !important; border-color: rgba(15, 23, 42, .07) !important; }
/* 基础皮肤里「全部项目 1」是柠檬绿方块，统一收成玻璃标签 */
.list-toolbar h2 small,
.list-toolbar .count,
.index-heading small {
  display: inline-block;
  background: rgba(99, 102, 241, .12) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(99, 102, 241, .16) !important;
  border-radius: 999px !important;
  padding: 2px 9px !important;
  margin-left: 7px !important;
  font: 700 11px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace !important;
  letter-spacing: .02em;
  vertical-align: 1px;
}
.list-index, .sort-note { color: var(--g-muted) !important; }

/* 左侧索引轨：当前项高亮 */
.directory-rail .rail-link.current {
  background: rgba(99, 102, 241, .14) !important;
  color: var(--g-accent) !important;
  font-weight: 650;
}
.rail-request { background: rgba(99, 102, 241, .10) !important; color: #4f46e5 !important; border-radius: 12px; }

/* 页脚底色 */
.footer { background: rgba(255, 255, 255, .6) !important; }

/* 列表底部说明条：压掉米黄色 */
.list-foot {
  background: transparent !important;
  border-top: 1px solid rgba(15, 23, 42, .07) !important;
  color: var(--g-muted) !important;
  letter-spacing: .08em;
}

/* 榜单右侧：给一点可见的玻璃底，避免大片留白显得空 */
.board-track { background: linear-gradient(120deg, rgba(255,255,255,.72), rgba(255,255,255,.42)) !important; }

/* 面板标题栏去底色 */
.panel-heading { background: transparent !important; border-bottom: 1px solid rgba(15,23,42,.07) !important; }

/* ============================================================
   2026-10-19 第二轮：去装饰性英文、修搜索框黑边、中文字体
   ============================================================ */

/* 中文优先字体栈：避免英文衬线/等宽混排，减少字重跳变 */
body, .topbar, .board, .repo-row, .article-body, .footer {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
               "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system,
               "Segoe UI", sans-serif !important;
}
body { font-size: 14.5px; line-height: 1.72; }

/* 中文标签不要英文字距 */
.index-line span, .board-kicker, .list-foot span, .eyebrow, .rail-label {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
.index-line span:first-child { color: var(--g-accent) !important; }
.board-kicker { color: rgba(255, 255, 255, .86) !important; font-size: 12px !important; }

/* 去掉“01 / 01”这种编号装饰 */
.board-number { display: none !important; }
.list-index { display: none !important; }

/* 搜索框：干掉基础样式的深色胶囊与黑边 */
.topbar .search {
  border: 1px solid rgba(15, 23, 42, .10) !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 3px 4px 3px 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
  gap: 6px !important;
}
.topbar .search .input,
.topbar .search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 30px !important;
  font-size: 12.5px !important;
}
.topbar .search .input:focus,
.topbar .search input:focus { outline: none !important; box-shadow: none !important; }
.topbar .search .btn,
.topbar .search button {
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-2)) !important;
  color: #fff !important;
  border: 0 !important;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px !important;
}
.topbar .search:focus-within {
  border-color: rgba(99, 102, 241, .55) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14) !important;
}

/* 榜单左侧副标题：字号提上来，别像免责声明 */
.board-side p { font-size: 12.5px !important; opacity: .9; }
.board-side h2, .board-side h3 { font-size: 26px !important; letter-spacing: -.02em !important; }

/* 榜单右栏内边距（原来靠 01 编号占位，去掉后需补） */
.board-copy {
  padding: 30px 34px 30px 36px !important;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.board-copy h3 { margin: 6px 0 10px !important; }
.board-copy h3 a { font-size: 24px !important; letter-spacing: -.02em !important; }
.board-copy p { margin: 0 0 14px !important; line-height: 1.7; }
.board-slide { align-items: center !important; }
.board-open { margin-right: 4px; }

/* ============================================================
   第三轮：导航悬停 / 头区排版 / 关于页 / 页脚多列
   ============================================================ */

/* 导航悬停：原来会出一块深色底，导致文字看不见 */
.topbar nav a {
  padding: 7px 11px;
  border-radius: 9px;
  border-bottom: 0 !important;
  transition: background .16s, color .16s;
}
.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: rgba(99, 102, 241, .09) !important;
  color: var(--g-accent) !important;
  text-decoration: none !important;
}
.topbar nav a:active { background: rgba(99, 102, 241, .16) !important; }

/* 头区：品牌 + 一句说明，去掉三行小字 */
.index-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin: 10px 0 22px;
}
.index-heading h1 {
  font-size: 34px; line-height: 1.15; letter-spacing: -.045em; margin: 0;
  font-weight: 800;
}
.index-heading p {
  margin: 0; color: var(--g-muted); font-size: 13.5px;
  max-width: 44ch; text-align: right; line-height: 1.7;
}
.heading-spark { display: none; }

/* 榜单左栏：居中排布、字重收紧 */
.board-side {
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 30px 26px !important;
}
.board-side h2 {
  font-size: 30px !important; letter-spacing: -.03em !important;
  margin: 0 0 8px !important; font-weight: 800 !important;
}
.board-side p { font-size: 13px !important; line-height: 1.7; }
.board-asterisk {
  font-size: 20px !important; opacity: .8;
  transform: translate(6px, -8px) rotate(14deg) !important;
}

/* 关于页 */
.about { max-width: 840px; margin-inline: auto; padding-block: 36px 60px; }
.about .eyebrow { color: var(--g-accent); }
.about h1 { font-size: 32px; letter-spacing: -.035em; margin: 6px 0 16px; }
.about-lead { font-size: 16px; line-height: 1.9; color: #334155; margin: 0 0 8px; }
.about h2 { font-size: 19px; letter-spacing: -.02em; margin: 34px 0 10px; }
.about p, .about li { font-size: 14.5px; line-height: 1.9; color: #3f4a5c; }
.about ul { padding-left: 20px; margin: 8px 0 0; }
.about-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px; margin: 16px 0 6px;
}
.about-steps > div {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 14px; padding: 16px 16px 14px;
  box-shadow: var(--g-shadow), inset 0 1px 0 #fff;
}
.about-steps b { display: block; color: var(--g-accent); font-size: 12.5px; margin-bottom: 6px; letter-spacing: 0; }
.about-steps p { margin: 0; font-size: 13px; line-height: 1.75; color: #4a5568; }

/* 页脚：三列（品牌 / 浏览 / 关于），补站点地图入口 */
.foot-in {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr;
  gap: 28px; padding-block: 10px 4px; align-items: start;
}
.foot-brand b { font-size: 15px; letter-spacing: -.01em; }
.foot-brand p { font-size: 12.5px; line-height: 1.75; color: var(--g-muted); margin: 7px 0 0; max-width: 400px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col span { font-size: 12px; font-weight: 650; color: var(--g-muted); }
.foot-col a { font-size: 13px; color: var(--g-ink-2); width: fit-content; }
.foot-col a:hover { color: var(--g-accent); }

@media (max-width: 820px) {
  .index-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .index-heading p { text-align: left; }
  .index-heading h1 { font-size: 26px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* 品牌图形 */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; width: 28px; height: 28px; flex: none; filter: drop-shadow(0 3px 6px rgba(124, 58, 237, .32)); }
/* 不要再给 svg 加 border-radius：圆角是画在图形里的，
   再让 css 裁一刀，边缘会露出页面底色，看起来像描了一圈橙边 */
.brand-mark svg { width: 100%; height: 100%; display: block; }

/* 页脚链接竖排（原来挤成一行） */
.foot-col { display: flex !important; flex-direction: column !important; gap: 7px !important; }
.foot-col a { display: block !important; }

/* 副标题避免孤字换行 */
.index-heading p { text-wrap: balance; }

/* 侧栏呼吸感：块间距、行高、内边距 */
.directory-rail {
  padding: 10px 0 14px !important;
}
.directory-rail .rail-link {
  padding: 10px 16px !important;
  margin: 2px 8px !important;
  border-radius: 10px !important;
}
.directory-rail .rail-label {
  margin: 20px 16px 10px !important;
  font-size: 12px !important;
  color: var(--g-muted) !important;
  font-weight: 600 !important;
}
.directory-rail .rail-label:first-child { margin-top: 8px !important; }
.directory-rail .rail-note {
  margin: 0 16px 18px !important;
  font-size: 12.5px !important;
  line-height: 1.9 !important;
  color: #64748b !important;
}
.directory-rail .rail-rule {
  margin: 16px 16px !important;
  border: 0 !important;
  border-top: 1px solid rgba(15, 23, 42, .07) !important;
}
.directory-rail .rail-more { margin: 0 16px 16px !important; }
.directory-rail .rail-request {
  margin: 4px 8px !important;
  padding: 10px 16px !important;
}

/* ============================================================
   需求页：表单可读性 + 去绿色 + 版式
   ============================================================ */
.requests-page { padding-block: 34px 60px; }
.requests-lead { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.requests-lead h1 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 10px; line-height: 1.3; }
.requests-lead h1 span { color: var(--g-accent); }
.requests-lead p { margin: 0; color: var(--g-muted); font-size: 13.5px; line-height: 1.8; max-width: 62ch; }
.request-stamp {
  flex: none; transform: rotate(3deg);
  width: auto !important; height: auto !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(99, 102, 241, .28) !important;
  border-radius: 10px; padding: 11px 18px;
  font-size: 15px; font-weight: 700; line-height: 1.6; text-align: center;
  letter-spacing: .06em;
  box-shadow: 0 10px 24px -16px rgba(79, 70, 229, .6), inset 0 1px 0 #fff !important;
}

.requests-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }

/* 左：公开需求列表 */
.request-list {
  background: var(--g-glass);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow), inset 0 1px 0 #fff;
  overflow: hidden;
}
.request-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid rgba(15, 23, 42, .07);
}
.request-list-head h2 { margin: 0; font-size: 15px; }
.request-list-head span {
  background: rgba(99, 102, 241, .10) !important; color: var(--g-accent) !important;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.request-list-empty { padding: 52px 22px; text-align: center; color: var(--g-muted); font-size: 13.5px; }

/* 右：表单 */
.request-form-panel {
  background: var(--g-glass-strong) !important;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow), inset 0 1px 0 #fff;
  padding: 22px 22px 20px !important;
}
.request-form-head { margin-bottom: 16px; }
.request-form-head span { display: none !important; }
.request-form-head h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.01em; }
.request-form-head p { margin: 0; font-size: 12.5px; color: var(--g-muted); line-height: 1.7; }

.request-form-panel label {
  display: block; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; color: #334155;
  letter-spacing: 0;
}
.request-form-panel label input,
.request-form-panel label textarea {
  display: block; width: 100%; margin-top: 7px;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 13.5px !important; line-height: 1.6;
  color: var(--g-ink) !important;
  transition: border-color .16s, box-shadow .16s;
}
.request-form-panel label textarea { min-height: 132px; resize: vertical; }
.request-form-panel label input::placeholder,
.request-form-panel label textarea::placeholder { color: #9aa4b2 !important; }
.request-form-panel label input:focus,
.request-form-panel label textarea:focus {
  outline: none !important;
  border-color: rgba(99, 102, 241, .6) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14) !important;
}
.request-form-panel button[type="submit"] {
  width: 100%; height: 42px; margin-top: 4px;
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-2)) !important;
  color: #fff !important; border: 0 !important; border-radius: 999px !important;
  font-size: 14px; font-weight: 650; letter-spacing: 0;
  box-shadow: 0 12px 24px -14px rgba(99, 102, 241, .9);
  cursor: pointer;
}
.request-form-panel button[type="submit"]:hover { filter: brightness(1.04); }
.request-fine { font-size: 11.5px !important; color: var(--g-muted) !important; line-height: 1.7; margin: 10px 0 0; }
.honey { position: absolute; left: -9999px; }
/* 验证码：输入框与图片并排，图片可点换一张 */
.cap-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.request-form-panel label .cap-row input {
  flex: 1 1 auto; min-width: 0; margin-top: 0 !important;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 650;
}
.cap-row img {
  flex: none; width: 128px; height: 42px; cursor: pointer;
  border: 1px solid rgba(15, 23, 42, .12); border-radius: 10px;
  background: #f7f8fc;
  transition: opacity .15s, border-color .15s;
}
.cap-row img:hover { border-color: rgba(99, 102, 241, .55); opacity: .92; }
.cap-label { margin-bottom: 16px; }
.request-message { font-size: 12.5px; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.request-message.success { background: rgba(16, 185, 129, .10); color: #047857; }
.request-message.error { background: rgba(239, 68, 68, .10); color: #b91c1c; }

@media (max-width: 900px) {
  .requests-layout { grid-template-columns: 1fr; }
  .request-stamp { display: none; }
}

/* 表单标签必须够黑：基础样式给的是浅色（原本配深底） */
.request-form-panel label,
.request-form-panel label span {
  color: #26313f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.request-form-panel { background: rgba(255, 255, 255, .94) !important; }
.request-form-panel .request-form-head p { color: #5b6577 !important; }
.request-fine { color: #6b7280 !important; }

/* 页脚：基础样式最后又把 .foot-in 改成 block，必须强制回 grid */
.footer .foot-in {
  display: grid !important;
  grid-template-columns: 1.7fr 1fr 1fr !important;
  gap: 28px !important;
  align-items: start !important;
}
.footer .foot-in > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
.footer .foot-in > div:last-child { margin-top: 0 !important; }
.footer .foot-col a,
.footer .foot-col span { display: block !important; }
.footer .foot-brand { gap: 6px !important; }
@media (max-width: 820px) {
  .footer .foot-in { grid-template-columns: 1fr 1fr !important; }
}

/* ---------- 分类页 ---------- */
.cat-lead { color: var(--g-muted); font-size: 13.5px; margin: 0 0 22px; max-width: 62ch; line-height: 1.8; }
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--g-glass);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: var(--g-radius);
  padding: 20px 20px 18px;
  box-shadow: var(--g-shadow), inset 0 1px 0 #fff;
  transition: transform .18s, box-shadow .18s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--g-shadow-hover), inset 0 1px 0 #fff; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat-head h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.cat-head h2 a { color: var(--g-ink); }
.cat-head h2 a:hover { color: var(--g-accent); text-decoration: none; }
.cat-count {
  flex: none; background: rgba(99, 102, 241, .10); color: var(--g-accent);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 650;
}
.cat-intro { font-size: 12.5px; color: var(--g-muted); margin: 9px 0 15px; line-height: 1.75; }
.cat-kids { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-kids a {
  background: #fff; border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: #334155;
  transition: border-color .16s, color .16s;
}
.cat-kids a:hover { border-color: rgba(99, 102, 241, .5); color: var(--g-accent); text-decoration: none; }
.cat-kids b { margin-left: 6px; color: var(--g-accent); font-weight: 700; }
.repo-list-standalone {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.breadcrumbs span { color: #b8bfc9; margin: 0 6px; }
@media (max-width: 820px) { .cat-grid { grid-template-columns: 1fr; } }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px; padding: 7px 13px;
  font-size: 12.5px; color: #334155;
  transition: border-color .16s, color .16s, transform .16s;
}
.tag-cloud a:hover { border-color: rgba(99, 102, 241, .55); color: var(--g-accent); text-decoration: none; transform: translateY(-1px); }
.tag-cloud b { color: var(--g-accent); font-weight: 700; font-size: 11.5px; }

/* ---------- 榜单左栏：把「今日精选」当海报标题写 ---------- */
.board-side {
  justify-content: center !important;
  padding: 30px 26px !important;
}
.board-side h2 {
  font-family: "Smiley Display", var(--g-display-fallback);
  font-size: 36px !important;
  font-weight: 400 !important;
  letter-spacing: .015em !important;
  line-height: 1.18 !important;
  margin: 0 !important;
  text-shadow: 0 2px 18px rgba(76, 29, 149, .28);
}
.board-side h2::after {
  content: ""; display: block; width: 30px; height: 2px;
  background: rgba(255, 255, 255, .6); border-radius: 2px; margin-top: 14px;
}
.board-side p {
  font-size: 13px !important; margin: 14px 0 0 !important;
  color: rgba(255, 255, 255, .86) !important; line-height: 1.7 !important;
  letter-spacing: .02em;
}
@media (max-width: 900px) { .board-side h2 { font-size: 30px !important; } }
@media (max-width: 560px) { .board-side h2 { font-size: 26px !important; } }
.board-controls { margin-top: 18px !important; }
.board-controls button {
  border-color: rgba(255, 255, 255, .45) !important;
  color: #fff !important; border-radius: 8px !important;
}
.board-controls button:hover { background: #fff !important; color: #7c3aed !important; }
.board-controls span { color: rgba(255, 255, 255, .8) !important; font-size: 11px !important; }

/* ---------- 整张卡片可点 ---------- */
.repo-row { position: relative; cursor: pointer; }
.repo-row .repo-title a { position: relative; }
.repo-row .repo-title a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.repo-row .repo-action { position: relative; z-index: 2; }

.cat-card { position: relative; cursor: pointer; }
.cat-head h2 a { position: relative; }
.cat-head h2 a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.cat-kids { position: relative; z-index: 2; }
.cat-kids a { position: relative; z-index: 2; }

/* 修正：铺满卡片的链接不能自己 position:relative，否则 ::after 只覆盖文字 */
.repo-row .repo-title a,
.cat-head h2 a { position: static !important; }
.repo-row .repo-title a::after,
.cat-head h2 a::after {
  content: ""; position: absolute !important;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1; border-radius: inherit;
}
/* 次级链接抬到遮罩之上，保证卡片里的标签/箭头仍可单独点 */
.cat-kids, .cat-kids a, .repo-row .repo-action { position: relative; z-index: 2; }

/* ---------- 收尾：基础皮肤里剩下的橙色/黄绿 ---------- */
/* 基础主题的主色是橙的，凡是还用 token 的地方一律换回玻璃紫 */
:root { --primary: #6366f1; --primary-hover: #4f46e5; }
.requests-lead h1 span,
.empty-state a,
.empty a { color: var(--g-accent) !important; }
.empty-sticker {
  background: rgba(99, 102, 241, .10) !important;
  color: #4f46e5 !important;
  box-shadow: inset 0 1px 0 #fff !important;
  border-radius: 12px !important;
}
.not-verified {
  background: rgba(245, 158, 11, .10) !important;
  border-color: rgba(245, 158, 11, .28) !important;
  color: #92400e !important;
}

/* 榜单卡右上角那圈原来是柠檬绿装饰，改成玻璃紫的淡环 */
.board::after {
  border-color: rgba(99, 102, 241, .10) !important;
  box-shadow: 0 0 0 37px rgba(99, 102, 241, .045), 0 0 0 74px rgba(99, 102, 241, .03) !important;
}

/* 榜单卡右上角那圈原来是柠檬绿装饰，改成玻璃紫的淡环 */
.board::after {
  border-color: rgba(99, 102, 241, .10) !important;
  box-shadow: 0 0 0 37px rgba(99, 102, 241, .045), 0 0 0 74px rgba(99, 102, 241, .03) !important;
}

/* ============================================================
   内链组件：项目标签 / 上一篇下一篇 / 相关区块「更多」
   标签只有全站篇数 >= 5 才生成为链接（见 lab_project_tags），
   不够量的渲染成不可点的灰药丸，避免造薄标签页。
   ============================================================ */
.project-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 4px;
}
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(99, 102, 241, .07);
  border: 1px solid rgba(99, 102, 241, .18);
  color: #4f46e5 !important;
  font-size: 13px; line-height: 1.2; text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.tag-pill b { font-size: 11px; font-weight: 600; opacity: .55; }
.tag-pill:hover { background: rgba(99, 102, 241, .13); border-color: rgba(99, 102, 241, .34); }
.tag-pill.off {
  color: #6b7280 !important; cursor: default;
  background: rgba(107, 114, 128, .06);
  border-color: rgba(107, 114, 128, .16);
}
.tag-pill.off:hover { background: rgba(107, 114, 128, .06); border-color: rgba(107, 114, 128, .16); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0 6px; }
.post-nav a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, .16);
  background: rgba(255, 255, 255, .62);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.post-nav a span { font-size: 11.5px; letter-spacing: .06em; color: #6366f1; }
.post-nav a b { font-size: 14px; font-weight: 600; line-height: 1.45; color: #1f2937; }
.post-nav a:hover { border-color: rgba(99, 102, 241, .34); background: #fff; }
.post-nav a.nx { text-align: right; align-items: flex-end; }
.post-nav a:only-child { grid-column: 1 / -1; }

.section-head .more { font-size: 12.5px; color: #6366f1; text-decoration: none; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.nx { text-align: left; align-items: flex-start; }
}

/* ============================================================
   v17：封面图 + 标题层级 + 手机端排版
   ============================================================ */

/* ---------- 列表卡片：封面压在标题上方 ---------- */
.repo-cover {
  display: block;
  margin: -18px -18px 4px;
  border-radius: calc(var(--g-radius) - 1px) calc(var(--g-radius) - 1px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b1020;
}
.repo-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.repo-row:hover .repo-cover img { transform: scale(1.03); }
.repo-cover.is-empty { display: none; }
.repo-cover span { display: grid; place-items: center; height: 100%; font: 800 30px/1 ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .5); background: linear-gradient(135deg, #312e81, #6d28d9); }

.repo-kicker {
  display: flex; align-items: center; gap: 8px;
  font: 600 11px/1.3 ui-monospace, Consolas, monospace;
  color: #8b8b94; letter-spacing: .02em;
}
.repo-kicker > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.repo-title a {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 16.5px; line-height: 1.45;
}
.repo-copy p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 4px 0 0;
}

/* ---------- 详情页：仓库名做小字，生成标题做 h1 ---------- */
.project-repo {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 0 10px;
  font: 600 12px/1.4 ui-monospace, Consolas, monospace; color: #8b8b94;
}
.project-repo b { font-size: 13px; color: #3f3f46; letter-spacing: 0; }
.project-ver { color: #6366f1; }
.project-head h1 { font-size: 33px; line-height: 1.32; margin: 0 0 10px; text-wrap: balance; }
.project-tagline { max-width: 66ch; line-height: 1.85; }
.project-cover {
  margin: 20px 0 24px;
  border-radius: var(--g-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--g-shadow);
  background: #0b1020;
}
.project-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* 步骤里的长命令不许把卡片顶破 */
.step > div { min-width: 0; }
.step pre { max-width: 100%; }
.step pre code { white-space: pre; }

/* ---------- 手机端：分类不再挤成一团 ---------- */
@media (max-width: 650px) {
  /* 侧栏那套「一级胶囊 + 二级缩进」在窄屏会变成一坨网格，
     手机上改成横向滑动的单行筛选条，二级分类收进「全部分类」页。 */
  .directory-rail {
    display: flex !important; flex-wrap: nowrap !important;
    align-items: center;
    overflow-x: auto; overflow-y: hidden;
    gap: 7px;
    padding: 0 0 10px !important;
    margin-bottom: 12px;
    background: transparent !important;
    border-radius: 0 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .directory-rail::-webkit-scrollbar { display: none; }
  .directory-rail .rail-label,
  .directory-rail .rail-rule,
  .directory-rail .rail-note,
  .directory-rail .rail-more,
  .directory-rail .rail-kid { display: none !important; }
  .directory-rail .rail-link {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 7px 13px !important;
    border: 1px solid rgba(99, 102, 241, .22) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    white-space: nowrap;
    gap: 8px;
  }
  .directory-rail .rail-link.current {
    background: rgba(99, 102, 241, .13) !important;
    border-color: rgba(99, 102, 241, .45) !important;
  }
  .directory-rail .rail-link b { display: none; }

  /* 卡片：手机上封面缩到 16:9 但内边距收小 */
  .repo-row { padding: 14px 14px 12px; }
  .repo-cover { margin: -14px -14px 2px; }
  .repo-title a { font-size: 15.5px; }

  /* 详情页 */
  .project-head h1 { font-size: 21px; line-height: 1.42; }
  .project-head .facts { gap: 6px 12px; font-size: 11.5px; }
  .project-tagline { font-size: 13.5px; line-height: 1.8; }
  .project-cover { margin: 14px 0 18px; border-radius: 14px; }
  .step pre { font-size: 11px; padding: 10px; }
  .step pre code { white-space: pre-wrap; word-break: break-word; }

  /* 列表头部「项目 / 描述」这种两列说明在手机上没意义 */
  .list-columns { display: none; }
  .list-toolbar { padding: 12px 14px; }
  .list-toolbar h2 { font-size: 16px; }
}

/* ---------- 桌面侧栏：两级分类（一级加粗、二级缩进） ---------- */
.directory-rail .rail-cat {
  margin-top: 4px;
  font-weight: 700;
  color: #1f2937;
}
.directory-rail .rail-cat > span { letter-spacing: -.01em; }
.directory-rail .rail-kid {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 8px 0 20px;
  padding: 5px 10px 5px 14px;
  border-radius: 8px;
  border-left: 1px solid rgba(15, 23, 42, .08);
  font-size: 12px; line-height: 1.6; color: #6b7280;
  text-decoration: none;
}
.directory-rail .rail-kid:hover { background: rgba(99, 102, 241, .08); color: #4f46e5; text-decoration: none; }
.directory-rail .rail-kid b { font: 600 10.5px/1 ui-monospace, Consolas, monospace; color: #9ca3af; }

/* 步骤序号：网格会把 28px 的序号拉到整行高，变成一根紫柱子 */
.step-no {
  align-self: start;
  height: 26px !important;
  min-height: 26px;
  line-height: 26px !important;
  padding: 0 !important;
  font-size: 11px !important;
  border-radius: 9px !important;
}

@media (max-width: 650px) {
  /* 手机上多给一行描述 */
  .repo-copy p { -webkit-line-clamp: 3; }
}

/* ---------- 今日精选榜单：名次在浅底上看不见，且右侧大片空白 ---------- */
.board-slide { align-items: center; gap: 16px; padding: 18px 20px; min-height: 0 !important; }
.board-number {
  width: auto !important; margin: 0 !important; align-self: flex-start !important;
  color: #6366f1 !important; opacity: .42; font-size: 30px !important; line-height: 1;
}
.board-cover { flex: none; width: 180px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1020; }
.board-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.board-copy { max-width: none !important; padding: 0 !important; flex: 1 1 auto; min-width: 0; }
.board-repo { font: 600 11px/1.4 ui-monospace, Consolas, monospace; color: #8b8b94; margin: 0 0 4px; }
.board-copy h3 { font-size: 19px; line-height: 1.4; margin: 0 0 6px; }
.board-copy h3 a { font-size: inherit; }
.board-open { position: static !important; align-self: center; flex: none; }
@media (max-width: 650px) {
  .board-slide { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .board-cover { width: 116px; }
  .board-number { font-size: 20px !important; }
  .board-copy h3 { font-size: 16px; }
  .board-copy p { margin-bottom: 4px; }
  .board-open { margin-top: 2px; }
}

/* 详情页封面别铺满整栏：1360 宽下 900px 的 16:9 会压掉首屏内容 */
.project-cover { max-width: 680px; }
@media (max-width: 650px) { .project-cover { max-width: none; } }
