/* ==========================================================
   常见问题页 —— 作用域 .page-faq
   ========================================================== */

.page-faq {
  display: block;
  background: var(--ink-void);
  color: var(--white-hi);
  font-family: var(--font-body);
  padding-bottom: 8px;
}

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

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
  background: var(--ink-void);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -14%;
  width: 68%;
  height: 176%;
  background: linear-gradient(
    150deg,
    rgba(47, 107, 255, 0.34),
    rgba(36, 224, 214, 0.16) 42%,
    rgba(255, 79, 216, 0.1) 68%,
    transparent 80%
  );
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-volt), var(--cyan-signal), transparent);
  opacity: 0.55;
}

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

.page-faq .faq-hero .crumbs {
  margin-bottom: 28px;
}

.page-faq .faq-title {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 6.2vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white-hi);
  max-width: 15ch;
}

.page-faq .faq-lede {
  max-width: 62ch;
  color: var(--grey-index);
}

.page-faq .faq-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
}

.page-faq .faq-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-faq .faq-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white-hi);
}

.page-faq .faq-stat-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

/* ---------- 主体两栏 ---------- */

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

.page-faq .faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.page-faq .faq-rail {
  min-width: 0;
}

.page-faq .faq-rail .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.page-faq .faq-rail-art {
  margin: 0 0 22px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink-slate);
  box-shadow: inset 0 1px 0 rgba(243, 247, 255, 0.04);
}

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

.page-faq .faq-cats {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-steel);
}

.page-faq .faq-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  text-decoration: none;
  color: var(--grey-index);
  font-size: 15px;
  border-left: 1px solid transparent;
  margin-left: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-faq .faq-cat-node {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-steel);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-faq .faq-cat-name {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .faq-cat-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey-index);
}

.page-faq .faq-cat:hover,
.page-faq .faq-cat:focus-visible {
  color: var(--white-hi);
  border-left-color: var(--blue-volt);
}

.page-faq .faq-cat:hover .faq-cat-node,
.page-faq .faq-cat:focus-visible .faq-cat-node {
  background: var(--cyan-signal);
  box-shadow: 0 0 12px var(--cyan-signal);
}

.page-faq .faq-rail-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey-index);
}

/* ---------- 过滤 ---------- */

.page-faq .faq-main {
  min-width: 0;
}

.page-faq .faq-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 40px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  background: var(--ink-slate);
  transition: border-color 0.22s var(--ease);
}

.page-faq .faq-filter:focus-within {
  border-color: var(--cyan-signal);
}

.page-faq .faq-filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-index);
}

.page-faq .faq-filter-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-steel);
  color: var(--white-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.22s var(--ease);
}

.page-faq .faq-filter-input:focus {
  border-bottom-color: var(--cyan-signal);
}

.page-faq .faq-filter-input::placeholder {
  color: var(--grey-index);
  opacity: 0.75;
}

/* ---------- 问题分组 ---------- */

.page-faq .faq-group {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}

.page-faq .faq-group:last-child {
  margin-bottom: 8px;
}

.page-faq .faq-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-steel);
}

.page-faq .faq-group-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan-signal);
  flex: 0 0 auto;
}

.page-faq .faq-group-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white-hi);
}

.page-faq .faq-group-head .tag {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-faq .faq-group-lede {
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-index);
  max-width: 60ch;
}

/* ---------- 手风琴条目 ---------- */

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

.page-faq .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-volt), var(--cyan-signal));
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.page-faq .faq-item[open]::before {
  opacity: 1;
}

.page-faq .faq-item > summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 36px 18px 12px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

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

.page-faq .faq-item > summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--grey-index);
  border-bottom: 1.5px solid var(--grey-index);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-faq .faq-item[open] > summary::after {
  transform: rotate(-135deg);
  border-color: var(--cyan-signal);
}

.page-faq .faq-item > summary:hover .faq-item-q,
.page-faq .faq-item > summary:focus-visible .faq-item-q {
  color: var(--cyan-signal);
}

.page-faq .faq-item-num {
  flex: 0 0 auto;
  min-width: 44px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey-index);
  transition: color 0.2s var(--ease);
}

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

.page-faq .faq-item-q {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--white-hi);
  transition: color 0.2s var(--ease);
}

.page-faq .faq-item-a {
  padding: 0 12px 22px 12px;
  color: var(--grey-index);
  font-size: 15px;
  line-height: 1.75;
  max-width: 68ch;
}

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

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

.page-faq .faq-next a {
  color: var(--cyan-signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 224, 214, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-faq .faq-next a:hover,
.page-faq .faq-next a:focus-visible {
  color: var(--white-hi);
  border-bottom-color: var(--white-hi);
}

/* ---------- 排查步骤 ---------- */

.page-faq .faq-steps {
  margin-top: 88px;
  padding-top: 72px;
  border-top: 1px solid var(--line-steel);
}

.page-faq .faq-steps .section-title {
  margin: 14px 0 16px;
}

.page-faq .faq-steps-lede {
  max-width: 56ch;
  color: var(--grey-index);
}

.page-faq .faq-steps-art {
  margin: 40px 0 0;
  width: 100%;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink-slate);
}

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

.page-faq .faq-flow {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-faq .faq-flow-step {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line-steel);
  border-radius: var(--r-card);
  background: var(--ink-slate);
  box-shadow: inset 0 1px 0 rgba(243, 247, 255, 0.04);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-faq .faq-flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--blue-volt);
}

.page-faq .faq-flow-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan-signal);
}

.page-faq .faq-flow-step h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white-hi);
}

.page-faq .faq-flow-sub {
  margin: 0;
  padding-left: 18px;
  color: var(--grey-index);
  font-size: 15px;
  line-height: 1.7;
}

.page-faq .faq-flow-sub li {
  margin-bottom: 8px;
}

.page-faq .faq-flow-sub li:last-child {
  margin-bottom: 0;
}

.page-faq .faq-flow-sub li::marker {
  color: var(--grey-index);
  font-family: var(--font-mono);
}

/* ---------- 仍未解决 ---------- */

.page-faq .faq-help {
  margin-top: 88px;
  padding-top: 72px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line-steel);
}

.page-faq .faq-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}

.page-faq .faq-help .section-title {
  margin: 14px 0 16px;
}

.page-faq .faq-help-lede {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-index);
}

.page-faq .faq-help-checklist {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.page-faq .faq-help-checklist li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px dashed var(--line-steel);
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-index);
}

.page-faq .faq-help-checklist li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-signal);
}

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

.page-faq .faq-help-plate {
  padding: 28px 26px 30px;
  align-self: start;
}

.page-faq .faq-help-plate .plate-label {
  margin: 0 0 18px;
}

.page-faq .faq-help-time {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cyan-signal);
}

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

/* ==========================================================
   响应式
   ========================================================== */

@media (min-width: 700px) {
  .page-faq .faq-item-a {
    padding: 0 48px 26px 58px;
  }

  .page-faq .faq-item > summary {
    padding: 20px 44px 20px 14px;
  }

  .page-faq .faq-item-num {
    min-width: 48px;
  }
}

@media (min-width: 860px) {
  .page-faq .faq-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .page-faq .faq-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -40px;
    width: 40px;
    border-top: 1px dashed var(--line-steel);
  }
}

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

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

  .page-faq .faq-grid {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 64px;
  }

  .page-faq .faq-rail {
    position: sticky;
    top: 108px;
    align-self: start;
  }

  .page-faq .faq-help-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-grid {
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 80px;
  }
}
