/* ============================================================
   page-bangzhu-zhongxin.css — 帮助中心 · Apple 极简文档布局
   ============================================================ */

html.theme-apple-minimal #home-nav {
  position: sticky;
  top: 0;
}

#page-bangzhu a:not(.hc-quick-link):not(.hc-resource-card):not(.hc-path__step):not(.hc-sidebar__link) {
  color: #2997ff;
  font-weight: 500;
  text-underline-offset: 3px;
}

#page-bangzhu a:not(.hc-quick-link):not(.hc-resource-card):not(.hc-path__step):not(.hc-sidebar__link):hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Hero —— */
.hc-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.hc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.hc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 0 16px;
  height: 52px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-search:focus-within {
  border-color: #2997ff;
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15);
}

.hc-search__icon {
  width: 18px;
  height: 18px;
  color: #86868b;
  flex-shrink: 0;
}

.hc-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #1d1d1f;
  outline: none;
}

.hc-search__input::placeholder {
  color: #86868b;
}

.hc-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f5f5f7;
  color: #515154;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.hc-search__clear:hover {
  background: #e5e5ea;
}

.hc-search__hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #86868b;
}

.hc-quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hc-quick-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
  color: inherit;
  text-decoration: none;
}

.hc-quick-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.hc-quick-link__icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.hc-quick-link__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hc-quick-link__text strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.hc-quick-link__text small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.hc-quick-link__arrow {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

/* —— 使用路径 —— */
.hc-path {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid #e5e5ea;
  background: #fff;
}

.hc-path__head {
  margin-bottom: 1rem;
}

.hc-path__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hc-path__track::-webkit-scrollbar {
  display: none;
}

.hc-path__track > li {
  flex: 1;
  min-width: 88px;
  position: relative;
}

.hc-path__track > li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: #e5e5ea;
  z-index: 0;
}

.hc-path__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.hc-path__step:hover {
  text-decoration: none;
  color: inherit;
}

.hc-path__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 2px solid #e5e5ea;
  font-size: 13px;
  font-weight: 700;
  color: #86868b;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hc-path__step:hover .hc-path__dot,
.hc-path__step.is-active .hc-path__dot {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff;
}

.hc-path__label {
  font-size: 12px;
  font-weight: 600;
  color: #515154;
  white-space: nowrap;
}

.hc-path__step.is-active .hc-path__label {
  color: #1d1d1f;
}

/* —— 主布局：侧栏 + 内容 —— */
.hc-body {
  padding: 3rem 0 4rem;
  background: #f5f5f7;
}

.hc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.hc-sidebar {
  position: sticky;
  top: 5rem;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.hc-sidebar__title {
  margin: 0 0 12px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868b;
}

.hc-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hc-sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #515154;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.hc-sidebar__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #86868b;
}

.hc-sidebar__link:hover {
  background: #f5f5f7;
  color: #1d1d1f;
  text-decoration: none;
}

.hc-sidebar__link.is-active {
  background: #1d1d1f;
  color: #fff;
}

.hc-sidebar__link.is-active svg {
  color: rgba(255, 255, 255, 0.75);
}

.hc-sidebar__count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  background: #f5f5f7;
  padding: 2px 7px;
  border-radius: 999px;
}

.hc-sidebar__link.is-active .hc-sidebar__count {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

/* —— FAQ 区块 —— */
.hc-zone {
  scroll-margin-top: 5.5rem;
  padding: 28px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.hc-zone:last-of-type {
  margin-bottom: 0;
}

.hc-zone.is-hidden {
  display: none;
}

.hc-zone__head {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f2;
}

.hc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-faq {
  scroll-margin-top: 5.5rem;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f2;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-faq:hover {
  border-color: #e5e5ea;
}

.hc-faq[open] {
  background: #fff;
  border-color: #e5e5ea;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hc-faq.is-hidden {
  display: none;
}

.hc-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 44px 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #1d1d1f;
  list-style: none;
  position: relative;
}

.hc-faq__q::-webkit-details-marker {
  display: none;
}

.hc-faq__q::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-right: 2px solid #86868b;
  border-bottom: 2px solid #86868b;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.hc-faq[open] .hc-faq__q::after {
  transform: translateY(-50%) rotate(-135deg);
}

.hc-faq__a {
  padding: 0 18px 18px;
}

.hc-faq__a p {
  margin: 0;
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: #515154;
}

.hc-faq__a strong {
  color: #1d1d1f;
  font-weight: 600;
}

.hc-empty {
  margin: 24px 0 0;
  padding: 32px;
  text-align: center;
  font-size: 15px;
  color: #515154;
  background: #fff;
  border: 1px dashed #e5e5ea;
  border-radius: 16px;
}

/* —— 资源卡片 —— */
.hc-resources {
  padding: 0 0 4rem;
  background: #f5f5f7;
}

.hc-resource-card {
  display: block;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hc-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.hc-resource-card--dark {
  background: #1d1d1f;
  border-color: transparent;
}

.hc-resource-card--dark:hover {
  background: #000;
  color: inherit;
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .hc-hero__grid {
    grid-template-columns: 1fr;
  }

  .hc-layout {
    grid-template-columns: 1fr;
  }

  .hc-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .hc-sidebar__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hc-sidebar__link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hc-sidebar__count {
    display: none;
  }

  .hc-zone {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 600px) {
  .hc-hero {
    padding: 2rem 0 1.5rem;
  }

  .hc-path__track > li {
    min-width: 72px;
  }

  .hc-path__label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-quick-link:hover,
  .hc-resource-card:hover {
    transform: none;
  }

  .hc-faq__q::after {
    transition: none;
  }
}
