.page-faq {
  --faq-sidebar-width: 260px;
  --faq-section-gap: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  scroll-behavior: smooth;
}

/* ---------- 页面首部 ---------- */
.page-faq .faq-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 24px;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(229, 163, 59, 0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-hero-copy {
  min-width: 0;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.32;
  color: var(--text-dark);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.page-faq .faq-hero-desc {
  margin: 0;
  max-width: 640px;
  color: var(--gray);
  line-height: 1.85;
}

.page-faq .faq-hero-figure {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  box-shadow: 8px 8px 0 0 rgba(27, 90, 141, 0.14);
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 主体布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-top: 8px;
}

.page-faq .faq-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-faq .faq-sidebar-title {
  margin: 0 0 6px;
  padding-left: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-transform: uppercase;
}

.page-faq .faq-side-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
}

.page-faq .faq-side-link {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-dark);
  text-decoration: none;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-faq .faq-side-link:hover,
.page-faq .faq-side-link:focus-visible {
  background: var(--cream);
  color: var(--blue);
}

.page-faq .faq-side-note {
  margin-top: 4px;
}

.page-faq .faq-side-note p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-faq .faq-side-note-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.page-faq .faq-main {
  min-width: 0;
}

/* ---------- 章节 ---------- */
.page-faq .faq-section {
  margin-bottom: var(--faq-section-gap);
  scroll-margin-top: 96px;
}

.page-faq .faq-section:last-of-type {
  margin-bottom: 0;
}

.page-faq .faq-section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.page-faq .faq-section-num {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
  background: var(--cream);
  border-radius: var(--radius);
  padding: 10px 14px;
  flex-shrink: 0;
}

.page-faq .faq-section-funnel {
  width: 34px;
  height: 26px;
  flex-shrink: 0;
  background: var(--red);
  clip-path: polygon(0% 0%, 100% 0%, 68% 52%, 68% 100%, 32% 100%, 32% 52%);
  opacity: 0.8;
}

.page-faq .faq-section-title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .faq-section-title-group h2 {
  margin: 0 0 4px;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 900;
  color: var(--text-dark);
}

.page-faq .faq-section-title-group p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray);
}

/* ---------- 手风琴 ---------- */
.page-faq .faq-accordion {
  border-top: 1px solid var(--line);
  background: var(--snow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 2px 10px rgba(20, 60, 92, 0.04);
}

.page-faq .faq-item {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.page-faq .faq-item[open] {
  background: #FFFFFF;
  box-shadow: inset 3px 0 0 var(--blue);
}

.page-faq .faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  user-select: none;
}

.page-faq .faq-question::-webkit-details-marker {
  display: none;
}

.page-faq .faq-question:hover {
  color: var(--blue);
}

.page-faq .faq-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.16);
  flex-shrink: 0;
}

.page-faq .faq-question-text {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .faq-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
}

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

.page-faq .faq-toggle::before {
  width: 11px;
  height: 2px;
}

.page-faq .faq-toggle::after {
  width: 2px;
  height: 11px;
  transition: opacity 0.2s ease;
}

.page-faq .faq-item[open] .faq-toggle::after {
  opacity: 0;
}

/* ---------- 答案 ---------- */
.page-faq .faq-answer {
  padding: 0 14px 18px 26px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--gray);
  animation: faqFade 0.3s var(--ease);
}

.page-faq .faq-answer p {
  margin: 0 0 8px;
  max-width: 680px;
}

.page-faq .faq-answer .link-arrow {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.9rem;
}

.page-faq .faq-answer--export {
  position: relative;
}

.page-faq .faq-answer--export .faq-file-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  color: var(--blue);
  opacity: 0.7;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 下载中心 ---------- */
.page-faq .faq-download-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq .faq-download-main {
  min-width: 0;
}

.page-faq .faq-download-figure {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 2;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
}

.page-faq .faq-download-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 底部 CTA ---------- */
.page-faq .faq-help-cta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 0;
  padding: 22px 20px;
  background: var(--blue);
  border-radius: var(--radius);
  color: #FFFFFF;
}

.page-faq .faq-help-mark {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--yellow);
  flex-shrink: 0;
}

.page-faq .faq-help-text {
  flex: 1 1 240px;
  min-width: 0;
}

.page-faq .faq-help-text h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFFFFF;
}

.page-faq .faq-help-text p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
}

.page-faq .faq-help-btn {
  flex-shrink: 0;
  background: var(--yellow);
  color: var(--blue-dark);
  border-color: var(--yellow);
}

.page-faq .faq-help-btn:hover {
  background: #F0B95A;
  border-color: #F0B95A;
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 961px) {
  .page-faq .faq-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
  }

  .page-faq .faq-hero-figure {
    width: 200px;
    max-width: none;
    flex-shrink: 0;
  }

  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-width) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-faq .faq-sidebar-inner {
    position: sticky;
    top: 92px;
    gap: 20px;
  }

  .page-faq .faq-side-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    border-left: 2px solid var(--line);
  }

  .page-faq .faq-side-link {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
  }

  .page-faq .faq-side-link:hover,
  .page-faq .faq-side-link:focus-visible {
    background: rgba(27, 90, 141, 0.08);
  }

  .page-faq .faq-section-head {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .page-faq .faq-download-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .page-faq .faq-download-figure {
    width: 300px;
    max-width: none;
    margin-top: 2px;
  }

  .page-faq .faq-help-cta {
    align-items: center;
    flex-wrap: nowrap;
    padding: 24px 28px;
  }
}

/* ---------- 窄屏微调 ---------- */
@media (max-width: 640px) {
  .page-faq .faq-section {
    margin-bottom: 48px;
  }

  .page-faq .faq-section-head {
    gap: 10px;
  }

  .page-faq .faq-section-num {
    font-size: 1.7rem;
    padding: 8px 12px;
  }

  .page-faq .faq-question {
    padding: 14px 10px;
    gap: 10px;
    font-size: 0.95rem;
  }

  .page-faq .faq-answer {
    padding: 0 12px 16px 24px;
    font-size: 0.92rem;
  }

  .page-faq .faq-help-cta {
    padding: 20px 16px;
  }

  .page-faq .faq-help-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-faq {
    scroll-behavior: auto;
  }

  .page-faq .faq-answer {
    animation: none;
  }

  .page-faq .faq-toggle::after {
    transition: none;
  }
}
