/* ===== 问题排查页 · 页面作用域 ===== */
.page-faq {
  --faq-stripe: rgba(27, 77, 255, 0.06);
  --faq-card: #FBF8F1;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--cream);
  padding-top: clamp(18px, 4vw, 30px);
  padding-bottom: clamp(36px, 6vw, 66px);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(154, 167, 199, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 167, 199, 0.14) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: -34%;
  right: -14%;
  width: 62%;
  height: 178%;
  z-index: 0;
  background: linear-gradient(152deg, rgba(27, 77, 255, 0.45) 0 44%, rgba(31, 166, 160, 0.24) 44% 62%, transparent 62%);
  transform: rotate(-5deg);
  pointer-events: none;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
}

.page-faq .breadcrumb {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.page-faq .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.page-faq .breadcrumb li {
  color: var(--mist);
}

.page-faq .breadcrumb a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .breadcrumb a:hover,
.page-faq .breadcrumb a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
  outline: none;
}

.page-faq .breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
  color: var(--mist);
}

.page-faq .faq-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--neon);
  margin: 0 0 14px;
}

.page-faq h1 {
  font-size: clamp(29px, 7.2vw, 60px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 17em;
}

.page-faq .faq-hero__lede {
  max-width: 44em;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.82);
  margin: 0 0 26px;
}

.page-faq .faq-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-hero__facts li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--mist);
  padding: 8px 15px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
}

.page-faq .faq-hero__facts .data {
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 15px;
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- 场景快捷条 ---------- */
.page-faq .faq-scenebar {
  background: var(--night-2);
  border-bottom: 1px solid var(--glass-line);
  padding: 12px 0;
}

.page-faq .faq-scenebar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-faq .faq-scenebar__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--neon);
  border-right: 1px solid var(--glass-line);
  padding-right: 14px;
}

.page-faq .faq-scenebar__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 2px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.page-faq .faq-scenebar__list li {
  flex: none;
  scroll-snap-align: start;
}

.page-faq .faq-scenebar__list a {
  display: block;
  white-space: nowrap;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-scenebar__list a:hover,
.page-faq .faq-scenebar__list a:focus-visible {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--night);
  outline: none;
}

/* ---------- 主体 ---------- */
.page-faq .faq-body {
  padding-top: clamp(22px, 4.5vw, 52px);
  padding-bottom: clamp(38px, 6vw, 74px);
}

/* ---------- 问答卡 ---------- */
.page-faq .qa {
  position: relative;
  padding-top: clamp(26px, 4.6vw, 46px);
  padding-bottom: clamp(26px, 4.6vw, 46px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.page-faq .qa:first-child {
  border-top: 0;
  padding-top: 6px;
}

.page-faq .qa__side {
  margin-bottom: 18px;
}

.page-faq .qa__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--eb);
  margin: 0 0 10px;
}

.page-faq .qa__index::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--eb);
}

.page-faq .qa__q {
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  max-width: 15em;
}

.page-faq .qa__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 9px;
  margin: 0;
}

.page-faq .qa--cards .qa__tag {
  color: #8C4A00;
  border-color: rgba(255, 176, 32, 0.6);
  background: rgba(255, 176, 32, 0.14);
}

.page-faq .qa--cards .qa__tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 9px;
  margin-right: 7px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--amber) 0 50%, var(--red) 50% 100%);
  vertical-align: -1px;
}

/* ---------- 步骤清单 ---------- */
.page-faq .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.page-faq .step:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.page-faq .step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--eb);
  background: rgba(27, 77, 255, 0.08);
  border: 1px solid rgba(27, 77, 255, 0.2);
  border-radius: 6px;
}

.page-faq .step__title {
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 5px;
}

.page-faq .step__text {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0;
  max-width: 40em;
}

.page-faq .step__text .data {
  font-family: var(--font-mono);
  color: var(--eb-deep);
  font-weight: 700;
}

/* ---------- 折叠细节 ---------- */
.page-faq .qa__more {
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--faq-stripe);
}

.page-faq .qa__more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--eb-deep);
  cursor: pointer;
  list-style: none;
}

.page-faq .qa__more > summary::-webkit-details-marker {
  display: none;
}

.page-faq .qa__more > summary::before {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--eb);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

.page-faq .qa__more[open] > summary::before {
  content: "−";
  background: var(--eb-deep);
}

.page-faq .qa__more > summary:hover {
  color: var(--eb);
}

.page-faq .qa__more > summary:focus-visible {
  outline: 2px solid var(--eb);
  outline-offset: 3px;
}

.page-faq .qa__more p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-soft);
  max-width: 42em;
}

/* ---------- 图片 ---------- */
.page-faq .faq-figure {
  margin: 20px 0 0;
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--night-2);
}

.page-faq .faq-figure figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--eb);
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.page-faq .faq-figure--square {
  max-width: 420px;
}

/* ---------- 流程示意图 ---------- */
.page-faq .faq-flow-wrap {
  margin: 0 0 22px;
  padding: 14px 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-flow {
  display: block;
  width: 100%;
  min-width: 540px;
  height: auto;
}

/* ---------- 后续入口 ---------- */
.page-faq .faq-next {
  position: relative;
  margin-top: clamp(28px, 5vw, 54px);
  padding: clamp(26px, 4.5vw, 46px) clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--cream);
  overflow: hidden;
}

.page-faq .faq-next::after {
  content: "";
  position: absolute;
  top: -42%;
  right: -18%;
  width: 56%;
  height: 184%;
  background: linear-gradient(160deg, rgba(27, 77, 255, 0.5), transparent 72%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-faq .faq-next > * {
  position: relative;
  z-index: 1;
}

.page-faq .faq-next h2 {
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.3;
  font-weight: 900;
  margin: 0 0 10px;
  max-width: 18em;
}

.page-faq .faq-next > p {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.78);
  max-width: 44em;
}

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

.page-faq .faq-next__list a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-next__list a:hover,
.page-faq .faq-next__list a:focus-visible {
  border-color: var(--neon);
  background: rgba(124, 255, 79, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.page-faq .faq-next__list span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.page-faq .faq-next__list em {
  display: block;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 720px) {
  .page-faq .qa {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    column-gap: clamp(26px, 4.5vw, 60px);
    align-items: start;
  }

  .page-faq .qa__side {
    margin-bottom: 0;
    padding-top: 4px;
  }

  .page-faq .faq-next__list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (min-width: 960px) {
  .page-faq .qa {
    grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
  }

  .page-faq .faq-body {
    padding-top: 56px;
  }
}

/* ---------- 小屏收束 ---------- */
@media (max-width: 719px) {
  .page-faq .faq-scenebar__label {
    display: none;
  }

  .page-faq .faq-hero::after {
    width: 82%;
    right: -26%;
    opacity: 0.82;
  }

  .page-faq .faq-flow {
    min-width: 500px;
  }

  .page-faq .faq-next__list a {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-scenebar__list a,
  .page-faq .faq-next__list a,
  .page-faq .breadcrumb a {
    transition: none;
  }

  .page-faq .faq-next__list a:hover,
  .page-faq .faq-next__list a:focus-visible {
    transform: none;
  }
}
