.page-faq {
  --faq-border: rgba(199, 208, 228, 0.14);
  --faq-border-strong: rgba(57, 255, 136, 0.45);
  --faq-bg-soft: rgba(18, 28, 61, 0.65);
  --faq-glow-green: 0 8px 32px rgba(57, 255, 136, 0.12);
  --faq-glow-orange: 0 6px 24px rgba(255, 107, 53, 0.12);
}

.page-faq__container {
  padding-top: 32px;
  padding-bottom: 72px;
}

/* ===== 面包屑 ===== */
.page-faq .breadcrumbs {
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-fog);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.page-faq .breadcrumbs__link {
  color: var(--color-fog);
  text-decoration: none;
  transition: color 0.2s;
}

.page-faq .breadcrumbs__link:hover {
  color: var(--color-green);
}

.page-faq .breadcrumbs__sep {
  margin: 0 8px;
  opacity: 0.5;
}

.page-faq .breadcrumbs__current {
  color: var(--color-white);
}

/* ===== 页面头部 ===== */
.page-faq__header {
  margin-bottom: 32px;
}

.page-faq__header .eyebrow {
  color: var(--color-green);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-faq__header .page-header__title {
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.18;
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--color-white);
}

.page-faq__header .page-header__desc {
  max-width: 660px;
  color: var(--color-fog);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 0;
}

.page-faq__header .page-header__desc a {
  color: var(--color-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 136, 0.4);
  transition: border-color 0.2s;
}

.page-faq__header .page-header__desc a:hover {
  border-color: var(--color-green);
}

/* ===== 检索引导区 ===== */
.faq-search {
  margin-bottom: 44px;
}

.faq-search__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.faq-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-night);
  border: 1px solid rgba(57, 255, 136, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search__field:hover {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.12), var(--faq-glow-green);
}

.faq-search__icon {
  color: var(--color-green);
  flex-shrink: 0;
}

.faq-search__placeholder {
  flex: 1;
  color: rgba(199, 208, 228, 0.55);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.faq-search__cmd {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-fog);
  background: rgba(199, 208, 228, 0.08);
  border: 1px solid rgba(199, 208, 228, 0.18);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.faq-search__note {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(199, 208, 228, 0.62);
  font-family: var(--font-data);
}

/* ===== 布局 ===== */
.page-faq__layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-faq__content {
  order: 2;
  min-width: 0;
}

.faq-aside {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== FAQ 区块 ===== */
.faq-section {
  margin-bottom: 48px;
  scroll-margin-top: 96px;
}

.faq-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--faq-border);
}

.faq-section__num {
  font-family: var(--font-data);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-green);
  flex-shrink: 0;
  padding-top: 2px;
}

.faq-section__head-text {
  flex: 1;
  min-width: 0;
}

.faq-section__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.faq-section__desc {
  font-size: 13px;
  color: var(--color-fog);
  line-height: 1.6;
}

.faq-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.faq-section__grid-main {
  min-width: 0;
}

.faq-figure {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--faq-border);
  background: var(--faq-bg-soft);
  margin: 0;
}

.faq-figure::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green), transparent 80%);
}

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

.faq-figure__caption {
  padding: 10px 16px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-fog);
  border-top: 1px solid var(--faq-border);
}

/* ===== FAQ 列表 / 展开卡片 ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--color-night);
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(57, 255, 136, 0.25);
}

.faq-item[open] {
  border-color: var(--faq-border-strong);
  background: linear-gradient(135deg, rgba(18, 28, 61, 0.9), rgba(10, 15, 36, 0.92));
  box-shadow: var(--faq-glow-green);
}

.faq-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

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

.faq-item__summary:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-item__q {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-green);
  background: rgba(57, 255, 136, 0.08);
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-item__text {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-white);
  transition: color 0.2s;
}

.faq-item[open] .faq-item__text {
  color: var(--color-green);
}

.faq-item__marker {
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.faq-item__content {
  padding: 0 18px 18px 72px;
  color: var(--color-fog);
  font-size: 13.5px;
  line-height: 1.75;
}

.faq-item__content p + p {
  margin-top: 8px;
}

.faq-item__content a {
  color: var(--color-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  transition: border-color 0.2s;
}

.faq-item__content a:hover {
  border-bottom-color: var(--color-cyan);
}

.faq-item__content b {
  color: var(--color-white);
  font-weight: 600;
}

.faq-highlight {
  color: var(--color-orange);
  font-weight: 600;
  font-style: normal;
}

/* ===== 筛选演示 ===== */
.faq-filter-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--color-night);
  border: 1px dashed rgba(0, 229, 255, 0.38);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.faq-filter-demo__chip {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
}

.faq-filter-demo__value {
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.faq-filter-demo__plus,
.faq-filter-demo__arrow {
  font-family: var(--font-data);
  font-size: 14px;
}

.faq-filter-demo__plus {
  color: var(--color-orange);
}

.faq-filter-demo__arrow {
  margin-left: auto;
  color: var(--color-green);
  font-weight: 700;
}

/* ===== 数据状态 ===== */
.faq-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(57, 255, 136, 0.08);
  border: 1px solid rgba(57, 255, 136, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.faq-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 10px rgba(57, 255, 136, 0.8);
  animation: faqPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.faq-status__text {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-white);
}

.faq-status__tag {
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-green);
  border: 1px solid rgba(57, 255, 136, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

@keyframes faqPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ===== 侧栏目录 ===== */
.theme-index {
  background: var(--color-night);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  padding: 18px 16px;
}

.theme-index__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fog);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--faq-border);
}

.theme-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-index__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--color-fog);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.theme-index__link:hover {
  background: rgba(57, 255, 136, 0.1);
  color: var(--color-green);
}

.theme-index__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-index__dot--orange {
  background: var(--color-orange);
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.6);
}

.theme-index__dot--cyan {
  background: var(--color-cyan);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.theme-index__dot--violet {
  background: var(--color-violet);
  box-shadow: 0 0 6px rgba(142, 124, 255, 0.6);
}

.theme-index__dot--green {
  background: var(--color-green);
  box-shadow: 0 0 6px rgba(57, 255, 136, 0.6);
}

/* ===== 联系支持卡片 ===== */
.faq-support {
  background:
    linear-gradient(135deg, rgba(57, 255, 136, 0.06), transparent 60%),
    var(--color-night);
  border: 1px solid var(--faq-border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.faq-support__mark {
  position: absolute;
  right: -4px;
  top: -28px;
  font-family: var(--font-data);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 107, 53, 0.12);
  pointer-events: none;
}

.faq-support__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 6px;
  position: relative;
}

.faq-support__text {
  font-size: 13px;
  color: var(--color-fog);
  line-height: 1.65;
  margin-bottom: 14px;
  position: relative;
}

.faq-support__btn {
  width: 100%;
  position: relative;
}

/* ===== 桌面端 ===== */
@media (min-width: 900px) {
  .faq-section__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 32px;
  }

  .faq-section__grid--reverse .faq-section__grid-main {
    order: 2;
  }

  .faq-section__grid--reverse .faq-section__grid-media {
    order: 1;
  }
}

@media (min-width: 1024px) {
  .page-faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 56px;
    align-items: start;
  }

  .page-faq__content {
    order: 0;
  }

  .faq-aside {
    order: 0;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .faq-section {
    margin-bottom: 64px;
  }

  .faq-section__num {
    font-size: 38px;
  }

  .faq-section__title {
    font-size: 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item__marker,
  .faq-status__dot {
    animation: none;
    transition: none;
  }
}
