/* 如何使用 - 文档页样式 */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}
.guide-sidebar {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--bg-gray);
  border-right: 1px solid var(--border);
  padding: 32px 0;
}
.guide-sidebar h3 {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0 24px; margin-bottom: 16px;
}
.sidebar-group { margin-bottom: 24px; }
.sidebar-group-title {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  padding: 8px 24px; margin-bottom: 4px;
}
.guide-sidebar a {
  display: block; padding: 10px 24px; font-size: 14px;
  color: var(--text-secondary); transition: all 0.2s;
  border-left: 3px solid transparent;
}
.guide-sidebar a:hover { color: var(--primary); background: rgba(79, 70, 229, 0.04); }
.guide-sidebar a.is-active {
  color: var(--primary); font-weight: 600;
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--primary);
}
.guide-content {
  padding: 48px 64px 80px;
  max-width: 860px;
}
.guide-content h1 {
  font-size: 36px; font-weight: 800; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.guide-meta {
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.guide-content h2 {
  font-size: 22px; font-weight: 700; margin: 40px 0 16px;
  color: var(--text);
}
.guide-content p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px;
}
.guide-content ul, .guide-content ol {
  margin: 0 0 20px 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}
.guide-content li { margin-bottom: 8px; }
.guide-content strong { color: var(--text); font-weight: 600; }
.guide-placeholder {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-radius: var(--radius-lg); padding: 48px 32px;
  text-align: center; margin: 32px 0;
  border: 1px dashed rgba(79, 70, 229, 0.3);
}
.guide-placeholder p { color: var(--primary); font-weight: 500; margin: 0; }

.guide-toggle {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0;
    width: 280px; z-index: 500;
    transform: translateX(-100%); transition: transform 0.3s;
    box-shadow: var(--shadow-lg);
  }
  .guide-sidebar.is-open { transform: translateX(0); }
  .guide-content { padding: 32px 24px 80px; }
  .guide-toggle { display: flex; }
  .guide-overlay {
    display: none; position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.4);
  }
  .guide-overlay.is-open { display: block; }
}
