.page-faq {
  --faq-neon: var(--color-neon-green);
  --faq-orange: var(--color-orange);
  --faq-deep: var(--color-deep-blue);
  --faq-muted: var(--color-medium-gray);
  --faq-ink: var(--color-dark-gray);
  background: var(--color-light-gray);
  color: var(--faq-ink);
  font-family: var(--font-body);
}

/* ===== Hero ===== */
.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 108px;
  background:
    radial-gradient(circle at 88% 12%, rgba(198, 255, 0, 0.16), transparent 28%),
    linear-gradient(125deg, var(--color-deep-blue) 0%, #10172e 54%, #050810 100%);
  color: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.faq-hero::before {
  content: "?";
  position: absolute;
  right: -18px;
  bottom: -48px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(140px, 24vw, 320px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
}

.faq-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.faq-hero-eyebrow {
  display: inline-block;
  margin: 16px 0 10px;
  color: var(--faq-neon);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.faq-hero .page-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.faq-hero-desc {
  margin: 18px 0 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.faq-hero .btn-sport {
  background-color: var(--faq-neon);
  color: var(--faq-deep);
  padding: 11px 24px;
  border-radius: 2px;
}

.faq-hero .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  padding: 9px 22px;
  border-radius: 2px;
  background: transparent;
}

.faq-hero .btn-outline:hover,
.faq-hero .btn-outline:focus {
  border-color: var(--faq-neon);
  color: var(--faq-neon);
}

.faq-hero-visual {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.faq-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

/* ===== 热门关键词导航 ===== */
.faq-quick {
  background: var(--faq-neon);
  color: var(--faq-deep);
}

.faq-quick-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.faq-quick-label {
  margin-right: 6px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.faq-quick-link {
  display: inline-block;
  padding: 7px 16px;
  background: var(--faq-deep);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-quick-link:hover,
.faq-quick-link:focus {
  background: #000;
  color: var(--faq-neon);
}

.faq-quick-tip {
  width: 100%;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(11, 27, 58, 0.72);
}

/* ===== 主版面 ===== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
}

/* ===== 目录 ===== */
.faq-toc {
  background: var(--color-white);
  border-top: 3px solid var(--faq-neon);
  padding: 18px;
}

.faq-toc-title {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--faq-deep);
}

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

.faq-toc-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(11, 27, 58, 0.18);
  border-radius: 100px;
  color: var(--faq-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.faq-toc-link span {
  color: var(--faq-orange);
  font-weight: 900;
  font-size: 12px;
}

.faq-toc-link:hover,
.faq-toc-link:focus {
  background: var(--faq-deep);
  border-color: var(--faq-deep);
  color: var(--color-white);
}

/* ===== 章节 ===== */
.faq-section {
  scroll-margin-top: 24px;
  margin-bottom: 56px;
}

.faq-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
  padding-left: 4px;
}

.faq-section-head .section-number {
  font-size: 13px;
  font-weight: 900;
  color: var(--faq-orange);
  letter-spacing: 0.12em;
}

.faq-section-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  color: var(--faq-deep);
}

.faq-section-desc {
  margin: 0;
  color: var(--faq-muted);
  font-size: 14px;
}

/* ===== 折叠条目 ===== */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid rgba(11, 27, 58, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
}

.faq-item[open] {
  background: var(--color-white);
  border-radius: 8px;
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(11, 27, 58, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

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

.faq-q-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--faq-deep);
  color: var(--faq-neon);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.faq-q-text {
  flex: 1;
  min-width: 0;
  color: var(--faq-deep);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-q-icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-light-gray);
  transition: background 0.2s ease;
}

.faq-q-icon::before,
.faq-q-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: var(--faq-deep);
}

.faq-q-icon::before {
  width: 12px;
  height: 2px;
}

.faq-q-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item[open] .faq-q-icon {
  background: var(--faq-neon);
}

.faq-item[open] .faq-q-icon::after {
  opacity: 0;
}

.faq-answer {
  position: relative;
  padding: 0 20px 22px 64px;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.75;
}

.faq-answer::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 4px;
  bottom: 20px;
  width: 4px;
  background: linear-gradient(180deg, var(--faq-neon), rgba(198, 255, 0, 0.2));
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.faq-answer p {
  margin: 0;
}

/* ===== 联系区 ===== */
.faq-contact {
  scroll-margin-top: 24px;
  padding: 120px 0 72px;
  background:
    linear-gradient(115deg, rgba(11, 27, 58, 0.97), rgba(0, 0, 0, 0.88)),
    var(--faq-deep);
  color: var(--color-white);
  clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%);
}

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

.faq-contact-media {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

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

.faq-contact-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--faq-orange);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.faq-contact-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.faq-contact-copy > p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.faq-contact-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.faq-contact-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
}

.faq-contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 3px;
  background: var(--faq-neon);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.faq-contact-note {
  margin: 0 0 28px;
  padding-left: 12px;
  border-left: 3px solid var(--faq-orange);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.7;
}

.faq-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-contact .btn-sport {
  background-color: var(--faq-neon);
  color: var(--faq-deep);
  padding: 11px 24px;
  border-radius: 2px;
}

.faq-contact .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  padding: 9px 22px;
  border-radius: 2px;
  background: transparent;
}

.faq-contact .btn-outline:hover,
.faq-contact .btn-outline:focus {
  border-color: var(--faq-neon);
  color: var(--faq-neon);
}

/* ===== 桌面端布局 ===== */
@media (min-width: 900px) {
  .faq-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }

  .faq-list {
    display: block;
  }

  .faq-item {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    border-bottom: 0;
    border-top: 1px solid rgba(11, 27, 58, 0.1);
    margin-bottom: 0;
  }

  .faq-item:last-child {
    border-bottom: 1px solid rgba(11, 27, 58, 0.1);
  }

  .faq-item[open] {
    border-radius: 0;
    border-bottom: 0;
    background: var(--color-white);
    box-shadow: 0 14px 40px rgba(11, 27, 58, 0.08);
  }

  .faq-question {
    grid-column: 1;
    padding: 24px 20px;
    border-right: 1px dashed rgba(11, 27, 58, 0.15);
  }

  .faq-answer {
    grid-column: 2;
    padding: 26px 20px 26px 36px;
  }

  .faq-answer::before {
    left: 12px;
    top: 22px;
    bottom: 22px;
  }

  .faq-contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding-top: 72px;
  }

  .faq-toc {
    position: sticky;
    top: 120px;
    border-top: 0;
    border-left: 3px solid var(--faq-neon);
    padding: 20px;
  }

  .faq-toc-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .faq-toc-link {
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid rgba(11, 27, 58, 0.08);
    border-radius: 0;
    padding: 12px 8px;
  }

  .faq-toc-link:hover,
  .faq-toc-link:focus {
    background: rgba(11, 27, 58, 0.06);
    border-bottom-color: rgba(11, 27, 58, 0.08);
    color: var(--faq-deep);
  }
}
