/* 帮助页样式 */
.help-page {
  padding: 160px 0 100px;
  background: var(--background-alt);
  min-height: calc(100vh - 72px);
}

.help-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* 侧边栏 */
.help-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
}

.help-search {
  margin-bottom: 24px;
}

.help-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s ease;
}

.help-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.help-nav h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.help-nav-list {
  list-style: none;
}

.help-nav-list li {
  margin-bottom: 8px;
}

.help-nav-list a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 15px;
}

.help-nav-list a:hover,
.help-nav-list a.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* 帮助内容区 */
.help-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.help-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
}

.help-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.help-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.help-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.help-content ul,
.help-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.help-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.help-content .info-box {
  background: rgba(6, 182, 212, 0.1);
  border-left: 4px solid var(--info);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.help-content .warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.help-content code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--primary);
}

.help-content pre {
  background: var(--text-primary);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 20px 0;
}

.help-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* FAQ 样式 */
.faq-section {
  margin-top: 40px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--background-alt);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px 24px;
  max-height: 500px;
}

.faq-answer p {
  margin-bottom: 0;
}
