.guide-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.guide-toc {
  position: sticky;
  top: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 12px;
}

.guide-toc-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-left: 8px;
}

.guide-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
}

.guide-toc a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.guide-toc a.is-active {
  background: var(--accent);
  color: #fff;
}

.guide-body {
  min-width: 0;
  color: var(--ink);
}

.guide-section {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
  /* 锚点跳转时避开顶部吸顶留白 */
  scroll-margin-top: 16px;
}

.guide-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.guide-section h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.guide-section h4 {
  font-size: 0.94rem;
  font-weight: 600;
  margin: 20px 0 10px;
}

.guide-section p {
  margin: 0 0 10px;
  line-height: 1.75;
  font-size: 0.88rem;
}

.guide-section ul,
.guide-section ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.guide-section li {
  line-height: 1.75;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.guide-section code {
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.82rem;
  color: var(--ink);
}

.guide-note {
  color: var(--muted);
  font-size: 0.83rem !important;
}

.guide-callout {
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.86rem;
  line-height: 1.7;
}

.guide-callout-strong {
  border-left-color: var(--warning);
}

.guide-flow {
  counter-reset: guide-flow;
}

.guide-key-list li {
  margin-bottom: 2px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 0.84rem;
}

.guide-table th,
.guide-table td {
  border: 1px solid var(--line-soft);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.guide-table thead th {
  background: var(--surface-soft);
  font-weight: 600;
  white-space: nowrap;
}

.guide-faq {
  margin: 0;
}

.guide-faq dt {
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 14px;
}

.guide-faq dd {
  margin: 4px 0 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
  }
}
