.page-faq {
  --faq-panel: #12283D;
  --faq-panel-old: #2A3644;
  --faq-head-bg: #0E2136;
  --faq-cyan-soft: rgba(47, 224, 200, 0.10);
  --faq-gold-soft: rgba(232, 180, 90, 0.08);
  --faq-old-soft: rgba(108, 126, 146, 0.12);
  background: var(--c-deep);
  color: var(--c-paper);
  padding-bottom: 8px;
}

.page-faq .visually-hidden-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-faq .breadcrumb {
  padding-top: 22px;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  padding: 26px 0 54px;
}

.page-faq .faq-hero__title {
  margin: 14px 0 0;
  max-width: 14em;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--c-paper);
}

.page-faq .faq-hero__lede {
  margin: 20px 0 0;
  max-width: 700px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-shale);
}

.page-faq .faq-hero__cards {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.page-faq .faq-verdict {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(47, 224, 200, 0.09), rgba(18, 40, 61, 0.92) 62%);
  box-shadow: var(--shadow-soft);
}

.page-faq .faq-verdict--offset {
  border-color: rgba(232, 180, 90, 0.26);
  background: linear-gradient(165deg, rgba(232, 180, 90, 0.08), rgba(18, 40, 61, 0.92) 62%);
}

.page-faq .faq-verdict--offset-2 {
  border-color: rgba(108, 126, 146, 0.36);
  background: linear-gradient(165deg, rgba(42, 54, 68, 0.72), rgba(18, 40, 61, 0.95) 62%);
}

.page-faq .faq-verdict__title {
  margin: 14px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.page-faq .faq-verdict__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-shale);
}

/* ---------- 分组锚点条 ---------- */
.page-faq .faq-anchors {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(11, 27, 43, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-anchors__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.page-faq .faq-anchors__inner::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-anchors__link {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-shale);
  text-decoration: none;
  transition: color 0.2s ease-out, border-color 0.2s ease-out, background 0.2s ease-out;
}

.page-faq .faq-anchors__link:hover,
.page-faq .faq-anchors__link:focus-visible {
  color: var(--c-cyan);
  border-color: rgba(47, 224, 200, 0.5);
  background: rgba(47, 224, 200, 0.06);
}

/* ---------- 区块骨架 ---------- */
.page-faq .faq-block {
  padding: 52px 0;
}

.page-faq .faq-block + .faq-block {
  border-top: 1px solid var(--line);
}

.page-faq .faq-figure {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--faq-head-bg);
}

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

/* ---------- 端口对照矩阵 ---------- */
.page-faq .faq-matrix-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 40, 61, 0.55);
}

.page-faq .faq-matrix {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.page-faq .faq-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  background: var(--faq-head-bg);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
  text-align: left;
  white-space: nowrap;
}

.page-faq .faq-matrix__hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--c-shale);
}

.page-faq .faq-matrix tbody th {
  padding: 16px;
  background: rgba(42, 54, 68, 0.38);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-paper);
  text-align: left;
  white-space: nowrap;
}

.page-faq .faq-matrix td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--c-paper);
  vertical-align: top;
}

.page-faq .faq-matrix tbody tr:last-child th,
.page-faq .faq-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.page-faq .faq-matrix th:last-child,
.page-faq .faq-matrix td:last-child {
  border-right: 0;
}

.page-faq .lv-full {
  background: var(--faq-cyan-soft);
}

.page-faq .lv-mid {
  background: var(--faq-gold-soft);
}

.page-faq .lv-part {
  background: var(--faq-old-soft);
}

/* ---------- 四步上手路径 ---------- */
.page-faq .faq-steps {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-step {
  padding: 22px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 40, 61, 0.62);
  box-shadow: var(--shadow-soft);
}

.page-faq .faq-step__num {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--c-gold);
  color: var(--c-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-faq .faq-step__title {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.page-faq .faq-step__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-shale);
}

/* ---------- 老用户排查流程 ---------- */
.page-faq .faq-trace {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: trace;
}

.page-faq .faq-trace__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.page-faq .faq-trace__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-faq .faq-trace__num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 1px solid rgba(47, 224, 200, 0.38);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-cyan);
}

.page-faq .faq-trace__item:last-child .faq-trace__num {
  border-color: rgba(232, 180, 90, 0.5);
  color: var(--c-gold);
}

.page-faq .faq-trace__title {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.page-faq .faq-trace__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-shale);
}

/* ---------- 问答组 ---------- */
.page-faq .faq-qa {
  padding-top: 46px;
  padding-bottom: 46px;
}

.page-faq .faq-qa__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-qa__title {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-faq .faq-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

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

.page-faq .faq-item__q {
  position: relative;
  padding: 18px 42px 18px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--c-paper);
  transition: color 0.2s ease-out;
}

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

.page-faq .faq-item__q::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease-out;
}

.page-faq .faq-item__q::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--c-gold);
  transition: transform 0.22s ease-out;
}

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

.page-faq .faq-item[open] .faq-item__q::before {
  background: var(--c-cyan);
}

.page-faq .faq-item[open] .faq-item__q::after {
  transform: translateY(-50%) rotate(45deg);
}

.page-faq .faq-item__a {
  padding: 0 18px 22px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--c-shale);
}

.page-faq .faq-item__a p {
  margin: 0 0 10px;
}

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

.page-faq .faq-item__more a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 200, 0.36);
  padding-bottom: 2px;
}

.page-faq .faq-item__more a:hover,
.page-faq .faq-item__more a:focus-visible {
  border-bottom-color: var(--c-cyan);
}

/* ---------- 下一步 ---------- */
.page-faq .faq-next {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(140deg, rgba(47, 224, 200, 0.08), rgba(11, 27, 43, 0) 58%),
    rgba(18, 40, 61, 0.5);
}

.page-faq .faq-next__inner {
  display: grid;
  gap: 26px;
}

.page-faq .faq-next__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.page-faq .faq-next__lede {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-shale);
}

.page-faq .faq-next__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-faq .faq-next__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-paper);
}

.page-faq .faq-next__list li strong {
  color: var(--c-cyan);
  font-weight: 700;
}

.page-faq .faq-next__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--c-gold);
  transform: rotate(45deg);
}

.page-faq .faq-next__foot {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-shale);
}

.page-faq .faq-next__aside {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(42, 54, 68, 0.46);
  box-shadow: var(--shadow-soft);
}

.page-faq .faq-next__aside-title {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-paper);
}

.page-faq .faq-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 断点 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 34px 0 64px;
  }

  .page-faq .faq-hero__title {
    font-size: 46px;
  }

  .page-faq .faq-hero__lede {
    font-size: 17px;
  }

  .page-faq .faq-block {
    padding: 66px 0;
  }

  .page-faq .faq-trace__item {
    grid-template-columns: 56px 1fr;
    gap: 22px;
    padding: 22px 0;
  }

  .page-faq .faq-item__q {
    font-size: 18px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero__cards {
    grid-template-columns: 1.34fr 1fr 0.86fr;
    align-items: start;
  }

  .page-faq .faq-verdict--offset {
    margin-top: 30px;
  }

  .page-faq .faq-verdict--offset-2 {
    margin-top: 62px;
  }

  .page-faq .faq-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .page-faq .faq-step {
    border-right: 0;
  }

  .page-faq .faq-step:last-child {
    border-right: 1px solid var(--line);
  }

  .page-faq .faq-next__inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 52px;
    align-items: start;
  }
}

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

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