/* ===== 答疑中心 /answers/ ===== */
.page-faq {
  --faq-notch: 14px;
  display: block;
}

.page-faq .breadcrumbs {
  margin: 0 0 18px;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line-hair);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(260px, 48%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), rgba(31, 224, 208, 0));
}

.page-faq .faq-hero__main h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--text-high);
}

.page-faq .faq-hero__lead {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-mid);
}

.page-faq .faq-hero__side {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--violet-core);
  clip-path: polygon(var(--faq-notch) 0, 100% 0, 100% calc(100% - var(--faq-notch)), calc(100% - var(--faq-notch)) 100%, 0 100%, 0 var(--faq-notch));
}

.page-faq .faq-hero__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 68px);
  line-height: 0.9;
  color: var(--cyan-neon);
  letter-spacing: -0.03em;
}

.page-faq .faq-hero__numcap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-low);
}

.page-faq .faq-hero__note {
  display: none;
}

/* ---------- 分组切换 ---------- */
.page-faq .faq-switch {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2px;
  padding: 14px 0;
  background: linear-gradient(180deg, var(--bg-base) 72%, rgba(14, 18, 41, 0));
}

.page-faq .faq-switch__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  text-decoration: none;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  clip-path: polygon(var(--faq-notch) 0, 100% 0, 100% calc(100% - var(--faq-notch)), calc(100% - var(--faq-notch)) 100%, 0 100%, 0 var(--faq-notch));
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-faq .faq-switch__item:hover {
  color: var(--text-high);
  background: var(--bg-panel-raise);
  border-color: var(--violet-core);
}

.page-faq .faq-switch__item[data-current="true"] {
  color: #ffffff;
  background: var(--violet-core);
  border-color: var(--violet-core);
}

.page-faq .faq-switch__item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan-neon);
}

/* ---------- 分组 ---------- */
.page-faq .faq-group {
  padding: clamp(30px, 5vw, 54px) 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 86px);
}

.page-faq .faq-group__head h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.2;
  color: var(--text-high);
}

.page-faq .faq-group__lead {
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--text-mid);
}

.page-faq .faq-group__body {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-list {
  min-width: 0;
}

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

.page-faq .faq-item:first-child {
  border-top: 1px solid var(--line-soft);
}

.page-faq .faq-item__sum {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 16px 2px;
  list-style: none;
  cursor: pointer;
}

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

.page-faq .faq-item__sum:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 2px;
}

.page-faq .faq-item__tag {
  flex: none;
  margin-top: 2px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--cyan-neon);
  border: 1px solid rgba(31, 224, 208, 0.36);
  white-space: nowrap;
}

.page-faq .faq-item__q {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-high);
  transition: color var(--dur) var(--ease);
}

.page-faq .faq-item__sum:hover .faq-item__q {
  color: var(--violet-soft);
}

.page-faq .faq-item__mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  align-self: center;
  margin-left: 4px;
}

.page-faq .faq-item__mark::before,
.page-faq .faq-item__mark::after {
  content: "";
  position: absolute;
  background: var(--violet-soft);
  transition: transform var(--dur) var(--ease);
}

.page-faq .faq-item__mark::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
}

.page-faq .faq-item__mark::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

.page-faq .faq-item[open] .faq-item__mark::after {
  transform: scaleY(0);
}

.page-faq .faq-item[open] .faq-item__sum {
  padding-bottom: 8px;
}

.page-faq .faq-item__ans {
  margin: 0 0 18px 4px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--cyan-neon);
}

.page-faq .faq-item__ans p {
  max-width: 62ch;
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-mid);
}

.page-faq .faq-item__ans p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--violet-soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(169, 139, 255, 0.5);
}

.page-faq .faq-jump:hover {
  color: var(--cyan-neon);
  border-bottom-color: rgba(31, 224, 208, 0.6);
}

.page-faq .faq-jump:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 2px;
}

/* ---------- 配图 ---------- */
.page-faq .faq-figure {
  margin: 22px 0 22px;
  max-width: 440px;
}

.page-faq .faq-figure--wide {
  max-width: 560px;
}

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

/* ---------- 组内要点 ---------- */
.page-faq .faq-aside {
  padding: 16px 16px 6px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.page-faq .faq-aside__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan-neon);
}

.page-faq .faq-aside__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-aside__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 11px;
  margin-bottom: 11px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-low);
}

.page-faq .faq-aside__list li:last-child {
  border-bottom: none;
}

.page-faq .faq-aside__val {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-high);
}

/* ---------- 仍未解决 ---------- */
.page-faq .faq-help {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(255, 162, 58, 0.09), rgba(255, 162, 58, 0) 62%), var(--bg-panel);
  border: 1px solid rgba(255, 162, 58, 0.48);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.page-faq .faq-help__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber-warm);
}

.page-faq .faq-help__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.28;
  color: var(--text-high);
}

.page-faq .faq-help__lead {
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-mid);
}

.page-faq .faq-help__list {
  margin: 20px 0 0;
}

.page-faq .faq-help__list .contact-list__val a {
  color: var(--cyan-neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 224, 208, 0.4);
}

.page-faq .faq-help__list .contact-list__val a:hover {
  color: var(--text-high);
}

.page-faq .faq-help__note {
  max-width: 62ch;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.82;
  color: var(--text-low);
}

.page-faq .faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-faq .faq-hero__side {
    justify-self: start;
    max-width: 300px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: end;
    gap: 36px;
    padding-right: 34px;
    padding-bottom: 34px;
  }

  .page-faq .faq-hero__note {
    display: block;
    position: absolute;
    right: 0;
    bottom: 34px;
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--text-low);
  }

  .page-faq .faq-group__body {
    grid-template-columns: minmax(0, 66ch) 250px;
    justify-content: start;
    gap: 36px;
    align-items: start;
  }

  .page-faq .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 92px);
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-switch {
    top: 0;
  }

  .page-faq .faq-group {
    scroll-margin-top: 84px;
  }

  .page-faq .faq-aside {
    top: 92px;
  }
}

@media (min-width: 1100px) {
  .page-faq .faq-hero__num {
    font-size: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-switch__item,
  .page-faq .faq-item__q,
  .page-faq .faq-item__mark::before,
  .page-faq .faq-item__mark::after {
    transition: none;
  }
}
