/* ===== page-faq 页面专属样式 ===== */
.page-faq {
  --faq-glow: 0 0 12px rgba(0, 212, 255, 0.25);
  --faq-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-bg-primary);
  color: var(--color-text-light);
}

/* ---------- hero 区 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: 40px 0 48px;
  background: linear-gradient(135deg, #0A0E1A 0%, #12172B 100%);
  border-bottom: 2px solid rgba(0, 212, 255, 0.12);
}

.page-faq .faq-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-blue) 30%, var(--color-accent-purple) 70%, transparent 100%);
  opacity: 0.6;
}

.page-faq .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 20px;
}

.page-faq .breadcrumb a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--faq-transition);
}

.page-faq .breadcrumb a:hover {
  color: var(--color-text-white);
  text-decoration: underline;
}

.page-faq .breadcrumb__sep {
  color: var(--color-text-dim);
  user-select: none;
}

.page-faq .breadcrumb [aria-current="page"] {
  color: var(--color-text-light);
  font-weight: 600;
}

.page-faq .faq-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  color: var(--color-text-white);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.page-faq .faq-hero__title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-accent-blue);
  margin-top: 8px;
  border-radius: 2px;
  box-shadow: var(--faq-glow);
}

.page-faq .faq-hero__desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin: 0 0 28px;
  max-width: 560px;
  line-height: 1.6;
}

/* ---------- 搜索框 ---------- */
.page-faq .faq-search {
  max-width: 520px;
  position: relative;
}

.page-faq .faq-search__input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--color-bg-secondary);
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius);
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--faq-transition), box-shadow var(--faq-transition);
  box-sizing: border-box;
}

.page-faq .faq-search__input::placeholder {
  color: var(--color-text-dim);
}

.page-faq .faq-search__input:focus {
  border-color: var(--color-accent-blue);
  box-shadow: var(--faq-glow);
}

.page-faq .faq-search::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- section 通用 ---------- */
.page-faq .faq-section {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(149, 0, 255, 0.10);
}

.page-faq .faq-section:last-of-type {
  border-bottom: none;
}

.page-faq .faq-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-faq .faq-section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--color-text-white);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
}

.page-faq .faq-section__title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--color-accent-purple);
  margin-right: 12px;
  border-radius: 3px;
  vertical-align: middle;
}

.page-faq .faq-section__count {
  font-size: 0.8rem;
  vertical-align: middle;
}

.page-faq .faq-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.page-faq .faq-section__img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  justify-self: start;
  display: none;
}

/* ---------- 手风琴列表 ---------- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.page-faq .faq-item {
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 212, 255, 0.08);
  overflow: hidden;
  transition: border-color var(--faq-transition), box-shadow var(--faq-transition);
}

.page-faq .faq-item:hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.page-faq .faq-item[open] {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--faq-glow);
}

.page-faq .faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-light);
  transition: color var(--faq-transition), background var(--faq-transition);
  user-select: none;
  position: relative;
}

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

.page-faq .faq-item__question:hover {
  color: var(--color-accent-blue);
  background: rgba(0, 212, 255, 0.04);
}

.page-faq .faq-item[open] .faq-item__question {
  color: var(--color-accent-blue);
  background: rgba(0, 212, 255, 0.06);
}

.page-faq .faq-item__q-text {
  flex: 1;
  line-height: 1.4;
}

.page-faq .faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform var(--faq-transition);
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-accent-blue);
  border-radius: 2px;
  transition: transform var(--faq-transition);
}

.page-faq .faq-item__icon::before {
  width: 2.5px;
  height: 14px;
  top: 3px;
  left: 9px;
}

.page-faq .faq-item__icon::after {
  width: 14px;
  height: 2.5px;
  top: 9px;
  left: 3px;
}

.page-faq .faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

/* ---------- 手风琴答案 ---------- */
.page-faq .faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(10, 14, 26, 0.5);
  border-top: 1px solid transparent;
}

.page-faq .faq-item[open] .faq-item__answer {
  max-height: 400px;
  border-top-color: rgba(0, 212, 255, 0.10);
}

.page-faq .faq-item__answer-inner {
  padding: 16px 20px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

.page-faq .faq-item__answer-inner p {
  margin: 0;
}

.page-faq .faq-item__answer-inner p + p {
  margin-top: 12px;
}

/* ---------- 相关链接 ---------- */
.page-faq .faq-related {
  padding: 48px 0 56px;
  background: var(--color-bg-secondary);
  margin-top: 8px;
}

.page-faq .faq-related__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text-white);
  margin: 0 0 24px;
  text-align: center;
}

.page-faq .faq-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.page-faq .faq-related__link {
  min-width: 120px;
  text-align: center;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-accent-purple);
  color: var(--color-text-white);
  background: transparent;
  transition: background var(--faq-transition), border-color var(--faq-transition), transform var(--faq-transition);
  text-decoration: none;
  font-size: 0.95rem;
}

.page-faq .faq-related__link:hover {
  background: rgba(149, 0, 255, 0.15);
  border-color: var(--color-accent-blue);
  transform: translateY(-2px);
}

/* ---------- 桌面端 ≥768px ---------- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 56px 0 64px;
  }

  .page-faq .faq-hero__title::after {
    width: 96px;
  }

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

  .page-faq .faq-section__grid {
    grid-template-columns: 1fr 300px;
    gap: 36px;
  }

  .page-faq .faq-section__img {
    display: block;
    position: sticky;
    top: 100px;
  }

  .page-faq .faq-section:last-of-type .faq-section__grid {
    grid-template-columns: 1fr;
  }

  .page-faq .faq-item__question {
    padding: 18px 24px;
    font-size: 1.05rem;
  }

  .page-faq .faq-item__answer-inner {
    padding: 20px 24px 24px;
    font-size: 1rem;
  }

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

  .page-faq .faq-related__title {
    font-size: 1.5rem;
  }

  .page-faq .faq-related__link {
    padding: 12px 32px;
    font-size: 1rem;
  }
}

/* ---------- 宽屏 ≥1024px ---------- */
@media (min-width: 1024px) {
  .page-faq .faq-hero {
    padding: 72px 0 80px;
  }

  .page-faq .faq-hero__desc {
    font-size: 1.15rem;
  }

  .page-faq .faq-section {
    padding: 64px 0 48px;
  }

  .page-faq .faq-section__title {
    font-size: 1.85rem;
  }

  .page-faq .faq-section__grid {
    gap: 48px;
  }

  .page-faq .faq-list {
    gap: 10px;
  }

  .page-faq .faq-item__question {
    padding: 20px 28px;
    font-size: 1.1rem;
  }

  .page-faq .faq-item__answer-inner {
    padding: 22px 28px 28px;
  }
}
