.page-faq {
  --faq-accent: #39FF14;
  --faq-orange: #FF6B00;
  --faq-panel-bg: #122A4D;
  --faq-border: rgba(57, 255, 20, 0.28);
  --faq-o-border: rgba(255, 107, 0, 0.45);
  --faq-sidebar-w: 260px;
  position: relative;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 88% 8%, rgba(57, 255, 20, 0.07) 0%, transparent 38%),
    radial-gradient(circle at 5% 55%, rgba(255, 107, 0, 0.05) 0%, transparent 32%);
}

.page-faq__top {
  padding-top: 1.25rem;
}

/* ============ HERO ============ */
.faq-hero {
  padding: 1rem 0 2.25rem;
}

.faq-hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.faq-hero h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-headline);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.faq-hero__lead {
  margin: 1rem 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(229, 229, 229, 0.88);
}

.faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.faq-hero__figure {
  margin: 0;
  padding: 5px;
  background: #122A4D;
  border: 1px solid var(--faq-border);
  box-shadow: 10px 10px 0 rgba(57, 255, 20, 0.08);
  transform: skewX(-1.5deg);
}

.faq-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 130px;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.faq-hero__caption {
  padding: 0.6rem 0.5rem 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(229, 229, 229, 0.66);
}

/* ============ 热门问题 ============ */
.faq-hot {
  position: relative;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.faq-hot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.3), transparent);
}

.faq-hot__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-hot__card {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: rgba(18, 42, 77, 0.78);
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-left: 3px solid var(--faq-accent);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-hot__card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
}

.faq-hot__num {
  position: absolute;
  right: 0.6rem;
  bottom: 0.2rem;
  font-family: var(--font-headline);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.faq-hot__card-title {
  margin: 0.8rem 0 0.55rem;
  font-family: var(--font-headline);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.4;
  color: #FFFFFF;
}

.faq-hot__card-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(229, 229, 229, 0.85);
}

.faq-hot__card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--faq-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.faq-hot__card-link:hover {
  border-bottom-color: var(--faq-accent);
}

/* ============ 分类问题 ============ */
.faq-cat {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #0D2240 0%, #0F2B4F 100%);
  background-size: 36px 36px, 36px 36px, auto;
  border-top: 1px solid rgba(57, 255, 20, 0.12);
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
}

.faq-cat,
.faq-group {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.faq-cat .container {
  position: relative;
}

.faq-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

/* 侧边目录 */
.faq-sidebar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq-sidebar__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: var(--faq-panel-bg);
  border: 1px solid rgba(57, 255, 20, 0.16);
  color: rgba(229, 229, 229, 0.84);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.faq-sidebar__link:hover,
.faq-sidebar__link.is-active {
  background: rgba(57, 255, 20, 0.12);
  border-color: var(--faq-border);
  color: var(--faq-accent);
}

.faq-sidebar__count {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--faq-orange);
}

.faq-sidebar__help {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px dashed var(--faq-o-border);
  background: rgba(255, 107, 0, 0.05);
}

.faq-sidebar__help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.55rem;
  background: var(--faq-orange);
  color: var(--color-bg);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.1rem;
  transform: rotate(-3deg);
}

.faq-sidebar__help p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: rgba(229, 229, 229, 0.85);
}

/* 问答区 */
.faq-answers {
  min-width: 0;
}

.faq-group {
  margin-bottom: 2rem;
}

.faq-group__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(57, 255, 20, 0.3);
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.03em;
}

.faq-group__icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--faq-accent);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.55);
  transform: rotate(45deg);
}

/* 折叠面板 */
.faq-item {
  margin: 0 0 0.65rem;
  background: rgba(18, 42, 77, 0.72);
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-left: 3px solid var(--faq-accent);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] {
  background: rgba(57, 255, 20, 0.05);
  border-color: rgba(57, 255, 20, 0.45);
}

.faq-item__trigger {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  user-select: none;
}

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

.faq-item__trigger::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: rgba(57, 255, 20, 0.14);
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 1px;
  color: var(--faq-accent);
  transition: transform 0.25s ease, background 0.25s;
}

.faq-item[open] .faq-item__trigger::after {
  transform: rotate(45deg);
  background: rgba(57, 255, 20, 0.3);
}

.faq-item__body {
  padding: 0 1.1rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(229, 229, 229, 0.86);
}

.faq-item__body p {
  margin: 0 0 0.6rem;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.faq-item[open] .faq-item__body {
  animation: faq-item-fade-in 0.3s ease;
}

@keyframes faq-item-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-browser__icons {
  max-width: 420px;
  margin-top: 0.8rem;
  padding: 5px;
  background: rgba(11, 30, 58, 0.4);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.faq-browser__icons img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ 联系支持 ============ */
.faq-support {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.faq-support__card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.6rem;
  background: linear-gradient(135deg, #122A4D 0%, #1A3A66 100%);
  border: 1px solid rgba(57, 255, 20, 0.28);
  overflow: hidden;
}

.faq-support__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(57, 255, 20, 0.03) 0 8px, transparent 8px 16px);
}

.faq-support__card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 0, 0.7) 50%);
}

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

.faq-support__copy h2 {
  margin: 0.6rem 0 0.75rem;
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.faq-support__text {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(229, 229, 229, 0.86);
}

.faq-support__text:last-child {
  margin-bottom: 0;
}

.faq-support__link {
  color: var(--faq-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 255, 20, 0.4);
}

.faq-support__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ============ 响应式 ============ */
@media (min-width: 620px) {
  .faq-support__card {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 2rem;
  }

  .faq-support__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 720px) {
  .faq-hot__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .faq-hero {
    padding: 1.5rem 0 3rem;
  }

  .faq-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }

  .faq-hero__copy {
    padding-left: 1.25rem;
    border-left: 3px solid var(--faq-accent);
  }

  .faq-layout {
    grid-template-columns: var(--faq-sidebar-w) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .faq-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .faq-sidebar__nav {
    flex-direction: column;
    gap: 0.35rem;
  }

  .faq-sidebar__link {
    width: 100%;
  }
}
