.page-faq {
  --faq-node: 34px;
  --faq-gap: clamp(18px, 3.6vw, 34px);
  display: block;
  background: var(--ink);
  color: var(--text);
}

/* ---------- 面包屑 ---------- */
.page-faq .breadcrumb {
  padding: clamp(18px, 3vw, 28px) 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.page-faq .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.page-faq .breadcrumb a:hover { color: var(--cyan-soft); border-color: var(--cyan-soft); }

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: clamp(26px, 4vw, 46px) 0 clamp(30px, 5vw, 56px);
  overflow: hidden;
}
.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    linear-gradient(118deg, rgba(43, 240, 198, .13), transparent 44%),
    linear-gradient(300deg, rgba(240, 195, 106, .09), transparent 48%),
    linear-gradient(12deg, rgba(155, 107, 255, .07), transparent 60%);
  pointer-events: none;
}
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  opacity: .45;
}
.page-faq .faq-hero .container { position: relative; z-index: 1; }

.page-faq .faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--faq-gap);
  align-items: end;
}
.page-faq .faq-hero__lead h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 6.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -.01em;
  font-weight: 700;
  margin: 12px 0 16px;
  max-width: 20ch;
}
.page-faq .faq-hero__lead .lead {
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: var(--text);
  opacity: .9;
}
.page-faq .faq-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.page-faq .faq-hero__side {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card-bg);
  padding: 20px;
}
.page-faq .faq-hero__side-k {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(43, 240, 198, .35);
  margin: 0 0 12px;
}
.page-faq .faq-hero__side-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-faq .faq-hero__side-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
.page-faq .faq-hero__side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.page-faq .faq-hero__side-list .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 14px;
  flex: 0 0 auto;
}
.page-faq .faq-hero__side .meta-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- 索引 ---------- */
.page-faq .faq-index__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.page-faq .faq-index__cell {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.page-faq .faq-index__cell:hover,
.page-faq .faq-index__cell:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(43, 240, 198, .5);
}
.page-faq .faq-index__cell:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.page-faq .faq-index__k {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  color: var(--cyan);
  line-height: 1;
  padding-top: 2px;
}
.page-faq .faq-index__t {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.page-faq .faq-index__d {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 教程条目 ---------- */
.page-faq .faq-fix {
  padding: clamp(34px, 6vw, 68px) 0;
  border-top: 1px solid var(--hair);
}
.page-faq .faq-fix__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  margin-bottom: clamp(20px, 3vw, 30px);
}
.page-faq .faq-fix__no {
  width: var(--faq-node);
  height: var(--faq-node);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43, 240, 198, .12);
}
.page-faq .faq-fix__title {
  font-family: var(--font-head);
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 700;
  margin: 0;
}
.page-faq .faq-fix__symptom {
  grid-column: 2 / -1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 52ch;
}
.page-faq .faq-state {
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: var(--r-cap);
  border: 1px solid;
  white-space: nowrap;
  justify-self: end;
}
.page-faq .faq-state--common {
  color: var(--gold);
  border-color: rgba(240, 195, 106, .5);
}
.page-faq .faq-state--rare {
  color: var(--muted);
  border-color: var(--hair);
}

/* 步骤轨道 */
.page-faq .faq-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62ch;
}
.page-faq .faq-steps__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--faq-node) 1fr;
  column-gap: 16px;
  padding-bottom: 24px;
}
.page-faq .faq-steps__item::before {
  content: "";
  position: absolute;
  left: 16.5px;
  top: calc(var(--faq-node) + 6px);
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--hair), rgba(30, 55, 51, .25));
}
.page-faq .faq-steps__item:last-child { padding-bottom: 0; }
.page-faq .faq-steps__item:last-child::before { display: none; }
.page-faq .faq-steps__n {
  width: var(--faq-node);
  height: var(--faq-node);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--cyan);
  background: rgba(43, 240, 198, .08);
  border: 1px solid rgba(43, 240, 198, .34);
  position: relative;
  z-index: 1;
}
.page-faq .faq-steps__text h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 4px 0 8px;
}
.page-faq .faq-steps__text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
  opacity: .88;
}

/* 结果状态 */
.page-faq .faq-result {
  margin: clamp(22px, 3.4vw, 32px) 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: linear-gradient(90deg, rgba(43, 240, 198, .09), rgba(43, 240, 198, 0));
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 62ch;
}

/* 排查分支 */
.page-faq .faq-branch {
  margin-top: clamp(22px, 3.4vw, 32px);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card-bg);
  padding: clamp(18px, 3vw, 26px);
  max-width: 72ch;
}
.page-faq .faq-branch__q {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--cyan-soft);
  letter-spacing: .01em;
}
.page-faq .faq-branch__opts {
  display: grid;
  gap: 10px;
}
.page-faq .faq-branch__opt {
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgba(10, 27, 46, .5);
  padding: 12px 16px;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.page-faq .faq-branch__opt[open] {
  border-color: rgba(240, 195, 106, .45);
  background: rgba(10, 27, 46, .78);
}
.page-faq .faq-branch__opt summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.page-faq .faq-branch__opt summary::-webkit-details-marker { display: none; }
.page-faq .faq-branch__opt summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-deep);
  flex: 0 0 auto;
  transition: background .22s var(--ease), box-shadow .22s var(--ease);
}
.page-faq .faq-branch__opt[open] summary::before {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(240, 195, 106, .6);
}
.page-faq .faq-branch__opt summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}
.page-faq .faq-branch__opt p {
  margin: 10px 0 2px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 页内提示行 */
.page-faq .faq-note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}
.page-faq .faq-note a {
  color: var(--cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 247, 223, .45);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.page-faq .faq-note a:hover { color: var(--cyan); border-color: var(--cyan); }
.page-faq .faq-note a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 配图 */
.page-faq .faq-figure {
  margin: 0 0 clamp(22px, 3.4vw, 32px);
}
.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--night);
  object-fit: cover;
}
.page-faq .faq-figure--wide img { aspect-ratio: 3 / 2; }
.page-faq .faq-figure--tablet img { aspect-ratio: 5 / 4; }
.page-faq .faq-figure__cap {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 平板章节 */
.page-faq .faq-tablet {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}
.page-faq .faq-steps--tablet { max-width: 56ch; }
.page-faq .faq-tablet .faq-figure { margin: 0; }

/* ---------- 问答 ---------- */
.page-faq .faq-qa {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.page-faq .faq-qa__item {
  border-bottom: 1px solid var(--hair);
  padding: 4px 0;
}
.page-faq .faq-qa__item summary {
  cursor: pointer;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  font-family: var(--font-head);
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .2s var(--ease);
}
.page-faq .faq-qa__item summary::-webkit-details-marker { display: none; }
.page-faq .faq-qa__item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  flex: 0 0 auto;
  transition: transform .25s var(--ease);
}
.page-faq .faq-qa__item[open] summary::after { transform: rotate(45deg); }
.page-faq .faq-qa__item summary:hover { color: var(--cyan-soft); }
.page-faq .faq-qa__item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.page-faq .faq-qa__item p {
  margin: 0 0 18px;
  padding-left: 2px;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.page-faq .faq-qa__item p a {
  color: var(--cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 247, 223, .45);
}
.page-faq .faq-qa__item p a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- 求助面板 ---------- */
.page-faq .faq-help { padding-bottom: clamp(40px, 7vw, 80px); }
.page-faq .faq-help__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background:
    linear-gradient(140deg, rgba(10, 27, 46, .92), rgba(5, 16, 13, .96)),
    var(--ink);
  overflow: hidden;
}
.page-faq .faq-help__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
}
.page-faq .faq-help__text h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 3.2vw, 28px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 10px 0 14px;
  max-width: 22ch;
}
.page-faq .faq-help__text > p {
  margin: 0 0 12px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  opacity: .9;
}
.page-faq .faq-help__ways { color: var(--muted) !important; }
.page-faq .faq-help__v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--cyan-soft);
  word-break: break-all;
}
.page-faq .faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.page-faq .faq-help__aside {
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: rgba(14, 33, 28, .6);
  padding: 20px;
}
.page-faq .faq-help__aside-k {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--violet);
  margin: 0 0 14px;
  text-shadow: 0 0 12px rgba(155, 107, 255, .35);
}
.page-faq .faq-help__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-faq .faq-help__aside-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.page-faq .faq-help__aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-deep);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .page-faq .faq-fix__head {
    grid-template-columns: auto 1fr;
  }
  .page-faq .faq-state {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .page-faq .faq-fix__symptom { grid-column: 1 / -1; }
}

@media (min-width: 700px) {
  .page-faq .faq-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-faq .faq-help__panel { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, .82fr);
  }
  .page-faq .faq-tablet {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-index__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-faq .faq-steps { max-width: 66ch; }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-index__cell,
  .page-faq .faq-qa__item summary::after,
  .page-faq .faq-branch__opt summary::before {
    transition: none;
  }
  .page-faq .faq-index__cell:hover { transform: none; }
}
