.page-faq {
  --faq-hair: rgba(233, 243, 252, 0.12);
  --faq-hair-soft: rgba(233, 243, 252, 0.06);
  --faq-cut: 14px;
  --faq-gap: clamp(18px, 2.6vw, 34px);
  position: relative;
  overflow-x: clip;
  padding-bottom: clamp(56px, 9vw, 104px);
}

.page-faq *,
.page-faq *::before,
.page-faq *::after { box-sizing: border-box; }

.page-faq .breadcrumb { padding-top: clamp(14px, 2.4vw, 28px); }

/* ===== 首屏横幅 ===== */
.faq-hero {
  position: relative;
  margin-top: clamp(16px, 2.6vw, 30px);
  background:
    radial-gradient(110% 120% at 86% -10%, rgba(47, 230, 198, 0.14), transparent 58%),
    radial-gradient(90% 90% at -10% 110%, rgba(255, 107, 26, 0.12), transparent 60%),
    var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--faq-cut)), calc(100% - var(--faq-cut)) 100%, 0 100%);
}

.faq-hero__speed {
  position: absolute;
  left: 0;
  top: 18%;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 230, 198, 0.55));
  pointer-events: none;
}

.faq-hero__inner {
  display: grid;
  gap: clamp(24px, 3.6vw, 44px);
  align-items: center;
  padding-top: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(30px, 5vw, 58px);
}

.faq-hero__title {
  margin: 12px 0 0;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--paper);
}

.faq-hero .lede {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--mist);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
}

.faq-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 14px 20px;
  margin-top: clamp(22px, 3vw, 32px);
}

.faq-hero__media {
  position: relative;
  margin: 0;
  background: var(--ink-850);
  clip-path: polygon(var(--faq-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--faq-cut));
}

.faq-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.faq-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 23, 38, 0.78));
  pointer-events: none;
}

@media (min-width: 860px) {
  .faq-hero__inner { grid-template-columns: 7fr 5fr; }
}

/* ===== 5 + 7 主体 ===== */
.faq-body {
  display: grid;
  gap: clamp(30px, 4.4vw, 52px);
  align-items: start;
  margin-top: clamp(38px, 6vw, 76px);
}

@media (min-width: 900px) {
  .faq-body {
    grid-template-columns: 5fr 7fr;
    gap: clamp(30px, 4.6vw, 60px);
  }
}

/* 左侧分类导航 */
.faq-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

@media (min-width: 900px) {
  .faq-rail { position: sticky; top: 96px; }
}

.faq-rail__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.faq-tabs {
  display: grid;
  gap: 3px;
}

.faq-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px 11px 18px;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  background: var(--ink-800);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  transition: background var(--dur) ease, color var(--dur) ease;
}

.faq-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: var(--amber);
  opacity: 0;
  transition: opacity var(--dur) ease;
}

.faq-tab:hover { background: var(--ink-700); }

.faq-tab:hover::before,
.faq-tab:focus-visible::before,
.faq-tab.is-active::before { opacity: 1; }

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

.faq-tab.is-active {
  background: var(--ink-700);
  color: var(--warm);
}

.faq-tab__no {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--amber);
}

.faq-tab__name { flex: 1 1 auto; }

.faq-rail__note {
  margin: 6px 0 0;
  padding-left: 14px;
  border-left: 1px solid var(--faq-hair);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* 右侧答案区 */
.faq-answers {
  display: grid;
  gap: clamp(38px, 5.4vw, 68px);
  overflow-x: clip;
}

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

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

.faq-group__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.faq-group__title {
  margin: 8px 0 0;
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--paper);
}

/* ===== 折叠问答 ===== */
.qa-stack {
  display: grid;
  gap: 10px;
}

.qa {
  background: linear-gradient(140deg, rgba(18, 63, 107, 0.62), rgba(9, 32, 54, 0.92));
  clip-path: polygon(var(--faq-cut) 0, 100% 0, 100% calc(100% - var(--faq-cut)), calc(100% - var(--faq-cut)) 100%, 0 100%);
  transition: background var(--dur) ease;
}

.qa[open] {
  background: linear-gradient(140deg, rgba(18, 63, 107, 0.88), rgba(12, 39, 64, 0.96));
}

.qa__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 22px);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) ease;
}

.qa__q::-webkit-details-marker { display: none; }

.qa__q:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.qa__no {
  flex: 0 0 auto;
  padding-top: 3px;
  font-size: 13px;
  color: var(--cyan);
}

.qa__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper);
  transition: color var(--dur) ease;
}

.qa:hover .qa__text { color: var(--orange-soft); }
.qa[open] .qa__text { color: var(--warm); }

.qa__mark {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border: 1px solid rgba(157, 180, 201, 0.6);
  border-radius: var(--radius);
}

.qa__mark::before,
.qa__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--mist);
  transform: translate(-50%, -50%);
}

.qa__mark::before { width: 8px; height: 1.5px; }

.qa__mark::after {
  width: 1.5px;
  height: 8px;
  transition: height var(--dur) ease;
}

.qa[open] .qa__mark::after { height: 0; }

.qa__body {
  padding: 0 clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) clamp(28px, 4vw, 46px);
  color: var(--mist);
}

.qa__body > *:first-child {
  padding-top: 14px;
  border-top: 1px solid var(--faq-hair);
}

.qa__body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.75;
}

.qa__body p:last-child { margin-bottom: 0; }

.qa__body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 230, 198, 0.4);
}

.qa__body a:hover {
  color: var(--warm);
  border-bottom-color: var(--orange);
}

.qa__body a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ===== 步骤 ===== */
.steps {
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
  display: grid;
}

.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding-bottom: 14px;
}

.steps__item:last-child { padding-bottom: 0; }

.steps__item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(47, 230, 198, 0.5), rgba(47, 230, 198, 0.04));
}

.steps__item:last-child::before { display: none; }

.steps__no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 12px;
  color: var(--cyan);
  background: rgba(47, 230, 198, 0.1);
  border: 1px solid rgba(47, 230, 198, 0.28);
  border-radius: var(--radius);
}

.steps__text {
  margin: 0;
  padding-top: 3px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

/* ===== 清单 ===== */
.faq-checklist {
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.faq-checklist__item {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

.faq-checklist__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(-45deg);
}

/* ===== 宽度示意条 ===== */
.widthbar {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.widthbar__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 560px) {
  .widthbar__item {
    grid-template-columns: 132px 1fr 156px;
    align-items: center;
    gap: 12px;
  }
}

.widthbar__label {
  font-size: 12px;
  color: var(--cyan);
}

.widthbar__track {
  height: 10px;
  background: rgba(18, 63, 107, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
}

.widthbar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ink-700), var(--cyan));
}

.widthbar__fill--full { width: 100%; }
.widthbar__fill--mid { width: 64%; }
.widthbar__fill--small { width: 36%; }

.widthbar__value {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
}

/* ===== 要求表 ===== */
.faq-table-wrap { margin: 14px 0 4px; }

.faq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.faq-table th,
.faq-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--faq-hair);
}

.faq-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--orange-soft);
}

.faq-table td {
  color: var(--mist);
  line-height: 1.7;
}

.faq-table td:first-child { color: var(--paper); }

@media (max-width: 620px) {
  .faq-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .faq-table,
  .faq-table tbody,
  .faq-table tr,
  .faq-table td { display: block; width: 100%; }

  .faq-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--faq-hair);
  }

  .faq-table td {
    border: 0;
    padding: 3px 0;
  }

  .faq-table td::before {
    content: attr(data-th) " · ";
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--orange-soft);
  }
}

/* ===== 章节配图 ===== */
.faq-figure {
  margin: 0 0 20px;
}

.faq-figure .media__frame {
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--faq-cut)), calc(100% - var(--faq-cut)) 100%, 0 100%);
  background: var(--ink-850);
}

.faq-figure .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.faq-figure .media__caption {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
