/* ==============================================================
   FAQ 页面专属样式
   作用域：.page-faq
   ============================================================== */
.page-faq {
  --faq-line: rgba(192, 192, 192, 0.14);
  --faq-line-strong: rgba(192, 192, 192, 0.26);
  --faq-bg-soft: rgba(10, 31, 47, 0.4);
  --faq-bg-card: rgba(255, 255, 255, 0.025);
  --faq-indigo: #3B2E8A;
  --faq-wine: #6B1A32;
  background-color: var(--c-pitch);
  min-height: 60vh;
}

/* ============ HERO ============ */
.page-faq .faq-hero {
  position: relative;
  padding: 28px 0 40px;
  background: var(--c-engine);
  border-bottom: 1px solid var(--faq-line);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(192, 192, 192, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 192, 192, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 200px;
  top: -40px;
  right: -40px;
  background: rgba(0, 240, 255, 0.07);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  pointer-events: none;
  z-index: 1;
}

.page-faq .faq-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-faq .faq-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.26;
}

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

.page-faq .faq-hero .breadcrumb {
  margin-bottom: 26px;
}

.page-faq .faq-hero .breadcrumb__item {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 180ms;
}

.page-faq .faq-hero .breadcrumb__item:hover,
.page-faq .faq-hero .breadcrumb__item:focus-visible {
  color: var(--c-neon);
}

.page-faq .faq-hero .breadcrumb__item[aria-current="page"] {
  color: var(--c-text);
}

.page-faq .faq-hero .breadcrumb__sep {
  color: var(--c-silver);
  opacity: 0.5;
  margin: 0 8px;
}

.page-faq .faq-hero__text::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--c-neon), transparent 80%);
}

.page-faq .faq-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-neon);
}

.page-faq .faq-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-neon);
}

.page-faq .faq-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--c-text);
  transform: skew(-3deg);
}

.page-faq .faq-hero__desc {
  max-width: 640px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-dim);
}

.page-faq .faq-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-text-dim);
}

.page-faq .faq-hero__meta span::before {
  content: "▸";
  color: var(--c-neon);
}

/* ============ 分类快速定位 ============ */
.page-faq .faq-catnav {
  background: var(--c-black-soft);
  border-bottom: 1px solid var(--faq-line);
  position: relative;
  z-index: 2;
}

.page-faq .faq-catnav__scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-catnav__scroll::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-catnav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--c-text-dim);
  text-decoration: none;
  border-right: 1px solid var(--faq-line);
  transition: background 180ms, color 180ms;
}

.page-faq .faq-catnav__item span {
  font-size: 11px;
  color: var(--c-neon);
}

.page-faq .faq-catnav__item b {
  font-weight: var(--fw-medium);
}

.page-faq .faq-catnav__item:nth-child(odd) {
  border-left: 2px solid var(--faq-indigo);
}

.page-faq .faq-catnav__item:nth-child(even) {
  border-left: 2px solid var(--faq-wine);
}

.page-faq .faq-catnav__item:hover,
.page-faq .faq-catnav__item:focus-visible {
  background: rgba(0, 240, 255, 0.08);
  color: var(--c-text);
  outline: none;
}

/* ============ FAQ 主体布局 ============ */
.page-faq .faq-body {
  padding: 40px 0 64px;
  background:
    linear-gradient(rgba(192, 192, 192, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 192, 192, 0.035) 1px, transparent 1px),
    var(--c-pitch);
  background-size: 32px 32px, 32px 32px, auto;
}

.page-faq .faq-body__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

/* ============ 左侧索引 ============ */
.page-faq .faq-aside {
  position: relative;
  padding: 20px 18px;
  background: var(--faq-bg-soft);
  border: 1px solid var(--faq-line);
}

.page-faq .faq-aside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 48px;
  background: var(--c-neon);
}

.page-faq .faq-aside__coord {
  margin-bottom: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-text-dim);
}

.page-faq .faq-aside__title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: 18px;
  color: var(--c-text);
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-faq .faq-toc__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--c-text-dim);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
  transition: color 180ms, border-color 180ms, background 180ms;
}

.page-faq .faq-toc__item span {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-neon);
}

.page-faq .faq-toc__item em {
  font-style: normal;
}

.page-faq .faq-toc__item:hover,
.page-faq .faq-toc__item:focus-visible {
  color: var(--c-text);
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.06);
  outline: none;
}

.page-faq .faq-aside__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--faq-line);
  font-size: 13px;
  color: var(--c-text-dim);
}

.page-faq .faq-aside__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-neon);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.page-faq .faq-aside__meta {
  margin-top: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--c-text-dim);
  line-height: 1.6;
}

/* ============ 右侧内容 ============ */
.page-faq .faq-content {
  min-width: 0;
}

.page-faq .faq-block {
  margin-bottom: 44px;
  scroll-margin-top: 84px;
}

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

/* ============ 区块头 ============ */
.page-faq .faq-block__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--faq-line-strong);
}

.page-faq .faq-block__num {
  flex-shrink: 0;
  padding: 4px 9px;
  font-family: var(--font-data);
  font-size: 14px;
  line-height: 1.2;
  color: var(--c-neon);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.28);
}

.page-faq .faq-block__header h2 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-text);
}

.page-faq .faq-block__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-dim);
}

.page-faq .faq-block__tag {
  margin-left: auto;
  padding: 4px 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-faq .faq-block__tag--indigo {
  background: rgba(59, 46, 138, 0.4);
  border: 1px solid rgba(130, 120, 225, 0.45);
  color: #CFC7F8;
}

.page-faq .faq-block__tag--wine {
  background: rgba(107, 26, 50, 0.34);
  border: 1px solid rgba(190, 80, 105, 0.45);
  color: #F3C7D2;
}

/* ============ FAQ 手风琴项 ============ */
.page-faq .faq-item {
  margin-bottom: 12px;
  background: var(--faq-bg-card);
  border: 1px solid var(--faq-line);
  transition: border-color 180ms, transform 180ms, box-shadow 180ms;
}

.page-faq .faq-item:hover,
.page-faq .faq-item:focus-within {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.page-faq .faq-item:hover {
  transform: translateY(-3px);
}

.page-faq .faq-item__summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}

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

.page-faq .faq-item__summary:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: -2px;
}

.page-faq .faq-item__num {
  flex-shrink: 0;
  padding: 3px 8px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--c-neon);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.24);
}

.page-faq .faq-item__title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-text);
}

.page-faq .faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-silver);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-faq .faq-item[open] .faq-item__icon::after {
  transform: rotate(90deg);
}

/* ============ 答案区 ============ */
.page-faq .faq-item__ans {
  margin: 0 18px 18px;
  padding: 14px 16px 16px;
  background: var(--faq-bg-soft);
  border: 1px solid var(--faq-line);
  border-top: 0;
}

.page-faq .faq-item__ans p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-dim);
}

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

.page-faq .faq-item__ans a {
  color: var(--c-neon);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 180ms;
}

.page-faq .faq-item__ans a:hover,
.page-faq .faq-item__ans a:focus-visible {
  opacity: 0.8;
}

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

.page-faq .faq-item__steps li {
  position: relative;
  padding: 7px 0 7px 44px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-dim);
  border-bottom: 1px dashed rgba(192, 192, 192, 0.1);
  counter-increment: faqStep;
}

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

.page-faq .faq-item__steps li::before {
  content: counter(faqStep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--c-neon);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* ============ 数据流程图 ============ */
.page-faq .faq-fig {
  margin: 24px 0 0;
  border: 1px solid var(--faq-line);
  background: var(--faq-bg-soft);
}

.page-faq .faq-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq .faq-fig figcaption {
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-text-dim);
  border-top: 1px solid var(--faq-line);
}

/* ============ 联系支持卡片 ============ */
.page-faq .faq-support__card {
  position: relative;
  margin-top: 20px;
  padding: 20px;
  background: var(--c-engine);
  border: 1px solid var(--faq-line);
}

.page-faq .faq-support__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 56px;
  height: 3px;
  background: var(--c-neon);
}

.page-faq .faq-support__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 2px;
  border-bottom: 1px dashed var(--faq-line);
}

.page-faq .faq-support__row:last-of-type {
  border-bottom: 0;
}

.page-faq .faq-support__label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-neon);
}

.page-faq .faq-support__value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  overflow-wrap: break-word;
}

.page-faq .faq-support__card .btn {
  margin-top: 18px;
}

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

  .page-faq .faq-hero h1 {
    max-width: 780px;
  }

  .page-faq .faq-body {
    padding: 48px 0 80px;
  }

  .page-faq .faq-body__layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
  }

  .page-faq .faq-aside {
    position: sticky;
    top: 84px;
  }

  .page-faq .faq-block {
    margin-bottom: 52px;
  }

  .page-faq .faq-block__header h2 {
    font-size: 20px;
  }

  .page-faq .faq-item__title {
    font-size: 15px;
  }

  .page-faq .faq-support__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .page-faq .faq-support__label {
    flex-shrink: 0;
  }
}
