.page-faq {
  --faq-gold: #D4AF37;
  --faq-light-gold: #E8C874;
  --faq-blue: #00C2FF;
  --faq-deep: #2A0A4A;
  --faq-royal: #5B2A86;
  --faq-ink: #12061F;
  --faq-mist: #F2EAE4;
  --faq-steel: #8A8FA3;
  --faq-cream: #F8F4E3;
  background: var(--faq-deep);
  color: var(--faq-mist);
  font-family: 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  overflow-x: hidden;
}

/* ===== 首屏 ===== */
.faq-hero {
  position: relative;
  background: linear-gradient(135deg, #1A0530 0%, var(--faq-deep) 45%, #3B1264 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.faq-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-hero__text {
  max-width: 640px;
}

.faq-hero .section-label {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--faq-light-gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.faq-hero h1 {
  font-family: 'Rajdhani', 'DIN Alternate', 'PingFang SC', sans-serif;
  font-size: 32px;
  line-height: 1.2;
  color: var(--faq-mist);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.faq-hero__desc {
  font-size: 15px;
  line-height: 1.8;
  color: #BCB4C4;
  margin: 0 0 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--faq-steel);
}

.breadcrumb a {
  color: var(--faq-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--faq-light-gold);
}

.breadcrumb span[aria-current="page"] {
  color: var(--faq-gold);
}

/* 首屏视觉——纯CSS气泡组合 */
.faq-hero__visual {
  display: none;
  position: relative;
  height: 260px;
}

.faq-hero__bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(91, 42, 134, 0.55), rgba(18, 6, 31, 0.4));
}

.faq-hero__bubble--1 {
  width: 120px;
  height: 120px;
  top: 20px;
  left: 40px;
  animation: faqFloat 5s ease-in-out infinite;
}

.faq-hero__bubble--2 {
  width: 72px;
  height: 72px;
  top: 80px;
  left: 170px;
  border-color: rgba(0, 194, 255, 0.5);
  animation: faqFloat 6.4s ease-in-out 0.6s infinite;
}

.faq-hero__bubble--3 {
  width: 40px;
  height: 40px;
  top: 30px;
  left: 208px;
  border-color: rgba(232, 200, 116, 0.6);
  animation: faqFloat 4.2s ease-in-out 1s infinite;
}

.faq-hero__ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  top: 10px;
  left: 30px;
}

.faq-hero__ring::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(212, 175, 55, 0.15);
  border-radius: 50%;
}

.faq-hero__qmark {
  position: absolute;
  font-family: 'Rajdhani', sans-serif;
  font-size: 96px;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.18);
  right: 40px;
  bottom: 10px;
}

@keyframes faqFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== 快速筛选栏 ===== */
.faq-quicknav {
  background: rgba(18, 6, 31, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-quicknav .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-quicknav .filter-tabs__item {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faq-steel);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 2px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-quicknav .filter-tabs__item:hover,
.faq-quicknav .filter-tabs__item:focus-visible {
  color: var(--faq-light-gold);
  border-color: var(--faq-light-gold);
}

.faq-quicknav .filter-tabs__item.is-active {
  color: var(--faq-ink);
  background: var(--faq-gold);
  border-color: var(--faq-gold);
  font-weight: 700;
}

/* ===== 主体网格 ===== */
.faq-main {
  padding: 28px 0 64px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(91, 42, 134, 0.3), transparent 60%),
    var(--faq-ink);
}

.faq-main__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ===== 左侧索引侧栏 ===== */
.faq-sidebar {
  order: -1;
}

.faq-sidebar__sticky {
  position: sticky;
  top: 88px;
  background: rgba(42, 10, 74, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 4px;
  padding: 18px;
}

.faq-sidebar__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  margin-bottom: 16px;
}

.faq-sidebar__label {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--faq-steel);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.faq-anchor {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-anchor__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--faq-mist);
  font-size: 14px;
  padding: 10px 10px;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
}

.faq-anchor__no {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--faq-steel);
  min-width: 24px;
}

.faq-anchor__link:hover,
.faq-anchor__link:focus-visible {
  color: var(--faq-light-gold);
  border-left-color: var(--faq-gold);
  background: rgba(212, 175, 55, 0.08);
}

.faq-anchor__link:hover .faq-anchor__no,
.faq-anchor__link:focus-visible .faq-anchor__no {
  color: var(--faq-gold);
}

.faq-sidebar__contact {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--faq-blue);
  font-size: 13px;
  text-decoration: none;
  padding: 12px 0 0;
  border-top: 1px solid rgba(138, 143, 163, 0.25);
  transition: color 0.3s ease;
}

.faq-sidebar__contact:hover,
.faq-sidebar__contact:focus-visible {
  color: var(--faq-light-gold);
}

/* ===== 右侧内容 ===== */
.faq-content {
  min-width: 0;
}

.faq-section {
  margin-bottom: 48px;
  scroll-margin-top: 84px;
}

.faq-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.faq-section__title {
  font-family: 'Rajdhani', 'DIN Alternate', 'PingFang SC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--faq-mist);
  margin: 0;
}

.faq-section__meta {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--faq-steel);
}

.faq-figure {
  margin: 0 0 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(18, 6, 31, 0.5);
}

.faq-figure img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  margin: 0 auto;
}

.faq-figure figcaption {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--faq-steel);
  padding: 10px 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(42, 10, 74, 0.4);
}

/* ===== 折叠面板条目 ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid rgba(138, 143, 163, 0.22);
  border-radius: 4px;
  margin-bottom: 10px;
  background: rgba(30, 10, 54, 0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item:focus-within {
  border-color: rgba(212, 175, 55, 0.45);
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  cursor: default;
}

.faq-item__no {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--faq-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 2px;
  padding: 2px 8px;
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-item__q h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--faq-mist);
  margin: 0;
  flex: 1;
}

.faq-item__toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-item__toggle:hover,
.faq-item__toggle:focus-visible {
  border-color: var(--faq-light-gold);
  background: rgba(212, 175, 55, 0.1);
}

.faq-item__toggle-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--faq-gold);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.faq-item__toggle-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 12px;
  background: var(--faq-gold);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item__toggle[aria-expanded="true"] .faq-item__toggle-line {
  background: var(--faq-blue);
}

.faq-item__toggle[aria-expanded="true"] .faq-item__toggle-line::after {
  transform: translate(-50%, -50%) scaleY(0);
  background: var(--faq-blue);
}

.faq-item__a {
  display: none;
  padding: 0 18px 18px 46px;
}

.faq-item__toggle[aria-expanded="true"]~.faq-item__a {
  display: block;
}

.faq-item__a p {
  font-size: 14px;
  line-height: 1.85;
  color: #C9C2D0;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(138, 143, 163, 0.28);
}

.faq-item__a a {
  color: var(--faq-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 194, 255, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.faq-item__a a:hover,
.faq-item__a a:focus-visible {
  color: var(--faq-light-gold);
  border-color: var(--faq-light-gold);
}

/* 第一个问题默认展开 */
.faq-item:first-child .faq-item__a {
  display: block;
}

.faq-item:first-child .faq-item__toggle[aria-expanded="true"] .faq-item__toggle-line {
  background: var(--faq-blue);
}

.faq-item:first-child .faq-item__toggle[aria-expanded="true"] .faq-item__toggle-line::after {
  transform: translate(-50%, -50%) scaleY(0);
  background: var(--faq-blue);
}

/* ===== 未解决求助区 ===== */
.faq-help {
  position: relative;
  background: linear-gradient(135deg, rgba(91, 42, 134, 0.45), rgba(42, 10, 74, 0.7));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 34px 28px;
  margin-top: 40px;
  overflow: hidden;
}

.faq-help::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 48px solid rgba(212, 175, 55, 0.7);
  border-left: 48px solid transparent;
}

.faq-help__label {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--faq-light-gold);
  margin: 0 0 8px;
}

.faq-help h2 {
  font-family: 'Rajdhani', 'DIN Alternate', 'PingFang SC', sans-serif;
  font-size: 24px;
  color: var(--faq-mist);
  margin: 0 0 12px;
}

.faq-help p {
  font-size: 14px;
  line-height: 1.8;
  color: #C9C2D0;
  max-width: 520px;
}

.faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.faq-help__btn {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.faq-help__btn--ghost {
  background: transparent;
  color: var(--faq-mist);
  border: 1px solid rgba(138, 143, 163, 0.5);
}

.faq-help__btn--ghost:hover,
.faq-help__btn--ghost:focus-visible {
  border-color: var(--faq-light-gold);
  color: var(--faq-light-gold);
}

.faq-help__btn--solid {
  background: var(--faq-gold);
  color: var(--faq-ink);
  border: 1px solid var(--faq-gold);
  font-weight: 700;
}

.faq-help__btn--solid:hover,
.faq-help__btn--solid:focus-visible {
  background: var(--faq-light-gold);
  border-color: var(--faq-light-gold);
}

/* 卡片显现动画基础状态 */
.faq-section .faq-item {
  opacity: 1;
  transform: none;
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .faq-hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 64px 32px;
    gap: 48px;
  }

  .faq-hero__visual {
    display: block;
  }

  .faq-hero h1 {
    font-size: 40px;
  }

  .faq-main__grid {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }

  .faq-sidebar {
    order: 0;
  }

  .faq-sidebar__img {
    max-height: 160px;
  }
}

@media (min-width: 1024px) {
  .faq-hero__inner {
    padding: 76px 40px 64px;
  }

  .faq-hero h1 {
    font-size: 46px;
  }

  .faq-hero__visual {
    height: 300px;
  }

  .faq-main {
    padding: 36px 0 80px;
  }

  .faq-section__head {
    margin-bottom: 28px;
  }

  .faq-item__q {
    padding: 18px 22px;
  }

  .faq-item__a {
    padding: 0 22px 22px 62px;
  }
}

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