.page-faq {
  --faq-indent: 0px;
  --faq-hair: 1px solid var(--line);
  padding-bottom: 64px;
  background: var(--ink-900);
  overflow-x: hidden;
}

.page-faq .container {
  position: relative;
}

/* ---------- 面包屑 ---------- */
.page-faq .breadcrumbs {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.page-faq .breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.page-faq .breadcrumbs a:hover,
.page-faq .breadcrumbs a:focus-visible {
  color: var(--cyan);
}

.page-faq .breadcrumbs__sep {
  margin: 0 8px;
  color: var(--faint);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: 28px 0 40px;
  isolation: isolate;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, rgba(18, 49, 42, .92) 0%, rgba(12, 31, 24, .5) 58%, rgba(7, 19, 15, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 0 100%);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0), rgba(242, 193, 78, .45), rgba(242, 193, 78, 0));
  transform: rotate(-4deg);
  transform-origin: left center;
  pointer-events: none;
}

.page-faq .faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-faq .faq-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
}

.page-faq .faq-hero__lede {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 症状索引 ---------- */
.page-faq .symptom-index {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: var(--faq-hair);
}

.page-faq .symptom-index li {
  border-bottom: var(--faq-hair);
}

.page-faq .symptom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px 12px 14px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 160ms var(--ease);
}

.page-faq .symptom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: transparent;
  transition: background 160ms var(--ease);
}

.page-faq .symptom:hover,
.page-faq .symptom:focus-visible {
  background: rgba(18, 49, 42, .55);
}

.page-faq .symptom:hover::before,
.page-faq .symptom:focus-visible::before {
  background: var(--gold);
}

.page-faq .symptom__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  transition: color 160ms var(--ease);
}

.page-faq .symptom:hover .symptom__label,
.page-faq .symptom:focus-visible .symptom__label {
  color: var(--gold-soft);
}

.page-faq .symptom__desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 首屏右侧 ---------- */
.page-faq .faq-hero__aside {
  display: grid;
  gap: 14px;
}

.page-faq .faq-hero__figure {
  margin: 0;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  border: var(--faq-hair);
  background: var(--ink-800);
  box-shadow: var(--edge);
}

.page-faq .faq-hero__figure .media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-faq .faq-hero__note {
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.95;
  color: var(--faint);
}

/* ---------- 分组问答 ---------- */
.page-faq .faq-groups {
  padding: 8px 0 0;
}

.page-faq .faq-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 30px 0 10px;
  border-top: var(--faq-hair);
}

.page-faq .faq-group:last-of-type {
  padding-bottom: 20px;
}

.page-faq .faq-group__code {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}

.page-faq .faq-group__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.32;
  color: var(--text);
}

.page-faq .faq-group__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--faint);
}

.page-faq .faq-group__figure {
  margin: 0 0 18px;
  aspect-ratio: 15 / 8;
  overflow: hidden;
  border: var(--faq-hair);
  background: var(--ink-700);
}

.page-faq .faq-group__figure .media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 折叠问答 ---------- */
.page-faq .faq-item {
  padding: 0;
  border: 0;
  border-bottom: var(--faq-hair);
  background: none;
  box-shadow: none;
}

.page-faq .faq-item:first-of-type {
  border-top: var(--faq-hair);
}

.page-faq .faq-item__q {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 16px 30px 16px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.58;
  color: var(--text);
  transition: color 160ms var(--ease);
}

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

.page-faq .faq-item__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  color: var(--faint);
  transition: color 160ms var(--ease);
}

.page-faq .faq-item__q:hover,
.page-faq .faq-item__q:focus-visible {
  color: var(--gold-soft);
}

.page-faq .faq-item[open] .faq-item__q {
  color: var(--gold-soft);
}

.page-faq .faq-item[open] .faq-item__q::after {
  content: "−";
  color: var(--gold);
}

.page-faq .faq-item__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
}

.page-faq .faq-item__a {
  padding: 0 0 22px var(--faq-indent);
}

.page-faq .faq-item__conclusion {
  margin: 0;
  padding: 10px 0 10px 14px;
  border-left: 1px solid var(--amber);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.page-faq .faq-item__a p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-faq .faq-item__steps {
  list-style: none;
  counter-reset: faqstep;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-faq .faq-item__steps li {
  position: relative;
  counter-increment: faqstep;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .faq-item__steps li::before {
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

/* ---------- 排查路径 ---------- */
.page-faq .faq-path {
  padding: 56px 0 8px;
  background: var(--ink-800);
  border-top: var(--faq-hair);
  border-bottom: var(--faq-hair);
}

.page-faq .faq-path .section-head {
  margin-bottom: 0;
}

.page-faq .path-rail {
  list-style: none;
  position: relative;
  margin: 30px 0 0;
  padding: 0;
}

.page-faq .path-node {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid var(--line);
}

.page-faq .path-node:last-child {
  padding-bottom: 6px;
  border-left-color: transparent;
}

.page-faq .path-node::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--ink-800);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.page-faq .path-node--fork::before {
  border-color: var(--amber);
  background: var(--amber);
}

.page-faq .path-node--end::before {
  border-color: var(--cyan);
  background: var(--cyan);
}

.page-faq .path-node__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--faint);
}

.page-faq .path-node--fork .path-node__no {
  color: var(--amber);
}

.page-faq .path-node__title {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.page-faq .path-node__desc {
  margin: 6px 0 0;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 联系边界 ---------- */
.page-faq .faq-contact {
  padding: 52px 0 0;
}

.page-faq .faq-contact__box {
  position: relative;
  padding: 24px 20px 26px;
  border: var(--faq-hair);
  background: var(--ink-700);
  box-shadow: var(--edge);
}

.page-faq .faq-contact__box::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 44px;
  height: 2px;
  background: var(--gold);
}

.page-faq .faq-contact__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.35;
  color: var(--text);
}

.page-faq .faq-contact__box p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-faq .faq-contact__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-faq .faq-contact__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-faq .faq-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.page-faq .faq-contact__channels {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: var(--faq-hair);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: var(--text) !important;
  overflow-wrap: anywhere;
}

.page-faq .faq-contact__action {
  margin-top: 20px;
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-faq .symptom {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
    padding-left: 16px;
  }
}

@media (min-width: 880px) {
  .page-faq {
    --faq-indent: 58px;
    padding-bottom: 96px;
  }

  .page-faq .faq-hero {
    padding: 36px 0 56px;
  }

  .page-faq .faq-group {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    padding: 44px 0 14px;
  }

  .page-faq .faq-group:last-of-type {
    padding-bottom: 32px;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-faq .path-rail {
    display: flex;
    gap: 30px;
    padding-top: 0;
    border-top: var(--faq-hair);
  }

  .page-faq .path-node {
    flex: 1 1 0;
    min-width: 0;
    padding: 30px 0 4px;
    border-left: 0;
    border-bottom: 0;
  }

  .page-faq .path-node:last-child {
    padding-bottom: 4px;
  }

  .page-faq .path-node::before {
    left: 0;
    top: -5px;
  }

  .page-faq .path-node__desc {
    max-width: none;
  }

  .page-faq .faq-contact__box {
    padding: 32px 32px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .symptom,
  .page-faq .symptom::before,
  .page-faq .symptom__label,
  .page-faq .faq-item__q,
  .page-faq .faq-item__q::after,
  .page-faq .breadcrumbs a {
    transition: none;
  }
}
