.page-faq {
  padding-bottom: 96px;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  max-width: 900px;
  margin: 44px 0 32px;
  position: relative;
}

.page-faq .faq-hero__title {
  margin: 14px 0 20px;
  font-size: clamp(32px, 6.4vw, 64px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.page-faq .faq-hero__title .brush {
  display: block;
  font-family: var(--font-brush);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.1;
  color: var(--gold-bright);
  margin-top: 6px;
  text-shadow: 0 0 32px rgba(247, 201, 72, 0.22);
}

.page-faq .faq-hero__lede {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--mist);
}

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

.page-faq .faq-hero__figure img,
.page-faq .faq-install__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.page-faq .faq-install__figure {
  margin: 22px 0 22px;
}

/* ---------- 主布局：左侧索引 + 右侧清单 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 56px;
  align-items: start;
}

/* ---------- 左侧分组索引 ---------- */
.page-faq .faq-aside {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.page-faq .faq-aside__nav {
  display: flex;
  flex-direction: row;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-faq .faq-aside__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-faq .faq-aside__link:hover {
  color: var(--gold-bright);
  border-color: var(--line-gold);
}

.page-faq .faq-aside__link[aria-current="true"] {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(226, 167, 46, 0.1);
}

.page-faq .faq-aside__num {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.page-faq .faq-aside__link[aria-current="true"] .faq-aside__num {
  color: var(--gold-bright);
}

/* ---------- 分组 ---------- */
.page-faq .faq-group {
  margin-bottom: 56px;
  scroll-margin-top: 130px;
}

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

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

.page-faq .faq-group__num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-faq .faq-group__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.page-faq .faq-group__lede {
  flex: 1 1 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 问答条目 ---------- */
.page-faq .faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}

.page-faq .faq-item[open] {
  background: linear-gradient(180deg, rgba(23, 17, 34, 0.9), rgba(13, 10, 18, 0));
}

.page-faq .faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 6px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

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

.page-faq .faq-item__q:hover {
  color: var(--gold-bright);
  padding-left: 12px;
}

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

.page-faq .faq-item__marker {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  position: relative;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  background: rgba(226, 167, 46, 0.04);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-faq .faq-item__marker::before,
.page-faq .faq-item__marker::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.page-faq .faq-item__marker::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  transform: translateX(-50%);
}

.page-faq .faq-item__marker::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  transform: translateY(-50%);
}

.page-faq .faq-item[open] .faq-item__marker {
  background: rgba(226, 167, 46, 0.16);
  border-color: var(--gold);
}

.page-faq .faq-item[open] .faq-item__marker::before {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.page-faq .faq-item__text {
  flex: 1 1 auto;
}

.page-faq .faq-item__a {
  padding: 0 6px 24px 38px;
  animation: faq-open 0.24s var(--ease);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-faq .faq-item__conclusion {
  margin: 0 0 14px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--gold);
  color: var(--ivory);
  font-size: 15.5px;
  line-height: 1.75;
}

.page-faq .faq-item__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: faq-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-faq .faq-item__steps li {
  counter-increment: faq-step;
  position: relative;
  padding-left: 32px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.75;
}

.page-faq .faq-item__steps li::before {
  content: counter(faq-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.18em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-faq .faq-item__a a {
  color: var(--mist);
  border-bottom: 1px solid var(--line-gold);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-faq .faq-item__a a:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- 联系客服卡片 ---------- */
.page-faq .faq-group--contact .faq-contact {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-faq .faq-contact__card {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.page-faq .faq-contact__card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 167, 46, 0.16), transparent 70%);
  pointer-events: none;
}

.page-faq .faq-contact__tag {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-faq .faq-contact__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ivory);
}

.page-faq .faq-contact__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-faq .faq-contact__card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-faq .faq-contact {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-faq .faq-hero__figure {
    margin-bottom: 0;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-layout {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 56px;
  }

  .page-faq .faq-aside {
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-top: 18px;
    border-top-color: var(--line-gold);
  }

  .page-faq .faq-aside__nav {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-aside__link {
    display: flex;
    width: 100%;
    border: none;
    border-left: 2px solid transparent;
    border-radius: 0;
    padding: 10px 12px;
    white-space: normal;
  }

  .page-faq .faq-aside__link:hover {
    border-left-color: var(--line-gold);
  }

  .page-faq .faq-aside__link[aria-current="true"] {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(226, 167, 46, 0.12), transparent 85%);
  }

  .page-faq .faq-hero__figure {
    margin-right: -44px;
  }

  .page-faq .faq-group__head {
    gap: 6px 16px;
  }

  .page-faq .faq-group__lede {
    flex: 1 1 auto;
    text-align: right;
    max-width: 42ch;
  }
}

@media (min-width: 1240px) {
  .page-faq .faq-layout {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 72px;
  }
}

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

  .page-faq .faq-item__marker,
  .page-faq .faq-item__marker::before,
  .page-faq .faq-item__marker::after,
  .page-faq .faq-item__q,
  .page-faq .faq-aside__link,
  .page-faq .faq-item__a a {
    transition: none;
  }
}
