:root {
  --text: #0c0d0e;
  --text-2: #42464e;
  --text-3: #737a87;
  --line: #eaedf1;
  --blue: #1664ff;
  --ink: #101013;
  --hover: #f2f3f5;
  --nav-h: 60px;
  --sub-h: 40px;
  --side-w: 248px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-2);
  background: #fff;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body { margin: 0; padding: 0; }
body { background: #fff; overflow-anchor: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
img { border: 0; }

::-webkit-scrollbar { width: 4px; height: 4px; background: #fff; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #fff; border-radius: 2.5px; }
.is-scrolling::-webkit-scrollbar-track, :hover::-webkit-scrollbar-track { background: #f5f7fa; }
.is-scrolling::-webkit-scrollbar-thumb, :hover::-webkit-scrollbar-thumb { background: #d7d8d9; }
::-webkit-scrollbar-thumb:hover { background: #c2c5c8; }
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: #d7d8d9 transparent; }
:focus-visible { outline: 2px solid rgba(22, 100, 255, .35); outline-offset: 1px; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px 0 8px;
  gap: 8px;
}
.logo { display: flex; align-items: center; gap: 8px; height: 60px; text-decoration: none; color: var(--text); }
.logo-name { font-size: 16px; font-weight: 600; color: #1d2129; }
.logo-img { width: 28px; height: 28px; display: block; object-fit: contain; }
.brand-split { width: 1px; height: 16px; background: #e5e6eb; margin: 0 8px; }
.brand-name { font-size: 18px; font-weight: 500; color: #1d2129; white-space: nowrap; }
.topnav-right { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 14px; color: #1d2129; }
.topnav-right a { text-decoration: none; }
.topnav-right a:hover { color: var(--blue); }

.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #42464e;
}
.icon-btn:hover { background: var(--hover); }

.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 25;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.subnav strong { font-size: 14px; font-weight: 500; color: #42464e; }
.subnav a { text-decoration: none; }
.subnav .pipe { color: #c9cdd4; }
.subnav .crumb { font-size: 13px; color: var(--text); }
.only-compact { display: none; }

.layout { display: flex; align-items: flex-start; min-height: calc(100vh - var(--nav-h) - var(--sub-h)); }
.sidebar {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  align-self: flex-start;
  background: #fff;
  border-right: 1px solid var(--line);
  position: sticky;
  top: calc(var(--nav-h) + var(--sub-h));
  height: calc(100vh - var(--nav-h) - var(--sub-h));
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
}
.main { flex: 1; min-width: 0; padding: 0 48px 80px; }
.doc-main {
  display: grid;
  grid-template-columns: minmax(0, 920px) 180px;
  grid-template-areas: "trail trail" "article outline";
  justify-content: center;
  column-gap: 28px;
  align-items: start;
  padding-top: 0;
}
.trail {
  grid-area: trail;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 48px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
  color: #86909c;
}
.trail a { color: #4e5969; text-decoration: none; }
.trail a:hover { color: var(--blue); }
.trail .here { color: #1d2129; }
.trail .sep { color: #c9cdd4; }
.copy-link {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #86909c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.copy-link:hover { background: var(--hover); color: var(--blue); }
.article { grid-area: article; }
.outline { grid-area: outline; }

.search {
  margin: 16px 16px 8px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #86909c;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 100, 255, .08); }
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder { color: #c9cdd4; }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { padding: 0 16px 24px; }
.menu-row {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4e5969;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.menu-row .label { flex: 1; min-width: 0; line-height: 20px; word-break: break-word; }
.menu-row a { color: inherit; text-decoration: none; }
.menu-row:hover { background: #f1f3f5; }
.menu-row.is-current { background: #f1f3f5; color: #42464e; }
.menu-row.is-current .label { font-weight: 600; }
.depth-0 > .menu-row { font-weight: 600; color: #42464e; }
.depth-3 > .menu-row { color: #1d2129; }
.menu-row .chev {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: #86909c;
  transition: transform .15s ease;
}
.menu-row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.menu mark { background: transparent; color: var(--blue); font-weight: 600; padding: 0; }
.empty-menu { padding: 12px 16px; color: var(--text-3); font-size: 13px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
}
.hero h1 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; color: var(--text); }
.desc { margin: 12px 0 0; max-width: 640px; font-size: 14px; line-height: 22px; color: #42464e; }
.hero-actions { display: flex; gap: 8px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-dark { background: #0c0d0e; color: #fff; border-color: #0c0d0e; }
.btn-dark:hover { background: #1d1e22; }
.btn-line { background: #fff; color: #0c0d0e; border-color: var(--line); }
.btn-line:hover { background: #f7f8fa; }

.hero-visual {
  width: min(460px, 100%);
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f8fa;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.section-head { text-align: center; padding: 64px 0 8px; }
.section-head h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text); }
.section-head p { margin: 8px 0 0; font-size: 14px; line-height: 22px; color: #737a87; }
.path-block {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.path-block:first-of-type { margin-top: 28px; }
.path-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.group h3 { margin: 6px 0 0; font-size: 14px; line-height: 22px; font-weight: 700; color: var(--text); }
.path-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin-top: 16px; }
.path-links a { color: rgba(24, 24, 24, .8); font-size: 13px; line-height: 18px; text-decoration: none; }
.path-links a:hover { color: var(--blue); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.card {
  display: block;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}
.card h3 { margin: 0 0 8px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--text); }
.card p { margin: 0; font-size: 14px; line-height: 22px; color: #737a87; }
.card:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(22, 100, 255, .08); }
.card:hover h3 { color: var(--blue); }
.site-note { margin: 36px 0 0; font-size: 13px; line-height: 22px; color: var(--text-3); }

.article { color: rgba(23, 23, 23, .8); min-width: 0; max-width: 100%; overflow-x: clip; font-size: 14px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.codeblock, .codeblock pre { max-width: 100%; }
.article h1, .article h2, .article h3, .article h4 {
  color: #1d2129;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.25;
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: .3em;
}
.article h1 { font-size: 22px; font-weight: 600; border-bottom: 1px solid #eaecef; }
.article .updated { margin: -8px 0 20px; font-size: 13px; color: var(--text-3); letter-spacing: 0; }
.article h2 { font-size: 20px; scroll-margin-top: 116px; }
.article h3 { font-size: 16px; scroll-margin-top: 116px; }
.article h4 { font-size: 14px; scroll-margin-top: 116px; }
.article p, .article li { font-size: 14px; line-height: 24px; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 16px; }
.article li { margin-bottom: 4px; }
.article ul li::marker, .article ol li::marker { color: #a9b0ba; }
.doc-html pre { margin: 0 0 14px; padding: 14px 16px; overflow: auto; background: #f6f8fa; border: 1px solid #dfe2e7; border-radius: 6px; }
.doc-html pre code { background: transparent; padding: 0; white-space: pre; }
.doc-html blockquote { margin: 0 0 14px; padding: 1px 1em; border-left: .25em solid #dfe2e5; color: #6a737d; }
.doc-html img { max-width: 100%; }
.article .mermaid, .doc-html .mermaid { margin: 0 0 14px; overflow-x: auto; }
.doc-html .codeblock pre { margin: 0; border: 0; background: transparent; }
.article a { color: var(--blue); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article table { width: 100%; border-collapse: collapse; border-spacing: 0; margin: 0 0 14px; display: block; overflow: auto; }
.article th, .article td { border: 1px solid #e2ecff; padding: 6px 13px; text-align: left; font-size: 14px; line-height: 22px; vertical-align: top; min-width: 100px; }
.article th { background: #f7f9fc; color: #1d2129; font-weight: 600; }
.article tbody tr:hover td { background: rgba(104, 155, 255, .1); }
.article p strong, .article li strong, .article td strong { font-weight: 600; color: #1d2129; }
.article code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; background: rgba(27, 31, 35, .05); border-radius: 3px; color: #476582; padding: .25rem .5rem; margin: 0; -webkit-font-smoothing: initial; }
.article code.is-copyable { cursor: pointer; transition: background .15s ease, color .15s ease; }
.article code.is-copyable:hover { background: rgba(22, 100, 255, .1); color: #1d5fbf; }
.article code.is-copied { background: #e7f7ed; color: #2f9e63; }
.codeblock {
  position: relative;
  margin: 0 0 16px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #f7f8fa;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.code-lang {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #e5e6eb;
  background: #fff;
  color: #86909c;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.codeblock pre { margin: 0; padding: 14px 16px 16px; overflow: auto; }
.codeblock code { background: transparent; padding: 0; white-space: pre; color: #1d2129; }
.tok-key, .tok-attr { color: #1664ff; }
.tok-str { color: #0e8a4a; }
.tok-num { color: #d46b08; }
.tok-bool { color: #722ed1; }
.tok-pun { color: #86909c; }
.tok-cmt { color: #86909c; }
.lang-tabs { margin: 0 0 16px; border: 1px solid #e5e6eb; border-radius: 8px; overflow: hidden; background: #f7f8fa; }
.lang-tabbar { display: flex; background: #fff; border-bottom: 1px solid #e5e6eb; }
.lang-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; height: 36px; padding: 0 16px; color: #42464e; font-size: 13px; cursor: pointer; }
.lang-tab.is-on { color: #1664ff; border-bottom-color: #1664ff; }
.lang-panel .codeblock { margin: 0; border: 0; border-radius: 0; }
.lang-panel .code-lang { display: none; }
.lang-panel .copy { top: 8px; }
.diagram { margin: 0 0 14px; overflow-x: auto; border: 1px solid #e5e6eb; border-radius: 6px; background: #f7f8fa; }
.diagram svg { display: block; max-width: none; height: auto; }
.stateflow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 18px 20px 18px 22px;
  border: 1px solid #eaedf1;
  border-radius: 8px;
  background: #f7f8fa;
}
.stateflow::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  border-radius: 1px;
  background: #dfe3e8;
}
.state {
  position: relative;
  min-width: 240px;
  margin: 12px 0 0 20px;
  padding: 10px 14px;
  border: 1px solid #eaedf1;
  border-radius: 6px;
  background: #fff;
}
.state:first-child { margin-top: 0; }
.state::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #1664ff;
  background: #fff;
}
.state.ok::before { border-color: #38a169; }
.state.bad::before { border-color: #e5484d; }
.state b { display: block; font-weight: 600; }
.state span { color: #737a87; font-size: 12px; line-height: 18px; }
.state.ok { border-color: #b7ebc6; background: #f6ffed; }
.state.bad { border-color: #ffccc7; background: #fff2f0; }
.state-arrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 2px 42px;
  padding: 2px 0;
  color: #4e5969;
  font-size: 12px;
  line-height: 18px;
}
.state-arrow::before { content: "\2193"; flex: 0 0 auto; color: #86909c; font-weight: 600; }
.copy {
  position: absolute;
  top: 4px;
  right: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  cursor: pointer;
  color: #42464e;
}
.copy:hover { border-color: var(--blue); color: var(--blue); }
.callout {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 24px;
  color: #42464e;
}
.callout.warn { background: #fff7e8; border-color: #ffe4ba; }
.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fa;
  overflow: auto;
}
.method {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e8f3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
}
.endpoint { position: relative; }
.endpoint code { background: transparent; padding: 0; color: #1d2129; font-size: 13px; }
.endpoint-copy {
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #d9dde3;
  background: #fff;
  border-radius: 4px;
  color: #4e5969;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.endpoint-copy:hover { color: var(--blue); border-color: var(--blue); }
.endpoint-copy.is-done { color: #2f9e63; border-color: #b7ebc6; }
.endpoint-debug {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.endpoint-debug:hover { background: #0e4fd8; text-decoration: none; }
.endpoint-note { margin: -8px 0 16px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.endpoint-note a { color: var(--blue); text-decoration: none; }
.doc-img { margin: 0 0 16px; }
.doc-img img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mermaid svg .actor-man circle { fill: #dcf5e7; stroke: #2f9e63; stroke-width: 1.5px; }
.mermaid svg .actor-man line { stroke: #2f9e63; stroke-width: 1.5px; }
.field-name { display: flex; align-items: center; gap: 6px; }
.enum-head { margin: 0 0 6px; }
.article .intro-list { list-style: none; margin: 10px 0 14px; padding: 0; }
.article .intro-list li { position: relative; padding-left: 18px; margin: 0 0 8px; color: #42464e; }
.article .intro-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #c9cdd4; }
.article .intro-list li.intro-group { padding-left: 0; margin-bottom: 10px; }
.article .intro-list li.intro-group::before { display: none; }
.article .intro-list li.intro-group strong {
  display: inline-block;
  min-width: 74px;
  margin-right: 10px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #f2f4f7;
  color: #1d2129;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  vertical-align: 1px;
}
.article .intro-list li.intro-group span { color: #42464e; }.enum-tail { margin: 6px 0 0; color: #737a87; }
.article .enum-list { list-style: none; margin: 0; padding: 0; }
.article .enum-list li { display: flex; align-items: baseline; gap: 8px; margin: 2px 0; line-height: 22px; }
.article .enum-list li code { flex: 0 0 auto; min-width: 28px; text-align: center; }
.article .enum-list li span { color: #4e5969; }
.article td .enum-list { margin: 2px 0; }

.tester-lead { color: var(--text-3); font-size: 13px; line-height: 22px; }
.tester {
  margin: 0 0 14px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}
.tester-auth { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tester-auth label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4e5969; flex: 1 1 200px; }
.tester-auth input, .tester-body textarea {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d9dde3;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  color: #1d2129;
  font-family: inherit;
}
.tester-body textarea { height: auto; padding: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; resize: vertical; }
.tester-auth input:focus, .tester-body textarea:focus { outline: none; border-color: var(--blue); }
.tester-send {
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tester-send:hover { background: #0e4fd8; }
.tester-send:disabled { opacity: .6; cursor: default; }
.tester-table { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 13px; }
.tester-table th { text-align: left; padding: 6px 10px; color: #86909c; font-weight: 500; border-bottom: 1px solid #eaedf1; }
.tester-table td { padding: 6px 10px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.tester-input, .tester-table th { }
.tester-table .tester-input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid #d9dde3; border-radius: 4px; font-size: 13px; }
.tester-req { margin-left: 6px; color: #e0871a; font-size: 11px; }
.tester-empty { color: #86909c; text-align: center; padding: 14px; }
.tester-body { margin-top: 14px; }
.tester-body label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #4e5969; }
.tester-result { margin-top: 16px; border: 1px solid #e5e6eb; border-radius: 6px; background: #fff; }
.tester-result-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #eef0f3; }
.tester-status { font-size: 13px; font-weight: 600; color: #4e5969; }
.tester-status.ok { color: #2f9e63; }
.tester-status.bad { color: #d54941; }
.tester-meta { margin-left: auto; color: #86909c; font-size: 12px; }
.tester-clear { border: 0; background: transparent; color: #86909c; font-size: 12px; cursor: pointer; }
.tester-clear:hover { color: var(--blue); }
.tester-output { margin: 0; padding: 12px 14px; max-height: 360px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.7; color: #1d2129; white-space: pre-wrap; word-break: break-all; }

/* 独立调试页 */
.tester-layout { min-height: calc(100vh - var(--nav-h) - var(--sub-h)); }
.tester-main { padding: 24px 40px 64px; max-width: 1080px; }
.tester-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.tester-head h1 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--text); }
.tester-path { margin: 6px 0 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; color: #86909c; }
.tester-back { margin-left: auto; flex: 0 0 auto; padding: 6px 12px; border: 1px solid #d9dde3; border-radius: 4px; color: #4e5969; font-size: 13px; text-decoration: none; }
.tester-back:hover { border-color: var(--blue); color: var(--blue); }
.tester-hint { margin: -4px 0 16px; font-size: 12px; color: #86909c; }
.tester-picker { padding: 0 10px 24px; }
.tester-group-title { padding: 8px 10px; font-size: 12px; color: #86909c; }
.tester-item { display: block; padding: 7px 10px; border-radius: 4px; text-decoration: none; color: #1d2129; }
.tester-item:hover { background: #f1f3f5; }
.tester-item.is-on { background: #f1f3f5; }
.tester-item.is-on .tester-item-name { font-weight: 600; }
.tester-item-name { display: block; font-size: 14px; line-height: 20px; }
.tester-item-path { display: block; font-size: 11px; color: #86909c; word-break: break-all; }
.tester-jsonlabel { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #4e5969; }
.tester-jsonlabel textarea { padding: 10px; border: 1px solid #d9dde3; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.6; resize: vertical; }
.tester-jsonlabel textarea:focus { outline: none; border-color: var(--blue); }
.tester-link { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.tester-link:hover { background: #0e4fd8; }
.tester-params .tester-table { margin-top: 0; }

/* 接口调试台（Apifox 风格） */
.debug-layout { display: flex; align-items: stretch; min-height: calc(100vh - var(--nav-h) - var(--sub-h)); }
.debug-side {
  width: 288px;
  flex: 0 0 288px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--nav-h) + var(--sub-h));
  height: calc(100vh - var(--nav-h) - var(--sub-h));
  overflow: hidden;
}
.debug-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px; font-size: 13px; font-weight: 600; color: #1d2129; }
.debug-count { color: #86909c; font-weight: 400; font-size: 12px; }
.debug-search { margin: 0 12px 8px; }
.debug-tree { flex: 1; overflow: auto; padding: 0 8px 24px; overscroll-behavior: contain; }
.debug-group { margin-bottom: 2px; }
.debug-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1d2129;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.debug-group-head:hover { background: #f1f3f5; }
.debug-group-head em { margin-left: auto; font-style: normal; font-size: 11px; color: #a9b0ba; font-weight: 400; }
.debug-chev { flex: 0 0 10px; color: #86909c; transform: rotate(90deg); transition: transform .15s ease; }
.debug-group-head.is-closed .debug-chev { transform: rotate(0deg); }
.debug-group-body { padding-left: 14px; }
.debug-item {
  display: block;
  padding: 6px 8px 6px 10px;
  border-left: 2px solid transparent;
  color: #4e5969;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.debug-item:hover { background: #f1f3f5; color: #1d2129; }
.debug-item.is-on { background: #eef4ff; border-left-color: var(--blue); color: var(--blue); font-weight: 600; }

.debug-main { flex: 1; min-width: 0; padding: 20px 28px 64px; max-width: 1180px; }
.debug-titlebar { display: flex; align-items: flex-start; gap: 16px; }
.debug-titlewrap { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.debug-titlebar h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.debug-doc { flex: 0 0 auto; font-size: 12px; color: #86909c; text-decoration: none; }
.debug-doc:hover { color: var(--blue); }
.debug-env { margin-left: auto; flex: 0 0 auto; }
.debug-env label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #86909c; }
.debug-env select { height: 30px; padding: 0 8px; border: 1px solid #d9dde3; border-radius: 4px; background: #fff; font-size: 13px; color: #1d2129; }

.debug-urlbar { display: flex; align-items: center; gap: 0; margin: 14px 0 10px; border: 1px solid #d9dde3; border-radius: 6px; overflow: hidden; background: #fff; }
.debug-method { flex: 0 0 auto; padding: 0 12px; height: 38px; display: flex; align-items: center; background: #f7f8fa; border-right: 1px solid #e5e6eb; color: #2f9e63; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.debug-url { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; color: #1d2129; }
.debug-url:focus { outline: none; }
.debug-send { flex: 0 0 auto; height: 38px; padding: 0 22px; border: 0; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.debug-send:hover { background: #0e4fd8; }
.debug-send:disabled { opacity: .6; cursor: default; }

.debug-authbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.debug-authbar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #86909c; }
.debug-authbar input[type=text], .debug-authbar input[type=password] { height: 30px; padding: 0 10px; border: 1px solid #d9dde3; border-radius: 4px; font-size: 13px; color: #1d2129; min-width: 190px; }
.debug-authbar input:focus { outline: none; border-color: var(--blue); }
.debug-remember { gap: 4px !important; }

.debug-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0; }.debug-tab { border: 0; background: transparent; padding: 8px 14px; color: #4e5969; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; }
.debug-tab:hover { color: var(--blue); }
.debug-tab.is-on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.debug-pane { padding: 14px 0 0; }

/* 请求 / 响应分区 */
.debug-panel {
  margin-top: 16px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #fff;
}
.debug-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef0f3;
  background: #fafbfc;
  border-radius: 8px 8px 0 0;
}
.debug-panel-title { font-size: 13px; font-weight: 600; color: #1d2129; }
.debug-req-tabs { display: flex; gap: 2px; }
.debug-panel .debug-pane { padding: 12px 14px 16px; }
.debug-panel .debug-output { margin: 0 14px 14px; border-radius: 6px; }
.debug-panel-resp .debug-resp-head { padding: 8px 12px; border-bottom: 1px solid #eef0f3; }
.debug-col-check { width: 34px; text-align: center; }
.debug-check { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }
.debug-col-check input:not(:checked) ~ span { color: #a9b0ba; }

.debug-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.debug-table th { text-align: left; padding: 8px 10px; color: #86909c; font-weight: 500; background: #f7f8fa; border-bottom: 1px solid #e5e6eb; font-size: 12px; }
.debug-table td { padding: 6px 10px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.debug-col-name { width: 22%; }
.debug-col-type { width: 12%; color: #737a87; }
.debug-col-req { width: 8%; }
.debug-col-val { width: 30%; }
.debug-col-desc { color: #737a87; font-size: 12px; }
.debug-req { color: #e0871a; font-size: 11px; }
.debug-opt { color: #a9b0ba; font-size: 11px; }
.debug-input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid #d9dde3; border-radius: 4px; font-size: 13px; }
.debug-input:focus { outline: none; border-color: var(--blue); }
.debug-table-foot { display: flex; gap: 8px; margin-top: 12px; }
.debug-fill, .debug-clearvals { height: 28px; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 4px; background: #fff; color: #4e5969; font-size: 12px; cursor: pointer; }
.debug-fill:hover, .debug-clearvals:hover { border-color: var(--blue); color: var(--blue); }

.debug-jsonwrap { border: 1px solid #e5e6eb; border-radius: 6px; overflow: hidden; }
.debug-jsonbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; background: #f7f8fa; border-bottom: 1px solid #e5e6eb; font-size: 12px; color: #86909c; }
.debug-jsonwrap textarea { width: 100%; min-height: 240px; padding: 12px; border: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.7; resize: vertical; }
.debug-jsonwrap textarea:focus { outline: none; }

.debug-resp-head { display: flex; align-items: center; gap: 12px; padding: 0 0 10px; flex-wrap: wrap; }
.debug-resp-tabs { display: flex; gap: 2px; }
.debug-rtab {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4e5969;
  font-size: 12.5px;
  cursor: pointer;
}
.debug-rtab:hover { background: #f1f3f5; color: #1d2129; }
.debug-rtab.is-on { background: #eef4ff; color: var(--blue); font-weight: 600; }
.debug-status { font-size: 13px; font-weight: 600; color: #4e5969; }
.debug-status.ok { color: #2f9e63; }
.debug-status.bad { color: #d54941; }
.debug-meta { color: #86909c; font-size: 12px; }
.debug-copy { margin-left: auto; height: 26px; padding: 0 10px; border: 1px solid #d9dde3; border-radius: 4px; background: #fff; color: #4e5969; font-size: 12px; cursor: pointer; }
.debug-copy:hover { border-color: var(--blue); color: var(--blue); }
.debug-output { margin: 0; padding: 14px; min-height: 160px; max-height: 480px; overflow: auto; border: 1px solid #e5e6eb; border-radius: 6px; background: #f7f8fa; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.75; color: #1d2129; white-space: pre-wrap; word-break: break-all; }
.debug-empty { color: #86909c; font-size: 13px; padding: 12px 0; }
.debug-side-note {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: #a9b0ba;
  font-size: 11.5px;
  line-height: 18px;
  background: #fbfcfd;
}

@media (max-width: 959px) {
  .debug-layout { flex-direction: column; }
  .debug-side { position: static; width: auto; flex: none; height: auto; max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .debug-main { padding: 16px 16px 48px; }
}
.twisty {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid #c9cdd4;
  border-radius: 2px;
  background: #fff;
  color: #4e5969;
  font-size: 14px;
  line-height: 14px;
  padding: 0;
  cursor: pointer;
}
.twisty:hover { border-color: var(--blue); color: var(--blue); }

.outline {
  position: sticky;
  top: calc(var(--nav-h) + var(--sub-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - var(--sub-h) - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  padding: 8px 0 16px 0;
  font-size: 13px;
  line-height: 20px;
}
.outline p { margin: 0 0 8px; padding-left: 12px; color: var(--text-3); }
.outline a {
  display: block;
  margin: 0;
  padding: 4px 8px 4px 12px;
  border-left: 2px solid transparent;
  color: #4e5969;
  text-decoration: none;
}
.outline a:hover { color: var(--blue); }
.outline a.sub { padding-left: 24px; }
.outline a.is-on { color: var(--blue); border-left-color: var(--blue); }
.outline-more {
  display: block;
  width: calc(100% - 12px);
  margin: 6px 0 0 12px;
  padding: 5px 8px;
  border: 1px dashed #d9dde3;
  border-radius: 4px;
  background: #fff;
  color: #86909c;
  font-size: 12px;
  cursor: pointer;
}
.outline-more:hover { border-color: var(--blue); color: var(--blue); }

.scrim { position: fixed; inset: 0; background: rgba(15, 18, 26, .35); z-index: 35; }
body.sidebar-collapsed .sidebar { display: none; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1180px) {
  .hero, .path-links, .cards { grid-template-columns: 1fr 1fr; }
  .doc-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "trail" "article" "outline"; }
  .outline { display: none; }
}
@media (max-width: 959px) {
  .main { padding: 0 16px 48px; }
  .sidebar {
    position: fixed;
    z-index: 40;
    left: 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.drawer-open .sidebar { transform: none; box-shadow: 8px 0 24px rgba(0, 0, 0, .12); }
  body.sidebar-collapsed .sidebar { display: block; }
  .hero, .path-block, .path-links, .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .only-compact { display: inline-flex; }
  .topnav-right { gap: 16px; }
  .brand-name { display: none; }
}
