:root {
  --docs-primary: #0B4F6C;
  --docs-bg: #F3F7F9;
  --docs-sidebar: #E8F0F4;
  --docs-border: #D0DCE4;
  --docs-text: #0F1C24;
  --docs-muted: #5B6B75;
  --docs-code-bg: #15232C;
  --docs-hover: #D6E8F0;
  --docs-callout: #E6F2F6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--docs-bg);
  color: var(--docs-text);
  line-height: 1.7;
}

a { color: var(--docs-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header.docs-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF; border-bottom: 1px solid var(--docs-border);
  height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.docs-logo { font-size: 18px; font-weight: 800; color: #0F1C24; display: flex; align-items: center; gap: 8px; }
.docs-logo span { font-weight: 600; color: var(--docs-primary); margin-left: 2px; }
.docs-nav-links { display: flex; gap: 20px; list-style: none; font-size: 14px; }
.docs-nav-links a { color: var(--docs-muted); font-weight: 500; }
.docs-nav-links a:hover, .docs-nav-links a.active { color: var(--docs-primary); font-weight: 600; text-decoration: none; }

.header-cta {
  background: var(--docs-primary); color: #fff !important;
  padding: 6px 14px; border-radius: 4px; font-size: 13px; font-weight: 600;
  line-height: 1.3; text-decoration: none !important;
}
.header-cta:hover { opacity: 0.92; text-decoration: none !important; }

.docs-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px;
  max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 60px);
}
.docs-sidebar-left {
  background: var(--docs-sidebar); border-right: 1px solid var(--docs-border);
  padding: 24px 16px; position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto; font-size: 14px;
}
.sidebar-group-title {
  font-size: 12px; font-weight: 700; color: #8A9AA6;
  text-transform: uppercase; margin: 16px 0 8px; letter-spacing: 0.05em;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a {
  display: block; padding: 6px 12px; border-radius: 6px;
  color: var(--docs-muted); font-weight: 500;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--docs-hover); color: var(--docs-primary); text-decoration: none;
}

.docs-main-content { padding: 36px 48px; max-width: 860px; }
.docs-main-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.docs-main-content h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.docs-main-content ul { padding-left: 22px; margin: 12px 0; }
.docs-main-content li { margin-bottom: 8px; }
.lead { color: var(--docs-muted); font-size: 16px; margin-bottom: 24px; }

.docs-toc-right {
  padding: 24px 16px; position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto; font-size: 13px; color: var(--docs-muted);
  border-left: 1px solid #E2EBF0;
}
.toc-title { font-weight: 700; color: #0F1C24; margin-bottom: 12px; font-size: 12px; text-transform: uppercase; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { color: var(--docs-muted); }
.toc-list a:hover { color: var(--docs-primary); text-decoration: none; }

.callout-box {
  background: var(--docs-callout); border-left: 4px solid var(--docs-primary);
  border-radius: 4px; padding: 16px; margin: 20px 0; font-size: 14px; color: #0B4F6C;
}
.docs-code {
  background: var(--docs-code-bg); color: #9AD0E8; padding: 16px;
  border-radius: 8px; font-family: Consolas, "Courier New", monospace;
  font-size: 13px; margin: 16px 0; overflow-x: auto;
}

.flow-step-card {
  background: #FFFFFF; border: 1px solid var(--docs-border);
  border-radius: 8px; padding: 24px; margin-bottom: 24px; position: relative;
}
.flow-step-badge {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: var(--docs-primary); color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-solid {
  background: var(--docs-primary); color: #fff !important;
  padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 600;
  text-decoration: none !important;
}
.btn-solid:hover { opacity: 0.92; text-decoration: none !important; }

footer.docs-footer {
  border-top: 1px solid var(--docs-border); background: #E8F0F4;
  padding: 40px 0 20px; font-size: 13px; color: var(--docs-muted);
}
.docs-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}

@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .docs-toc-right { display: none; }
}
@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar-left { display: none; }
  .docs-main-content { padding: 24px; }
  .docs-nav-links { display: none; }
}
