/* ===== 帮助中心 页面专属样式 ===== */

.page-faq {
  position: relative;
  background: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
}

.page-faq .jj-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan));
}

/* --- 顶部 Hero --- */
.page-faq__hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 229, 255, 0.08), transparent 38%),
    repeating-linear-gradient(-45deg, transparent, transparent 22px, rgba(255, 255, 255, 0.012) 22px, rgba(255, 255, 255, 0.012) 23px),
    var(--bg-void);
}

.page-faq__hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.14), transparent 65%);
  pointer-events: none;
}

.page-faq__hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-lime), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.page-faq__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .page-faq__hero-grid {
    grid-template-columns: 1fr 0.82fr;
    gap: 56px;
  }
}

.page-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-faq__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent-lime);
  display: inline-block;
}

.page-faq__hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-faq__lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 560px;
}

.page-faq__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.page-faq__hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.page-faq__hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-faq__hero-stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.page-faq__hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.page-faq__hero-visual {
  position: relative;
}

.page-faq__hero-visual::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-lg);
  opacity: 0.22;
  pointer-events: none;
}

.page-faq__hero-visual::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 48%, var(--accent-violet) 49%, var(--accent-violet) 51%, transparent 52%);
  opacity: 0.35;
  pointer-events: none;
}

.page-faq__hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-float);
}

.page-faq__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-faq__hero-code {
  position: absolute;
  bottom: -24px;
  left: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--accent-cyan);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}

.page-faq__hero-code-line {
  display: block;
}

.page-faq__hero-code-line:first-child {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .page-faq__hero-code {
    display: none;
  }
}

/* --- 布局：侧边索引 + 窄栏内容 --- */
.page-faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px 0 80px;
}

@media (min-width: 1024px) {
  .page-faq__layout {
    grid-template-columns: 220px minmax(0, 800px);
    justify-content: center;
    gap: 64px;
    padding: 64px 0 100px;
  }
}

/* 侧边索引 */
.page-faq__sidebar-inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .page-faq__sidebar-inner {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }
}

.page-faq__sidebar-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  padding-left: 4px;
}

.page-faq__index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .page-faq__index {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 0;
  }
}

.page-faq__index-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.page-faq__index-link:hover,
.page-faq__index-link:focus-visible {
  border-color: var(--border-lime);
  color: var(--accent-lime);
  background: var(--bg-raised);
}

.page-faq__index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.page-faq__sidebar-tip {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(123, 97, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(123, 97, 255, 0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.page-faq__sidebar-tip p {
  margin: 0;
}

.page-faq__sidebar-tip a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.page-faq__sidebar-tip a:hover {
  text-decoration: underline;
}

.page-faq__sidebar-tip-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent-violet);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--accent-violet);
}

/* 内容区 */
.page-faq__content {
  min-width: 0;
  width: 100%;
  max-width: 800px;
}

.page-faq__section {
  margin-bottom: 72px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-faq__section:last-of-type {
  margin-bottom: 48px;
}

.page-faq__section-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 28px;
  border-left: 2px solid var(--accent-violet);
  padding-left: 14px;
}

/* 手风琴 */
.page-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-faq__item {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-faq__item[open] {
  border-color: var(--border-lime);
  box-shadow: 0 0 0 1px rgba(198, 255, 61, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-faq__question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  line-height: 1.45;
  user-select: none;
  transition: background 0.2s ease;
}

.page-faq__question:hover {
  background: rgba(255, 255, 255, 0.02);
}

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

.page-faq__question:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.page-faq__question::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-cyan);
  line-height: 1;
  transition: transform 0.28s ease;
  flex-shrink: 0;
}

.page-faq__item[open] .page-faq__question::after {
  transform: rotate(45deg);
}

.page-faq__q-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-lime);
  border: 1px solid var(--border-lime);
  border-radius: 4px;
  padding: 3px 7px;
  flex-shrink: 0;
  line-height: 1.2;
}

.page-faq__answer {
  padding: 0 24px 22px 64px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-faq__answer p {
  margin: 0;
}

.page-faq__item[open] .page-faq__answer {
  animation: page-faq-in 0.3s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .page-faq__item[open] .page-faq__answer {
    animation: none;
  }
}

@media (max-width: 480px) {
  .page-faq__question {
    padding: 16px 14px;
    font-size: 15px;
    gap: 10px;
  }

  .page-faq__answer {
    padding: 0 16px 18px 46px;
    font-size: 14px;
  }
}

/* VIP 对照图 */
.page-faq__vip-figure {
  margin: 28px auto 32px;
  max-width: 520px;
  padding: 16px;
  background: var(--bg-raised);
  border: 1px solid rgba(123, 97, 255, 0.28);
  border-radius: var(--radius-md);
}

.page-faq__vip-figure .jj-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-faq__vip-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq__vip-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* --- 联系支持 --- */
.page-faq__contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .page-faq__contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-faq__contact-card {
  padding: 24px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.page-faq__contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  opacity: 0.7;
}

.page-faq__contact-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--accent-lime), transparent);
}

.page-faq__contact-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent-violet), transparent);
}

.page-faq__contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-faq__contact-label svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.page-faq__contact-card:nth-child(2) .page-faq__contact-label svg {
  color: var(--accent-lime);
}

.page-faq__contact-card:nth-child(3) .page-faq__contact-label svg {
  color: var(--accent-violet);
}

.page-faq__contact-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-all;
}

.page-faq__contact-note {
  font-size: 13px;
  color: var(--text-muted);
}

.page-faq__contact-banner {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(198, 255, 61, 0.06);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.page-faq__contact-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-faq__contact-banner strong {
  color: var(--accent-lime);
  font-weight: 600;
}

.page-faq__contact-banner a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.page-faq__contact-banner a:hover {
  text-decoration: underline;
}

/* --- 底部导航 --- */
.page-faq__bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 48px;
}

.page-faq__bottom-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-faq__bottom-link:hover {
  color: var(--accent-lime);
}

/* --- 返回顶部 --- */
.page-faq__back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--border-lime);
  border-radius: 50%;
  color: var(--accent-lime);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  z-index: 60;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-faq__back-top:hover,
.page-faq__back-top:focus-visible {
  background: var(--accent-lime);
  color: var(--bg-void);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .page-faq__back-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
