.page-faq {
  --faq-card: rgba(7, 23, 51, 0.92);
  --faq-card-hi: rgba(10, 31, 68, 0.96);
  --faq-line: rgba(42, 59, 92, 0.85);
  --faq-shell: 1040px;
  --faq-shift: 7px;

  position: relative;
  display: block;
  padding: 30px 18px 84px;
  overflow-x: clip;
  color: var(--text-soft);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(42, 59, 92, 0.14) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(42, 59, 92, 0.14) 23px 24px),
    linear-gradient(180deg, rgba(5, 11, 24, 0.94) 0%, rgba(10, 31, 68, 0.62) 55%, rgba(5, 11, 24, 0.96) 100%);
}

.page-faq .faq-shell {
  width: 100%;
  max-width: var(--faq-shell);
  margin: 0 auto;
}

/* ---------- 面包屑 ---------- */
.page-faq .faq-crumbs {
  margin-bottom: 30px;
}

.page-faq .faq-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.page-faq .faq-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--grid);
}

.page-faq .faq-crumbs a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.page-faq .faq-crumbs a:hover {
  border-bottom-color: var(--cyan);
}

.page-faq .faq-crumbs [aria-current="page"] {
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 22px 26px 26px;
  background:
    linear-gradient(135deg, rgba(255, 46, 77, 0.16) 0%, rgba(255, 46, 77, 0) 46%),
    linear-gradient(315deg, rgba(0, 229, 255, 0.14) 0%, rgba(0, 229, 255, 0) 50%),
    var(--faq-card);
  border: 1px solid var(--faq-line);
  border-left: 6px solid var(--red);
  clip-path: var(--bevel);
}

.page-faq .faq-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-faq .faq-hero h1 {
  margin: 0 0 18px;
  max-width: 20em;
  font-size: clamp(28px, 5.4vw, 50px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 2px 2px 0 rgba(255, 46, 77, 0.28);
}

.page-faq .faq-hero__lead {
  margin: 0;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-soft);
}

.page-faq .faq-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero__stats li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-left: 13px;
  border-left: 2px solid var(--grid);
}

.page-faq .faq-num {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.page-faq .faq-lab {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- 章节 ---------- */
.page-faq .faq-track {
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-track--first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-faq .faq-sechead {
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
}

.page-faq .faq-sechead__k {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-faq .faq-sechead h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3vw, 32px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-faq .faq-sechead p {
  margin: 0;
  max-width: 42em;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-soft);
}

/* ---------- 配图 ---------- */
.page-faq .faq-figure {
  margin: 0 0 26px;
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--faq-line);
  border-bottom: 3px solid var(--cyan);
  background: var(--ink-deep);
  filter: saturate(0.86) contrast(1.06) brightness(0.94);
}

.page-faq .faq-figure figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- 分类选择 ---------- */
.page-faq .faq-picker__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .pick-card {
  display: flex;
}

.page-faq .pick-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px 18px 16px;
  background: var(--faq-card);
  border: 1px solid var(--faq-line);
  border-left: 4px solid var(--red);
  color: inherit;
  text-decoration: none;
  clip-path: var(--bevel);
  transition: transform 0.18s var(--ease), border-left-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-faq .pick-card a:hover,
.page-faq .pick-card a:focus-visible {
  transform: translateY(-2px);
  border-left-color: var(--cyan);
  background: var(--faq-card-hi);
}

.page-faq .pick-card__no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
}

.page-faq .pick-card h3 {
  margin: 10px 0 10px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--paper);
}

.page-faq .pick-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-faq .pick-card__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

/* ---------- 排查卡路径 ---------- */
.page-faq .steps {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.page-faq .steps::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 30px;
  left: 8px;
  border-left: 2px dashed rgba(42, 59, 92, 0.95);
  pointer-events: none;
}

.page-faq .step-wrap {
  position: relative;
  margin-bottom: 16px;
}

.page-faq .step-wrap::before {
  content: "";
  position: absolute;
  top: var(--faq-shift);
  left: var(--faq-shift);
  right: calc(var(--faq-shift) * -1);
  bottom: calc(var(--faq-shift) * -1);
  background: rgba(5, 11, 24, 0.6);
  border: 1px solid rgba(42, 59, 92, 0.6);
  clip-path: var(--bevel);
  pointer-events: none;
}

.page-faq .step {
  position: relative;
  background: var(--faq-card);
  border: 1px solid var(--faq-line);
  clip-path: var(--bevel);
}

.page-faq .step[open] {
  background: var(--faq-card-hi);
  border-color: rgba(0, 229, 255, 0.42);
}

.page-faq .step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .step__head::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.page-faq .step[open] .step__head::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.page-faq .step[open] .step__head {
  border-bottom: 1px dashed rgba(42, 59, 92, 0.9);
}

.page-faq .step__no {
  flex: 0 0 auto;
  min-width: 32px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}

.page-faq .step__title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper);
}

.page-faq .step__state {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--cyan);
  border: 1px solid var(--cyan);
}

.page-faq .step__state[data-state="done"] {
  color: var(--lime);
  border-color: var(--lime);
}

.page-faq .step__state[data-state="todo"] {
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.75);
}

.page-faq .step__body {
  padding: 16px 16px 20px;
  animation: faq-body-in 0.28s var(--ease);
}

.page-faq .step__body p {
  margin: 0 0 14px;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

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

.page-faq .step__verify {
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  background: rgba(0, 229, 255, 0.07);
  color: var(--paper);
}

.page-faq .step__verify b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

@keyframes faq-body-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 转人工 ---------- */
.page-faq .faq-escalate {
  padding: 22px 20px 24px;
  background:
    linear-gradient(200deg, rgba(255, 46, 77, 0.14) 0%, rgba(255, 46, 77, 0) 55%),
    var(--faq-card);
  border: 1px solid var(--faq-line);
  border-top: 3px solid var(--red);
  clip-path: var(--bevel);
}

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

.page-faq .req-list li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(42, 59, 92, 0.9);
}

.page-faq .req-list li:first-child {
  padding-top: 4px;
}

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

.page-faq .req-list__k {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-faq .req-list__d {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-faq .escalate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.page-faq .escalate-note {
  margin: 0;
  max-width: 46em;
  padding-left: 13px;
  border-left: 2px solid var(--grid);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-faq .escalate-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
}

.page-faq .escalate-note a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 768px) {
  .page-faq {
    padding: 44px 32px 100px;
  }

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

  .page-faq .step__head {
    padding: 16px 20px;
  }

  .page-faq .step__body {
    padding: 18px 20px 22px;
  }

  .page-faq .faq-escalate {
    padding: 28px 28px 30px;
  }

  .page-faq .req-list li {
    grid-template-columns: 190px 1fr;
    align-items: baseline;
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .page-faq {
    padding-top: 56px;
  }

  .page-faq .faq-shell {
    max-width: var(--faq-shell);
  }

  .page-faq .faq-sechead h2 {
    font-size: 34px;
  }
}

@media (max-width: 599px) {
  .page-faq {
    --faq-shift: 5px;
    padding: 24px 14px 72px;
  }

  .page-faq .steps {
    padding-left: 18px;
  }

  .page-faq .steps::before {
    left: 5px;
  }

  .page-faq .step__no {
    min-width: 26px;
    font-size: 18px;
  }

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

  .page-faq .faq-hero__stats {
    gap: 12px 20px;
  }

  .page-faq .faq-num {
    font-size: 23px;
  }

  .page-faq .escalate-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .pick-card a,
  .page-faq .step__head::after {
    transition: none;
  }

  .page-faq .step__body {
    animation: none;
  }
}
