.page-faq {
  --faq-space: #0B1D3A;
  --faq-cream: #F2E8D5;
  --faq-ink: #2B2B2B;
  --faq-accent: #FF6B2C;
  --faq-neon: #B9FF3C;
  --faq-teal: #2E8B8B;
  --faq-slate: #4A5B82;
  --faq-data: #1E90FF;
  --faq-card: #FFFFFF;
  background: var(--faq-cream);
}

/* ---------- Hero 封面区 ---------- */
.page-faq .faq-hero {
  position: relative;
  background: var(--faq-space);
  color: var(--faq-cream);
  padding: 34px 0 44px;
  overflow: hidden;
}
.page-faq .faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--faq-neon) 0 38%, var(--faq-accent) 38% 62%, var(--faq-teal) 62% 100%);
}
.page-faq .faq-hero::after {
  content: '?';
  position: absolute;
  right: -40px;
  top: -20px;
  font-family: var(--font-display);
  font-size: clamp(160px, 30vw, 300px);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .04);
  pointer-events: none;
}
.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 26px;
}
.page-faq .breadcrumb {
  margin-bottom: 24px;
}
.page-faq .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(242, 232, 213, .7);
}
.page-faq .breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-faq .breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: rgba(242, 232, 213, .45);
}
.page-faq .breadcrumb__link {
  color: rgba(242, 232, 213, .75);
  text-decoration: none;
  transition: color .25s ease;
}
.page-faq .breadcrumb__link:hover {
  color: var(--faq-neon);
}
.page-faq .faq-hero__content {
  max-width: 920px;
}
.page-faq .faq-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faq-neon);
}
.page-faq .faq-hero__kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--faq-accent);
}
.page-faq .faq-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.14;
  letter-spacing: .01em;
  color: var(--faq-cream);
  text-wrap: balance;
}
.page-faq .faq-hero__lead {
  margin: 0 0 26px;
  max-width: 64rem;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(242, 232, 213, .82);
}
.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-faq .faq-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(185, 255, 60, .1);
  border: 1px solid rgba(185, 255, 60, .3);
  color: var(--faq-cream);
  font-family: var(--font-data);
  font-size: 13px;
}
.page-faq .faq-hero__meta-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faq-neon);
}
.page-faq .faq-hero__visual {
  margin-top: clamp(28px, 5vw, 48px);
}
.page-faq .faq-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

/* ---------- 主体布局：目录 + 问答 ---------- */
.page-faq .faq-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.page-faq .faq-content {
  min-width: 0;
  display: grid;
  gap: clamp(52px, 8vw, 88px);
}

/* ---------- 目录侧栏 ---------- */
.page-faq .faq-toc {
  position: relative;
  padding: 26px 22px;
  background: var(--faq-card);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--faq-accent);
  box-shadow: var(--shadow-card);
}
.page-faq .faq-toc::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--faq-neon), var(--faq-data));
  opacity: .8;
}
.page-faq .toc__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faq-space);
}
.page-faq .toc__list {
  display: grid;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.page-faq .toc__item {
  margin: 0;
}
.page-faq .toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--faq-ink);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.page-faq .toc__link:hover {
  background: rgba(46, 139, 139, .1);
  color: var(--faq-teal);
  transform: translateX(4px);
}
.page-faq .toc__link[aria-current="true"],
.page-faq .toc__link.is-active {
  background: rgba(46, 139, 139, .14);
  color: var(--faq-teal);
  font-weight: 700;
}
.page-faq .toc__num {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--faq-accent);
  flex-shrink: 0;
}
.page-faq .toc__label {
  line-height: 1.4;
}
.page-faq .faq-toc__help {
  border-top: 1px dashed var(--faq-slate);
  padding-top: 18px;
}
.page-faq .faq-toc__help-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--faq-space);
}
.page-faq .faq-toc__help-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--faq-slate);
  word-break: break-word;
}
.page-faq .faq-toc__help-btn {
  display: inline-flex;
}

/* ---------- 分类区块 ---------- */
.page-faq .faq-section {
  --section-accent: var(--faq-teal);
  min-width: 0;
}
.page-faq .faq-section--league {
  --section-accent: var(--faq-teal);
}
.page-faq .faq-section--lineup {
  --section-accent: var(--faq-data);
}
.page-faq .faq-section--sync {
  --section-accent: var(--faq-neon);
}
.page-faq .faq-section--switch {
  --section-accent: var(--faq-accent);
}
.page-faq .faq-section__head {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--section-accent);
}
.page-faq .faq-section__kicker {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--section-accent);
}
.page-faq .faq-section__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.2;
  color: var(--faq-space);
}
.page-faq .faq-section__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--faq-slate);
  max-width: 52em;
}

/* ---------- 手风琴问答 ---------- */
.page-faq .faq-list {
  display: grid;
  gap: 12px;
}
.page-faq .faq-item {
  background: var(--faq-card);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.page-faq .faq-item[open] {
  border-color: var(--section-accent);
  box-shadow: 0 12px 28px -12px rgba(11, 29, 58, .18);
}
.page-faq .faq-item__question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.page-faq .faq-item__question::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__question:focus-visible {
  outline: 2px solid var(--section-accent);
  outline-offset: -4px;
}
.page-faq .faq-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--section-accent);
  color: #FFFFFF;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
}
.page-faq .faq-section--sync .faq-item__num {
  color: var(--faq-space);
}
.page-faq .faq-item__text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--faq-ink);
  transition: color .25s ease;
}
.page-faq .faq-item:hover .faq-item__text {
  color: var(--section-accent);
}
.page-faq .faq-section--sync .faq-item:hover .faq-item__text {
  color: var(--faq-teal);
}
.page-faq .faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--section-accent);
  transition: background .25s ease, border-color .25s ease;
}
.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--section-accent);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .3s ease;
}
.page-faq .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.page-faq .faq-item[open] .faq-item__icon {
  background: rgba(255, 107, 44, .08);
}
.page-faq .faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.page-faq .faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 20px;
  transition: grid-template-rows .45s ease, padding .45s ease;
}
.page-faq .faq-item[open] .faq-item__answer {
  grid-template-rows: 1fr;
  padding: 0 20px 20px;
}
.page-faq .faq-item__answer-inner {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.85;
  color: var(--faq-ink);
}
.page-faq .faq-item__answer p {
  margin: 0 0 10px;
}
.page-faq .faq-item__answer p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-item__tip {
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(46, 139, 139, .08);
  border-left: 3px solid var(--faq-teal);
  font-size: 14px;
}
.page-faq .faq-text-link {
  color: var(--faq-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 同步示意图 ---------- */
.page-faq .faq-sync__visual {
  margin: 28px 0 0 18px;
  padding: 12px 12px 4px;
  max-width: 640px;
  background: rgba(46, 139, 139, .05);
  border: 1px dashed var(--faq-teal);
  border-radius: var(--radius-md);
}
.page-faq .faq-sync__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 0;
}
.page-faq .faq-sync__visual .visual-frame__note {
  margin: 8px 4px 8px;
  font-size: 13px;
  color: var(--faq-slate);
}

/* ---------- 底部求助 CTA ---------- */
.page-faq .faq-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--faq-space), #132B57);
  color: var(--faq-cream);
  overflow: hidden;
}
.page-faq .faq-bottom::before {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 86px;
  border: 14px solid rgba(185, 255, 60, .1);
  border-radius: 50%;
}
.page-faq .faq-bottom__content {
  position: relative;
  z-index: 1;
}
.page-faq .faq-bottom__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}
.page-faq .faq-bottom__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 232, 213, .78);
  max-width: 58ch;
}
.page-faq .faq-bottom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ---------- 桌面端增强 ---------- */
@media (min-width: 960px) {
  .page-faq .faq-hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .page-faq .faq-hero__title {
    font-size: clamp(44px, 5.2vw, 60px);
    max-width: 12em;
  }
  .page-faq .faq-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 64px);
  }
  .page-faq .faq-toc {
    position: sticky;
    top: 108px;
  }
  .page-faq .faq-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-faq .faq-bottom__actions {
    justify-content: flex-end;
  }
}
