.page-faq {
  --faq-accent: #FF5D2C;
  --faq-success: #39FF88;
  --faq-border: #1B2944;
  --faq-card: #131B2E;
  --faq-muted: #8FA3BF;
  --faq-text: #F2F6FC;
  --faq-num: "Rajdhani", "Arial", sans-serif;
  background: var(--bg);
}

/* Hero 区 */
.page-faq .faq-hero {
  position: relative;
  padding: 36px 0 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.35) 0%, rgba(10, 14, 26, 0) 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-faq .faq-hero__content {
  max-width: 720px;
}

.page-faq .faq-hero h1 {
  margin: 12px 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-faq .faq-hero__lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-faq .faq-hero__meta {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-faq .faq-hero__meta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(19, 27, 46, 0.72);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-faq .faq-hero__meta-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--accent);
}

.page-faq .faq-hero__meta-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.page-faq .faq-hero__meta-value {
  color: var(--text);
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq .faq-hero__meta-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* FAQ 模块 */
.page-faq .faq-module {
  padding: 56px 0 72px;
}

.page-faq .faq-module__layout {
  display: grid;
  gap: 40px;
}

.page-faq .faq-module__heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.page-faq .faq-module__heading .section-title {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 36px);
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ 条目 */
.page-faq .faq-item {
  position: relative;
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-left: 3px solid var(--faq-accent);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.page-faq .faq-item[open] {
  background: rgba(19, 27, 46, 0.9);
  border-left-color: var(--faq-accent);
}

.page-faq .faq-item::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 12px;
  height: 12px;
  background: var(--faq-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-faq .faq-item[open]::before {
  opacity: 1;
}

.page-faq .faq-item[open]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--faq-success), transparent);
  animation: faq-scan 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes faq-scan {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(-18%);
  }
  50% {
    opacity: 1;
    transform: translateY(18%);
  }
}

.page-faq .faq-item__header {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 14px;
  cursor: pointer;
  color: var(--faq-text);
}

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

.page-faq .faq-item__num {
  min-width: 34px;
  font-family: var(--faq-num);
  font-weight: 700;
  font-size: 22px;
  color: var(--faq-accent);
  line-height: 1;
}

.page-faq .faq-item__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: var(--faq-accent);
  color: #0A0E1A;
  font-family: var(--faq-num);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.page-faq .faq-item__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--faq-text);
}

.page-faq .faq-item__toggle {
  margin-left: auto;
  position: relative;
  width: 16px;
  min-width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

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

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

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

.page-faq .faq-item__content {
  padding: 0 20px 22px 76px;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-faq .faq-item__content p {
  margin: 0;
}

.page-faq .faq-item__content a {
  color: var(--faq-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ 侧栏图表卡 */
.page-faq .faq-module__aside {
  align-self: start;
}

.page-faq .faq-chart-card {
  margin: 0;
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  padding: 14px;
}

.page-faq .faq-chart-card__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--faq-border);
}

.page-faq .faq-chart-card__caption {
  margin: 14px 4px 4px;
  color: var(--faq-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 联系支持团队 */
.page-faq .faq-contact {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.55), rgba(10, 14, 26, 0) 100%);
  border-top: 1px solid var(--faq-border);
}

.page-faq .faq-contact__grid {
  display: grid;
  gap: 36px;
}

.page-faq .faq-contact__info {
  position: relative;
  padding: 28px 24px;
  background: rgba(19, 27, 46, 0.72);
  border: 1px solid var(--faq-success);
  box-shadow: inset 0 0 32px rgba(57, 255, 136, 0.05);
}

.page-faq .faq-contact__info::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 30px;
  height: 30px;
  border-left: 3px solid var(--faq-success);
  border-top: 3px solid var(--faq-success);
}

.page-faq .faq-contact__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.page-faq .faq-contact__head .section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
}

.page-faq .faq-contact__head .section-lead {
  margin-bottom: 0;
}

.page-faq .faq-contact__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-contact__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--faq-border);
}

.page-faq .faq-contact__item:last-child {
  border-bottom: none;
}

.page-faq .faq-contact__item dt {
  color: var(--faq-muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-faq .faq-contact__item dd {
  margin: 0;
  color: var(--faq-text);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.page-faq .faq-contact__item--success dd {
  color: var(--faq-success);
}

.page-faq .faq-contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

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

.page-faq .faq-contact__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--faq-border);
}

.page-faq .faq-contact__visual-caption {
  margin-top: 10px;
  color: var(--faq-muted);
  font-size: 13px;
  line-height: 1.6;
}

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

  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }

  .page-faq .faq-module {
    padding: 72px 0 88px;
  }

  .page-faq .faq-module__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }

  .page-faq .faq-contact {
    padding: 72px 0 88px;
  }

  .page-faq .faq-contact__grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: center;
  }

  .page-faq .faq-contact__info {
    padding: 32px;
  }
}
