/* Documentation */
.docs-page {
  color: #263246;
  background: #f7f9fc;
}

.docs-page .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.docs-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(8, 20, 38, 0.96);
  border-bottom: 1px solid rgba(148, 185, 255, 0.12);
  backdrop-filter: blur(16px);
}

.docs-header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(1440px, calc(100% - 48px));
  height: 64px;
  margin: 0 auto;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f2f7ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-brand:hover {
  color: #fff;
}

.docs-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: linear-gradient(145deg, #2f7df6, #1d4ed8);
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.docs-brand .brand-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #dceaff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-brand em {
  margin-left: 4px;
  padding: 2px 6px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.docs-topnav {
  display: flex;
  gap: 24px;
}

.docs-topnav a {
  color: #8ca2c0;
  font-size: 12px;
}

.docs-topnav a:hover {
  color: #e2edfc;
}

.docs-topnav a.active {
  color: #dbeafe;
}

.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.docs-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8ca2c0;
  font-size: 11px;
}

.docs-back:hover {
  color: #dbeafe;
}

.docs-back .icon {
  width: 13px;
  height: 13px;
}

.docs-header-actions .btn {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 10.5px;
}

.docs-menu {
  display: none;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #c7d7ec;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 185, 255, 0.16);
  border-radius: 8px;
}

.docs-shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  gap: 52px;
}

.docs-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  padding: 36px 0 40px;
  overflow-y: auto;
}

.docs-side-group {
  display: grid;
  gap: 1px;
  margin-bottom: 25px;
}

.docs-side-group > span {
  margin-bottom: 7px;
  padding: 0 10px;
  color: #98a2b3;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.docs-side-group a {
  padding: 6px 10px;
  color: #667085;
  border-left: 2px solid transparent;
  font-size: 11.5px;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.docs-side-group a:hover {
  color: #1d4ed8;
  background: #f2f7ff;
}

.docs-side-group a.active {
  color: #1d4ed8;
  background: #eef5ff;
  border-left-color: #2563eb;
  font-weight: 600;
}

.docs-side-card {
  padding: 15px;
  background: linear-gradient(145deg, #eff6ff, #f8fbff);
  border: 1px solid #dce9fb;
  border-radius: 11px;
}

.docs-side-card strong {
  display: block;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 680;
}

.docs-side-card p {
  margin-top: 4px;
  color: #6b7f9d;
  font-size: 9.5px;
  line-height: 1.6;
}

.docs-side-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  color: #1d4ed8;
  font-size: 9.5px;
  font-weight: 650;
}

.docs-side-card a .icon {
  width: 11px;
  height: 11px;
}

.docs-main {
  min-width: 0;
  padding: 50px 0 50px;
}

.docs-hero {
  padding: 18px 0 38px;
  border-bottom: 1px solid #e5eaf2;
}

.docs-eyebrow {
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.docs-hero h1 {
  margin-top: 9px;
  color: #0b1424;
  font-size: 44px;
  font-weight: 780;
  letter-spacing: -0.05em;
}

.docs-hero > p {
  max-width: 650px;
  margin-top: 12px;
  color: #667085;
  font-size: 13.5px;
  line-height: 1.8;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  color: #98a2b3;
  font-size: 9.5px;
}

.docs-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #067a54;
  font-weight: 600;
}

.docs-meta i {
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.7);
}

.doc-section {
  padding: 38px 0 6px;
  scroll-margin-top: 82px;
}

.doc-kicker {
  color: #2563eb;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.doc-section h2 {
  margin-top: 5px;
  color: #0b1424;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.doc-section h3 {
  margin: 25px 0 10px;
  color: #1d2939;
  font-size: 15px;
  font-weight: 700;
}

.doc-lead {
  max-width: 720px;
  margin-top: 8px;
  color: #667085;
  font-size: 12.5px;
  line-height: 1.8;
}

.doc-note {
  margin-top: 9px;
  color: #7a8798;
  font-size: 10.5px;
  line-height: 1.7;
}

.doc-section code {
  padding: 1px 5px;
  color: #1e40af;
  background: #edf4ff;
  border: 1px solid #dfeafd;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9em;
}

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

.quick-step {
  position: relative;
  padding: 17px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
}

.quick-num {
  display: inline-block;
  color: #b8c4d8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.quick-step h3 {
  margin: 8px 0 5px;
  font-size: 12.5px;
  font-weight: 680;
}

.quick-step p {
  color: #7a8798;
  font-size: 10px;
  line-height: 1.65;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.callout > .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.callout strong {
  display: block;
  font-size: 11.5px;
  font-weight: 680;
}

.callout p {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.65;
}

.callout code {
  border: 0;
  font-size: 0.95em;
}

.callout-info {
  color: #1e4d92;
  background: #f2f7ff;
  border-color: #d8e6ff;
}

.callout-warning {
  color: #86510b;
  background: #fffbf0;
  border-color: #f2e0b8;
}

.callout-warning code {
  color: #7c4305;
  background: rgba(180, 83, 9, 0.08);
}

.callout-danger {
  color: #9f1c1c;
  background: #fff5f5;
  border-color: #f5d1d1;
}

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

.concept-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 11px;
}

.concept-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  border-radius: 9px;
}

.concept-icon .icon {
  width: 16px;
  height: 16px;
}

.concept-icon.blue { color: #1d4ed8; background: #edf4ff; }
.concept-icon.cyan { color: #0e7490; background: #ecfeff; }
.concept-icon.amber { color: #b45309; background: #fff7e6; }
.concept-icon.violet { color: #6d28d9; background: #f3edff; }

.concept-card h3 {
  margin: 0;
  font-size: 12.5px;
}

.concept-card p {
  margin-top: 5px;
  color: #7a8798;
  font-size: 10.5px;
  line-height: 1.7;
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: #0b1829;
  border: 1px solid #1d2d44;
  border-radius: 10px;
}

.method-badge {
  padding: 3px 7px;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
}

.endpoint-line code {
  color: #d7e5f8;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  margin-left: auto;
  padding: 3px 7px;
  color: #8ba1bd;
  background: transparent;
  border: 1px solid rgba(148, 185, 255, 0.14);
  border-radius: 5px;
  font-size: 8.5px;
}

.copy-btn:hover {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
}

.copy-btn .icon {
  width: 11px;
  height: 11px;
}

.code-shell {
  margin-top: 14px;
  overflow: hidden;
  background: #0a1525;
  border: 1px solid #1d2d44;
  border-radius: 10px;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  color: #7f93ae;
  background: #0d1a2c;
  border-bottom: 1px solid #1b2a40;
  font-family: var(--mono);
  font-size: 8.5px;
}

.code-head .copy-btn {
  margin-left: auto;
}

.code-shell pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  color: #c9d6e8;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.8;
  tab-size: 2;
}

.code-shell pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: inherit;
}

.table-card {
  margin-top: 15px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.doc-table th {
  padding: 9px 13px;
  color: #7a8798;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef6;
  font-size: 8.5px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.doc-table td {
  padding: 10px 13px;
  color: #667085;
  border-bottom: 1px solid #f0f3f8;
  line-height: 1.6;
  vertical-align: top;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-table code {
  white-space: nowrap;
}

.required {
  color: #b42318;
  font-weight: 600;
}

.optional {
  color: #98a2b3;
}

.field-table {
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f3f8;
  font-size: 10.5px;
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row > span {
  color: #667085;
  line-height: 1.6;
}

.do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.do-card {
  padding: 17px;
  border: 1px solid;
  border-radius: 11px;
}

.do-card.good {
  background: #f5fcf8;
  border-color: #d4efe2;
}

.do-card.bad {
  background: #fff8f8;
  border-color: #f4dddd;
}

.do-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12px;
}

.do-card h3 span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.do-card.good h3 {
  color: #05684a;
}

.do-card.good h3 span {
  color: #fff;
  background: #10b981;
}

.do-card.bad h3 {
  color: #9f1c1c;
}

.do-card.bad h3 span {
  color: #fff;
  background: #ef4444;
}

.do-card ul {
  display: grid;
  gap: 6px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.do-card li {
  position: relative;
  padding-left: 13px;
  color: #667085;
  font-size: 10px;
  line-height: 1.65;
}

.do-card li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: #b8c4d8;
  border-radius: 50%;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 20px;
}

.flow-node {
  flex: 1;
  padding: 13px;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 9px;
}

.flow-node > span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #1d4ed8;
  background: #edf4ff;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
}

.flow-node strong {
  display: block;
  margin-top: 7px;
  color: #344054;
  font-size: 10.5px;
}

.flow-node p {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 8.5px;
  line-height: 1.5;
}

.flow-node.good {
  background: #f3fbf7;
  border-color: #ccecdc;
}

.flow-node.good strong {
  color: #05684a;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: #c4cfdf;
  font-size: 15px;
}

.rules {
  display: grid;
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: #e8edf5;
  border: 1px solid #e8edf5;
  border-radius: 10px;
}

.rules li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
}

.rules li > span {
  color: #b8c4d8;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  flex: 0 0 auto;
}

.rules p {
  color: #667085;
  font-size: 10.5px;
  line-height: 1.7;
}

.rules.compact {
  margin-top: 14px;
}

.rules.compact li {
  padding: 10px 14px;
}

.faq-item {
  margin-top: 9px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 9px;
}

.faq-item summary {
  position: relative;
  padding: 13px 38px 13px 15px;
  color: #344054;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 15px;
  color: #98a2b3;
  font-size: 16px;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 15px 14px;
  color: #7a8798;
  font-size: 10.5px;
  line-height: 1.75;
}

.docs-end {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 46px;
  padding: 20px;
  background: linear-gradient(135deg, #0b1a2e, #102744);
  border-radius: 13px;
}

.docs-end-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 10px;
  flex: 0 0 auto;
}

.docs-end-icon .icon {
  width: 18px;
  height: 18px;
}

.docs-end > div {
  flex: 1;
}

.docs-end strong {
  display: block;
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 680;
}

.docs-end p {
  margin-top: 2px;
  color: #8ca2c0;
  font-size: 10px;
}

.docs-end .btn {
  color: #04101f;
  background: linear-gradient(135deg, #e0f2fe, #7dd3fc);
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.docs-end .btn:hover {
  color: #04101f;
  background: linear-gradient(135deg, #f0f9ff, #bae6fd);
}

.docs-end .btn .icon {
  width: 14px;
  height: 14px;
}

.docs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 18px;
  color: #a1aab8;
  border-top: 1px solid #e5eaf2;
  font-size: 9px;
}

.docs-footer a {
  color: #7a8798;
}

.docs-footer a:hover {
  color: #1d4ed8;
}

@media (max-width: 1050px) {
  .docs-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }

  .docs-topnav {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-shell {
    display: block;
    width: min(100% - 32px, 760px);
  }

  .docs-sidebar {
    position: fixed;
    z-index: 45;
    top: 64px;
    bottom: 0;
    left: 0;
    width: 260px;
    max-height: none;
    padding: 24px 20px;
    background: #fff;
    border-right: 1px solid #e5eaf2;
    box-shadow: 20px 0 50px rgba(16, 24, 40, 0.12);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-menu {
    display: grid;
  }

  .docs-main {
    padding-top: 30px;
  }

  .docs-hero h1 {
    font-size: 37px;
  }

  .docs-header-inner {
    width: calc(100% - 32px);
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .docs-back {
    display: none;
  }

  .docs-brand {
    font-size: 14px;
  }

  .docs-hero h1 {
    font-size: 33px;
  }

  .docs-hero > p {
    font-size: 12px;
  }

  .quick-steps,
  .concept-grid,
  .do-grid {
    grid-template-columns: 1fr;
  }

  .doc-section h2 {
    font-size: 24px;
  }

  .flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    height: 16px;
  }

  .field-row {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .table-card {
    overflow-x: auto;
  }

  .doc-table {
    min-width: 620px;
  }

  .docs-end {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .docs-end .btn {
    width: 100%;
    margin-top: 4px;
  }

  .code-shell pre {
    font-size: 9.5px;
  }
}

/* KT验证系统 品牌头像（用户提供的 logo） */
.brand-mark {
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
