/* docs.css — 文档知识库 */
.docs-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.docs-side {
  position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow: auto;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
}
.tree ul { list-style: none; margin: 0; padding-left: 1rem; border-left: 1px dashed var(--border); }
.tree > ul { padding-left: 0; border-left: none; }
.tree a { display: block; padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 0.92rem; }
.tree a:hover { background: var(--bg-mute); text-decoration: none; color: var(--text); }
.tree a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.tree .node-title { display: block; padding: 0.35rem 0.5rem; font-weight: 700; color: var(--text); }
.tree .node-title::before { content: ''; }

.docs-main > .card { padding: 1.6rem; }
.breadcrumb { font-size: 0.9rem; color: var(--text-mute); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text-soft); }
.article-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.article-meta { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 1.4rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.pager a { color: var(--text-soft); }
.pager .disabled { color: var(--text-mute); pointer-events: none; }
.star-docs { margin-bottom: 1.5rem; }

@media (max-width: 760px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; max-height: none; order: 2; }
}
