.page-faq {
  --faq-gap: clamp(20px, 3vw, 34px);
  --faq-pad: clamp(16px, 3vw, 26px);
  background: var(--night);
  color: var(--fog);
}

.page-faq .breadcrumb {
  padding-top: clamp(14px, 2.4vw, 22px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(16px, 3.4vw, 40px);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 76%;
  background:
    radial-gradient(120% 92% at 88% 0%, rgba(23, 50, 77, 0.9) 0%, rgba(6, 17, 31, 0) 62%),
    linear-gradient(158deg, var(--steel) 0%, var(--night) 70%);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
  z-index: 0;
}

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

.page-faq .faq-hero__text {
  max-width: 780px;
}

.page-faq .faq-hero h1 {
  margin: clamp(10px, 1.6vw, 16px) 0 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fog);
}

.page-faq .faq-hero__lead {
  margin: clamp(14px, 2.2vw, 22px) 0 0;
  max-width: 58ch;
  color: var(--mist);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
}

.page-faq .faq-search {
  position: relative;
  margin-top: clamp(20px, 3vw, 30px);
  max-width: 520px;
}

.page-faq .faq-search::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border: 2px solid var(--mist);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-search::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 50%;
  width: 8px;
  height: 2px;
  margin-top: 3px;
  background: var(--mist);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.page-faq .faq-search__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 44px;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.page-faq .faq-search__input::placeholder {
  color: var(--mist);
  opacity: 0.85;
}

.page-faq .faq-search__input:hover {
  border-color: var(--board);
}

.page-faq .faq-search__input:focus {
  outline: none;
  background: var(--board);
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 43, 0.28);
}

.page-faq .faq-hero__band {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 4vw, 44px);
  overflow: hidden;
  background: var(--steel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-hero__band img {
  display: block;
  width: 100%;
  height: clamp(110px, 16vw, 190px);
  object-fit: cover;
  filter: saturate(0.4) contrast(1.06) brightness(0.62);
}

.page-faq .faq-hero__band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(242, 245, 247, 0.07) 0 1px,
    transparent 1px 4px
  );
}

/* ---------- 主体分栏 ---------- */
.page-faq .faq-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--faq-gap);
  padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px);
}

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

.page-faq .faq-index__label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.page-faq .faq-index__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.page-faq .faq-index__link:hover {
  border-color: var(--orange);
  color: var(--white);
}

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

.page-faq .faq-index__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-faq .faq-side__figure {
  margin: clamp(18px, 3vw, 26px) 0 0;
}

.page-faq .faq-side__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: saturate(0.5) brightness(0.82);
}

.page-faq .faq-side__cap {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 问答分组 ---------- */
.page-faq .faq-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 6vw, 74px);
  min-width: 0;
}

.page-faq .faq-group {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

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

.page-faq .faq-group__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-faq .faq-group__title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fog);
}

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

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

.page-faq .faq-item:hover {
  border-left-color: var(--board);
}

.page-faq .faq-item[open] {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(255, 106, 43, 0.07), rgba(255, 106, 43, 0) 62%);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 14px 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--fog);
  transition: color 0.16s ease;
}

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

.page-faq .faq-item__q:hover {
  color: var(--orange);
}

.page-faq .faq-item[open] .faq-item__q {
  color: var(--white);
}

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

.page-faq .faq-item__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.page-faq .faq-item__sign {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

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

.page-faq .faq-item__sign::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}

.page-faq .faq-item__sign::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.page-faq .faq-item[open] .faq-item__sign::after {
  transform: rotate(90deg);
  opacity: 0;
}

.page-faq .faq-item__a {
  padding: 2px 16px 20px 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-faq .faq-item[open] .faq-item__a {
  animation: faq-drop 0.22s ease both;
}

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

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

.page-faq .faq-item__a p:first-child {
  color: var(--fog);
}

.page-faq .faq-item__a ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.page-faq .faq-item__a li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 16px;
}

.page-faq .faq-item__a li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

.page-faq .faq-item__a a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  transition: color 0.16s ease;
}

.page-faq .faq-item__a a:hover {
  color: var(--orange);
}

.page-faq .faq-item__a a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- 收尾引导 ---------- */
.page-faq .faq-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: var(--faq-pad);
  background: var(--board);
  border: 1px solid var(--line);
  border-left: 2px solid var(--orange);
  border-radius: var(--radius);
}

.page-faq .faq-more__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fog);
}

.page-faq .faq-more__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 900px) {
  .page-faq .faq-body {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .page-faq .faq-side {
    position: sticky;
    top: calc(var(--topbar-h) + 24px);
  }

  .page-faq .faq-index__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .page-faq .faq-index__list li {
    border-bottom: 1px solid var(--line);
  }

  .page-faq .faq-index__link {
    padding: 13px 0 13px 6px;
    min-height: 46px;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-left: 2px solid transparent;
    transition: border-left-color 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
  }

  .page-faq .faq-index__link:hover {
    border-left-color: var(--orange);
    padding-left: 12px;
    color: var(--white);
  }

  .page-faq .faq-item__q {
    padding: 16px 18px 16px 20px;
  }

  .page-faq .faq-item__a {
    padding: 4px 22px 24px 20px;
    max-width: 68ch;
  }
}

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

  .page-faq .faq-item__sign::before,
  .page-faq .faq-item__sign::after,
  .page-faq .faq-index__link {
    transition: none;
  }
}
