/* ============================================================
   码巢 CodeNest 官网样式（亮色主题）
   ------------------------------------------------------------
   设计约定：
   1. 页面底色淡灰、卡片纯白，靠「白卡 + 细边框 + 轻阴影」分层，
      不用大面积深色块，也不用满屏渐变。
   2. 主色只作点缀：琥珀色用于按钮底、图标底、强调文字。
      白底上的正文强调色统一用 --accent-ink（深琥珀），
      直接用 --accent 在白底上对比度不够。
   3. 首页不用大 hero：首屏是紧凑的介绍块（文案 + 关键信息面板），
      高度控制在普通段落量级。
   ============================================================ */

:root {
    --bg: #f6f8fb;
    --bg-soft: #eef2f7;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e3e8ef;
    --border-soft: #edf1f6;
    --text: #0f172a;
    --text-muted: #51607a;
    --text-dim: #8794a8;

    /* 与 App 内保持同一套主色：App 用 #fbbf24。
       accent 用于「面」：按钮底、图标底；
       accent-ink 用于「字」：白底上的链接与强调文字。 */
    --accent: #fbbf24;
    --accent-strong: #f59e0b;
    --accent-ink: #b45309;
    --accent-rgb: 251, 191, 36;
    --accent-soft: rgba(var(--accent-rgb), 0.16);
    --on-accent: #1c1917;

    --green: #16a34a;

    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-ink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

.wrap-narrow {
    max-width: 820px;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--text);
    font-weight: 700;
    font-size: 16.5px;
    letter-spacing: 0.2px;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: block;
    flex: none;
}

.brand-name em {
    font-style: normal;
    color: var(--text-dim);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    min-width: 0;
}

.nav a {
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-2);
    text-decoration: none;
}

.nav a.is-active {
    color: var(--accent-ink);
    background: var(--accent-soft);
    font-weight: 600;
}

.header-cta {
    flex: none;
    margin-left: 8px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 12px 24px -14px rgba(var(--accent-rgb), 0.9);
}

.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: #d3dbe6;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 14px;
}

/* ---------- intro（紧凑首屏，非大 hero） ---------- */
.intro {
    padding: 52px 0 46px;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 44px;
    align-items: center;
}

.intro h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.25;
    margin: 16px 0 14px;
    letter-spacing: -0.4px;
}

.intro h1 em {
    font-style: normal;
    color: var(--accent-ink);
}

.intro p.lead {
    color: var(--text-muted);
    font-size: 16.5px;
    margin: 0 0 26px;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.intro-actions.center {
    justify-content: center;
    margin-top: 22px;
}

.intro-meta {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 13.5px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

/* 首屏右侧的关键信息面板 */
.intro-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow);
}

.panel-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
}

.panel-item + .panel-item {
    border-top: 1px solid var(--border-soft);
}

.panel-item .card-icon {
    margin: 0;
    flex: none;
}

.panel-item b {
    display: block;
    font-size: 15px;
    line-height: 1.45;
}

.panel-item span {
    color: var(--text-muted);
    font-size: 13.5px;
}

/* ---------- sections ---------- */
.section {
    padding: 58px 0;
    border-top: 1px solid var(--border-soft);
}

.section-alt {
    background: var(--surface);
}

.section-head {
    margin-bottom: 28px;
    max-width: 720px;
}

.section-head h2 {
    font-size: 24px;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 15.5px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-tight {
    gap: 12px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s;
}

.section-alt .card {
    box-shadow: none;
}

.card:hover {
    border-color: #d8e0eb;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
}

.card code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 5px;
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 18px;
    margin-bottom: 14px;
}

/* ---------- feature list ---------- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 15px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

/* ---------- 收尾 CTA ---------- */
.cta-band {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cta-band h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.cta-band p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ---------- download page ---------- */
.dl-page {
    padding-top: 40px;
    padding-bottom: 64px;
}

.dl-page .dl-actions {
    margin-top: 22px;
}

.dl-date {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-top: 4px;
}

.dl-qr-wrap {
    text-align: center;
}

.dl-qr-hint {
    color: var(--text-dim);
    font-size: 12.5px;
    margin-top: 6px;
}

.dl-steps {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 8px 0 0;
    padding-left: 20px;
}

.dl-sha {
    font-family: var(--mono);
    font-size: 12.5px;
    word-break: break-all;
}

.dl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.dl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dl-version {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dl-version strong {
    font-size: 24px;
}

.dl-version span {
    color: var(--text-dim);
    font-size: 13.5px;
}

.dl-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 20px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 14px;
}

.dl-facts b {
    color: var(--text);
    font-weight: 600;
}

.qr {
    width: 132px;
    height: 132px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
}

.note {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* ---------- docs ---------- */
.docs-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.docs-layout > div {
    min-width: 0;
}

.docs-side {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding-right: 6px;
}

.docs-side h4 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    margin: 22px 0 8px;
}

.docs-search {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 10px;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-dim);
}

.docs-search:focus-within {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.docs-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    color: var(--text);
    font-size: 14px;
}

.docs-search-input::-webkit-search-cancel-button {
    display: none;
}

.docs-search-clear {
    flex: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.docs-search-empty {
    margin: 10px 0;
    padding: 0 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.docs-search-hint {
    margin: 6px 0 0;
    padding: 0 10px;
}

/* ---------- 文档全文搜索结果 ---------- */
.docs-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-result {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.docs-result:hover {
    border-color: var(--accent-ink);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.docs-result-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.docs-result-head strong {
    font-size: 15px;
    color: var(--accent-ink);
}

.docs-result-cat,
.docs-result-count {
    font-size: 12px;
    color: var(--text-dim);
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface-2, rgba(15, 23, 42, 0.04));
}

.docs-result-snippet {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-dim);
}

.docs-result-snippet mark,
.prose mark {
    background: rgba(245, 158, 11, 0.28);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.docs-group {
    margin-top: 18px;
}

.docs-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    cursor: pointer;
    list-style: none;
}

.docs-group-head::-webkit-details-marker {
    display: none;
}

.docs-group-head::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s;
}

.docs-group:not([open]) .docs-group-head::before {
    transform: rotate(-45deg);
}

.docs-group-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 0 7px;
}

.docs-side h4:first-child {
    margin-top: 0;
}

.docs-side ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.docs-side a {
    display: block;
    padding: 6px 10px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 14.5px;
}

.docs-side a:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.docs-side a.is-active {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 600;
}

.doc-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s;
}

.doc-card:hover {
    border-color: #d8e0eb;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.doc-card strong {
    display: block;
    margin-bottom: 6px;
}

.doc-card span {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- markdown ---------- */
.prose {
    font-size: 16px;
    line-height: 1.85;
    max-width: 820px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    line-height: 1.3;
    margin: 34px 0 12px;
}

.prose h1 {
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.prose h2 {
    font-size: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.prose h3 {
    font-size: 18px;
}

.prose p,
.prose ul,
.prose ol {
    color: #33415c;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    color: #0f172a;
}

/* 代码块保持深底浅字：亮色页面里最易读的写法，
   同时必须显式给文字颜色，否则会继承页面深色正文而看不见。 */
.prose pre {
    background: #0f172a;
    color: #e6edf3;
    border: 1px solid #1e293b;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}

.prose blockquote {
    margin: 18px 0;
    padding: 2px 18px;
    border-left: 3px solid var(--accent);
    background: #fffbeb;
    color: #6b5327;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14.5px;
}

.prose th,
.prose td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    text-align: left;
}

.prose th {
    background: var(--surface-2);
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

.prose-tight {
    font-size: 14px;
}

.prose-md {
    font-size: 15px;
}

/* ---------- changelog ---------- */
.release {
    border-left: 2px solid var(--border);
    padding: 0 0 30px 24px;
    position: relative;
}

.release::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}

.release:last-child {
    border-left-color: transparent;
}

.release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.release-head strong {
    font-size: 19px;
}

.release-head time {
    color: var(--text-dim);
    font-size: 13.5px;
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 30px 0;
    margin-top: 30px;
    color: var(--text-dim);
    font-size: 14px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.site-footer nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--text-muted);
}

/* ---------- 通用工具类 ---------- */
.page-body {
    padding-top: 38px;
    padding-bottom: 64px;
}

.muted {
    color: var(--text-muted);
}

.dim {
    color: var(--text-dim);
}

.small {
    font-size: 14px;
}

.center {
    text-align: center;
}

.flush {
    margin-top: 0;
}

p.flush {
    margin: 0;
}

/* ---------- misc ---------- */
.empty {
    padding: 40px 22px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    background: var(--surface);
}

.pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12.5px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.page-head {
    padding: 40px 0 24px;
}

.page-head-flush {
    padding-top: 0;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.3px;
}

.page-head p {
    margin: 0;
    color: var(--text-muted);
}

.docs-group-title {
    font-size: 19px;
    margin: 26px 0 14px;
}

@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 窄屏压缩首屏：让「介绍 + 关键信息」大致落在一屏内，避免退化成大 hero */
    .intro {
        padding: 28px 0 24px;
    }

    .intro h1 {
        margin: 14px 0 10px;
    }

    .intro p.lead {
        font-size: 15.5px;
        margin-bottom: 20px;
    }

    .intro-meta {
        margin-top: 12px;
    }

    .panel-item {
        padding: 10px 12px;
        gap: 11px;
    }

    .panel-item b {
        font-size: 14.5px;
    }

    .panel-item span {
        font-size: 13px;
    }
}

@media (max-width: 860px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .docs-side {
        position: static;
        min-width: 0;
        max-height: none;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
        padding: 16px;
    }

    .section {
        padding: 44px 0;
    }
}

/* 窄屏：导航单行横向滚动，避免换行把 60px 的头部撑高；
   下载按钮收进首屏的按钮组，头部只保留导航。 */
@media (max-width: 720px) {
    .site-header .wrap {
        gap: 10px;
    }

    .nav {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 7px 10px;
        font-size: 14px;
    }

    .header-cta {
        display: none;
    }

    .brand-name em {
        display: none;
    }

    /* 文档正文适配窄屏：放宽行距、表格横向滚动，避免整页被撑宽 */
    .docs-layout {
        gap: 20px;
    }

    .prose {
        font-size: 15.5px;
        line-height: 1.8;
    }

    .prose h1 {
        font-size: 23px;
    }

    .prose h2 {
        font-size: 19px;
    }

    .prose h3 {
        font-size: 16.5px;
    }

    .prose pre {
        padding: 14px;
        font-size: 12.5px;
    }

    .prose table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 13px;
    }

    .prose th,
    .prose td {
        padding: 7px 10px;
    }

    /* 侧栏在窄屏收成一行横向滚动的胶囊导航，避免长列表占据首屏 */
    .docs-side {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        min-width: 0;
        padding: 10px 12px;
    }

    /* 搜索框在窄屏独占一行，排在胶囊上方 */
    .docs-search {
        flex: 1 0 100%;
        margin-bottom: 2px;
    }

    .docs-search-empty {
        flex: 1 0 100%;
        margin: 0;
        padding: 0 4px;
    }

    /* 胶囊形态下不要折叠：分组标题只作为小标签，条目直接铺开 */
    .docs-group {
        display: contents;
    }

    .docs-group-head {
        margin: 0;
        padding: 0 4px 0 0;
        flex: none;
        font-size: 12px;
        pointer-events: none;
    }

    .docs-group-head::before {
        display: none;
    }

    .docs-group-count {
        display: none;
    }

    .docs-group > ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        flex: none;
    }

    .docs-side a {
        display: inline-block;
        padding: 6px 12px;
        border: 1px solid var(--border);
        border-radius: 999px;
        font-size: 13.5px;
    }

    .docs-side a.is-active {
        border-color: transparent;
    }
}
