/* ==================== 帮助中心 ==================== */
.hc-page {
  --hc-fg: var(--color-fg);
  --hc-text: #3a3f45;
  --hc-muted: var(--color-fg-muted);
  --hc-line: rgba(0, 0, 0, .08);
  --hc-line-strong: rgba(0, 0, 0, .12);
  --hc-subtle: var(--color-bg-subtle);
  --hc-brand: var(--color-brand);
  --hc-accent: var(--brand-700);
  --hc-accent-soft: var(--brand-50);
  width: 100%;
  min-height: 80vh;
  background: var(--color-surface);
  color: var(--hc-text);
}

.hc-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------- 标题与搜索 ---------- */
.hc-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(47, 178, 106, .10) 0%, rgba(47, 178, 106, 0) 70%),
    linear-gradient(180deg, #f5faf7 0%, #ffffff 100%);
  border-bottom: 1px solid var(--hc-line);
}

.hc-hero-inner {
  max-width: 760px;
  text-align: center;
}

.hc-title {
  margin: 0;
  font-size: 40px;
  font-weight: var(--fw-bold, 700);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--hc-fg);
}

.hc-subtitle {
  margin: 12px 0 32px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--hc-muted);
}

.hc-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  height: 56px;
  margin: 0 auto;
  padding: 0 6px 0 20px;
  border: 1px solid var(--hc-line-strong);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(17, 85, 51, .06);
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hc-search:focus-within {
  border-color: var(--hc-brand);
  box-shadow: 0 0 0 4px rgba(47, 178, 106, .14), 0 8px 24px rgba(17, 85, 51, .06);
}

.hc-search-icon {
  flex: 0 0 auto;
  font-size: 20px;
  color: var(--hc-muted);
}

.hc-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--hc-fg);
  -webkit-appearance: none;
  appearance: none;
}

.hc-search-input::-webkit-search-cancel-button {
  display: none;
}

.hc-search-input::placeholder {
  color: #9aa1a9;
}

.hc-search-clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hc-subtle);
  color: var(--hc-muted);
  font-size: 12px;
  cursor: pointer;
}

.hc-search-submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-brand);
  color: #fff;
  font-size: 15px;
  font-weight: var(--fw-semibold, 600);
  cursor: pointer;
  transition: background-color .15s ease;
}

.hc-search-submit:hover {
  background: var(--brand-600);
}

/* ---------- 主体 ---------- */
.hc-body {
  padding-top: 56px;
  padding-bottom: 96px;
}

.hc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hc-section-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: var(--fw-semibold, 600);
  line-height: 1.4;
  color: var(--hc-fg);
}

.hc-section-head .hc-section-title {
  margin: 0;
}

.hc-section-note {
  margin: 0;
  font-size: 14px;
  color: var(--hc-muted);
}

/* 分类卡片 */
.hc-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-topic {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--hc-line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--hc-fg);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.hc-topic:hover {
  border-color: rgba(0, 0, 0, .2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.hc-topic.is-active {
  border-color: var(--hc-brand);
  background: var(--hc-accent-soft);
  box-shadow: inset 0 0 0 1px var(--hc-brand);
}

.hc-topic-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hc-subtle);
}

.hc-topic.is-active .hc-topic-icon {
  background: #fff;
}

.hc-topic-icon .gta-icon {
  width: 24px;
  height: 24px;
}

.hc-topic-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hc-topic-name {
  font-size: 15px;
  font-weight: var(--fw-semibold, 600);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hc-topic-count {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--hc-muted);
}

/* 分类问答 */
.hc-panels {
  margin-top: 48px;
  scroll-margin-top: 16px;
}

.hc-panel-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: var(--fw-bold, 700);
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--hc-fg);
}

.hc-sub {
  margin-top: 28px;
}

.hc-sub-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: var(--fw-semibold, 600);
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--hc-muted);
}

/* 手风琴 */
.hc-faq-list {
  border-top: 1px solid var(--hc-line);
}

.hc-faq-item {
  border-bottom: 1px solid var(--hc-line);
}

.hc-faq-heading {
  margin: 0;
  font: inherit;
}

.hc-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 4px;
  border: 0;
  background: transparent;
  color: var(--hc-fg);
  font-size: 16px;
  font-weight: var(--fw-medium, 500);
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.hc-faq-q:hover .hc-faq-q-text > span:last-child {
  color: var(--hc-accent);
}

.hc-faq-q-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hc-faq-meta {
  font-size: 12px;
  font-weight: var(--fw-normal, 400);
  line-height: 1.5;
  color: var(--hc-muted);
}

.hc-faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hc-subtle);
  color: var(--hc-muted);
  font-size: 18px;
  transition: background-color .15s ease, color .15s ease;
}

.hc-faq-icon .gta-icon {
  transition: transform .2s ease;
}

.hc-faq-item.is-open .hc-faq-icon {
  background: var(--hc-accent-soft);
  color: var(--hc-accent);
}

.hc-faq-item.is-open .hc-faq-icon .gta-icon {
  transform: rotate(180deg);
}

.hc-faq-a {
  padding: 0 52px 20px 4px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--hc-text);
}

.hc-faq-a[hidden] {
  display: none;
}

.hc-faq-a p {
  margin: 0 0 10px;
}

.hc-faq-a > :last-child {
  margin-bottom: 0;
}

.hc-answer-list {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.hc-answer-list li {
  margin: 6px 0;
  padding-left: 2px;
}

.hc-answer-list li::marker {
  color: var(--hc-brand);
}

.hc-answer-list strong {
  font-weight: var(--fw-semibold, 600);
  color: var(--hc-fg);
}

.hc-answer-sep {
  color: var(--hc-muted);
}

.hc-link {
  color: var(--hc-accent);
  text-decoration: underline;
  text-decoration-color: rgba(28, 138, 77, .35);
  text-underline-offset: 3px;
}

.hc-link:hover {
  text-decoration-color: currentColor;
}

/* 搜索结果与空状态 */
.hc-results {
  margin-bottom: 8px;
}

.hc-empty {
  padding: 48px 24px;
  border-radius: 16px;
  background: var(--hc-subtle);
  text-align: center;
}

.hc-empty-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: var(--fw-semibold, 600);
  color: var(--hc-fg);
  overflow-wrap: anywhere;
}

.hc-empty-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--hc-muted);
}

/* 仍需帮助 */
.hc-support {
  display: flex;
  /* 文字在上、按钮在下：按钮有 4 个，横排时会把说明文字挤成一列窄条 */
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 72px;
  padding: 32px 36px;
  border: 1px solid var(--hc-line);
  border-radius: 20px;
  background: var(--hc-subtle);
}

.hc-support-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: var(--fw-semibold, 600);
  line-height: 1.4;
  color: var(--hc-fg);
}

.hc-support-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hc-muted);
}

.hc-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hc-support-channels {
  width: 100%;
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: var(--fw-semibold, 600);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.hc-btn--primary {
  border: 1px solid var(--hc-brand);
  background: var(--hc-brand);
  color: #fff;
}

.hc-btn--primary:hover {
  background: var(--brand-600);
}

.hc-btn--ghost {
  border: 1px solid var(--hc-line-strong);
  background: #fff;
  color: var(--hc-fg);
}

.hc-btn--ghost:hover {
  border-color: rgba(0, 0, 0, .28);
}

/* 键盘焦点 */
.hc-page a:focus-visible,
.hc-page button:focus-visible {
  outline: 2px solid var(--hc-brand);
  outline-offset: 2px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 991px) {
  .hc-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-support {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .hc-shell {
    padding: 0 16px;
  }

  .hc-hero {
    padding: 40px 0 32px;
  }

  .hc-title {
    font-size: 30px;
  }

  .hc-subtitle {
    margin: 8px 0 24px;
    font-size: 15px;
  }

  .hc-search {
    height: 52px;
    padding: 0 4px 0 16px;
  }

  .hc-search-submit {
    height: 42px;
    padding: 0 16px;
  }

  .hc-body {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .hc-section-title {
    font-size: 19px;
    margin-bottom: 16px;
  }

  .hc-topic-grid {
    gap: 10px;
  }

  .hc-topic {
    gap: 10px;
    min-height: 64px;
    padding: 12px;
  }

  .hc-topic-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .hc-topic-icon .gta-icon {
    width: 20px;
    height: 20px;
  }

  .hc-topic-name {
    font-size: 14px;
  }

  .hc-topic-count {
    font-size: 12px;
  }

  .hc-panels {
    margin-top: 36px;
  }

  .hc-panel-title {
    font-size: 23px;
  }

  .hc-faq-q {
    min-height: 56px;
    padding: 14px 0;
    font-size: 15px;
  }

  .hc-faq-a {
    padding: 0 0 18px;
  }

  .hc-support {
    margin-top: 48px;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .hc-support-actions {
    width: 100%;
    flex-direction: column;
  }

  .hc-support-actions .hc-btn {
    width: 100%;
  }
}

