html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: "Rubik", "Segoe UI", Roboto, Arial, "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
}
:root {
  --header-h: 48px;
  --sidebar-w: 260px;
  --content-w: 860px;
  --gap: 32px;
  --page-pad: 24px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e6e6e6;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.brand .title {
  font-size: 16px;
  font-weight: 700;
}
.header .actions a {
  font-size: 14px;
  font-weight: 700;
  color: #0077ff;
  text-decoration: none;
}
.container {
  max-width: none;
  margin: 0;
  padding: calc(var(--header-h) + 60px) 24px 40px;
  box-sizing: border-box;
}
/* 固定 docs 页导航在顶部 */
.titlebar.sticky {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  margin-top: 0;
  padding: 0 24px;
  background: transparent;
}
.layout {
  display: block;
  max-width: var(--content-w);
  margin: 0 auto;
}
.sidebar {
  position: fixed;
  top: calc(var(--header-h) + 40px);
  left: 24px;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  overflow: auto;
  border-right: 1px solid #eee;
  padding-right: 16px;
}
.doc-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-nav .group {
  margin: 18px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #7a7a7a;
  letter-spacing: 0.04em;
}
.doc-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 14px;
}
.doc-nav a:hover {
  background: rgba(0, 0, 0, 0.06);
}
.doc-nav a.active {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}
.content {
  min-height: 60vh;
  max-width: var(--content-w);
  margin: 0 auto;
  justify-self: center;
}
.doc-title {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
}
.doc-subtitle {
  font-size: 16px;
  color: #6b6b6b;
  margin: 0 0 24px;
}
.section {
  margin: 28px 0 120px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
.section p {
  margin: 8px 0;
  line-height: 1.7;
}
.section ul {
  margin: 8px 0 0 0;
  padding: 0 0 0 20px;
}
.section li {
  margin: 6px 0;
  line-height: 1.7;
}
.card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 220px;
  }
}
@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
  }
}
