/* ===== 页面作用域：.page-faq 帮助中心 ===== */
.page-faq {
  --faq-grid-line: rgba(0, 212, 255, 0.05);
  --faq-grid-strong: rgba(0, 212, 255, 0.14);
  --faq-paper: #ffffff;
  --faq-ink-soft: rgba(26, 42, 58, 0.78);
  background:
    linear-gradient(to right, var(--faq-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--faq-grid-line) 1px, transparent 1px),
    var(--cold-gray);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-faq a {
  color: inherit;
}

/* 面包屑 */
.page-faq .faq-breadcrumb {
  padding: 24px 0 8px;
}

.page-faq .faq-breadcrumb .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-faq .faq-breadcrumb .breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-faq .faq-breadcrumb .breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--ff-orange);
}

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

.page-faq .faq-breadcrumb .breadcrumb__item a:hover {
  color: var(--ff-orange);
}

.page-faq .faq-breadcrumb .breadcrumb__item[aria-current="page"] {
  color: var(--ff-orange);
  font-weight: 600;
}

/* 帮助中心首屏 */
.page-faq .faq-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 40px;
  padding: 36px 24px 32px;
  border-left: 4px solid var(--ff-orange);
  border-radius: 0 20px 20px 0;
  background:
    linear-gradient(to right, rgba(0, 212, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--deep-blue) 0%, var(--night-blue) 78%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  box-shadow: 0 14px 36px rgba(10, 31, 68, 0.3);
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "COORD: X-1206 / Y-0231 / SHEET-FAQ-A";
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(0, 212, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  z-index: 2;
}

.page-faq .faq-hero__copy {
  position: relative;
  z-index: 2;
}

.page-faq .faq-hero__copy .section-label {
  color: var(--neon-lime);
  border-color: rgba(198, 255, 0, 0.5);
}

.page-faq .faq-hero h1 {
  margin: 10px 0 14px;
  font-size: 32px;
  color: #ffffff;
}

.page-faq .faq-hero__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.8;
  max-width: 56ch;
}

.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-faq .faq-hero__meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--electric-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 212, 255, 0.08);
}

.page-faq .faq-hero__visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  margin: 0;
}

.page-faq .faq-hero__visual::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -12px;
  bottom: -12px;
  left: 12px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  pointer-events: none;
}

.page-faq .faq-hero__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.page-faq .faq-hero__cap {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(0, 212, 255, 0.85);
  text-align: right;
}

/* 主布局：左右分栏 */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 64px;
}

/* 左侧索引 */
.page-faq .faq-index {
  background:
    linear-gradient(to right, rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    var(--deep-blue);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 10px 26px rgba(10, 31, 68, 0.22);
}

.page-faq .faq-index__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--neon-lime);
  text-transform: uppercase;
}

.page-faq .faq-index__list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.page-faq .faq-index__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-faq .faq-index__item a:hover {
  background-color: rgba(255, 107, 0, 0.16);
  color: #ffffff;
}

.page-faq .faq-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ff-orange);
}

.page-faq .faq-index__label {
  font-size: 14px;
  font-weight: 500;
}

.page-faq .faq-index__btn {
  width: 100%;
  justify-content: center;
}

/* 右侧解答区 */
.page-faq .faq-content {
  min-width: 0;
}

.page-faq .faq-section {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}

.page-faq .faq-section__head {
  position: relative;
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 4px solid var(--ff-orange);
}

.page-faq .faq-section__code {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ff-orange);
  text-transform: uppercase;
}

.page-faq .faq-section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--deep-blue);
}

.page-faq .faq-section__head p {
  margin: 0;
  color: var(--faq-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 问题列表 / 手风琴 */
.page-faq .faq-list {
  background: var(--faq-paper);
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow: 8px 8px 0 rgba(10, 31, 68, 0.06);
}

.page-faq .faq-item {
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.page-faq .faq-item:last-child {
  border-bottom: 0;
}

.page-faq .faq-item summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 16px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

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

.page-faq .faq-item summary:hover {
  background-color: rgba(255, 107, 0, 0.06);
}

.page-faq .faq-item__coord {
  flex-shrink: 0;
  min-width: 58px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 107, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  color: var(--ff-orange);
}

.page-faq .faq-item__question {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.page-faq .faq-item[open] summary {
  background: rgba(0, 212, 255, 0.04);
}

.page-faq .faq-item[open] .faq-item__coord {
  background: var(--ff-orange);
  color: #ffffff;
  border-color: var(--ff-orange);
}

.page-faq .faq-item[open] .faq-item__question {
  color: var(--deep-blue);
}

.page-faq .faq-item__answer {
  padding: 0 16px 22px 16px;
  color: var(--faq-ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.page-faq .faq-item__answer p {
  margin: 0 0 12px;
}

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

.page-faq .faq-item__answer a {
  color: var(--ff-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 107, 0, 0.4);
}

.page-faq .faq-item__answer a:hover {
  text-decoration-color: var(--ff-orange);
}

/* 步骤列表 */
.page-faq .faq-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: faqStep;
}

.page-faq .faq-steps li {
  position: relative;
  counter-increment: faqStep;
  padding: 6px 0 6px 38px;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(10, 31, 68, 0.08);
}

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

.page-faq .faq-steps li::before {
  content: counter(faqStep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(0, 212, 255, 0.12);
  color: var(--deep-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(0, 212, 255, 0.4);
}

/* 导出流程示意图 */
.page-faq .faq-export-graphic {
  position: relative;
  margin: 22px 0 24px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 8px 8px 0 rgba(10, 31, 68, 0.07);
}

.page-faq .faq-export-graphic::after {
  content: "FLOW-02 · EXPORT GUIDE";
  position: absolute;
  right: -1px;
  top: -1px;
  padding: 4px 10px;
  background: var(--electric-blue);
  color: var(--deep-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page-faq .faq-export-graphic__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-export-graphic__cap {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--deep-blue);
  text-align: right;
}

/* 平板及以上 */
@media (min-width: 720px) {
  .page-faq .faq-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 36px;
    padding: 48px 40px 44px;
  }

  .page-faq .faq-hero h1 {
    font-size: 42px;
  }

  .page-faq .faq-hero__lead {
    font-size: 16px;
  }

  .page-faq .faq-hero__img {
    max-height: 320px;
  }

  .page-faq .faq-index__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-faq .faq-item__answer {
    padding: 0 24px 22px 88px;
  }
}

/* 桌面端 */
@media (min-width: 1024px) {
  .page-faq .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
  }

  .page-faq .faq-index {
    position: sticky;
    top: 24px;
  }

  .page-faq .faq-index__list {
    grid-template-columns: 1fr;
  }

  .page-faq .faq-hero {
    padding: 52px 48px 48px;
  }

  .page-faq .faq-hero h1 {
    font-size: 48px;
  }

  .page-faq .faq-section h2 {
    font-size: 28px;
  }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    animation: none !important;
    transition: none !important;
  }
}
