@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/noto-sans-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #17181d;
  --nav: #4f5665;
  --muted: #697180;
  --line: #e8ebf0;
  --soft: #f6f7fa;
  --paper: #fff;
  --accent: #1f32d6;
  --accent-soft: #eef0ff;
  --code: #151923;
  --code-text: #e5eaf4;
  --code-muted: #a0acbf;
  --success: #167653;
  --success-soft: #edf8f1;
  --warning: #94600a;
  --warning-soft: #fff7e8;
  --danger: #ba4141;
  --header-height: 117px;
  --sidebar-width: 273px;
  --font-body: "Noto Sans SC", "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans SC", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--font-body);
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { color: var(--ink); background: #dfe3ff; }
.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 8px 16px; background: white; border: 1px solid var(--accent); border-radius: 6px; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.topbar { max-width: 1600px; height: 72px; margin: auto; display: flex; align-items: center; gap: 24px; padding: 0 32px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: white; font: 600 17px/30px "Inter", sans-serif; }
.brand-name { font-size: 17px; font-weight: 500; line-height: 28px; }
.doc-version { flex: none; border-radius: 4px; background: var(--soft); color: var(--muted); padding: 3px 6px; margin-left: -14px; font: 600 11px/16px "Inter", sans-serif; }
.search-trigger { display: flex; align-items: center; gap: 10px; width: 400px; height: 40px; margin-left: 80px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); text-align: left; font-size: 13px; }
.search-trigger:hover { border-color: #c7cce1; }
.search-trigger img.search-icon { width: 17px; height: 17px; flex: none; margin: 0 1.5px; }
.search-trigger span { flex: 1; }
kbd { font: 400 11px/19px var(--font-mono); color: var(--muted); white-space: nowrap; }
.download-spec { margin-left: auto; white-space: nowrap; font-size: 14px; font-weight: 500; }
.top-tabs { display: flex; height: 44px; max-width: 1600px; gap: 16px; margin: auto; padding: 0 32px; overflow-x: auto; }
.top-tabs a { display: flex; position: relative; align-items: center; justify-content: center; min-width: 104px; padding: 0 16px; color: var(--nav); font-size: 14px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.top-tabs a:hover { color: var(--accent); text-decoration: none; }
.top-tabs a[aria-current="page"] { color: var(--accent); }
.top-tabs a[aria-current="page"]::after { position: absolute; content: ""; height: 2px; background: var(--accent); bottom: 0; left: 16px; right: 16px; }
.menu-button { display: none; }
.nav-backdrop { display: none; }
.site-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); max-width: 1600px; margin: 0 auto; min-height: calc(100vh - var(--header-height)); }
.sidebar { position: sticky; top: var(--header-height); align-self: start; width: var(--sidebar-width); height: calc(100vh - var(--header-height)); overflow: auto; overscroll-behavior: contain; padding: 32px 24px 40px; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #d9dde7 transparent; }
.nav-group { margin-bottom: 32px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group-title { color: var(--ink); font-size: 16px; line-height: 26px; font-weight: 600; margin: 0 12px 10px; }
.nav-link { display: block; padding: 9px 12px; min-height: 44px; border-radius: 6px; font-size: 15px; line-height: 26px; color: var(--nav); margin: 4px 0; overflow-wrap: anywhere; }
.nav-group-title ~ .nav-link { margin-left: 12px; }
.nav-link:hover { color: var(--ink); text-decoration: none; background: var(--soft); }
.nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.integration-page .nav-link[aria-current="location"] { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.nav-link .op-path { display: none; }
.nav-link .verb { margin-right: 5px; }
main { min-width: 0; padding: 40px 39px 56px; }
.guide-page main { padding-right: 47px; padding-left: 47px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 736px) minmax(144px, 208px); gap: 64px; align-items: start; }
.guide-article, .api-article { min-width: 0; }
.api-layout { display: grid; grid-template-columns: minmax(0, 1.296fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.page-header { margin-bottom: 28px; }
.eyebrow { font-size: 13px; line-height: 22px; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: 32px; line-height: 44px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 12px; overflow-wrap: anywhere; }
.lead { margin: 0; color: var(--nav); font-size: 15px; line-height: 27px; }
h2 { margin: 40px 0 16px; font-size: 22px; line-height: 34px; font-weight: 500; letter-spacing: -.02em; scroll-margin-top: 0; }
h3 { margin: 28px 0 12px; font-size: 17px; line-height: 28px; font-weight: 500; scroll-margin-top: 0; }
h4 { margin: 20px 0 10px; font-size: 15px; font-weight: 500; }
p { margin: 0 0 16px; color: var(--nav); overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
li { color: var(--nav); margin: 6px 0; overflow-wrap: anywhere; }
ul, ol { padding-left: 24px; margin: 16px 0 24px; }
strong { color: var(--ink); font-weight: 500; }
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.section > h2:first-child { margin-top: 0; }
.section + .section { margin-top: 32px; }
.anchor-link { opacity: 0; font-size: .8em; padding-left: 8px; }
h2:hover .anchor-link, h3:hover .anchor-link, .anchor-link:focus { opacity: 1; }
.protocol-meta { display: flex; gap: 16px; color: var(--muted); font-size: 12px; line-height: 20px; margin: 28px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; gap: 8px; padding: 8px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 22px; font-weight: 500; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: #1929b7; }
.button.secondary { background: white; color: var(--nav); border-color: var(--line); }
.button.secondary:hover { border-color: #bac2dc; }
.guide-entries { margin: 8px 0 36px; }
.guide-entry { display: grid; grid-template-columns: minmax(0, 1fr) 24px; column-gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.guide-entry:hover { text-decoration: none; }
.guide-entry h3 { font-size: 17px; line-height: 28px; margin: 0 0 4px; }
.guide-entry p { font-size: 13px; line-height: 22px; margin: 0; color: var(--nav); }
.guide-entry .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); transition: transform .15s; }
.guide-entry:hover .arrow { transform: translateX(3px); }
.steps { list-style: none; padding: 0; margin: 16px 0 36px; }
.steps > li { display: flex; align-items: flex-start; gap: 16px; margin: 20px 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; background: var(--soft); color: var(--accent); border-radius: 8px; font: 12px/21px var(--font-mono); }
.step-content { min-width: 0; }
.step-content h3, .step-content strong { margin: 0 0 4px; font-size: 14px; line-height: 22px; }
.step-content p { font-size: 13px; line-height: 22px; margin: 4px 0 0; }
.callout { border-radius: 8px; padding: 16px; margin: 24px 0; font-size: 13px; line-height: 22px; background: var(--soft); }
.callout.info { background: var(--accent-soft); }
.callout.warning { background: var(--warning-soft); }
.callout > strong, .callout-title { display: block; font-weight: 500; font-size: 14px; line-height: 22px; margin-bottom: 4px; color: var(--accent); }
.callout.warning > strong, .callout.warning .callout-title { color: var(--warning); }
.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout code { background: transparent; border: 0; padding: 0; }
blockquote { padding: 14px 18px; margin: 24px 0; border-left: 3px solid var(--accent); background: var(--soft); }
.flow-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); grid-template-areas: "query merge webhook" "result result result"; gap: 14px 18px; align-items: stretch; margin: 24px 0 28px; }
.flow-lane { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }
.flow-query { grid-area: query; }
.flow-webhook { grid-area: webhook; }
.flow-card { min-width: 0; padding: 14px; border: 1px solid #e0e5f0; border-radius: 8px; background: white; box-shadow: 0 10px 24px rgba(22, 28, 45, .05); }
.flow-card strong { display: block; margin: 3px 0 5px; font-size: 14px; line-height: 22px; }
.flow-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.flow-label { display: inline-flex; width: fit-content; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; line-height: 18px; font-weight: 500; }
.flow-webhook .flow-label { background: var(--success-soft); color: var(--success); }
.flow-arrow { display: block; position: relative; height: 2px; background: #cfd5e4; }
.flow-arrow::after { position: absolute; content: ""; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #cfd5e4; border-right: 2px solid #cfd5e4; transform: translateY(-50%) rotate(45deg); }
.flow-merge { grid-area: merge; align-self: stretch; position: relative; min-height: 124px; }
.flow-merge::before, .flow-merge::after { position: absolute; content: ""; left: 50%; width: 1px; background: #cfd5e4; transform: translateX(-50%); }
.flow-merge::before { top: 16px; bottom: 50%; border-radius: 999px 999px 0 0; }
.flow-merge::after { top: 50%; bottom: 16px; border-radius: 0 0 999px 999px; }
.flow-merge span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 50%; background: white; transform: translate(-50%, -50%); }
.flow-result { grid-area: result; max-width: 520px; justify-self: center; width: 100%; }
.flow-result .flow-card { border-color: #cdd4ef; background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%); text-align: center; }
.flow-result .flow-label { margin: 0 auto; background: #f1f4f9; color: #647087; }
.state-flow { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); gap: 14px; align-items: center; margin: 24px 0 28px; }
.state-flow .flow-card { min-height: 126px; }
.state-flow-note { grid-column: 1 / -1; justify-self: center; width: min(100%, 420px); }
.state-flow-note .flow-card { min-height: 0; text-align: center; border-color: #d1e9db; background: var(--success-soft); }
.state-flow-withdrawal { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) minmax(0, 1fr); }
.state-flow-withdrawal .flow-card:nth-last-child(2) { border-color: #d1e9db; background: var(--success-soft); }
.state-flow-withdrawal .flow-card:last-child { border-color: #efdfbe; background: var(--warning-soft); }
.endpoint { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 12px; border-radius: 8px; background: var(--soft); margin: 24px 0 8px; }
.verb { display: inline-flex; justify-content: center; align-items: center; flex: none; min-width: 52px; height: 24px; padding: 0 8px; border-radius: 6px; font: 600 11px/16px "Inter", sans-serif; color: var(--accent); background: var(--accent-soft); }
.verb-get { color: var(--success); background: var(--success-soft); }
.endpoint code { border: 0; padding: 0; background: transparent; font-size: 13px; line-height: 24px; white-space: normal; overflow-wrap: anywhere; }
.direction { font-size: 13px; color: var(--muted); line-height: 22px; margin: 8px 0 28px; }
.field-list { margin: 0; }
.field-row { border-bottom: 1px solid var(--line); padding: 16px 0; }
.field-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.field-name { font-size: 13px; color: var(--ink); border: 0; background: transparent; padding: 0; overflow-wrap: anywhere; }
.field-type { font-size: 13px; line-height: 22px; color: var(--muted); }
.required { font-size: 12px; line-height: 20px; color: var(--danger); }
.field-description { color: var(--nav); font-size: 13px; line-height: 22px; }
.field-description p { margin: 0 0 8px; }
.field-description p:last-child { margin: 0; }
.field-description ul, .field-description ol { margin: 8px 0; }
.field-constraints { font-size: 12px; line-height: 20px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.field-constraints code { color: var(--nav); }
.field-constraints .enum, .enum-values { display: flex; gap: 4px 8px; flex-wrap: wrap; }
.table-wrap { overflow: auto; max-width: 100%; margin: 18px 0 28px; border: 1px solid #e3e7ef; border-radius: 10px; scrollbar-width: thin; scrollbar-color: #c5ccda transparent; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 22px; }
.table-wrap caption { text-align: left; padding: 16px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.table-wrap caption code { border: 0; background: none; padding: 0; font-size: 13px; }
.table-wrap caption code, .table-wrap th code { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.table-wrap thead code { border: 0; background: none; padding: 0; color: inherit; font-size: 12px; }
.table-wrap caption > span { float: right; font-size: 12px; font-weight: 400; color: var(--muted); }
.table-wrap th, .table-wrap td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.table-wrap tr:last-child td, .table-wrap tr:last-child th { border-bottom: 0; }
.table-wrap thead th { background: #f7f9fc; color: #596579; font-size: 12px; line-height: 20px; font-weight: 500; }
.table-wrap tbody th { font-weight: 500; color: var(--ink); }
.table-wrap td { color: var(--nav); }
.table-wrap tbody tr:hover { background: #fafbfe; }
.table-wrap td:first-child { color: var(--ink); }
.table-wrap td code, .table-wrap tbody th code { display: inline-block; padding: 1px 6px; border: 1px solid #e8ebf2; background: #f6f7fb; font-size: 12px; line-height: 20px; white-space: nowrap; overflow-wrap: normal; word-break: normal; vertical-align: baseline; }
.table-wrap p { margin: 0 0 8px; }
.table-wrap p:last-child { margin-bottom: 0; }
.enum-label { display: block; margin: 0 0 6px; font-weight: 500; font-size: 14px; color: var(--ink); }
.enum-scope { display: block; width: fit-content; font-size: 11px; line-height: 18px; color: #647087; background: #f1f4f9; border-radius: 4px; padding: 1px 6px; margin: 0 0 7px; }
.enum-table tbody th { width: 190px; font-weight: 400; }
.table-wrap .enum-action { margin: 0; }
.fixed-values tbody th { width: 100px; background: #fafbfe; }
.fixed-values .enum-label { display: inline; font-size: 13px; margin-left: 10px; }
.fixed-values .enum-scope { margin-top: 7px; }
.notice-matrix table { min-width: 560px; }
.notice-matrix td:first-child { width: 240px; }
.notice-matrix td:nth-child(2) { width: 165px; }
.notice-matrix td:last-child { min-width: 0; }
.table-key-label { display: block; color: #647087; font: 11px/18px var(--font-mono); margin-bottom: 3px; }
.table-key-label:not(:first-child) { margin-top: 10px; }
.notice-matrix tr[aria-current="true"] td { background: #f1f3ff; }
.notice-matrix tr[aria-current="true"] td:first-child { box-shadow: inset 3px 0 var(--accent); }
.http-status-table table { min-width: 620px; }
.http-status-table th:first-child { width: 156px; }
.http-status-table td:first-child { line-height: 29px; }
.api-http-table table { min-width: 0; }
.api-http-table th:first-child { width: 100px; }
.http-status, .table-wrap .http-status { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 2px 8px; margin: 0 2px 2px 0; border: 1px solid #e0e5f0; border-radius: 5px; background: #f1f4f9; color: #45516a; font: 500 12px/20px var(--font-mono); white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.http-2xx, .table-wrap .http-2xx { background: #edf8f1; color: #176345; border-color: #d1e9db; }
.http-4xx, .table-wrap .http-4xx { background: #fff8eb; color: #8b590b; border-color: #efdfbe; }
.http-5xx, .table-wrap .http-5xx { background: #fff1f0; color: #a43b3b; border-color: #f0d2cf; }
.operation-guide h3 { font-size: 16px; margin: 22px 0 10px; }
code { font: .88em/1.7 var(--font-mono); color: var(--ink); background: var(--soft); padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow: auto; margin: 0; white-space: pre; tab-size: 2; font: 12px/21px var(--font-mono); }
pre code { display: block; font: inherit; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; white-space: pre; overflow-wrap: normal; }
.code-panel { min-width: 0; border-radius: 10px; background: var(--code); color: var(--code-text); overflow: hidden; margin: 20px 0; }
.code-toolbar { display: flex; min-height: 60px; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #3a4352; }
.code-toolbar > span, .code-title { min-width: 0; font-size: 13px; line-height: 22px; color: var(--code-text); }
.copy-button { display: inline-flex; justify-content: center; align-items: center; margin-left: auto; flex: none; min-width: 56px; min-height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--code-muted); font-size: 12px; line-height: 20px; }
.copy-button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.copy-button[data-state="copied"] { color: #a7ddc6; }
.code-panel pre { padding: 20px; scrollbar-width: thin; scrollbar-color: #626b7b var(--code); }
.code-panel p, .code-panel code { color: inherit; }
.token.key { color: #93b4ff; }
.token.string { color: #a7ddc6; }
.token.number, .token.boolean { color: #f4c989; }
.token.comment { color: #a0acbf; }
.example-rail { min-width: 0; padding-top: 40px; }
.example-rail > h2, .example-rail-title { font-size: 14px; line-height: 22px; margin: 0 0 24px; letter-spacing: normal; }
.example-rail .code-panel:first-child { margin-top: 0; }
.example-rail > p, .example-note { font-size: 12px; line-height: 20px; color: var(--muted); }
.example-rail .callout { margin: 20px 0; }
.example-group { margin: 20px 0; min-width: 0; }
.example-group > label, .example-label { display: block; margin: 0 0 8px; font-size: 13px; color: var(--nav); }
.example-group select { width: 100%; max-width: 100%; min-height: 40px; color: var(--ink); padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 13px; }
.example-group .code-panel { margin: 12px 0 0; }
.example-description { margin: 8px 0 0; font-size: 12px; line-height: 20px; color: var(--muted); }
.example-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.example-shortcut { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--nav); font-size: 12px; line-height: 20px; text-decoration: none; }
.example-shortcut:hover { border-color: #9bb6d6; background: #eef5fb; text-decoration: none; }
.schema-variant, .operation-notes { border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; margin: 12px 0; font-size: 13px; line-height: 22px; }
.schema-variant > summary, .operation-notes > summary { cursor: pointer; padding: 14px 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
details[open] > summary { margin-bottom: 8px; border-bottom: 1px solid var(--line); }
details > p:last-child { margin-bottom: 16px; }
.schema-variant .field-list { margin-bottom: 12px; }
.schema-variant .field-row:last-child { border: 0; }
.toc { position: sticky; align-self: start; top: calc(var(--header-height) + 40px); font-size: 13px; line-height: 22px; }
.toc > h2, .toc-title { margin: 0 0 16px; font-size: 14px; line-height: 22px; font-weight: 500; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; margin: 4px 0; color: var(--muted); }
.toc a:hover, .toc a[aria-current="location"] { color: var(--accent); text-decoration: none; }
.toc .toc-sub { padding-left: 12px; font-size: 12px; }
.toc .spec-card { padding: 16px; margin-top: 28px; border-radius: 8px; background: var(--soft); }
.spec-card strong { font-size: 14px; }
.spec-card p { margin: 12px 0; font-size: 12px; line-height: 20px; }
.spec-card a { color: var(--accent); }
.page-footer { margin-top: 40px; }
.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 36px; }
.pager a { min-width: 0; flex: 1; font-size: 14px; line-height: 22px; font-weight: 500; }
.pager a.next { text-align: right; }
.pager span { display: block; color: var(--muted); font-size: 12px; line-height: 20px; font-weight: 400; margin-bottom: 8px; }
.updated { margin-top: 32px; color: var(--muted); font-size: 12px; line-height: 20px; }
.search-dialog { position: fixed; inset: 12vh 16px auto; width: min(640px, calc(100vw - 32px)); max-height: 75vh; margin: 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 20px 90px rgba(19, 25, 54, .22); }
.search-dialog::backdrop { background: rgba(20, 25, 45, .35); backdrop-filter: blur(2px); }
.search-dialog-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.search-dialog-header input { width: 100%; min-width: 0; border: 0; padding: 8px 0; color: var(--ink); outline: 0; background: white; font-size: 15px; }
.search-dialog-header:focus-within { box-shadow: inset 0 -2px var(--accent); }
.search-dialog-header button { flex: none; min-width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--soft); font-size: 12px; }
#search-status { margin: 0; padding: 12px 20px; font-size: 12px; color: var(--muted); }
#search-results { max-height: 52vh; padding: 0 8px 8px; overflow-y: auto; }
.search-result { display: block; padding: 12px; border-radius: 8px; color: var(--ink); }
.search-result:hover, .search-result:focus { background: var(--accent-soft); text-decoration: none; }
.search-result strong { display: block; margin: 3px 0 5px; font-size: 14px; }
.search-result .search-section { color: var(--accent); font-size: 11px; }
.search-result p { margin: 0; font-size: 12px; line-height: 20px; color: var(--nav); }
.empty-results { padding: 24px 12px; text-align: center; font-size: 13px; color: var(--muted); }
@media (min-width: 861px) and (max-width: 1240px) {
  :root { --sidebar-width: 240px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  main, .guide-page main { padding-left: 32px; padding-right: 32px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .search-trigger { margin-left: 24px; width: min(360px, 36vw); }
  .api-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
  .code-panel pre { font-size: 11px; padding: 16px; }
}
@media (max-width: 1024px) and (min-width: 861px) {
  .api-layout { grid-template-columns: minmax(0, 1fr); }
  .example-rail { padding-top: 12px; }
  .search-trigger { margin-left: 8px; width: 300px; }
  .search-trigger kbd { display: none; }
}
@media (max-width: 860px) {
  :root { --header-height: 101px; }
  .topbar { height: 56px; padding: 0 20px; gap: 16px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 40px; padding: 0; border: 0; flex: none; background: transparent; }
  .menu-button img { width: 20px; height: 20px; }
  .brand { gap: 7px; }
  .brand-mark { width: auto; height: auto; border-radius: 0; background: none; color: var(--ink); font: 500 14px/22px "Inter", sans-serif; }
  .brand-name { font-size: 14px; line-height: 22px; }
  .doc-version, .download-spec { display: none; }
  .search-trigger { width: 40px; height: 40px; padding: 0; margin: 0 0 0 auto; justify-content: center; border: 0; background: transparent; }
  .search-trigger > span, .search-trigger > kbd { display: none; }
  .top-tabs { padding: 0 20px; gap: 8px; }
  .top-tabs a { min-width: 0; flex: 1 0 auto; padding: 0 8px; }
  .site-layout { display: block; }
  .sidebar { position: fixed; left: 0; top: var(--header-height); bottom: 0; width: min(350px, 88vw); height: calc(100dvh - var(--header-height)); z-index: 40; background: white; padding: 24px 20px 40px; transform: translateX(-105%); transition: transform .18s ease; visibility: hidden; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: none; visibility: visible; }
  body.nav-open .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--header-height) 0 0; z-index: 35; padding: 0; border: 0; background: rgba(20, 25, 45, .3); cursor: default; }
  .nav-link { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
  main, .guide-page main { padding: 24px 20px 40px; }
  .guide-layout, .api-layout { display: block; }
  .toc { position: static; display: none; }
  h1 { font-size: 28px; line-height: 40px; }
  h2 { font-size: 22px; line-height: 34px; margin-top: 32px; }
  h3 { font-size: 17px; line-height: 28px; }
  .eyebrow { font-size: 12px; line-height: 20px; }
  .page-header { margin-bottom: 24px; }
  .lead { font-size: 15px; line-height: 27px; }
  .hero-actions { margin-bottom: 28px; }
  .protocol-meta { margin: 24px 0; gap: 12px; }
  .guide-entry { padding: 20px 0; gap: 12px; }
  .steps > li { gap: 12px; }
  .field-meta { gap: 4px 10px; }
  .field-row { padding: 16px 0; }
  .flow-diagram { grid-template-columns: minmax(0, 1fr); grid-template-areas: "query" "webhook" "result"; gap: 12px; }
  .flow-lane { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .state-flow, .state-flow-withdrawal { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .state-flow .flow-card { min-height: 0; }
  .state-flow-note { grid-column: auto; width: 100%; }
  .flow-arrow { width: 2px; height: 24px; justify-self: center; }
  .flow-arrow::after { right: 50%; top: auto; bottom: -1px; transform: translateX(50%) rotate(135deg); }
  .flow-merge { display: none; }
  .flow-result { max-width: none; }
  .table-wrap table { min-width: 420px; }
  .table-wrap { margin: 12px 0 24px; }
  .enum-table table, .fixed-values table, .api-http-table table { min-width: 0; }
  .enum-table tbody th { width: 155px; }
  .enum-table th, .enum-table td, .fixed-values th, .fixed-values td, .api-http-table th, .api-http-table td { padding: 12px; }
  .api-http-table th:first-child { width: 80px; }
  .notice-matrix table { min-width: 560px; }
  .example-rail { padding-top: 20px; }
  .code-panel pre { padding: 16px; font-size: 12px; line-height: 21px; }
  .copy-button { min-height: 44px; }
  .code-toolbar { min-height: 60px; padding: 8px 12px 8px 16px; gap: 8px; }
  .code-toolbar > span { font-size: 12px; }
  .schema-variant, .operation-notes { padding: 0 12px; }
  .schema-variant > summary { padding: 14px 0; }
  .pager { gap: 16px; }
  .pager a { font-size: 13px; }
  .search-dialog { top: 16px; max-height: calc(100dvh - 32px); }
  #search-results { max-height: calc(100dvh - 160px); }
}
@media screen and (max-width: 600px) {
  .notice-matrix table, .notice-matrix tbody { display: block; min-width: 0; }
  .notice-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .notice-matrix tbody tr { display: grid; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
  .notice-matrix tbody tr:last-child { border-bottom: 0; }
  .notice-matrix td:first-child, .notice-matrix td:nth-child(2), .notice-matrix td:last-child { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .notice-matrix td:nth-child(2) { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 5px 8px; align-items: center; }
  .notice-matrix .table-key-label { margin: 0; }
  .notice-matrix td:nth-child(2) code { justify-self: start; }
  .notice-matrix tr[aria-current="true"] { background: #f1f3ff; box-shadow: inset 3px 0 var(--accent); }
  .notice-matrix tr[aria-current="true"] td { background: transparent; box-shadow: none; }
  .notice-matrix tr[aria-current="true"] td:first-child { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-header, .sidebar, .toc, .copy-button, .search-dialog, .nav-backdrop, .hero-actions { display: none !important; }
  .site-layout, .guide-layout, .api-layout { display: block; }
  main, .guide-page main { padding: 0; }
  .code-panel { break-inside: avoid; }
  .code-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .example-rail { padding-top: 0; }
}
/* 接口正文与可展开的完整签名示例。 */
.sidebar .nav-link .verb { display: none; }
.section-meta, .schema-note { font-size: 12px; line-height: 20px; color: var(--muted); }
.optional { font-size: 12px; line-height: 20px; color: var(--muted); }
.field-notes { margin-top: 8px; }
.field-notes summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.field-notes[open] { padding-bottom: 4px; }
.response-status { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.curl-example, .error-examples { margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; line-height: 22px; }
.curl-example > summary, .error-examples > summary { padding: 14px 16px; color: var(--nav); cursor: pointer; }
.curl-example[open] > summary, .error-examples[open] > summary { margin-bottom: 0; }
.curl-example .code-panel { margin: 0; border-radius: 0; }
.error-examples .example-group { padding: 0 12px; }
.example-rail-inner > .eyebrow { font-size: 14px; font-weight: 500; line-height: 22px; color: var(--ink); }
.toc > p:first-child { color: var(--ink); font-weight: 500; font-size: 14px; line-height: 22px; }
.security-table th:first-child, .security-table td:first-child { width: 180px; }
@media print { .example-group > label { display: none; } .curl-example, .error-examples { overflow: visible; } }
.security-table tbody th { background: white; color: var(--ink); font-weight: 400; }
.security-table tbody th code { background: transparent; border: 0; padding: 0; font-size: 12px; }
.security-table .required { margin-left: 8px; white-space: nowrap; }
/* 顶栏与 Figma 的 248px 品牌区、400px 搜索区对齐。 */
.brand-area { display: flex; align-items: center; gap: 10px; width: 248px; flex: none; }
.brand-area .doc-version { width: 28px; min-height: 22px; text-align: center; margin: 0; }
.topbar > .search-trigger { margin-left: 0; }
@media (min-width: 861px) and (max-width: 1240px) { .brand-area { width: auto; } }
@media (max-width: 860px) {
  .topbar { display: grid; grid-template-columns: 32px minmax(0, 230px) 20px; gap: 12px; padding: 0 16px; }
  .brand-area { width: auto; min-width: 0; }
  .topbar > .menu-button, .topbar > .search-trigger { justify-self: center; margin: 0; }
}

/* 双链接入实战沿用文档站的字体、目录与代码交互。 */
.integration-page .guide-layout { grid-template-columns: minmax(0, 850px) minmax(144px, 184px); gap: 40px; }
.integration-hero { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.integration-hero h1 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.45; }
.integration-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.integration-meta span { padding: 3px 9px; border-radius: 5px; background: var(--soft); color: var(--muted); font-size: 11px; }
.integration-meta span:first-child { background: var(--success-soft); color: var(--success); }
.integration-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.integration-shortcuts a { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; }
.integration-shortcuts a:hover { background: var(--accent-soft); border-color: #cad0fb; text-decoration: none; }
.integration-shortcuts a > span:first-child { font: 12px var(--font-mono); color: var(--accent); }
.integration-shortcuts a > span:last-child { margin-left: auto; color: var(--accent); }
.integration-shortcuts strong, .integration-shortcuts small { display: block; }
.integration-shortcuts small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.integration-page h2 { padding-top: 8px; margin-top: 44px; font-weight: 600; }
.integration-anchor-alias { display: block; height: 0; scroll-margin-top: 20px; }
.integration-page .prose-table th:first-child { min-width: 130px; }
.integration-flow { margin: 24px 0 28px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }
.integration-flow figcaption { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.integration-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.integration-flow li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; min-width: 0; margin: 0; padding: 14px 12px; border: 1px solid #e0e5f0; border-radius: 8px; background: white; }
.integration-flow li:not(:last-child)::before { position: absolute; content: ""; right: -24px; top: 29px; width: 23px; height: 1px; background: #aeb9ce; }
.integration-flow li:not(:last-child)::after { position: absolute; content: ""; right: -16px; top: 26px; width: 6px; height: 6px; border-top: 1px solid #aeb9ce; border-right: 1px solid #aeb9ce; transform: rotate(45deg); }
.integration-step { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #dce1fc; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font: 11px var(--font-mono); }
.integration-flow .integration-direction { font-size: 11px; color: var(--accent); margin: 0 0 4px; }
.integration-flow strong { display: block; font-size: 14px; margin-bottom: 4px; }
.integration-flow p { font-size: 12px; line-height: 1.85; margin: 0; }
.integration-flow li > div { min-width: 0; }
.integration-flow li > div p { overflow-wrap: anywhere; }
.integration-overview { margin: 24px 0 28px; }
.integration-overview > figcaption { margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.integration-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.integration-lanes > section { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; padding: 16px; }
.integration-lanes > section:last-child { background: #f7fbf9; }
.integration-lanes h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.integration-lanes > section > p { font-size: 12px; color: var(--muted); }
.integration-lanes ol { list-style: none; padding: 0; margin: 16px 0 0; }
.integration-lanes li { margin: 0; }
.integration-lanes li + li::before { display: block; content: "↓"; text-align: center; color: #919cb1; font-size: 18px; line-height: 26px; }
.integration-lanes .flow-card { box-shadow: none; }
.integration-shared { margin: 14px 0 0; padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); text-align: center; font-size: 12px; }
.webhook-example { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.webhook-example > summary { padding: 16px; cursor: pointer; font-weight: 500; color: var(--ink); }
.webhook-example > summary span { margin-left: 12px; color: var(--muted); font-size: 12px; font-weight: 400; }
.webhook-download { padding: 4px 16px 16px; font-size: 12px; }
.webhook-example .code-panel { margin: 0; border-radius: 0; }
.webhook-example .code-panel pre { max-height: 600px; }
@media (max-width: 1240px) {
  .integration-page .guide-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .integration-flow ol { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .integration-flow li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .integration-flow li:not(:last-child)::before { left: 27px; right: auto; top: auto; bottom: -24px; width: 1px; height: 23px; }
  .integration-flow li:not(:last-child)::after { left: 24px; right: auto; top: auto; bottom: -16px; border-top: 0; border-right: 1px solid #aeb9ce; border-bottom: 1px solid #aeb9ce; }
}
@media (max-width: 600px) {
  .webhook-example > summary span { display: block; margin: 5px 0 0 18px; }
  .integration-lanes { grid-template-columns: minmax(0, 1fr); }
  .integration-shortcuts a { gap: 8px; padding: 12px; font-size: 12px; }
  .integration-flow { padding: 16px; }
  .integration-flow li { gap: 12px; }
}
@media print {
  .integration-meta, .integration-shortcuts { display: none; }
  .integration-flow li { break-inside: avoid; }
}
