/* 帮助中心补充样式 */

/* 热门教程区 */
.help-hot-section {
  padding-top: 48px;
  padding-bottom: 8px;
}
.help-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.help-hot-col {
  background: #fff;
  border: 1px solid var(--border, #e8edf5);
  border-radius: var(--radius, 12px);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.help-hot-col__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #e8edf5);
}
.help-hot-col__head h3 {
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--text-dark);
}
.help-hot-col__head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}
.help-hot-col__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.help-hot-col__icon--blue { background: linear-gradient(135deg, #108bff, #0033d9); }
.help-hot-col__icon--cyan { background: linear-gradient(135deg, #1596ff, #43bdff); }
.help-hot-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-hot-links li + li { margin-top: 4px; }
.help-hot-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-body);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.help-hot-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.45;
  flex-shrink: 0;
}
.help-hot-links a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* CMS 分类卡片（categories_section 槽位） */
.help-cms-categories {
  padding-top: 48px;
  padding-bottom: 16px;
}
.help-cms-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.help-cms-cat-card {
  background: #fff;
  border: 1px solid var(--border, #e8edf5);
  border-radius: var(--radius, 12px);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.help-cms-cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.help-cms-cat-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.help-cms-cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.help-cms-cat-card__head h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text-dark);
}
.help-cms-cat-card__desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
}
.help-cms-cat-card__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-cms-cat-card__links li + li { margin-top: 6px; }
.help-cms-cat-card__links a {
  font-size: 13px;
  color: var(--text-body);
  transition: color 0.2s;
}
.help-cms-cat-card__links a:hover { color: var(--primary); }

/* 分类卡片：覆盖 style.css 中用于叠在 Hero 上的负边距，改为正常文档流 */
.help-categories-section {
  padding-top: 48px;
  padding-bottom: 16px;
}
.help-categories.help-categories--browse {
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.help-categories--browse .help-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  color: inherit;
}
.help-categories--browse .help-cat-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.help-categories--browse .help-cat-card:focus:not(:focus-visible) {
  outline: none;
}
.help-cat-count {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 999px;
}

/* 搜索下拉 */
.help-search-results {  max-width: 640px;
  margin: 16px auto 0;
  background: rgba(255,255,255,.98);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  text-align: left;
  overflow: hidden;
}
.help-search-results__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.help-search-results__list a {
  display: block;
  padding: 12px 18px;
  color: var(--text-primary, #1a2b42);
  font-size: 14px;
}
.help-search-results__list a:hover {
  background: var(--bg-light, #f4f8ff);
}
.help-search-results__list small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted, #6b7a90);
  font-size: 12px;
}
.help-search-results__badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--color-primary, #108bff);
  margin-right: 8px;
}
.help-search-results__empty {
  padding: 16px 18px;
  margin: 0;
  color: var(--text-muted, #6b7a90);
  font-size: 14px;
}
.help-faq-section {
  padding-top: 56px;
  padding-bottom: 64px;
}
.faq-content__toolbar {
  margin-bottom: 20px;
}
.faq-content__toolbar h3 {
  margin-bottom: 0;
}
.faq-content__hint {  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted, #6b7a90);
}
.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}.help-empty,
.help-search-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted, #6b7a90);
}
.help-quick-cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.help-quick-cta p {
  color: var(--text-muted, #6b7a90);
  margin-bottom: 24px;
}
.help-quick-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.help-article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.help-article-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  background: #fff;
  border: 1px solid var(--border-color, #e8edf5);
  border-radius: 12px;
  padding: 20px;
}
.help-article-sidebar h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.help-article-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-article-sidebar li + li { margin-top: 4px; }
.help-article-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary, #3d4f66);
}
.help-article-sidebar li.active a,
.help-article-sidebar a:hover {
  background: var(--bg-light, #f4f8ff);
  color: var(--color-primary, #108bff);
}
.help-back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-primary, #108bff);
}
.help-article__breadcrumb {
  font-size: 13px;
  color: var(--text-muted, #6b7a90);
  margin-bottom: 20px;
}
.help-article__breadcrumb a { color: var(--color-primary, #108bff); }
.help-article__summary {
  font-size: 16px;
  color: var(--text-secondary, #3d4f66);
  margin-bottom: 24px;
  line-height: 1.7;
}
.help-article__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary, #1a2b42);
}
.help-article__body h2,
.help-article__body h3 {
  margin: 1.6em 0 .6em;
}
.help-article__related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color, #e8edf5);
}
.help-article__related ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.help-article__related li + li { margin-top: 8px; }
.help-article__actions { margin-top: 32px; }

@media (max-width: 1024px) {
  .help-hot-grid { grid-template-columns: 1fr; }
  .help-cms-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .help-categories.help-categories--browse { grid-template-columns: repeat(2, 1fr); }
  .help-article-layout { grid-template-columns: 1fr; }
  .help-article-sidebar { position: static; }
}
@media (max-width: 640px) {
  .help-cms-cat-grid { grid-template-columns: 1fr; }
  .help-categories.help-categories--browse { grid-template-columns: 1fr; }
}