.page-faq {
  --faq-soft-yellow: rgba(242, 183, 5, .16);
  --faq-line-red: rgba(179, 32, 44, .28);
  --faq-white-soft: rgba(255, 255, 255, .88);
  padding: 0 0 32px;
  overflow-x: hidden;
  background-color: var(--paper);
}

/* ===== 顶部支持区 ===== */
.page-faq .faq-hero {
  position: relative;
  padding: 40px 0 0;
  margin-bottom: 28px;
}
.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sapphire) 0%, var(--deep) 58%, var(--wine) 120%);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  z-index: 0;
}
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 22px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
  z-index: 1;
}
.page-faq .faq-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  align-items: center;
}
.page-faq .faq-hero-copy {
  color: var(--white);
}
.page-faq .faq-hero .section-kicker {
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-faq .faq-hero h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.16;
  margin: 0 0 14px;
  letter-spacing: .01em;
}
.page-faq .faq-hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--faq-white-soft);
  max-width: 640px;
  margin: 0;
}
.page-faq .faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.page-faq .faq-hero-actions .btn-secondary {
  background: var(--white);
  color: var(--wine);
  border: 0;
}
.page-faq .faq-hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .6);
}
.page-faq .faq-hero-media {
  margin-top: 20px;
}
.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px 4px 16px 4px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

/* ===== 左右两栏布局 ===== */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 4px;
}

/* 左侧分类导航 */
.page-faq .faq-sidebar {
  position: relative;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px 20px 4px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
  align-self: start;
}
.page-faq .faq-sidebar-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--sapphire);
}
.page-faq .faq-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.page-faq .faq-cat-link {
  display: block;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background-color .2s, border-color .2s, color .2s;
}
.page-faq .faq-cat-link:hover,
.page-faq .faq-cat-link:focus-visible {
  background: var(--faq-soft-yellow);
  border-left-color: var(--yellow);
  color: var(--red);
}
.page-faq .faq-sidebar-note {
  margin-top: 24px;
  padding: 20px 16px;
  background: linear-gradient(135deg, var(--red), var(--wine));
  color: var(--white);
  border-radius: 12px 2px 12px 2px;
  font-size: 14px;
  line-height: 1.65;
}
.page-faq .faq-sidebar-note-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 6px;
}
.page-faq .faq-sidebar-note .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  margin-top: 14px;
  width: 100%;
  text-align: center;
}

/* 右侧问答面板 */
.page-faq .faq-panels {
  display: grid;
  gap: 32px;
}
.page-faq .faq-section {
  scroll-margin-top: 24px;
}
.page-faq .faq-section-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
  color: var(--ink);
  letter-spacing: .02em;
}
.page-faq .faq-section-title::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 8px;
  margin-left: 12px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* 手风琴项 */
.page-faq .faq-item {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px 12px 4px 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.page-faq .faq-item[open] {
  box-shadow: var(--shadow);
  border-color: var(--faq-line-red);
}
.page-faq .faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 16px 46px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
}
.page-faq .faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item summary::before {
  content: "?";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-numeric);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
}
.page-faq .faq-item summary::after {
  content: "+";
  font-family: var(--font-numeric);
  font-size: 24px;
  line-height: 1;
  color: var(--red);
  margin-left: auto;
  transition: transform .28s ease;
}
.page-faq .faq-item[open] summary::after {
  transform: rotate(45deg);
}
.page-faq .faq-item[open] .faq-answer {
  animation: faqAnswerIn .32s ease both;
}
@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-faq .faq-answer {
  padding: 2px 18px 18px 46px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 15px;
}
.page-faq .faq-answer p {
  margin: 0 0 8px;
}
.page-faq .faq-answer p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 迁移图解 */
.page-faq .faq-migration-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--sapphire);
  color: #fff;
  border-radius: 2px 16px 2px 16px;
}
.page-faq .faq-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.page-faq .faq-migration-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
}

/* 底部帮助带 */
.page-faq .faq-cta {
  margin-top: 48px;
  background: var(--deep);
  color: #fff;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.page-faq .faq-cta::before {
  content: "SUPPORT";
  position: absolute;
  right: -8px;
  bottom: -20px;
  font-family: var(--font-numeric);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
  letter-spacing: .04em;
  transform: rotate(-6deg);
  pointer-events: none;
}
.page-faq .faq-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.page-faq .faq-cta-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #fff;
}
.page-faq .faq-cta-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.7;
  max-width: 720px;
}
.page-faq .faq-cta .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  white-space: nowrap;
}

/* ===== 桌面端 ===== */
@media (min-width: 960px) {
  .page-faq {
    padding-bottom: 48px;
  }
  .page-faq .faq-hero {
    padding: 72px 0 56px;
    margin-bottom: 48px;
  }
  .page-faq .faq-hero-inner {
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
  }
  .page-faq .faq-hero h1 {
    font-size: 52px;
  }
  .page-faq .faq-hero-lead {
    font-size: 18px;
  }
  .page-faq .faq-hero-media {
    margin-top: 0;
    justify-self: end;
  }
  .page-faq .faq-layout {
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
  }
  .page-faq .faq-sidebar {
    position: sticky;
    top: 24px;
    padding: 28px 22px;
  }
  .page-faq .faq-panels {
    gap: 40px;
  }
  .page-faq .faq-section-title {
    font-size: 28px;
  }
  .page-faq .faq-migration-note {
    grid-template-columns: 220px 1fr;
  }
  .page-faq .faq-cta {
    margin-top: 64px;
    padding: 48px 0;
  }
  .page-faq .faq-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .page-faq .faq-cta-title {
    font-size: 30px;
  }
}
