/* ===== 帮助中心页面专属样式 ===== */
.page-faq {
  position: relative;
}

.page-faq img {
  max-width: 100%;
  height: auto;
}

/* ---- 顶部速览区 ---- */
.page-faq .faq-hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}

.page-faq .faq-hero::before,
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.page-faq .faq-hero::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14), transparent 70%);
}

.page-faq .faq-hero::after {
  width: 220px;
  height: 220px;
  top: 160px;
  left: -90px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.12), transparent 68%);
}

.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero-copy {
  margin-top: 28px;
}

.page-faq .faq-hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.page-faq .faq-hero h1 {
  max-width: 14em;
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--text-silver);
  text-wrap: balance;
}

.page-faq .faq-hero-lead {
  max-width: 56ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ---- 快速定位条 ---- */
.page-faq .faq-quick-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 14px 18px;
  background: rgba(26, 26, 46, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.page-faq .faq-search-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.page-faq .faq-search-prefix svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.page-faq .faq-chip-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .faq-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-silver);
  text-decoration: none;
  border: 1px solid rgba(255, 107, 26, 0.38);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.page-faq .faq-chip:hover {
  color: var(--bg-deep);
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

/* ---- 框景题图 ---- */
.page-faq .faq-hero-frame {
  position: relative;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.page-faq .faq-hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(123, 47, 247, 0.28), transparent 46%);
  mix-blend-mode: screen;
}

.page-faq .faq-hero-frame::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-top: 1px solid var(--accent-orange);
  border-right: 1px solid var(--accent-orange);
  opacity: 0.85;
}

.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  min-height: 180px;
  object-fit: cover;
}

/* ---- 分区骨架 ---- */
.page-faq .faq-section,
.page-faq .faq-help-cta {
  scroll-margin-top: 96px;
}

.page-faq .faq-section {
  position: relative;
  padding: 58px 0 26px;
  border-top: 1px solid rgba(224, 224, 224, 0.08);
}

.page-faq .faq-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(123, 47, 247, 0.06), transparent 42%);
}

.page-faq .faq-section-side {
  max-width: 420px;
  margin-bottom: 30px;
}

.page-faq .faq-section-kicker {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.page-faq .faq-section-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--text-silver);
}

.page-faq .faq-section-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-faq .faq-section-body {
  min-width: 0;
}

/* ---- 两步客服路径 ---- */
.page-faq .faq-two-step {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(123, 47, 247, 0.08);
  border: 1px solid rgba(123, 47, 247, 0.24);
  border-radius: var(--radius-panel);
}

.page-faq .faq-two-step-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.page-faq .faq-two-step-copy {
  align-self: center;
}

.page-faq .faq-sub-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text-silver);
}

.page-faq .faq-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: faqStep;
}

.page-faq .faq-steps li {
  position: relative;
  counter-increment: faqStep;
  padding: 0 0 18px 46px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.page-faq .faq-steps li::before {
  content: counter(faqStep);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
  border-radius: 9px;
}

.page-faq .faq-steps li:last-child {
  padding-bottom: 0;
}

.page-faq .faq-steps-note {
  margin: 16px 0 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
  border-left: 2px solid rgba(0, 240, 255, 0.3);
}

/* ---- 手风琴问答 ---- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-faq .faq-item {
  background: rgba(26, 26, 46, 0.72);
  border: 1px solid rgba(224, 224, 224, 0.12);
  border-radius: var(--radius-card);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.page-faq .faq-item[open] {
  background: rgba(26, 26, 46, 0.94);
  border-color: rgba(0, 240, 255, 0.42);
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-silver);
}

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

.page-faq .faq-q-text {
  flex: 1;
  transition: color var(--transition-fast);
}

.page-faq .faq-item summary:hover .faq-q-text {
  color: #ffffff;
}

.page-faq .faq-q-icon {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.09);
  border-radius: 10px;
}

.page-faq .faq-q-icon svg {
  width: 18px;
  height: 18px;
}

.page-faq .faq-q-mark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.page-faq .faq-q-mark::before,
.page-faq .faq-q-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
}

.page-faq .faq-q-mark::before {
  width: 15px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-q-mark::after {
  width: 2px;
  height: 15px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.page-faq .faq-item[open] .faq-q-mark::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-answer {
  padding: 0 18px 20px 64px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-muted);
  animation: faqAnswerIn var(--transition-base);
}

.page-faq .faq-answer p {
  margin: 0 0 10px;
}

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

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

.page-faq .faq-answer a:hover {
  color: #ffffff;
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- 底部联系区 ---- */
.page-faq .faq-help-cta {
  position: relative;
  margin-top: 36px;
  padding: 56px 0 72px;
  background: linear-gradient(180deg, rgba(123, 47, 247, 0.1), rgba(15, 12, 41, 0.3));
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.page-faq .faq-cta-grid {
  display: grid;
  gap: 28px;
}

.page-faq .faq-cta-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  color: var(--text-silver);
}

.page-faq .faq-cta-desc {
  max-width: 52ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-faq .faq-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-faq .faq-contact-box {
  align-self: start;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(255, 107, 26, 0.36);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.page-faq .faq-contact-box summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
  transition: filter var(--transition-fast);
}

.page-faq .faq-contact-box summary::-webkit-details-marker {
  display: none;
}

.page-faq .faq-contact-box summary:hover {
  filter: brightness(1.06);
}

.page-faq .faq-contact-box summary .faq-q-mark {
  margin-left: auto;
  color: var(--bg-deep);
}

.page-faq .faq-contact-box[open] summary {
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}

.page-faq .faq-contact-box[open] summary .faq-q-mark::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 6px 22px 22px;
  list-style: none;
}

.page-faq .faq-contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-silver);
}

.page-faq .faq-contact-list li span {
  min-width: 74px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- 平板以上 ---- */
@media (min-width: 700px) {
  .page-faq .faq-two-step {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    padding: 20px;
    align-items: center;
  }

  .page-faq .faq-contact-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

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

  .page-faq .faq-hero-copy {
    margin-top: 40px;
  }

  .page-faq .faq-hero h1 {
    font-size: clamp(46px, 5vw, 68px);
  }

  .page-faq .faq-quick-index {
    width: fit-content;
    max-width: 100%;
    margin-left: 7.5%;
  }

  .page-faq .faq-hero-frame {
    width: 93%;
    margin-top: 42px;
    margin-left: auto;
  }

  .page-faq .faq-section {
    padding: 72px 0 38px;
  }

  .page-faq .faq-section-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-faq .faq-section-side {
    position: sticky;
    top: 132px;
    margin-bottom: 0;
    padding-top: 4px;
    padding-left: 20px;
    border-left: 1px solid rgba(0, 240, 255, 0.26);
  }

  .page-faq .faq-two-step {
    padding: 22px;
  }

  .page-faq .faq-cta-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
  }
}

/* ---- 减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
