.docs-body {
  background: var(--page);
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.docs-header .nav-shell {
  height: 68px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.docs-header .mobile-menu {
  background: var(--glass-strong);
}

.docs-layout {
  width: min(100%, 1480px);
  min-height: calc(100dvh - 68px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 210px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100dvh - 68px);
  overflow-y: auto;
}

.docs-sidebar {
  padding: 36px 26px;
  border-right: 1px solid var(--line);
}

.docs-sidebar h2 {
  margin-bottom: 25px;
  font-size: 17px;
}

.docs-group {
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.docs-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.docs-group strong {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
}

.docs-group a {
  display: block;
  padding: 5px 0;
  color: var(--text-soft);
  font-size: 12px;
}

.docs-group a:hover,
.docs-group a[aria-current="page"] {
  color: var(--accent-hover);
}

.docs-main {
  min-width: 0;
  padding: 66px 58px 110px;
}

.docs-article {
  max-width: 880px;
  margin-inline: auto;
}

.docs-article > header {
  margin-bottom: 54px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.docs-article > header > p:first-child {
  margin-bottom: 12px;
  color: var(--accent-hover);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.docs-article h1 {
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1.14;
}

.docs-article > header > p:last-of-type {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.deploy-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  border-block: 1px solid var(--line);
}

.deploy-facts > div {
  min-width: 0;
  padding: 16px 18px 16px 0;
}

.deploy-facts > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.deploy-facts span,
.credential-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-faint);
  font-size: 10px;
}

.deploy-facts strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.docs-section {
  margin-bottom: 64px;
  scroll-margin-top: 94px;
}

.docs-section h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.25;
}

.docs-section h3 {
  margin: 34px 0 12px;
  font-size: 19px;
}

.step-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.step-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: var(--radius);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.step-heading h2 {
  margin: 0 0 5px;
}

.step-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.docs-section > p,
.docs-section li {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.docs-section ul,
.docs-section ol {
  padding-left: 22px;
}

.docs-section li + li {
  margin-top: 8px;
}

.docs-article code:not(pre code) {
  padding: 2px 6px;
  color: color-mix(in srgb, var(--accent-hover) 88%, var(--text));
  background: var(--accent-soft);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.code-block {
  overflow: hidden;
  margin: 20px 0;
  color: #e7ecf3;
  background: #080a0e;
  border: 1px solid #303847;
  border-radius: var(--radius);
}

.code-head {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #8f9bad;
  background: #11151b;
  border-bottom: 1px solid #2c3440;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.code-head button {
  padding: 4px 8px;
  color: #dce4ef;
  background: #202631;
  border: 1px solid #394353;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}

.code-head button:active {
  transform: translateY(1px);
}

.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
}

.compact-code {
  max-width: 560px;
}

.primary-command {
  border-color: color-mix(in srgb, var(--accent) 58%, #303847);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 12%, transparent);
}

.image-pull-block {
  margin: 0;
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.image-pull-block pre {
  font-size: 10px;
  line-height: 1.9;
}

.code-block .prompt {
  color: #78a0ff;
}

.note,
.warning,
.source-note {
  margin: 22px 0;
  padding: 16px 18px;
  color: var(--text-soft);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
}

.warning {
  color: var(--text);
  background: color-mix(in srgb, #d98a3d 13%, var(--surface));
  border-left-color: #d98a3d;
}

.requirement-list {
  margin: 22px 0;
  border-top: 1px solid var(--line-strong);
}

.requirement-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1.45fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.requirement-list strong {
  font-size: 13px;
}

.requirement-list span {
  color: var(--text-soft);
  font-size: 13px;
}

.command-disclosure,
.parameter-disclosure {
  margin: 22px 0;
}

.command-disclosure {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.command-disclosure > summary,
.parameter-disclosure > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.command-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 16px;
  background: var(--surface);
  list-style: none;
}

.command-disclosure > summary::-webkit-details-marker {
  display: none;
}

.command-disclosure > summary small {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 500;
}

.command-disclosure:not([open]) > summary small::before {
  content: "点击展开";
}

.command-disclosure:not([open]) > summary small {
  font-size: 0;
}

.command-disclosure:not([open]) > summary small::before {
  font-size: 10px;
}

.parameter-disclosure > summary {
  color: var(--accent-hover);
}

.command-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 4px;
}

.command-signature code,
.command-signature span {
  padding: 7px 10px;
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.command-signature code {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.command-signature span {
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}

.command-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.command-pair .code-block {
  min-width: 0;
}

.credential-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.credential-panel > div {
  padding: 16px 18px;
  background: var(--surface);
}

.credential-panel strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
}

.source-note p {
  margin: 5px 0 0;
}

.docs-image {
  overflow: hidden;
  margin: 24px 0;
  background: #eef3f8;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.docs-image img {
  width: 100%;
}

.capability-catalog,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.capability-catalog article,
.service-grid article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.capability-catalog strong,
.service-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.capability-catalog span,
.service-grid span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--accent-hover);
  font-size: 11px;
}

.capability-catalog p,
.service-grid p {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.docs-gallery {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.docs-gallery.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-gallery.three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-gallery.three img:first-child {
  grid-column: 1 / -1;
}

.docs-gallery img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: top left;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.feature-pairs article {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-pairs article:nth-child(odd) {
  margin-right: 24px;
  border-right: 1px solid var(--line);
}

.feature-pairs strong {
  font-size: 14px;
}

.feature-pairs p {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.parameter-grid > div,
.access-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.parameter-grid strong,
.access-panel strong {
  font-size: 11px;
}

.parameter-grid code,
.access-panel code {
  white-space: nowrap;
}

.access-panel {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.docs-toc {
  padding: 38px 24px;
  border-left: 1px solid var(--line);
}

.docs-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
}

.docs-toc a {
  display: block;
  padding: 5px 0;
  color: var(--text-faint);
  font-size: 11px;
}

.docs-toc a:hover {
  color: var(--accent-hover);
}

.release-list {
  position: relative;
}

.release-entry {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 34px;
  padding-top: 38px;
  border-top: 1px solid var(--line-strong);
}

.release-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.release-date {
  position: sticky;
  top: 100px;
  align-self: start;
  color: var(--text-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.release-date strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-hover);
  font-size: 13px;
}

.release-content {
  min-width: 0;
}

.release-content > h2 {
  margin-bottom: 8px;
}

.release-summary {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.release-group {
  margin-top: 24px;
}

.release-group h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.release-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-group li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--line);
}

.release-group li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.release-source {
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 11px;
}

@media (max-width: 1120px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-main { padding-inline: 46px; }
}

@media (max-width: 760px) {
  .docs-header { height: 64px; }
  .docs-header .nav-shell { height: 64px; }
  .docs-layout { display: block; }
  .docs-sidebar { display: none; }
  .docs-main { padding: 44px 16px 80px; }
  .docs-article > header { margin-bottom: 42px; padding-bottom: 28px; }
  .docs-article h1 { font-size: 35px; }
  .deploy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deploy-facts > div { padding: 13px 12px 13px 0; }
  .deploy-facts > div + div { padding-left: 12px; }
  .deploy-facts > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .deploy-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .docs-section { margin-bottom: 52px; }
  .docs-section h2 { font-size: 24px; }
  .step-heading { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .step-heading > span { width: 36px; height: 36px; }
  .requirement-list > div { grid-template-columns: 1fr; gap: 5px; }
  .command-pair,
  .credential-panel,
  .capability-catalog,
  .service-grid,
  .docs-gallery.two,
  .docs-gallery.three,
  .feature-pairs,
  .parameter-grid { grid-template-columns: 1fr; }
  .docs-gallery.three img:first-child { grid-column: 1; }
  .feature-pairs article,
  .feature-pairs article:nth-child(odd) { margin-right: 0; padding-right: 0; border-right: 0; }
  .docs-gallery img { min-height: 0; aspect-ratio: 1.55 / 1; }
  .code-block pre { padding: 16px; font-size: 10px; }
  .image-pull-block pre { font-size: 9px; }
  .access-panel > div { display: block; }
  .access-panel code { display: block; width: max-content; margin-top: 7px; white-space: normal; overflow-wrap: anywhere; }
  .release-entry { grid-template-columns: 1fr; gap: 12px; padding-top: 30px; }
  .release-date { position: static; }
  .release-date strong { display: inline; margin-right: 8px; }
  .release-group li { padding-block: 9px; }
}

@media (prefers-reduced-transparency: reduce) {
  .docs-header {
    background: var(--page);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
