.docs-page { background: #fff; }
.docs-label { margin-right: auto; margin-left: 16px; padding-left: 16px; color: var(--muted); border-left: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.docs-top-nav { margin-left: 28px; }

.docs-hero { padding: 126px 0 50px; background: #f5f9fd; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 34px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue); }
.docs-hero h1 { max-width: 900px; margin: 0; font-size: 48px; line-height: 1.15; }
.docs-hero > .container > p:not(.eyebrow) { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.docs-hero-actions { display: flex; gap: 12px; margin-top: 27px; }
.doc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin: 42px 0 0; border-top: 1px solid var(--line); }
.doc-facts div { padding: 19px 28px 0 0; }
.doc-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.doc-facts dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.doc-facts code { color: var(--blue-dark); }

.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 850px); justify-content: space-between; gap: 70px; padding-top: 62px; padding-bottom: 96px; }
.docs-sidebar { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; max-height: calc(100vh - 124px); padding-right: 24px; overflow-y: auto; border-right: 1px solid var(--line); font-size: 12px; }
.docs-sidebar strong { margin: 18px 0 7px; color: var(--ink); font-size: 11px; text-transform: uppercase; }
.docs-sidebar strong:first-child { margin-top: 0; }
.docs-sidebar a { padding: 5px 0; color: var(--muted); transition: color .2s; }
.docs-sidebar a:hover { color: var(--blue); }
.docs-article { min-width: 0; }
.doc-section { padding: 0 0 76px; scroll-margin-top: 94px; }
.doc-section + .doc-section { padding-top: 74px; border-top: 1px solid var(--line); }
.doc-kicker { margin: 0 0 11px; color: var(--blue-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.docs-article h2 { margin: 0 0 18px; font-size: 34px; line-height: 1.25; }
.docs-article h3 { margin: 30px 0 12px; font-size: 18px; line-height: 1.4; }
.docs-article p { color: var(--ink-soft); }
.doc-lead { max-width: 780px; font-size: 17px; }
.docs-article code { font-family: Consolas, "Courier New", monospace; }
.docs-article p code, .docs-article li code, .doc-table code { padding: 2px 5px; color: #145cb8; background: #edf5fd; border-radius: 3px; font-size: .9em; }

.steps { margin: 34px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue-dark); background: var(--blue-soft); border: 1px solid #cce1f7; border-radius: 50%; font-size: 12px; font-weight: 800; }
.steps strong { display: block; margin-top: 3px; font-size: 15px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.callout, .warning { margin-top: 27px; padding: 20px 22px; background: #f4f9ff; border-left: 3px solid var(--blue); }
.warning { background: #fff9eb; border-left-color: var(--yellow); }
.callout strong, .warning strong { font-size: 13px; }
.callout p, .warning p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.doc-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.doc-grid > div { min-height: 205px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-grid h3 { margin: 10px 0 8px; font-size: 16px; }
.doc-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.mini-index { color: var(--teal); font: 800 11px Consolas, monospace; }
.table-scroll { margin: 27px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.doc-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; font-size: 12px; }
.doc-table th, .doc-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { color: var(--ink); background: #f6f9fc; font-size: 11px; }
.doc-table tbody th { color: var(--ink); white-space: nowrap; }
.doc-table tbody td { color: var(--muted); }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.check-list { margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 15px 0 15px 28px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.check-list strong { color: var(--ink); }

.endpoint-line, .endpoint-title { display: flex; align-items: center; gap: 13px; margin: 22px 0; }
.endpoint-line { padding: 14px 16px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 5px; }
.endpoint-line code { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.endpoint-title h2 { margin: 0; font-family: Consolas, monospace; font-size: 28px; }
.method { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 48px; height: 24px; padding: 0 7px; color: #fff; border-radius: 3px; font: 800 10px Consolas, monospace; }
.method.get { background: #087d72; }
.method.post { background: var(--blue-dark); }
.endpoint-list { margin-top: 28px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.endpoint-list a { display: grid; grid-template-columns: 52px 220px 1fr; align-items: center; gap: 13px; padding: 15px 17px; border-bottom: 1px solid var(--line); transition: background .2s; }
.endpoint-list a:last-child { border-bottom: 0; }
.endpoint-list a:hover { background: #f6f9fc; }
.endpoint-list code { color: var(--ink); font-size: 13px; font-weight: 700; }
.endpoint-list small { color: var(--muted); }

.doc-code { margin: 24px 0; overflow: hidden; background: #0b192b; border: 1px solid #2a425d; border-radius: 6px; }
.doc-code-head { min-height: 43px; padding: 8px 13px 8px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #aebed0; background: #172a40; border-bottom: 1px solid #2a425d; font: 11px Consolas, monospace; }
.doc-code-head button { padding: 5px 9px; color: #c4d3e3; background: transparent; border: 1px solid #3c5672; border-radius: 3px; font: 10px "Microsoft YaHei", sans-serif; cursor: pointer; }
.doc-code-head button:hover { color: #fff; border-color: #77b9ff; }
.doc-code pre { margin: 0; padding: 21px; overflow-x: auto; color: #d1dceb; font: 12px/1.75 Consolas, "Courier New", monospace; }
.compact-code pre { padding-block: 17px; }
.response-example { display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 15px; padding: 13px 16px; color: #446178; background: #eef8f6; border: 1px solid #cbece5; border-radius: 5px; font-size: 11px; }
.response-example strong { color: #087d72; }
.response-example code { overflow-wrap: anywhere; white-space: normal; }
.fine-print { color: var(--muted) !important; font-size: 12px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-grid > div { padding: 17px 19px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 5px; }
.status-grid strong { color: #087d72; font: 800 12px Consolas, monospace; }
.status-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.docs-article details { border-bottom: 1px solid var(--line); }
.docs-article details:first-of-type { border-top: 1px solid var(--line); }
.docs-article summary { padding: 18px 35px 18px 0; color: var(--ink); font-size: 14px; font-weight: 750; cursor: pointer; }
.docs-article details > p { margin: -3px 30px 18px 0; color: var(--muted); font-size: 13px; }

.docs-next { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px; background: #f4f9ff; border: 1px solid #d2e4f7; }
.docs-next h2 { margin-bottom: 7px; font-size: 24px; }
.docs-next p { margin: 0; color: var(--muted); font-size: 13px; }
.docs-next .button { flex: 0 0 auto; }
.docs-footer { padding-top: 23px; }
.docs-footer a:hover { color: #fff; }

@media (max-width: 1040px) {
  .docs-top-nav a:nth-child(2), .docs-top-nav a:nth-child(3) { display: none; }
  .docs-top-nav a:nth-child(5) { display: block; }
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 38px; }
}

@media (max-width: 760px) {
  .docs-label { display: none; }
  .docs-top-nav { margin-left: 0; }
  .docs-top-nav a:nth-child(2), .docs-top-nav a:nth-child(3) { display: block; }
  .docs-hero { padding: 96px 0 37px; }
  .breadcrumbs { margin-bottom: 25px; }
  .docs-hero h1 { font-size: 36px; }
  .docs-hero > .container > p:not(.eyebrow) { font-size: 15px; }
  .docs-hero-actions { display: grid; }
  .doc-facts { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .doc-facts div { padding-top: 13px; }
  .docs-layout { display: block; padding-top: 44px; padding-bottom: 70px; }
  .docs-sidebar { display: none; }
  .doc-section { padding-bottom: 56px; }
  .doc-section + .doc-section { padding-top: 54px; }
  .docs-article h2 { font-size: 28px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-grid > div { min-height: 0; }
  .endpoint-list a { grid-template-columns: 52px 1fr; }
  .endpoint-list small { grid-column: 2; }
  .status-grid { grid-template-columns: 1fr; }
  .response-example { grid-template-columns: 1fr; gap: 5px; }
  .doc-code pre { padding: 17px; font-size: 10px; }
  .docs-next { align-items: stretch; flex-direction: column; padding: 25px; }
  .docs-next .button { width: 100%; }
}

@media (max-width: 400px) {
  .docs-hero h1 { font-size: 32px; }
  .steps li { grid-template-columns: 36px 1fr; gap: 11px; }
  .endpoint-title h2 { font-size: 23px; }
}
