/* FQA专区 - 沿用桌面 FAQ 页内容区样式，适配站点公共头尾 */
:root {
  --fqa-brand: #04CB94;
  --fqa-brand-dark: #03a87a;
  --fqa-brand-soft: #e8faf4;
  --fqa-text: #1F2D3D;
  --fqa-text-secondary: #475669;
  --fqa-text-muted: #8492A6;
  --fqa-border: #E5E9F2;
  --fqa-bg: #F7FAFC;
  --fqa-white: #fff;
  --fqa-shadow: 0 8px 28px rgba(31, 45, 61, 0.08);
  --fqa-radius: 8px;
  --fqa-max: 1242px; /* 与顶部 .container / 站点内容宽对齐 */
}

#fqa {
  background: var(--fqa-bg);
}

#fqa .fqa-container {
  width: var(--fqa-max);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

#fqa .banner.fqa-banner {
  position: relative;
  width: 100%;
  height: 665px; /* 与事业合伙人招募等页 .banner 一致 */
  /* 对齐首页/合伙人页：左绿 → 右青绿 */
  background: linear-gradient(90deg, #00da82 0%, #00d98e 35%, #00d6a4 70%, #00d6bf 100%);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

#fqa .banner.fqa-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 42%, rgba(255,255,255,.18), transparent 34%),
    radial-gradient(circle at 12% 78%, rgba(0,0,0,.06), transparent 42%);
  pointer-events: none;
}

/* 复用站点 .container（1242px），与合伙人页左右边界对齐 */
#fqa .fqa-hero-inner {
  position: relative;
  z-index: 1;
  height: 665px;
  box-sizing: border-box;
}

#fqa .fqa-hero-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

#fqa .fqa-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
}

#fqa .fqa-hero-visual {
  position: relative;
  flex: 0 0 auto;
  width: 480px;
  max-width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fqa .fqa-hero-orb {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#fqa .fqa-hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

#fqa .hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
  letter-spacing: .5px;
}

#fqa .fqa-banner h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

#fqa .fqa-banner p {
  font-size: 16px;
  line-height: 1.8;
  opacity: .95;
  max-width: 540px;
  margin-bottom: 28px;
  color: #fff;
}

#fqa .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#fqa .fqa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

#fqa .fqa-btn-white {
  background: #fff;
  color: var(--fqa-brand);
}

#fqa .fqa-btn-white:hover {
  opacity: .92;
  color: var(--fqa-brand);
}

#fqa .fqa-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  cursor: default;
  pointer-events: none;
}

#fqa .toc-wrap {
  margin-top: -36px;
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
  scroll-margin-top: 88px;
}

#fqa .toc {
  background: var(--fqa-white);
  border-radius: var(--fqa-radius);
  box-shadow: var(--fqa-shadow);
  padding: 22px 32px;
}

#fqa .toc h2 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--fqa-text);
}

#fqa .toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 8px;
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  width: 100%;
}

#fqa .toc-list li {
  counter-increment: toc;
  min-width: 0;
}

#fqa .toc-list a {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--fqa-text-secondary);
  line-height: 1.5;
  padding: 6px 0;
  text-decoration: none;
  transition: color .2s;
}

#fqa .toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--fqa-brand);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 28px;
}

#fqa .toc-list a:hover {
  color: var(--fqa-brand);
}

#fqa .faq-section {
  padding: 8px 0 64px;
}

#fqa .faq-item {
  background: var(--fqa-white);
  border: 1px solid var(--fqa-border);
  border-radius: var(--fqa-radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  scroll-margin-top: 88px;
}

#fqa .faq-item[open] {
  border-color: rgba(4, 203, 148, .45);
  box-shadow: var(--fqa-shadow);
}

#fqa .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  position: relative;
  user-select: none;
}

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

#fqa .faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--fqa-brand-soft);
  background-image:
    linear-gradient(var(--fqa-brand), var(--fqa-brand)),
    linear-gradient(var(--fqa-brand), var(--fqa-brand));
  background-size: 12px 2px, 2px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color .2s, background-image .2s;
}

#fqa .faq-item[open] summary::after {
  background-color: var(--fqa-brand);
  background-image: linear-gradient(#fff, #fff);
  background-size: 12px 2px;
}

#fqa .faq-item h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--fqa-text);
  margin: 0;
}

#fqa .faq-answer {
  padding: 0 22px 22px;
  color: var(--fqa-text-secondary);
  font-size: 15px;
  border-top: 1px solid var(--fqa-border);
}

#fqa .faq-answer > *:first-child {
  margin-top: 16px;
}

#fqa .faq-answer p {
  margin-bottom: 12px;
}

#fqa .faq-answer p + p {
  text-indent: 2em;
}

#fqa .faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  #fqa .fqa-hero-row {
    gap: 28px;
  }

  #fqa .fqa-hero-visual {
    width: 380px;
  }
}

@media (max-width: 767px) {
  #fqa .fqa-container {
    padding: 0 15px;
  }
}

@media (max-width: 900px) {
  #fqa .toc-list {
    grid-template-columns: 1fr;
  }

  #fqa .banner.fqa-banner,
  #fqa .fqa-hero-inner {
    height: auto;
  }

  #fqa .banner.fqa-banner {
    min-height: 520px;
    padding: 72px 0 48px;
  }

  #fqa .fqa-hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  #fqa .fqa-hero-copy {
    max-width: none;
  }

  #fqa .fqa-banner h1 {
    font-size: 22px;
    white-space: normal;
  }

  #fqa .fqa-hero-visual {
    align-self: center;
    width: 320px;
    max-width: 88%;
  }

  #fqa .faq-item h2 {
    font-size: 16px;
  }

  #fqa .faq-item summary {
    padding-right: 52px;
  }
}
