/* 金融界 AI 工具市场 — 帮助中心样式 — Less */
body {
  background: #fff;
}
/* ===== Docs 帮助中心 ===== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: calc(100vh - 72px);
}
@media (max-width: 768px) {
  .docs-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
    padding: 16px 20px 36px;
    background: #eff3fb;
    min-height: 0;
  }
}
.docs-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
}
.docs-sidebar-header {
  display: none;
}
@media (max-width: 768px) {
  .docs-sidebar {
    position: static;
    top: auto;
    height: auto;
    width: 100%;
    padding: 16px;
    border-right: none;
    border-radius: 8px;
    box-shadow: 0 5px 12px 0 #E5EAF6;
    box-sizing: border-box;
  }
  .docs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font-weight: 500;
    font-size: 20px;
    color: #15233C;
    line-height: 28px;
    cursor: pointer;
    text-align: left;
  }
  .docs-sidebar-header::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.5px solid #041026;
    border-bottom: 1.5px solid #041026;
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .docs-sidebar.collapsed .docs-sidebar-header::after {
    transform: rotate(45deg);
  }
  .docs-sidebar.collapsed .docs-sidebar-body {
    display: none;
  }
  .docs-sidebar-body {
    margin-top: 12px;
  }
}
.docs-nav-group {
  padding: 0 0 16px;
  margin: 0 16px 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.docs-nav-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.docs-nav-group-title {
  padding: 0 20px;
  font-weight: 400;
  font-size: 14px;
  color: #5B6B80;
  line-height: 24px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .docs-nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #EEF1F6;
  }
  .docs-nav-group:first-child {
    padding-top: 4px;
  }
  .docs-nav-group:last-child {
    padding-bottom: 0;
  }
  .docs-nav-group-title {
    flex: 0 0 100%;
    padding: 0;
    margin-bottom: 4px;
    font-size: 16px;
    color: #71819C;
    line-height: 28px;
  }
}
.docs-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding-left: 34px;
  font-weight: 400;
  font-size: 16px;
  color: #041026;
  line-height: 24px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 4px;
  box-sizing: border-box;
}
.docs-nav-item:hover {
  color: var(--text);
  background: #F5F7FC;
}
.docs-nav-item.active {
  color: #006FEA;
  background: #F5F7FC;
  font-weight: 500;
}
.docs-nav-item.active::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 14px;
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--jrj-blue);
}
@media (max-width: 768px) {
  .docs-nav-item {
    display: inline-flex;
    width: auto;
    height: 28px;
    padding: 0 10px;
    color: #71819C;
    line-height: 16px;
    background: #F2F4F8;
  }
  .docs-nav-item:hover {
    color: #5B6B80;
    background: #EAEFF6;
  }
  .docs-nav-item.active {
    color: #376FE8;
    background: #E8EFFF;
    font-weight: 400;
  }
  .docs-nav-item.active::before {
    display: none;
  }
}
.docs-main {
  padding: 40px 48px 64px;
  max-width: 860px;
  background: #fff;
}
@media (max-width: 768px) {
  .docs-main {
    padding: 20px 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFCFF 100%);
    box-shadow: 0px 5px 12px 0px #E5EAF6;
    border-radius: 8px;
  }
}
.doc-title {
  font-weight: 600;
  font-size: 32px;
  color: #041026;
  line-height: 40px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .doc-title {
    font-size: 20px;
    color: #15233C;
    line-height: 28px;
  }
}
.doc-subtitle {
  font-weight: 400;
  font-size: 16px;
  color: #5B6B80;
  line-height: 24px;
  margin-bottom: 40px;
}
.doc-section {
  margin-bottom: 36px;
}
.doc-section h2 {
  font-weight: 500;
  font-size: 20px;
  color: #041026;
  line-height: 28px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E3F4;
}
.doc-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}
.doc-section p {
  font-weight: 400;
  font-size: 16px;
  color: #5B6B80;
  line-height: 28px;
  margin-bottom: 14px;
}
.doc-section ul {
  margin-bottom: 12px;
  padding-left: 20px;
}
.doc-section li {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 4px;
}
.doc-section code {
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 13px;
  color: #c7254e;
}
@media (max-width: 768px) {
  .doc-section h2 {
    font-size: 18px;
    color: #11203C;
  }
}
.doc-code-block {
  background: #1e1e2e;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 12px 0 16px;
  overflow-x: auto;
}
.doc-code-block pre {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #cdd6f4;
  white-space: pre;
}
.doc-code-block .ck {
  color: #89b4fa;
}
.doc-code-block .cs {
  color: #a6e3a1;
}
.doc-code-block .cv {
  color: #f9e2af;
}
.doc-code-block .cm {
  color: #6c7086;
}
.doc-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.7;
}
.doc-alert.info {
  background: #F7F3EF;
  border: 1px solid rgba(180, 130, 60, 0.18);
  color: #876E5D;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}
.doc-alert.warn {
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid rgba(217, 119, 6, 0.15);
  color: #92400E;
}
.doc-alert.tip {
  background: rgba(5, 150, 105, 0.06);
  border: 1px solid rgba(5, 150, 105, 0.12);
  color: #065F46;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 13px;
  border: 1px solid #E2E3F4;
  table-layout: fixed;
}
.doc-table th,
.doc-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #041026;
  line-height: 24px;
  border-right: 1px solid var(--border);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.doc-table th:nth-child(1),
.doc-table td:nth-child(1) {
  width: 120px;
}
.doc-table th:nth-child(2),
.doc-table td:nth-child(2) {
  width: 200px;
}
.doc-table th:last-child,
.doc-table td:last-child {
  border-right: none;
  width: auto;
}
.doc-table tr:has( > :nth-child(2):last-child) th:nth-child(1),
.doc-table tr:has( > :nth-child(2):last-child) td:nth-child(1) {
  width: 140px;
}
.doc-table tr:has( > :nth-child(2):last-child) th:nth-child(2),
.doc-table tr:has( > :nth-child(2):last-child) td:nth-child(2) {
  width: auto;
}
.doc-table th {
  text-align: left;
  background: #F2F5F9;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.doc-table td {
  border-bottom: 1px solid var(--border-light);
  border-right-color: var(--border-light);
  font-weight: 400;
  vertical-align: top;
}
.doc-table tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  .doc-table th:nth-child(1),
  .doc-table td:nth-child(1) {
    width: 88px;
  }
  .doc-table th:nth-child(2),
  .doc-table td:nth-child(2) {
    width: 120px;
  }
  .doc-table tr:has( > :nth-child(2):last-child) th,
  .doc-table tr:has( > :nth-child(2):last-child) td {
    width: 50%;
  }
}
.doc-steps {
  counter-reset: step;
  margin: 12px 0 16px;
}
.doc-step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  counter-increment: step;
}
.doc-step::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--jrj-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .doc-step::before {
    width: 20px;
    height: 20px;
  }
  .doc-step .doc-step-text {
    padding-top: 0;
    margin-top: -3px;
  }
}
.doc-step-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  padding-top: 3px;
}
