/* ===== 帮助中心页面专属样式 ===== */
.page-faq {
  --faq-accent-soft: rgba(28, 120, 154, 0.08);
  --faq-accent-strong: rgba(28, 120, 154, 0.14);
  background: var(--c-ivory);
  overflow-x: hidden;
}

/* ---------- 首屏 Hero ---------- */
.faq-hero {
  background: linear-gradient(135deg, rgba(28, 120, 154, 0.14) 0%, rgba(247, 244, 236, 0) 62%);
  border-bottom: 1px solid var(--c-fog);
  padding: 36px 0 44px;
  position: relative;
}

.faq-hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.faq-hero__copy {
  order: 1;
}

.faq-hero__figure {
  order: 2;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-fog);
  background: var(--c-ivory);
  box-shadow: var(--shadow);
}

.faq-hero__figure .figure__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-hero__figure .figure__caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-deep-sea);
  opacity: 0.8;
}

.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-deep-sea);
  opacity: 0.7;
  margin-bottom: 12px;
}

.faq-breadcrumb a {
  color: var(--c-sea-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-sea-blue);
  transition: border-bottom 0.18s ease;
}

.faq-breadcrumb a:hover {
  border-bottom-style: solid;
}

.faq-hero__eyebrow {
  color: var(--c-sea-blue);
  font-weight: 700;
}

.faq-hero__title {
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--c-deep-sea);
  margin: 12px 0 16px;
  max-width: 13em;
}

.faq-hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
  opacity: 0.85;
  max-width: 40em;
}

.faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-fog);
  font-size: 13px;
  color: var(--c-deep-sea);
}

/* ---------- 快速导览 ---------- */
.faq-section--quick {
  padding: 44px 0 36px;
}

.faq-section__desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-ink);
  opacity: 0.7;
}

.faq-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.faq-quick-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.faq-quick-card:hover {
  border-color: var(--c-sea-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.faq-quick-card:focus-visible {
  outline: 2px solid var(--c-sea-blue);
  outline-offset: 2px;
}

.faq-quick-card__num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-sea-blue);
}

.faq-quick-card__name {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-deep-sea);
}

.faq-quick-card__desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink);
  opacity: 0.75;
}

/* ---------- 主体布局 ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 36px;
}

/* 目录条 */
.faq-toc {
  z-index: 5;
  background: var(--c-ivory);
  padding: 0 0 18px;
  border-bottom: 1px solid var(--c-fog);
  margin-bottom: 12px;
}

.faq-toc__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-deep-sea);
  margin: 0 0 10px;
}

.faq-toc__list {
  list-style: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0;
  scrollbar-width: none;
}

.faq-toc__list::-webkit-scrollbar {
  display: none;
}

.faq-toc__list a {
  display: block;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-fog);
  background: #ffffff;
  color: var(--c-ink);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.faq-toc__list a:hover {
  border-color: var(--c-sea-blue);
  color: var(--c-sea-blue);
  background: var(--faq-accent-soft);
}

.faq-toc__list a:focus-visible {
  outline: 2px solid var(--c-sea-blue);
  outline-offset: 2px;
}

.faq-content {
  min-width: 0;
}

/* ---------- 问答区块 ---------- */
.faq-block {
  padding: 24px 0 12px;
  scroll-margin-top: 24px;
}

.faq-block__head {
  margin-bottom: 16px;
}

.faq-block__head .headline {
  font-size: 26px;
  line-height: 1.2;
  color: var(--c-deep-sea);
  margin: 8px 0 0;
}

.faq-block__head .eyebrow {
  color: var(--c-sea-blue);
  font-weight: 700;
}

/* 折叠条目 */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item:hover {
  border-color: var(--c-sea-blue);
  box-shadow: 0 2px 8px rgba(28, 43, 48, 0.06);
}

.faq-item[open] {
  border-color: var(--c-sea-blue);
  box-shadow: 0 2px 8px rgba(28, 43, 48, 0.05);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--c-sea-blue);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  position: relative;
  border: 1px solid var(--c-fog);
  border-radius: 50%;
  background: var(--c-ivory);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-sea-blue);
  border-radius: 1px;
}

.faq-item__icon::before {
  width: 10px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 10px;
  transition: height 0.18s ease;
}

.faq-item[open] .faq-item__icon {
  border-color: var(--c-sea-blue);
  background: var(--faq-accent-soft);
}

.faq-item[open] .faq-item__icon::after {
  height: 0;
}

.faq-item__body {
  padding: 0 20px 20px;
  border-top: 1px dashed var(--c-fog);
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-ink);
}

.faq-item__body p + p {
  margin-top: 10px;
}

.faq-mark {
  background: transparent;
  color: var(--c-deep-sea);
  font-weight: 700;
  padding: 0 2px;
  border-bottom: 2px solid var(--c-sand);
  transition: background-color 0.18s ease;
}

.faq-mark:hover {
  background: rgba(217, 164, 65, 0.18);
}

.faq-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--c-fog);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--c-deep-sea);
}

.faq-item__links {
  margin-top: 12px;
  font-size: 13px;
  color: var(--c-deep-sea);
}

.faq-item__links a {
  color: var(--c-sea-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-sea-blue);
  transition: border-bottom 0.18s ease;
}

.faq-item__links a:hover {
  border-bottom-style: solid;
}

/* 下载配图 */
.faq-download__figure {
  margin: 24px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-fog);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.faq-download__figure .figure__img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-download__figure .figure__caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-deep-sea);
  opacity: 0.8;
}

/* ---------- 联系我们 ---------- */
.faq-block--contact {
  padding-top: 28px;
}

.faq-contact-card {
  background: linear-gradient(135deg, rgba(28, 120, 154, 0.1) 0%, rgba(247, 244, 236, 0) 60%);
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  padding: 24px;
}

.faq-contact-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.faq-contact-card__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
}

.faq-contact-card__item--full {
  grid-column: 1 / -1;
}

.faq-contact-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-deep-sea);
  opacity: 0.75;
}

.faq-contact-card__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  word-break: break-all;
}

.faq-contact-card__note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-ink);
  opacity: 0.8;
}

.faq-item--help {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.faq-item--help summary {
  color: var(--c-deep-sea);
  font-weight: 700;
}

.faq-legal-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-ink);
  opacity: 0.6;
}

.faq-legal-note a {
  color: var(--c-sea-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-sea-blue);
}

.faq-legal-note a:hover {
  border-bottom-style: solid;
}

/* ---------- 底部波浪 ---------- */
.faq-wave {
  margin-top: 48px;
  line-height: 0;
  overflow-x: hidden;
}

.faq-wave svg {
  display: block;
  width: 100%;
  height: 64px;
}

/* ---------- 平板与桌面端调整 ---------- */
@media (min-width: 640px) {
  .faq-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 36px;
  }

  .faq-hero__copy {
    order: 0;
  }

  .faq-hero__figure {
    order: 0;
  }

  .faq-quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .faq-contact-card__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .faq-toc {
    position: sticky;
    top: 24px;
    background: #ffffff;
    border: 1px solid var(--c-fog);
    border-radius: var(--radius);
    padding: 20px;
    margin: 0;
  }

  .faq-toc__list {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding: 0;
  }

  .faq-toc__list a {
    display: block;
    white-space: normal;
    padding: 9px 12px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent;
    font-size: 14px;
  }

  .faq-toc__list a:hover {
    border-color: var(--c-fog);
    background: var(--faq-accent-soft);
  }

  .faq-content {
    padding-top: 0;
  }

  .faq-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .faq-block {
    padding: 20px 0 28px;
  }

  .faq-block__head .headline {
    font-size: 30px;
  }

  .faq-item summary {
    padding: 20px 24px;
    font-size: 17px;
  }

  .faq-item__body {
    padding: 0 24px 24px;
  }

  .faq-wave {
    margin-top: 56px;
  }
}
