/* ===== 必发体育 · 支持中心 FAQ ===== */

.page-faq {
  background:
    radial-gradient(circle at 16% -4%, rgba(51, 255, 153, 0.07), transparent 36%),
    var(--bg-warm);
  padding: 20px 0 56px;
}

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

/* ---- Hero ---- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 28px;
  padding: 30px 20px 26px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius-lg);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(245, 241, 232, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, 0.032) 1px, transparent 1px);
  background-size: 34px 34px;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 36, 27, 0.6) 0%, rgba(18, 18, 18, 0) 62%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue) 58%, var(--accent-gold));
  opacity: 0.8;
}

.page-faq .faq-hero__content,
.page-faq .faq-hero__stats {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.page-faq .faq-hero__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-warm);
}

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

/* ---- 目录胶囊 ---- */
.page-faq .faq-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-faq .faq-directory__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 241, 232, 0.16);
  background: rgba(18, 18, 18, 0.68);
  color: var(--text-warm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.page-faq .faq-directory__link:hover,
.page-faq .faq-directory__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(18, 18, 18, 0.92);
}

.page-faq .faq-directory__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
}

/* ---- Hero 数据卡 ---- */
.page-faq .faq-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.page-faq .faq-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 14px;
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: var(--radius-md);
  background: rgba(18, 18, 18, 0.66);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.page-faq .faq-hero__stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-green);
}

.page-faq .faq-hero__stat:nth-child(2) .faq-hero__stat-num {
  color: var(--accent-blue);
}

.page-faq .faq-hero__stat:nth-child(3) .faq-hero__stat-num {
  color: var(--accent-gold);
}

.page-faq .faq-hero__stat:nth-child(4) .faq-hero__stat-num {
  color: var(--accent-green);
}

.page-faq .faq-hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- 章节面板 ---- */
.page-faq .faq-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 26px 20px 24px;
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 18, 0.42);
  scroll-margin-top: 20px;
}

.page-faq .faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue) 55%, transparent);
  opacity: 0.65;
}

.page-faq .faq-section::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 108, 255, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.page-faq .faq-section__header {
  position: relative;
  margin-bottom: 20px;
}

.page-faq .faq-section__heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-faq .faq-section__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--accent-green);
}

.page-faq .faq-section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-warm);
}

.page-faq .faq-section__num {
  position: absolute;
  top: -18px;
  right: -6px;
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.34);
  transform: rotate(10deg);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.page-faq .faq-section__lead {
  margin: 10px 0 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- 配图 ---- */
.page-faq .faq-figure {
  margin: 0 0 22px;
  padding: 8px;
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: var(--radius-md);
  background: rgba(18, 18, 18, 0.52);
}

.page-faq .faq-figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-md) - 8px);
}

.page-faq .faq-figure figcaption {
  padding: 10px 6px 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- 手风琴 ---- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-faq .faq-item {
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  transition:
    border-color 0.3s var(--ease-out),
    border-radius 0.4s var(--ease-out),
    background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.page-faq .faq-item:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.page-faq .faq-item[open] {
  border-radius: var(--radius-md);
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(10, 30, 63, 0.72), rgba(18, 18, 18, 0.9));
}

.page-faq .faq-item__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-gold);
  user-select: none;
  transition:
    color 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    border-radius 0.4s var(--ease-out);
}

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

.page-faq .faq-item__summary:hover,
.page-faq .faq-item__summary:focus-visible {
  color: #ffe9a3;
}

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

.page-faq .faq-item[open] .faq-item__summary {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: inset 0 -1px 0 rgba(245, 241, 232, 0.08);
  background: rgba(18, 18, 18, 0.4);
}

.page-faq .faq-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-green);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.page-faq .faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.08);
}

.page-faq .faq-item__answer {
  margin: 4px 14px 14px;
  padding: 16px;
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: var(--radius-md);
  background: rgba(18, 18, 18, 0.5);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-faq .faq-item[open] .faq-item__answer {
  animation: faqAnswerIn 0.4s var(--ease-out) both;
}

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

.page-faq .faq-item__answer p + p {
  margin-top: 10px;
}

.page-faq .faq-item__answer strong {
  font-family: var(--font-mono);
  font-size: 0.94em;
  font-weight: 600;
  color: var(--accent-green);
}

.page-faq .faq-link {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-color: rgba(45, 108, 255, 0.5);
  text-underline-offset: 3px;
  transition:
    color 0.3s var(--ease-out),
    text-decoration-color 0.3s var(--ease-out);
}

.page-faq .faq-link:hover,
.page-faq .faq-link:focus-visible {
  color: var(--accent-green);
  text-decoration-color: var(--accent-green);
}

@keyframes faqAnswerIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- 底部联系 ---- */
.page-faq .faq-contact {
  padding: 32px 22px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-night) 0%, var(--bg-deep) 100%);
  text-align: center;
}

.page-faq .faq-contact__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-warm);
}

.page-faq .faq-contact__lead {
  margin: 0 auto 26px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

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

/* ---- 桌面端增强 ---- */
@media (min-width: 768px) {
  .page-faq {
    padding: 8px 0 72px;
  }

  .page-faq .faq-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-top: 28px;
    margin-bottom: 40px;
    padding: 52px 48px 44px;
  }

  .page-faq .faq-hero__title {
    font-size: 40px;
  }

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

  .page-faq .faq-hero__stats {
    margin-top: 0;
    gap: 16px;
  }

  .page-faq .faq-hero__stat:nth-child(even) {
    transform: translateY(12px);
  }

  .page-faq .faq-section {
    padding: 40px 44px 36px;
    margin-bottom: 36px;
    scroll-margin-top: 40px;
  }

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

  .page-faq .faq-section__num {
    font-size: 72px;
    top: -26px;
    right: -12px;
  }

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

  .page-faq .faq-figure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 10px;
  }

  .page-faq .faq-figure figcaption {
    font-size: 13px;
    padding: 0;
  }

  .page-faq .faq-list {
    gap: 16px;
  }

  .page-faq .faq-item__summary {
    padding: 20px 24px;
    font-size: 16px;
  }

  .page-faq .faq-item__icon {
    width: 32px;
    height: 32px;
  }

  .page-faq .faq-contact {
    padding: 48px 32px;
  }

  .page-faq .faq-contact__title {
    font-size: 30px;
  }
}
