.page-faq {
  --faq-pad: 20px;
  --faq-max: 1280px;
  background: var(--bg-root);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

.page-faq a {
  text-decoration: none;
}

.page-faq img {
  max-width: 100%;
  height: auto;
}

/* ========== Hero ========== */
.page-faq .faq-hero {
  margin-bottom: 12px;
}

.page-faq .faq-hero-inner {
  position: relative;
  max-width: var(--faq-max);
  margin-inline: auto;
  padding: var(--faq-pad);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.04) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.04) 32px),
    linear-gradient(140deg, var(--bg-main) 0%, var(--bg-panel) 100%);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.page-faq .faq-hero-inner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 12px);
  opacity: 0.14;
  pointer-events: none;
}

.page-faq .faq-hero-wave {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 88px;
  height: 22px;
  color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
}

.page-faq .faq-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-faq .faq-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 10px 0 14px;
  max-width: 13em;
  color: var(--sand);
}

.page-faq .faq-hero .lede {
  color: var(--sand);
  font-size: 15px;
  line-height: 1.85;
  max-width: 46em;
  margin-bottom: 18px;
}

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

.page-faq .faq-hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(7, 31, 22, 0.62);
  border: 1px solid var(--line);
}

.page-faq .faq-hero-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-faq .faq-hero-label {
  font-size: 12px;
  color: var(--gray);
}

.page-faq .faq-hero-figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: rgba(7, 31, 22, 0.4);
  position: relative;
}

.page-faq .faq-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-faq .faq-hero-figure::after {
  content: '';
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 46px;
  height: 4px;
  background: var(--accent);
}

.page-faq .faq-hero-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.2em;
  scrollbar-width: none;
}

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

.page-faq .faq-hero-strip span {
  white-space: nowrap;
}

/* ========== 面包屑 ========== */
.page-faq .faq-crumb {
  max-width: var(--faq-max);
  margin-inline: auto;
  padding: 0 var(--faq-pad);
}

.page-faq .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 13px;
  padding: 12px 0 4px;
}

.page-faq .breadcrumb a {
  color: var(--gold);
}

.page-faq .breadcrumb .cur {
  color: var(--sand);
}

/* ========== 双栏文档 ========== */
.page-faq .faq-doc {
  max-width: var(--faq-max);
  margin-inline: auto;
  padding: 0 var(--faq-pad) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-faq .faq-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-faq .faq-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

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

.page-faq .faq-toc-title {
  flex: 0 0 auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.16em;
  padding-right: 4px;
  margin: 0;
}

.page-faq .faq-toc-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(11, 61, 46, 0.62);
  border: 1px solid var(--line);
  color: var(--sand);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-faq .faq-toc-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-root);
}

.page-faq .faq-toc-link.is-active .faq-toc-num {
  color: var(--bg-root);
}

.page-faq .faq-toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.page-faq .faq-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(43, 107, 84, 0.18);
}

.page-faq .faq-status-dot {
  width: 8px;
  height: 8px;
  background: var(--bg-live);
  box-shadow: 0 0 0 3px rgba(43, 107, 84, 0.35);
}

.page-faq .faq-status-txt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sand);
  letter-spacing: 0.08em;
  margin-right: auto;
}

.page-faq .faq-side-help {
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(20, 90, 67, 0.5), rgba(7, 31, 22, 0.6));
}

.page-faq .faq-side-help h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: var(--sand);
}

.page-faq .faq-side-help p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 10px;
}

/* ========== 按钮 ========== */
.page-faq .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sand);
  line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.page-faq .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-root);
}

.page-faq .btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== 主区域 ========== */
.page-faq .faq-main {
  min-width: 0;
}

.page-faq .faq-section {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-faq .faq-section + .faq-section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.page-faq .faq-section-head {
  position: relative;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.page-faq .faq-section-no {
  color: var(--accent);
}

.page-faq .faq-section-head h2 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 2px 0 0;
  color: var(--sand);
}

.page-faq .faq-section-head p {
  color: var(--gray);
  margin: 0;
  font-size: 14px;
}

.page-faq .faq-section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 3px;
  background: var(--accent);
}

/* ========== 问答列表 ========== */
.page-faq .faq-list {
  display: grid;
  gap: 14px;
}

.page-faq .faq-item {
  position: relative;
  background: rgba(11, 61, 46, 0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-faq .faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

.page-faq .faq-item:hover::before {
  opacity: 1;
}

.page-faq .faq-q {
  margin: 0;
}

.page-faq .faq-q-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.page-faq .faq-q-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 3px 7px;
}

.page-faq .faq-q-text {
  flex: 1;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--sand);
}

.page-faq .faq-q-arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--gray);
  transition: transform 0.2s ease;
}

.page-faq .faq-q-btn[aria-expanded="true"] .faq-q-arrow {
  transform: rotate(45deg);
  color: var(--accent);
}

/* ========== 答案 ========== */
.page-faq .faq-a {
  padding: 0 18px 18px;
}

.page-faq .faq-a-inner {
  background: rgba(251, 250, 245, 0.08);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  color: var(--sand);
}

.page-faq .faq-a-inner p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
}

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

.page-faq .faq-a-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.page-faq .faq-a-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.page-faq .faq-a-links a::before {
  content: '→ ';
  color: var(--accent);
}

/* ========== 实时比分示意图 ========== */
.page-faq .faq-live-figure {
  position: relative;
  display: grid;
  margin: 0 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 31, 22, 0.5);
}

.page-faq .faq-live-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-faq .faq-live-figure figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--bg-root);
  color: var(--gold);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
}

/* ========== 底部额外卡片 ========== */
.page-faq .faq-extra {
  max-width: var(--faq-max);
  margin-inline: auto;
  padding: 0 var(--faq-pad) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-faq .faq-extra-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(20, 90, 67, 0.5), rgba(11, 61, 46, 0.4));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-faq .faq-extra-card h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 8px;
  color: var(--sand);
}

.page-faq .faq-extra-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 14px;
}

.page-faq .faq-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== 返回顶部 ========== */
.page-faq .back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--bg-main);
  color: var(--sand);
  opacity: 0.9;
  transition: opacity 0.15s, background 0.15s;
}

.page-faq .back-top:hover {
  background: var(--accent);
  color: var(--bg-root);
}

/* ========== 中等屏幕（平板） ========== */
@media (min-width: 720px) {
  .page-faq {
    --faq-pad: 28px;
  }

  .page-faq .faq-hero-stats {
    gap: 14px;
  }

  .page-faq .faq-hero-stat {
    padding: 10px 16px;
  }

  .page-faq .faq-hero-grid {
    gap: 28px;
  }
}

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

  .page-faq .faq-hero-grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }

  .page-faq .faq-hero-strip {
    justify-content: space-between;
  }

  .page-faq .faq-doc {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

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

  .page-faq .faq-toc {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 8px;
    border: 1px solid var(--line);
    background: rgba(11, 61, 46, 0.35);
    gap: 0;
  }

  .page-faq .faq-toc-title {
    padding: 8px 10px;
    align-self: auto;
  }

  .page-faq .faq-toc-link {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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

  .page-faq .faq-q-text {
    font-size: 20px;
  }
}
