.page-faq {
  --faq-index-w: 232px;
  --faq-gap: 32px;
  --faq-section-space: 52px;
  --faq-diamond: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);

  position: relative;
  background:
    radial-gradient(ellipse at 88% 4%, rgba(0, 230, 118, 0.06), transparent 34%),
    linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 46%, var(--primary-bg) 100%);
}

/* ===== 页面头部 ===== */
.page-faq__head {
  position: relative;
  padding: 18px 0 0;
  border-bottom: 1px solid var(--border-line);
  background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.page-faq__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-gold) 72%, transparent 100%);
  opacity: 0.55;
}

.page-faq__head .breadcrumb {
  margin-bottom: 22px;
}

.page-faq__head-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 36px;
}

.page-faq__eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 10px;
  padding-left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
}

.page-faq__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--accent-green);
  transform: translateY(-50%) rotate(45deg);
}

.page-faq__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: uppercase;
}

.page-faq__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-gold) 100%);
  clip-path: var(--faq-diamond);
}

.page-faq__lead {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.page-faq__abstract {
  margin: 12px 0 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.page-faq__hero-stat {
  flex: 1 1 auto;
  min-width: 88px;
  padding: 10px 14px;
  border: 1px solid var(--border-line);
  border-left: 2px solid var(--accent-green);
  background: var(--surface-glass);
}

.page-faq__hero-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-green);
}

.page-faq__hero-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.page-faq__hero-figure {
  margin: 0;
  min-height: 170px;
  border: 1px solid var(--border-line);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

/* ===== 主体网格 ===== */
.page-faq__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 48px;
}

/* ===== 分类索引 ===== */
.page-faq__index-inner {
  padding: 20px;
  border: 1px solid var(--border-line);
  background: rgba(13, 42, 79, 0.72);
}

.page-faq__index-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.page-faq__index-nav {
  display: grid;
  gap: 6px;
}

.page-faq__index-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid var(--border-line);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-faq__index-link:hover,
.page-faq__index-link:focus-visible {
  background: var(--hover-mask);
  border-left-color: var(--accent-green);
  color: var(--accent-green);
}

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

.page-faq__index-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.page-faq__index-count {
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-faq__index-link:hover .page-faq__index-count {
  color: var(--accent-green);
  border-color: rgba(0, 230, 118, 0.45);
}

.page-faq__index-tip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-line);
}

.page-faq__index-tip .tag {
  margin-bottom: 8px;
}

.page-faq__index-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-faq__index-note a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.page-faq__index-note a:hover {
  border-bottom-color: var(--accent-green);
}

/* ===== 问答条目 ===== */
.page-faq__section {
  margin-bottom: var(--faq-section-space);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-faq__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}

.page-faq__section-index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  clip-path: var(--faq-diamond);
}

.page-faq__section-copy {
  flex: 1;
  min-width: 200px;
}

.page-faq__section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: uppercase;
}

.page-faq__section-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.page-faq__list {
  display: grid;
  gap: 10px;
}

.page-faq__item {
  border: 1px solid var(--border-line);
  background: var(--surface-glass);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-faq__item[open] {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.page-faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease;
}

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

.page-faq__q:hover {
  background: var(--hover-mask);
}

.page-faq__q-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-bg);
  background: var(--accent-green);
  clip-path: var(--faq-diamond);
}

.page-faq__q-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.page-faq__q-toggle {
  flex-shrink: 0;
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-line);
  transition: border-color 0.2s ease;
}

.page-faq__q-toggle::before,
.page-faq__q-toggle::after {
  content: "";
  position: absolute;
  background: var(--accent-green);
  transition: transform 0.2s ease;
}

.page-faq__q-toggle::before {
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.page-faq__q-toggle::after {
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.page-faq__item[open] .page-faq__q-toggle {
  border-color: var(--accent-green);
}

.page-faq__item[open] .page-faq__q-toggle::after {
  transform: translateX(-50%) scaleY(0);
}

.page-faq__a {
  padding: 0 16px 16px 54px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-faq__a p {
  margin: 0;
}

.page-faq__a a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 230, 118, 0.4);
  transition: border-color 0.18s ease;
}

.page-faq__a a:hover {
  border-bottom-color: var(--accent-green);
}

/* ===== 反馈流程 ===== */
.page-faq__flow {
  display: grid;
  gap: 24px;
  margin: 8px 0 var(--faq-section-space);
  padding: 24px;
  border: 1px solid var(--border-line);
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.06) 0%, transparent 55%),
    var(--secondary-bg);
}

.page-faq__flow-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}

.page-faq__flow-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  text-transform: uppercase;
}

.page-faq__flow-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-faq__flow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.page-faq__flow-step {
  flex-shrink: 0;
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.page-faq__flow-copy .btn {
  margin-top: 4px;
}

.page-faq__flow-figure {
  margin: 0;
  border: 1px solid var(--border-line);
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

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

/* ===== 底部引导 ===== */
.page-faq__help {
  padding: 28px 24px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background:
    linear-gradient(105deg, rgba(255, 215, 0, 0.08) 0%, transparent 52%),
    var(--secondary-bg);
  text-align: center;
}

.page-faq__help-card .tag {
  margin-bottom: 10px;
}

.page-faq__help-title {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  text-transform: uppercase;
}

.page-faq__help-text {
  margin: 0 auto 20px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-faq__help-text a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 230, 118, 0.4);
  transition: border-color 0.18s ease;
}

.page-faq__help-text a:hover {
  border-bottom-color: var(--accent-green);
}

.page-faq__help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== 平板断点 ===== */
@media (min-width: 640px) {
  .page-faq__hero-stats {
    flex-wrap: nowrap;
  }

  .page-faq__hero-stat {
    flex: 1 1 0;
    padding: 12px 16px;
  }

  .page-faq__flow-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 桌面断点 ===== */
@media (min-width: 992px) {
  .page-faq__head-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding-bottom: 44px;
  }

  .page-faq__title {
    font-size: 42px;
  }

  .page-faq__lead {
    font-size: 18px;
  }

  .page-faq__abstract {
    font-size: 15px;
  }

  .page-faq__hero-figure {
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }

  .page-faq__body {
    grid-template-columns: var(--faq-index-w) 1fr;
    gap: 48px;
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .page-faq__index-inner {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-faq__section {
    margin-bottom: 60px;
  }

  .page-faq__section-title {
    font-size: 28px;
  }

  .page-faq__section-desc {
    font-size: 14px;
  }

  .page-faq__q {
    padding: 17px 20px;
  }

  .page-faq__q-text {
    font-size: 16px;
  }

  .page-faq__a {
    padding: 0 20px 20px 72px;
    font-size: 15px;
  }

  .page-faq__flow {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 32px;
  }

  .page-faq__flow-figure {
    aspect-ratio: 2 / 1;
  }

  .page-faq__help {
    padding: 36px 32px;
  }
}
