.page-faq {
  --faq-hair-dark: 1px solid rgba(127, 196, 232, 0.28);
  --faq-hair-ink: 1px solid rgba(12, 17, 22, 0.18);
  --faq-shadow: 10px 10px 0 rgba(18, 90, 138, 0.2);
  background: var(--abyss-950);
  color: var(--sand-050);
  font-family: var(--sans);
  overflow-x: hidden;
}

.page-faq a {
  color: inherit;
}

/* ---------- 面包屑 ---------- */
.page-faq .faq-crumbs {
  position: relative;
  z-index: 3;
  padding-top: 26px;
  padding-bottom: 10px;
}

.page-faq .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--tide-300);
}

.page-faq .breadcrumb a {
  color: var(--tide-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 196, 232, 0.4);
}

.page-faq .breadcrumb a:hover {
  color: var(--coral-500);
  border-bottom-color: var(--coral-500);
}

.page-faq .breadcrumb__sep {
  color: rgba(127, 196, 232, 0.5);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 0 58px;
  background: linear-gradient(170deg, var(--abyss-950) 0%, var(--abyss-800) 78%, #0E3555 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(127, 196, 232, 0.09) 0 1px, transparent 1px var(--grid-cell)),
    repeating-linear-gradient(0deg, rgba(127, 196, 232, 0.09) 0 1px, transparent 1px var(--grid-cell));
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -58%;
  width: 72%;
  height: 150%;
  background: var(--coral-500);
  opacity: 0.16;
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 34px;
}

.page-faq .faq-hero .eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--neon-400);
}

.page-faq .faq-hero h1 {
  margin: 12px 0 0;
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper-000);
}

.page-faq .faq-hero__lead {
  margin: 20px 0 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.82;
  color: rgba(246, 242, 234, 0.85);
}

/* 首屏右端索引面板 */
.page-faq .faq-hero__panel {
  border: 2px solid rgba(127, 196, 232, 0.42);
  background: rgba(3, 22, 37, 0.74);
  box-shadow: 9px 9px 0 rgba(255, 107, 69, 0.26);
  padding: 20px 20px 8px;
}

.page-faq .faq-hero__panel-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--coral-200);
}

.page-faq .faq-hero__toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-hero__toc a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px dashed rgba(127, 196, 232, 0.3);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--sand-050);
}

.page-faq .faq-hero__toc .mono {
  font-size: 13px;
  color: var(--neon-400);
}

.page-faq .faq-hero__toc a:hover {
  color: var(--coral-200);
}

.page-faq .faq-hero__toc a:hover .mono {
  color: var(--coral-500);
}

/* ---------- 搜索与快速跳转 ---------- */
.page-faq .faq-navbar {
  position: relative;
  z-index: 3;
  background: var(--abyss-800);
  border-top: var(--faq-hair-dark);
  border-bottom: var(--faq-hair-dark);
}

.page-faq .faq-navbar__inner {
  display: grid;
  gap: 18px;
  padding: 20px 0 22px;
}

.page-faq .faq-search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--tide-300);
}

.page-faq .faq-search__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--sand-050);
  background: rgba(3, 22, 37, 0.82);
  border: 2px solid rgba(127, 196, 232, 0.34);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.page-faq .faq-search__input::placeholder {
  color: rgba(127, 196, 232, 0.55);
}

.page-faq .faq-search__input:focus {
  outline: 2px solid var(--neon-400);
  outline-offset: 2px;
  border-color: var(--neon-400);
}

.page-faq .faq-search__hint {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted-500);
}

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

.page-faq .faq-jump__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 13px;
  font-size: 14px;
  text-decoration: none;
  color: var(--sand-050);
  border: 1px solid rgba(127, 196, 232, 0.42);
  background: rgba(18, 90, 138, 0.3);
}

.page-faq .faq-jump__link .mono {
  font-size: 12px;
  color: var(--neon-400);
}

.page-faq .faq-jump__link:hover {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: var(--abyss-950);
}

.page-faq .faq-jump__link:hover .mono {
  color: var(--abyss-950);
}

/* ---------- 主体分栏 ---------- */
.page-faq .faq-body {
  background: var(--sand-050);
  color: var(--ink-900);
  padding: 52px 0 72px;
}

.page-faq .faq-body__grid {
  display: grid;
  gap: 0;
}

/* ---------- 分组 ---------- */
.page-faq .faq-group + .faq-group {
  position: relative;
  margin-top: 54px;
  padding-top: 46px;
}

.page-faq .faq-group + .faq-group::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  border-top: 1px solid rgba(12, 17, 22, 0.32);
  background-image: repeating-linear-gradient(90deg, rgba(12, 17, 22, 0.5) 0 1px, transparent 1px 16px);
}

.page-faq .faq-group__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  padding-left: 16px;
  border-left: 6px solid var(--coral-500);
}

.page-faq .faq-group__num {
  grid-row: 1 / span 2;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--harbor-600);
}

.page-faq .faq-group__title {
  margin: 4px 0 0;
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(23px, 4.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.page-faq .faq-group__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-500);
}

/* ---------- 插图 ---------- */
.page-faq .faq-figure {
  margin: 28px 0 4px;
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 3px solid var(--ink-900);
  box-shadow: var(--faq-shadow);
}

.page-faq .faq-figure__caption {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--muted-500);
}

/* ---------- 问答列表 ---------- */
.page-faq .faq-list {
  margin-top: 26px;
  border-top: var(--faq-hair-ink);
}

.page-faq .faq-item {
  border-bottom: var(--faq-hair-ink);
}

.page-faq .faq-item__q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-900);
}

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

.page-faq .faq-item__q:hover .faq-item__text {
  color: var(--harbor-600);
}

.page-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--harbor-600);
  outline-offset: 3px;
}

.page-faq .faq-item__mark {
  position: relative;
  justify-self: end;
  width: 20px;
  height: 20px;
  border: 2px solid var(--harbor-600);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-item__mark::before,
.page-faq .faq-item__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--harbor-600);
  transform: translate(-50%, -50%);
}

.page-faq .faq-item__mark::before {
  width: 10px;
  height: 2px;
}

.page-faq .faq-item__mark::after {
  width: 2px;
  height: 10px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.page-faq .faq-item[open] .faq-item__mark {
  background: var(--coral-500);
  border-color: var(--coral-500);
}

.page-faq .faq-item[open] .faq-item__mark::before {
  background: var(--paper-000);
}

.page-faq .faq-item[open] .faq-item__mark::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.page-faq .faq-item__a {
  position: relative;
  padding: 0 0 22px 40px;
  font-size: 16px;
  line-height: 1.82;
  color: var(--ink-900);
  animation: faqDrop 0.26s ease-out both;
}

.page-faq .faq-item__a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  bottom: 24px;
  width: 24px;
  background-image:
    repeating-linear-gradient(90deg, rgba(18, 90, 138, 0.24) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(18, 90, 138, 0.24) 0 1px, transparent 1px 8px);
  pointer-events: none;
}

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

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

.page-faq .faq-item__a a {
  color: var(--harbor-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 90, 138, 0.5);
}

.page-faq .faq-item__a a:hover {
  color: var(--coral-500);
  border-bottom-color: var(--coral-500);
}

.page-faq .faq-steps {
  margin: 0 0 10px;
  padding-left: 20px;
}

.page-faq .faq-steps li {
  margin-bottom: 6px;
}

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

@keyframes faqDrop {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 侧栏 ---------- */
.page-faq .faq-aside {
  margin-top: 52px;
}

.page-faq .faq-aside__card {
  background: var(--abyss-800);
  color: var(--sand-050);
  border: 2px solid var(--abyss-950);
  box-shadow: 10px 10px 0 rgba(255, 107, 69, 0.34);
  padding: 24px 22px 18px;
}

.page-faq .faq-aside__label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--neon-400);
}

.page-faq .faq-aside__title {
  margin: 0;
  font-family: var(--cond);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper-000);
}

.page-faq .faq-aside__text {
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(246, 242, 234, 0.82);
}

.page-faq .faq-aside__btn {
  display: inline-block;
  text-decoration: none;
}

.page-faq .faq-aside__links {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px dashed rgba(127, 196, 232, 0.32);
}

.page-faq .faq-aside__links a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  text-decoration: none;
  color: var(--tide-300);
  border-bottom: 1px dashed rgba(127, 196, 232, 0.32);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.page-faq .faq-aside__links a:hover {
  color: var(--coral-500);
  padding-left: 4px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-faq .faq-hero {
    padding: 18px 0 68px;
  }

  .page-faq .faq-navbar__inner {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
  }

  .page-faq .faq-item__a {
    padding-left: 46px;
  }
}

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

  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

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

  .page-faq .faq-body__grid {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 56px;
    align-items: start;
  }

  .page-faq .faq-aside {
    margin-top: 8px;
    position: sticky;
    top: 96px;
  }
}

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

  .page-faq .faq-item__q {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__a {
    animation: none;
  }

  .page-faq .faq-item__mark,
  .page-faq .faq-item__mark::after,
  .page-faq .faq-aside__links a {
    transition: none;
  }
}
