:root {
  --doc-ink: #162925;
  --doc-muted: #61736e;
  --doc-line: #dfebe6;
  --doc-paper: #fff;
  --doc-bg: #f5f8f7;
  --doc-primary: #006c5b;
  --doc-sidebar: #102623;
  --doc-code: #102623;
  --doc-danger: #b85f48;
  --doc-success: #0e795e;
  --doc-blue: #316ac2;
  --doc-radius: 8px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--doc-bg);
  color: var(--doc-ink);
  font: 14px/1.65 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.doc-shell {
  display: flex;
  min-height: 100vh;
}
.doc-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: var(--doc-sidebar);
  padding: 23px 14px;
  color: #d8e8e2;
  display: flex;
  flex-direction: column;
}
.doc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}
.doc-brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #a9c1ba;
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.doc-nav {
  display: grid;
  gap: 3px;
}
.doc-nav a {
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: #b9d0c8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.doc-nav a svg {
  width: 17px;
  height: 17px;
}
.doc-nav a:hover,
.doc-nav a.active {
  background: #176e5d;
  color: #fff;
}
.doc-side-footer {
  margin-top: auto;
  border-top: 1px solid rgba(230, 244, 238, 0.12);
  padding: 16px 11px 3px;
  font-size: 12px;
  color: #a8beb7;
}
.doc-side-footer strong {
  display: block;
  color: #fff;
  font-size: 13px;
}
.doc-side-footer span {
  display: block;
  margin: 2px 0 11px;
}
.doc-side-footer a {
  color: #a9e5d4;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.doc-side-footer a svg {
  width: 15px;
}
.doc-main {
  margin-left: 246px;
  width: calc(100% - 246px);
  min-width: 0;
}
.doc-topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--doc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 4;
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #385a51;
  font-weight: 700;
  text-decoration: none;
}
.doc-back:hover {
  color: var(--doc-primary);
}
.doc-back svg {
  width: 18px;
}
.doc-topbar > div {
  font-size: 12px;
  color: var(--doc-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.doc-topbar b {
  color: var(--doc-primary);
  background: #e5f3ee;
  padding: 2px 7px;
  border-radius: 4px;
}
.doc-content {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: 43px 40px 80px;
}
.doc-section {
  padding: 33px 0;
  border-bottom: 1px solid var(--doc-line);
  scroll-margin-top: 68px;
}
.intro-section {
  padding-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 45px;
  align-items: end;
}
.doc-kicker {
  color: var(--doc-primary);
  font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 1.1px;
  margin: 0 0 8px;
}
.doc-section h1,
.doc-section h2,
.doc-section h3 {
  margin: 0;
  color: var(--doc-ink);
  letter-spacing: 0;
}
.doc-section h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}
.doc-section h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}
.doc-section h3 {
  font-size: 16px;
  margin: 25px 0 12px;
  font-weight: 800;
}
.doc-lead,
.section-heading p {
  margin: 10px 0 0;
  color: var(--doc-muted);
  max-width: 700px;
}
.doc-meta {
  border-left: 2px solid #9bc8ba;
  padding-left: 19px;
  display: grid;
  gap: 13px;
}
.doc-meta span {
  display: block;
  font-size: 11px;
  color: var(--doc-muted);
  margin-bottom: 2px;
}
.doc-meta code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.doc-meta b {
  font-size: 13px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.method-tag {
  display: inline-block;
  margin: 0 0 7px;
  padding: 2px 6px;
  border-radius: 4px;
  font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.method-tag.post {
  background: #e7f5ef;
  color: var(--doc-success);
}
.method-tag.get {
  background: #e8f0fe;
  color: var(--doc-blue);
}
.notice-box {
  display: flex;
  gap: 12px;
  background: #ecf7f2;
  border: 1px solid #cce7dc;
  border-radius: 6px;
  padding: 13px 15px;
  margin-bottom: 20px;
  color: #31584e;
}
.notice-box > svg {
  flex: 0 0 auto;
  width: 20px;
  color: var(--doc-primary);
  margin-top: 2px;
}
.notice-box b {
  font-size: 13px;
}
.notice-box p {
  margin: 2px 0 0;
  color: #577269;
  font-size: 12px;
}
.notice-box.warning {
  background: #fff7e9;
  border-color: #f3dfb8;
  color: #735b2e;
}
.notice-box.warning > svg {
  color: #b77a16;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--doc-line);
  border-radius: 6px;
  background: #fff;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 690px;
}
.doc-table th {
  background: #f8fbfa;
  text-align: left;
  color: #526963;
  font-size: 12px;
  font-weight: 800;
  padding: 11px 15px;
  border-bottom: 1px solid var(--doc-line);
  white-space: nowrap;
}
.doc-table td {
  padding: 11px 15px;
  border-bottom: 1px solid #ebf1ef;
  vertical-align: top;
  color: #425650;
  font-size: 12px;
}
.doc-table tr:last-child td {
  border-bottom: 0;
}
.doc-table td:nth-child(1) {
  color: #1e3831;
  font-weight: 700;
}
.doc-table code {
  font-size: 11px;
  white-space: nowrap;
}
.doc-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #075f50;
}
.code-block {
  margin-top: 18px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--doc-code);
  box-shadow: 0 8px 20px rgba(11, 39, 32, 0.12);
}
.code-title {
  height: 40px;
  padding: 0 14px;
  background: #17352f;
  color: #c9dfd8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.copy-code {
  border: 1px solid #497369;
  background: transparent;
  border-radius: 4px;
  color: #e5f4ee;
  font: 700 11px inherit;
  padding: 4px 8px;
  cursor: pointer;
}
.copy-code:hover {
  background: #28534a;
}
.code-block pre {
  margin: 0;
  padding: 17px 19px;
  overflow: auto;
  color: #d7eee6;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}
.code-block code {
  color: inherit;
}
.doc-tip {
  margin: 14px 0 0;
  padding-left: 13px;
  border-left: 2px solid #a7c9bf;
  color: #58716a;
  font-size: 12px;
}
.status-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.status-flow span {
  min-width: 124px;
  border-radius: 6px;
  padding: 9px 12px;
  font: 700 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.status-flow small {
  font: 12px "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.status-flow svg {
  width: 16px;
  color: #7f948d;
}
.status-flow .processing {
  background: #fff0dc;
  color: #a7601a;
}
.status-flow .completed {
  background: #e6f6ef;
  color: #10765a;
}
.status-flow .cancelled {
  background: #f5eeee;
  color: #9c5b5b;
}
.status-flow .refunded {
  background: #eeeafe;
  color: #6653b2;
}
.last-section {
  border-bottom: 0;
}
@media (max-width: 900px) {
  .doc-side {
    width: 215px;
  }
  .doc-main {
    margin-left: 215px;
    width: calc(100% - 215px);
  }
  .doc-content {
    padding: 32px 25px 65px;
  }
  .doc-topbar {
    padding: 0 25px;
  }
  .intro-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .doc-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 0;
    border-top: 2px solid #9bc8ba;
    padding: 15px 0 0;
  }
}
@media (max-width: 680px) {
  .doc-side {
    position: static;
    width: 100%;
    padding: 16px;
  }
  .doc-shell {
    display: block;
  }
  .doc-main {
    margin: 0;
    width: 100%;
  }
  .doc-brand {
    padding: 0 6px 14px;
  }
  .doc-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .doc-nav a {
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }
  .doc-side-footer {
    display: none;
  }
  .doc-topbar {
    height: 56px;
    padding: 0 16px;
  }
  .doc-content {
    padding: 25px 16px 50px;
  }
  .doc-section {
    padding: 27px 0;
  }
  .doc-section h1 {
    font-size: 25px;
  }
  .doc-section h2 {
    font-size: 20px;
  }
  .doc-meta {
    grid-template-columns: 1fr;
  }
  .doc-topbar > div {
    display: none;
  }
  .doc-table {
    min-width: 600px;
  }
}
