.page-faq {
  --faq-paper-rule: rgba(20, 25, 30, .14);
  --faq-muted: #5A6875;
  --faq-ink-rule: rgba(28, 68, 103, .9);
  background: var(--abyss-900);
  color: var(--fg);
  overflow-x: hidden;
}

.page-faq .faq-topbar {
  padding-top: calc(var(--header-h) + 20px);
}

.page-faq .breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--slate);
}

.page-faq .breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--abyss-500);
}

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

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

.page-faq .breadcrumbs-item[aria-current="page"] {
  color: var(--fg-soft);
}

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(63, 227, 210, .16), transparent 62%);
  pointer-events: none;
}

.page-faq .faq-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-faq .faq-kicker {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--neon);
}

.page-faq .faq-h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--fg);
  max-width: 18ch;
}

.page-faq .faq-lead {
  margin: 0 0 26px;
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--fg-soft);
}

.page-faq .faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-hero-actions .btn {
  min-height: 48px;
}

.page-faq .faq-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(169, 199, 196, .22);
  font-size: 13px;
  color: var(--slate);
}

.page-faq .faq-quickfacts .mono {
  margin-right: 6px;
  font-size: 14.5px;
  color: var(--fg);
}

.page-faq .faq-hero-media {
  margin: 0;
  border: 2px solid var(--neon);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--abyss-700);
}

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

/* ---------- 章节骨架 ---------- */

.page-faq .faq-section {
  padding: 64px 0;
}

.page-faq .faq-index-zone {
  border-top: 1px solid var(--faq-ink-rule);
}

.page-faq .chapter-band {
  flex-wrap: wrap;
}

.page-faq .section-lead {
  max-width: 62ch;
  margin: 18px 0 0;
}

/* ---------- 分类索引 ---------- */

.page-faq .faq-index-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
}

.page-faq .faq-index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  background: var(--abyss-700);
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.page-faq .faq-index-card:hover {
  border-color: var(--neon);
}

.page-faq .faq-ico {
  color: var(--neon);
  line-height: 0;
}

.page-faq .faq-index-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--fg);
}

.page-faq .faq-index-desc {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--slate);
}

.page-faq .faq-index-count {
  margin: 6px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--faq-ink-rule);
  font-size: 13px;
  color: var(--neon);
}

/* ---------- 条目列表 ---------- */

.page-faq .faq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 8px;
}

.page-faq .faq-filter-bar .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  background: transparent;
  border: 2px solid rgba(20, 25, 30, .38);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.page-faq .faq-filter-bar .filter-btn:hover {
  border-color: var(--ink);
}

.page-faq .faq-filter-bar .filter-btn:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.page-faq .faq-filter-bar .filter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(20, 25, 30, .1);
  color: var(--faq-muted);
}

.page-faq .faq-filter-bar .filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--neon);
  color: var(--paper);
}

.page-faq .faq-filter-bar .filter-btn[aria-pressed="true"] .filter-count {
  background: rgba(63, 227, 210, .18);
  color: var(--neon);
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border-top: 1px solid var(--faq-paper-rule);
}

.page-faq .tut-item {
  border-bottom: 1px solid var(--faq-paper-rule);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-faq .tut-item.is-filtered {
  display: none;
}

.page-faq .tut-sum {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 22px 4px 22px 0;
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ease);
}

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

.page-faq .tut-sum:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
}

.page-faq .tut-item[open] > .tut-sum {
  position: sticky;
  top: 12px;
  z-index: 3;
  padding-left: 8px;
  background: var(--paper);
  border-bottom: 1px solid var(--faq-paper-rule);
}

.page-faq .tut-idx {
  flex: none;
  width: 26px;
  font-size: 12.5px;
  color: var(--faq-muted);
}

.page-faq .tut-q {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-faq .tut-item[open] .tut-q {
  color: #0B1016;
}

.page-faq .tut-cat {
  display: none;
  flex: none;
}

.page-faq .tut-chev {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.page-faq .tut-chev::before,
.page-faq .tut-chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

.page-faq .tut-chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .tut-item[open] .tut-chev::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.page-faq .tut-body {
  padding: 0 0 28px;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-faq .tut-answer {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--paper-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}

.page-faq .tut-steps {
  list-style: none;
  counter-reset: faq-step;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
}

.page-faq .tut-steps li {
  position: relative;
  padding-left: 36px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-faq .tut-steps li::before {
  counter-increment: faq-step;
  content: counter(faq-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  padding: 1px 5px;
  background: var(--ink);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--neon);
}

.page-faq .step-lead {
  color: var(--ink);
  font-weight: 600;
}

.page-faq .step-why {
  color: var(--faq-muted);
}

.page-faq .tut-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed rgba(20, 25, 30, .2);
}

.page-faq .tut-time {
  font-size: 12.5px;
  color: var(--faq-muted);
}

.page-faq .copy-btn {
  min-height: 44px;
  font-size: 14px;
}

.page-faq .filter-empty {
  margin: 28px 0 0;
  padding: 24px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--faq-muted);
  background: var(--paper-soft);
  border: 2px dashed rgba(20, 25, 30, .22);
  border-radius: var(--radius-card);
}

/* ---------- 排查顺序 ---------- */

.page-faq .faq-trace {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 40px 0 0;
  padding: 0;
}

.page-faq .faq-trace-step {
  border-top: 2px solid var(--abyss-500);
}

.page-faq .faq-trace-step:last-child {
  border-bottom: 2px solid var(--abyss-500);
}

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

.page-faq .faq-trace-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 48px;
  padding: 22px 8px 22px 4px;
  cursor: pointer;
  transition: background 220ms var(--ease);
}

.page-faq .faq-trace-label:hover {
  background: rgba(28, 68, 103, .34);
}

.page-faq .faq-check:focus-visible + .faq-trace-label {
  outline: 2px solid var(--neon);
  outline-offset: -2px;
}

.page-faq .faq-trace-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--abyss-500);
  border-radius: 50%;
  font-size: 12px;
  color: var(--neon);
  transition: border-color 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.page-faq .faq-check:checked + .faq-trace-label .faq-trace-num {
  border-color: var(--ok);
  background: rgba(63, 214, 140, .16);
  color: var(--ok);
}

.page-faq .faq-trace-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.page-faq .faq-trace-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--fg);
}

.page-faq .faq-check:checked + .faq-trace-label .faq-trace-name {
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-color: rgba(63, 227, 210, .55);
}

.page-faq .faq-trace-desc {
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-soft);
}

.page-faq .faq-trace-signal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--neon);
}

.page-faq .faq-trace-media {
  margin: 44px 0 0;
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--abyss-700);
}

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

.page-faq .faq-trace-media .media-caption {
  padding: 14px 18px;
  border-top: 2px solid var(--abyss-500);
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 术语对照 ---------- */

.page-faq .faq-terms-wrap {
  margin-top: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-terms {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.page-faq .faq-terms-caption {
  padding-bottom: 14px;
  text-align: left;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--faq-muted);
}

.page-faq .faq-terms th {
  padding: 0 18px 12px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--faq-muted);
  border-bottom: 2px solid var(--ink);
}

.page-faq .faq-terms td {
  padding: 20px 18px 20px 0;
  vertical-align: top;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--faq-paper-rule);
}

.page-faq .faq-terms td:first-child {
  width: 30%;
  padding-right: 26px;
  font-weight: 700;
  color: var(--ink);
}

.page-faq .faq-terms tbody tr:nth-child(odd) td:last-child {
  background: linear-gradient(90deg, transparent, rgba(63, 227, 210, .1));
}

/* ---------- 联络区块 ---------- */

.page-faq .faq-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-faq .faq-sub {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--abyss-500);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--fg);
}

.page-faq .faq-help-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.page-faq .faq-help-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-soft);
}

.page-faq .faq-help-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.page-faq .faq-help-note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.page-faq .faq-help-note a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 227, 210, .45);
}

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

.page-faq .faq-prep {
  list-style: none;
  counter-reset: prep;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
}

.page-faq .faq-prep li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-soft);
}

.page-faq .faq-prep li::before {
  counter-increment: prep;
  content: counter(prep);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--neon);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--neon);
}

.page-faq .faq-contact-card {
  padding: 22px 20px;
  background: var(--abyss-700);
  border: 2px solid var(--abyss-500);
  border-radius: var(--radius-card);
}

.page-faq .faq-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--faq-ink-rule);
}

.page-faq .faq-contact-row:first-child {
  padding-top: 0;
}

.page-faq .faq-contact-label {
  flex: none;
  width: 82px;
  font-size: 12.5px;
  color: var(--slate);
}

.page-faq .faq-contact-value {
  flex: 1 1 190px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  word-break: break-word;
}

.page-faq .faq-copy {
  flex: none;
  min-height: 44px;
  font-size: 13.5px;
}

.page-faq .faq-contact-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--slate);
}

.page-faq .faq-contact-note a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 227, 210, .45);
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-faq .faq-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-faq .tut-cat {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero {
    padding: 52px 0 88px;
  }

  .page-faq .faq-hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
  }

  .page-faq .faq-section {
    padding: 92px 0;
  }

  .page-faq .faq-help-grid {
    grid-template-columns: 6fr 5fr;
    gap: 56px;
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-index-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 18px;
  }

  .page-faq .faq-index-card:nth-child(3n+2) {
    transform: translateY(16px);
  }

  .page-faq .faq-index-card:hover {
    transform: translateY(-2px);
  }

  .page-faq .faq-index-card:nth-child(3n+2):hover {
    transform: translateY(14px);
  }

  .page-faq .faq-tut-index-adjust,
  .page-faq .faq-index-grid::after {
    content: "";
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-index-card,
  .page-faq .tut-chev::before,
  .page-faq .tut-chev::after,
  .page-faq .faq-trace-num,
  .page-faq .faq-filter-bar .filter-btn {
    transition-duration: 1ms;
  }

  .page-faq .faq-index-card:nth-child(3n+2) {
    transform: none;
  }
}
