/* ============================================
   page-faq : 帮助中心专属样式
   作用域限定 .page-faq
   ============================================ */
.page-faq {
  --faq-toc-width: 240px;
  --faq-content-max: 780px;
  --faq-step-gap: 48px;
  --faq-line-red: var(--accent-red, #e63946);
  --faq-line-yellow: var(--accent-yellow, #f9c74f);
  --faq-bg-card: var(--secondary-bg, #1a1a2e);
  --faq-border: var(--border-light, #2b2d42);
  --faq-text-gray: var(--text-gray, #8d99ae);
  --faq-text-white: var(--text-white, #ffffff);
  --faq-primary-bg: var(--primary-bg, #0a0a1a);

  display: block;
  width: 100%;
  max-width: 100%;
  background-color: var(--faq-primary-bg);
  color: var(--faq-text-white);
  font-family: var(--font-body, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  line-height: 1.6;
}

/* ---------- 左右分屏骨架 ---------- */
.faq-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: calc(var(--faq-toc-width) + var(--faq-content-max) + 64px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ---------- 左侧目录 (桌面固定) ---------- */
.faq-toc {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--faq-border);
  padding-bottom: 20px;
}

.faq-toc__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.faq-toc__number {
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--faq-line-red);
  writing-mode: horizontal-tb;
}

.faq-toc__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--faq-text-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.faq-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.faq-toc__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--faq-text-gray);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast, 0.2s ease), border-color var(--transition-fast, 0.2s ease);
  letter-spacing: 0.01em;
}

.faq-toc__link:hover,
.faq-toc__link:focus-visible {
  color: var(--faq-text-white);
  border-bottom-color: var(--faq-line-red);
}

.faq-toc__link:focus-visible {
  outline: 2px solid var(--faq-line-yellow);
  outline-offset: 2px;
}

/* ---------- 右侧主内容 ---------- */
.faq-content {
  flex: 1 1 100%;
  min-width: 0;
}

/* ---------- 面包屑 ---------- */
.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--faq-text-gray);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.faq-breadcrumb a {
  color: var(--faq-text-gray);
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease);
}

.faq-breadcrumb a:hover {
  color: var(--faq-line-yellow);
}

.faq-breadcrumb__sep {
  color: var(--faq-border);
  font-weight: 300;
}

/* ---------- 标题区 ---------- */
.faq-content__hero {
  margin-bottom: 40px;
}

.faq-content__title {
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.faq-content__title-note {
  font-size: 14px;
  font-weight: 400;
  color: var(--faq-line-red);
  letter-spacing: 0.04em;
  background: rgba(230, 57, 70, 0.12);
  padding: 2px 10px;
  border-radius: 2px;
}

.faq-content__desc {
  font-size: 15px;
  color: var(--faq-text-gray);
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- 步骤章节 ---------- */
.faq-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--faq-step-gap);
  padding-top: 8px;
  border-top: 1px solid var(--faq-border);
}

.faq-step:first-of-type {
  border-top: none;
}

.faq-step__label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.faq-step__number {
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--faq-line-red);
  letter-spacing: -0.03em;
  opacity: 0.85;
}

.faq-step__name {
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--faq-text-white);
}

.faq-step__body {
  flex: 1;
  min-width: 0;
}

.faq-step__intro {
  font-size: 14px;
  color: var(--faq-text-gray);
  margin: 0 0 20px 0;
  padding-left: 2px;
  border-left: 3px solid var(--faq-line-yellow);
  padding-left: 12px;
}

/* ---------- 引导编号列表 ---------- */
.faq-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-guide-list__item {
  display: flex;
  gap: 12px 16px;
  background: var(--faq-bg-card);
  border: 1px solid var(--faq-border);
  padding: 16px 18px;
  border-radius: 4px;
  transition: border-color var(--transition-fast, 0.2s ease);
}

.faq-guide-list__item:hover {
  border-color: var(--faq-line-red);
}

.faq-guide-list__step {
  flex: 0 0 auto;
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faq-line-red);
  background: rgba(230, 57, 70, 0.10);
  padding: 2px 10px;
  border-radius: 2px;
  height: fit-content;
  text-transform: uppercase;
  white-space: nowrap;
}

.faq-guide-list__content {
  flex: 1;
  min-width: 0;
}

.faq-guide-list__content strong {
  display: block;
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--faq-text-white);
  margin-bottom: 4px;
}

.faq-guide-list__content p {
  font-size: 14px;
  color: var(--faq-text-gray);
  margin: 0;
  line-height: 1.6;
}

.faq-guide-list__content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--faq-line-yellow);
}

.faq-guide-list__content a {
  color: var(--faq-line-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast, 0.2s ease);
}

.faq-guide-list__content a:hover {
  color: var(--faq-line-yellow);
}

/* ---------- 图片占位块 ---------- */
.faq-img-block {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-img-block__img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 1px solid var(--faq-border);
  border-radius: 2px;
  background-color: #141428;
  object-fit: cover;
  aspect-ratio: 400 / 250;
}

.faq-img-block__cap {
  font-size: 11px;
  color: var(--faq-text-gray);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* ---------- QA 手风琴 ---------- */
.faq-qa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.faq-qa-item {
  background: var(--faq-bg-card);
  border: 1px solid var(--faq-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition-fast, 0.2s ease);
}

.faq-qa-item:hover {
  border-color: rgba(230, 57, 70, 0.4);
}

.faq-qa-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-family: var(--font-heading, 'Noto Sans SC', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--faq-text-white);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast, 0.2s ease);
  margin: 0;
  line-height: 1.4;
}

.faq-qa-item__q:hover {
  background: rgba(230, 57, 70, 0.06);
}

.faq-qa-item__q:focus-visible {
  outline: 2px solid var(--faq-line-yellow);
  outline-offset: -2px;
}

.faq-qa-item__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--faq-line-red);
  transition: transform var(--transition-fast, 0.2s ease);
  line-height: 1;
}

.faq-qa-item[data-expanded] .faq-qa-item__icon {
  transform: rotate(45deg);
}

.faq-qa-item__a {
  padding: 0 18px 14px 18px;
  font-size: 14px;
  color: var(--faq-text-gray);
  line-height: 1.6;
  margin: 0;
}

.faq-qa-item__a[aria-hidden="true"] {
  display: none;
}

.faq-qa-item__a p {
  margin: 0;
}

.faq-qa-item__a a {
  color: var(--faq-line-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast, 0.2s ease);
}

.faq-qa-item__a a:hover {
  color: var(--faq-line-yellow);
}

/* ---------- 页脚 ---------- */
.faq-content__footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--faq-border);
}

.faq-content__footer-text {
  font-size: 13px;
  color: var(--faq-text-gray);
  margin: 0;
  line-height: 1.6;
}

.faq-content__footer-text a {
  color: var(--faq-line-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast, 0.2s ease);
}

.faq-content__footer-text a:hover {
  color: var(--faq-line-yellow);
}

/* ---------- 滚动显现 (渐进增强) ---------- */
.faq-step[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-step[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   桌面查询
   ============================================ */
@media (min-width: 768px) {
  .page-faq {
    padding: 0;
  }

  .faq-shell {
    flex-direction: row;
    gap: 48px;
    padding: 40px 32px 60px;
  }

  .faq-toc {
    width: var(--faq-toc-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height, 56px) + 24px);
    align-self: flex-start;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    border-right: 1px solid var(--faq-border);
    padding-right: 24px;
  }

  .faq-toc__list {
    flex-direction: column;
    gap: 4px;
  }

  .faq-toc__link {
    display: block;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
  }

  .faq-toc__link:hover,
  .faq-toc__link:focus-visible {
    border-left-color: var(--faq-line-red);
    border-bottom-color: transparent;
  }

  .faq-content {
    flex: 1;
    max-width: var(--faq-content-max);
  }

  .faq-content__title {
    font-size: 36px;
  }

  .faq-content__title-note {
    font-size: 15px;
  }

  .faq-step {
    flex-direction: row;
    gap: 32px;
  }

  .faq-step__label {
    flex: 0 0 120px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .faq-step__number {
    font-size: 48px;
  }

  .faq-step__name {
    font-size: 18px;
  }

  .faq-guide-list__item {
    padding: 18px 22px;
  }

  .faq-qa-item__q {
    font-size: 15px;
    padding: 16px 20px;
  }

  .faq-qa-item__a {
    padding: 0 20px 16px 20px;
    font-size: 14px;
  }

  .faq-content__footer {
    margin-top: 48px;
    padding-top: 32px;
  }
}

@media (min-width: 1024px) {
  .faq-shell {
    padding: 48px 40px 80px;
    gap: 64px;
  }

  .faq-content__title {
    font-size: 42px;
  }

  .faq-step__number {
    font-size: 56px;
  }

  .faq-step__label {
    flex-basis: 140px;
  }
}

/* ---------- 缩小版安全间距 ---------- */
@media (max-width: 380px) {
  .faq-shell {
    padding: 16px 10px 32px;
  }

  .faq-guide-list__item {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .faq-content__title {
    font-size: 22px;
  }

  .faq-img-block__img {
    max-width: 100%;
  }
}
<<</PAGE_CSS>>>
