.page-faq {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ---------- 面包屑 ---------- */
.page-faq .breadcrumb {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.page-faq .breadcrumb__sep {
  margin: 0 0.5rem;
  color: var(--line);
}

.page-faq .breadcrumb__current {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Hero 区域 ---------- */
.page-faq .faq-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.75rem 1.25rem 3rem;
  position: relative;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, transparent 48%, rgba(0, 255, 170, 0.08) 48%);
  z-index: 0;
}

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

.page-faq .section-heading__overline {
  margin-bottom: 0.625rem;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 1rem;
}

.page-faq .faq-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.page-faq .faq-hero__lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 0;
}

.page-faq .faq-hero__figure {
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  border: 1px solid var(--line);
  filter: saturate(1.05);
}

/* ---------- 主体布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0 1.25rem 3.5rem;
}

.page-faq .faq-layout .faq-section {
  scroll-margin-top: 6rem;
}

/* ---------- 分类索引 ---------- */
.page-faq .faq-index {
  position: relative;
}

.page-faq .faq-index__inner {
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-index__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
}

.page-faq .faq-index__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1.25rem;
}

.page-faq .faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.page-faq .faq-index__link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  border-left: 3px solid var(--line);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.page-faq .faq-index__link:hover,
.page-faq .faq-index__link:focus {
  border-left-color: var(--brand);
  background: var(--bg-primary);
  color: var(--brand);
}

.page-faq .faq-index__note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-faq .faq-index__note-mark {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--highlight);
  margin-bottom: 0.75rem;
}

.page-faq .faq-index__note p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.page-faq .faq-index__note .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- 问答内容区 ---------- */
.page-faq .faq-content {
  display: grid;
  gap: 2.75rem;
  min-width: 0;
}

.page-faq .faq-section__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
  position: relative;
}

.page-faq .faq-section__index {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--brand);
  flex-shrink: 0;
  user-select: none;
}

.page-faq .section-title {
  margin-bottom: 0.25rem;
}

.page-faq .section-title--accent {
  margin-bottom: 0.25rem;
}

.page-faq .faq-section__desc {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0.375rem 0 0;
}

/* ---------- 手风琴项 ---------- */
.page-faq .faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-faq .faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.page-faq .faq-item[open] {
  background: linear-gradient(90deg, rgba(0, 255, 170, 0.045) 0%, rgba(0, 184, 255, 0.02) 100%);
}

.page-faq .faq-item__summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem;
  position: relative;
  transition: background-color 0.25s ease;
}

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

.page-faq .faq-item__summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.page-faq .faq-item__summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.page-faq .faq-item[open] .faq-item__summary::before {
  background: var(--brand);
}

.page-faq .faq-item__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  background: rgba(0, 184, 255, 0.08);
  border: 1px solid rgba(0, 184, 255, 0.2);
  padding: 0.375rem 0.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.page-faq .faq-item__question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  flex: 1;
}

.page-faq .faq-item__toggle {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-faq .faq-item__toggle::before,
.page-faq .faq-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--text-secondary);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-faq .faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-item[open] .faq-item__toggle {
  background: var(--brand);
  border-color: var(--brand);
}

.page-faq .faq-item[open] .faq-item__toggle::before,
.page-faq .faq-item[open] .faq-item__toggle::after {
  background: var(--bg-primary);
}

.page-faq .faq-item[open] .faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-faq .faq-item__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.05s, transform 0.35s ease 0.05s;
}

.page-faq .faq-item[open] .faq-item__body {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.page-faq .faq-item__body-inner {
  padding: 0 1.25rem 1.5rem 3rem;
}

.page-faq .faq-item__body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.page-faq .faq-item__body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 184, 255, 0.4);
  transition: border-bottom-color 0.2s ease;
}

.page-faq .faq-item__body a:hover {
  border-bottom-color: var(--accent);
}

.page-faq .faq-item__email,
.page-faq .faq-item__phone {
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- 联系横幅 ---------- */
.page-faq .faq-contact {
  position: relative;
  margin-top: 1rem;
}

.page-faq .faq-contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent) 55%, var(--highlight));
  z-index: 2;
}

.page-faq .faq-contact__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-faq .faq-contact__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-faq .faq-contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 14, 20, 0.96) 0%, rgba(19, 26, 35, 0.88) 55%, rgba(10, 14, 20, 0.65) 100%);
}

.page-faq .faq-contact__inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.page-faq .faq-contact__inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0.5rem 0 0;
}

.page-faq .faq-contact__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 0 1.25rem;
}

.page-faq .faq-contact__inner .btn {
  min-width: 170px;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    padding: 4rem 1.25rem 4.5rem;
    align-items: center;
  }

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

  .page-faq .faq-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .page-faq .faq-index__inner {
    position: sticky;
    top: 2.25rem;
  }

  .page-faq .faq-index__list {
    grid-template-columns: 1fr;
  }

  .page-faq .faq-item__summary {
    padding: 1.5rem;
  }

  .page-faq .faq-item__question {
    font-size: 1.0625rem;
  }

  .page-faq .faq-item__body-inner {
    padding-left: 3.25rem;
    padding-right: 2rem;
  }

  .page-faq .faq-contact__inner {
    padding: 5rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 4rem;
  }

  .page-faq .faq-content {
    gap: 3.5rem;
  }
}
