/* 页面专属：帮助中心 FAQ */
.page-faq {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 55%, var(--bg-deep) 100%);
  overflow-x: clip;
}

/* ---------- Hero ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: clamp(28px, 5vw, 72px) 0 clamp(36px, 6vw, 64px);
  border-bottom: 3px solid var(--line);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(120px, 18vw, 240px);
  height: 22px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28% 100%);
  opacity: 0.9;
}

.page-faq .faq-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

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

.page-faq .faq-hero-copy .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
}

.page-faq .faq-hero-copy .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-faq .faq-hero-copy .breadcrumb a:hover,
.page-faq .faq-hero-copy .breadcrumb a:focus {
  color: var(--accent);
}

.page-faq .faq-hero-copy .section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-faq .faq-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-faq .faq-hero-copy .lead {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.page-faq .faq-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-hero-points .tag {
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.45);
  color: var(--text);
  font-size: 13px;
  padding: 6px 12px;
}

.page-faq .faq-hero-media {
  position: relative;
}

.page-faq .faq-hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 3px solid var(--line);
  box-shadow: 10px 10px 0 rgba(255, 106, 0, 0.16);
  object-fit: cover;
}

.page-faq .faq-hero-media .v-note {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-block;
  background: var(--accent);
  color: #0A2A1C;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

/* ---------- 主布局 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: clamp(26px, 5vw, 56px);
  padding-bottom: clamp(32px, 6vw, 64px);
}

.page-faq .faq-sidebar {
  position: relative;
}

.page-faq .faq-index {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  scrollbar-width: thin;
}

.page-faq .faq-index::after {
  content: "";
  flex: 0 0 8px;
}

.page-faq .faq-index-title {
  flex-shrink: 0;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.page-faq .faq-index-link {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border: 2px solid var(--line);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-faq .faq-index-link:hover,
.page-faq .faq-index-link:focus {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 106, 0, 0.08);
}

.page-faq .faq-sidebar-note {
  display: none;
}

/* ---------- 桌面端侧栏 ---------- */
@media (min-width: 1024px) {
  .page-faq .faq-layout {
    grid-template-columns: 280px 1fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
  }

  .page-faq .faq-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .page-faq .faq-index {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
    border-bottom: none;
    background: var(--card);
    border: 3px solid var(--line);
    box-shadow: 8px 8px 0 rgba(255, 106, 0, 0.14);
  }

  .page-faq .faq-index::after {
    content: none;
  }

  .page-faq .faq-index-title {
    background: var(--accent);
    color: #0A2A1C;
    border: none;
    font-size: 14px;
    padding: 16px 18px;
  }

  .page-faq .faq-index-link {
    display: block;
    border: none;
    border-left: 3px solid transparent;
    padding: 14px 18px;
    background: transparent;
    white-space: normal;
  }

  .page-faq .faq-index-link + .faq-index-link {
    border-top: 1px solid var(--line);
  }

  .page-faq .faq-index-link:hover,
  .page-faq .faq-index-link:focus {
    background: rgba(255, 106, 0, 0.12);
    border-left-color: var(--accent);
    color: var(--accent);
  }

  .page-faq .faq-sidebar-note {
    display: block;
    background: var(--bg-deep);
    border: 2px solid var(--line);
    padding: 18px;
  }

  .page-faq .faq-sidebar-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .page-faq .faq-sidebar-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
  }

  .page-faq .faq-sidebar-value::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.25);
  }

  .page-faq .faq-sidebar-note p {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
  }
}

/* ---------- FAQ 正文 ---------- */
.page-faq .faq-main {
  min-width: 0;
}

.page-faq .faq-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

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

.page-faq .faq-section .section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.page-faq .faq-section .section-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
}

.page-faq .faq-section .section-head .section-kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  line-height: 1.6;
  flex-shrink: 0;
}

.page-faq .faq-section .section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  margin: 0;
  font-weight: 900;
  flex-shrink: 0;
}

.page-faq .faq-section-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- 手风琴 ---------- */
.page-faq .faq-item {
  border: 2px solid var(--line);
  background: var(--card);
  box-shadow: 6px 6px 0 rgba(255, 106, 0, 0.14);
  margin-bottom: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-faq .faq-item[open] {
  border-color: var(--accent);
  box-shadow: 8px 8px 0 rgba(255, 106, 0, 0.2);
}

.page-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  display: block;
  transition: color 0.2s ease;
}

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

.page-faq .faq-item summary:hover {
  color: var(--accent);
}

.page-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.page-faq .faq-item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.25s ease;
}

.page-faq .faq-item[open] summary::before {
  background: var(--accent);
}

.page-faq .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.page-faq .faq-item[open] summary::after {
  content: "−";
}

.page-faq .faq-item-body {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-faq .faq-item[open] .faq-item-body {
  padding-top: 16px;
  animation: faq-fade 0.3s ease both;
}

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

/* ---------- 操作步骤 ---------- */
.page-faq .faq-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 18px 0 26px;
  background: var(--bg-deep);
  border: 2px solid var(--line);
  padding: 20px;
}

.page-faq .faq-guide-copy {
  min-width: 0;
}

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

.page-faq .faq-steps li {
  counter-increment: faq-step;
  position: relative;
  padding: 10px 0 10px 48px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
}

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

.page-faq .faq-steps li::before {
  content: counter(faq-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid var(--accent);
  padding: 2px 6px;
}

.page-faq .faq-guide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--line);
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-faq .faq-guide {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 26px;
  }
}

/* ---------- 指标卡 ---------- */
.page-faq .faq-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.page-faq .faq-metric-item {
  background: var(--bg-deep);
  border: 2px solid var(--line);
  padding: 16px 10px;
  text-align: center;
  min-width: 0;
}

.page-faq .faq-metric-item .faq-metric-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.page-faq .faq-metric-item em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 联系卡片 ---------- */
.page-faq .faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-faq .faq-contact-card {
  background: var(--bg-deep);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(255, 106, 0, 0.12);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-faq .faq-contact-card .faq-contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-faq .faq-contact-card .faq-contact-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  overflow-wrap: break-word;
}

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

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

.page-faq .faq-contact-more {
  margin-top: 22px;
}

.page-faq .faq-contact-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}

.page-faq .faq-contact-more a:hover,
.page-faq .faq-contact-more a:focus {
  background: var(--accent);
  color: #0A2A1C;
}

/* ---------- 底部 CTA ---------- */
.page-faq .faq-bottom {
  padding: 36px 0;
  border-top: 3px solid var(--line);
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

.page-faq .faq-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.page-faq .faq-bottom-copy .section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-faq .faq-bottom-copy p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.page-faq .faq-bottom-inner .faq-cta-btn {
  justify-content: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--accent);
  color: var(--text);
  background: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.page-faq .faq-bottom-inner .faq-cta-btn.btn-accent {
  background: var(--accent);
  color: #0A2A1C;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 rgba(255, 106, 0, 0.35);
}

@media (min-width: 640px) {
  .page-faq .faq-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  .page-faq .faq-bottom-copy {
    margin-right: auto;
  }

  .page-faq .faq-bottom-inner .faq-cta-btn {
    justify-content: flex-start;
  }
}

/* ---------- 滚动显现 ---------- */
.js .page-faq [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .page-faq [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-faq [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
