/* ========== 必一体育SPORT｜问答中心 页面专属样式 ========== */
.page-faq {
  --faq-blue-glow: rgba(10, 102, 255, 0.18);
  --faq-green-glow: rgba(54, 241, 165, 0.12);
  --faq-aside-w: 260px;
  --faq-timeline-color: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  background-color: var(--color-bg);
}

/* ---- Hero 区域 ---- */
.page-faq .faq-hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(135deg, transparent 0%, rgba(10, 102, 255, 0.07) 45%, transparent 92%),
    linear-gradient(rgba(44, 62, 80, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--faq-blue-glow);
  filter: blur(70px);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--faq-green-glow);
  filter: blur(80px);
  pointer-events: none;
}

.page-faq .faq-hero .container {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-faq .faq-hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 14px 0 20px;
}

.page-faq .faq-hero__desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-dim);
  margin-bottom: 28px;
  max-width: 52ch;
}

.page-faq .faq-hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.page-faq .faq-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 48px rgba(10, 102, 255, 0.14);
  pointer-events: none;
}

.page-faq .faq-hero__visual-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(18, 20, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(54, 241, 165, 0.4);
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

/* ---- 主区域 ---- */
.page-faq .faq-main {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 96px;
  background:
    linear-gradient(rgba(44, 62, 80, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-faq .faq-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

/* ---- 左侧分类索引 ---- */
.page-faq .faq-aside__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  padding: 18px;
  background: rgba(30, 33, 41, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.page-faq .faq-aside__label {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 2px;
  width: 100%;
}

.page-faq .faq-aside__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}

.page-faq .faq-aside__link span {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-primary);
}

.page-faq .faq-aside__link:hover,
.page-faq .faq-aside__link:focus-visible {
  color: var(--color-text);
  background: rgba(10, 102, 255, 0.12);
}

/* ---- 折叠区内容列 ---- */
.page-faq .faq-content {
  min-width: 0;
}

.page-faq .faq-section {
  position: relative;
  margin-bottom: 60px;
  padding-left: 16px;
}

.page-faq .faq-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 40px;
  width: 2px;
  border-radius: 2px;
  background: var(--faq-timeline-color);
  opacity: 0.25;
}

.page-faq .faq-section__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--color-text);
}

.page-faq .faq-section__num {
  font-family: var(--font-data);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1;
  color: var(--color-primary);
}

/* ---- 折叠面板定制 ---- */
.page-faq .fold {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-faq .fold[open] {
  border-color: rgba(10, 102, 255, 0.45);
  box-shadow: 0 4px 24px rgba(10, 102, 255, 0.06);
}

.page-faq .fold__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  transition: background-color 0.25s;
}

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

.page-faq .fold__summary:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.page-faq .faq-q-marker {
  flex-shrink: 0;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(10, 102, 255, 0.1);
  border: 1px solid rgba(10, 102, 255, 0.24);
  border-radius: 8px;
  padding: 3px 8px;
  min-width: 38px;
  text-align: center;
}

.page-faq .fold__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-dim);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), color 0.3s ease;
}

.page-faq .fold[open] .fold__summary::after {
  transform: rotate(45deg);
  color: var(--color-secondary);
}

.page-faq .fold__body {
  padding: 0 20px 22px;
  color: var(--color-text-dim);
  font-size: 15px;
  line-height: 1.75;
}

.page-faq .fold[open] .fold__body {
  animation: faq-reveal 0.4s var(--ease-out);
}

.page-faq .faq-inline-link {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(54, 241, 165, 0.35);
  transition: color 0.25s, border-color 0.25s;
}

.page-faq .faq-inline-link:hover,
.page-faq .faq-inline-link:focus-visible {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ---- 战报更新流程图 ---- */
.page-faq .faq-report-figure {
  margin: 28px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

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

.page-faq .faq-report-figure__cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-line);
}

.page-faq .faq-report-figure__cap::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 8px var(--color-secondary);
  flex-shrink: 0;
}

/* ---- 底部帮助 CTA ---- */
.page-faq .faq-help {
  margin-top: 80px;
}

.page-faq .faq-help__panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(10, 102, 255, 0.16), rgba(54, 241, 165, 0.1)),
    var(--color-surface);
  border: 1px solid rgba(10, 102, 255, 0.3);
  overflow: hidden;
}

.page-faq .faq-help__panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--faq-blue-glow);
  filter: blur(24px);
  pointer-events: none;
}

.page-faq .faq-help__info {
  position: relative;
  z-index: 1;
}

.page-faq .faq-help__tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(54, 241, 165, 0.1);
  border: 1px solid rgba(54, 241, 165, 0.3);
}

.page-faq .faq-help__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--color-text);
  margin: 0 0 8px;
}

.page-faq .faq-help__desc {
  color: var(--color-text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
}

.page-faq .faq-help .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ---- 动画 ---- */
@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .page-faq .fold[open] .fold__body {
    animation: none;
  }
  .page-faq .fold__summary::after,
  .page-faq .faq-aside__link,
  .page-faq .faq-inline-link {
    transition: none;
  }
}

/* ---- 平板及以上 ---- */
@media (min-width: 768px) {
  .page-faq .faq-section {
    padding-left: 36px;
  }
  .page-faq .faq-section::before {
    opacity: 0.35;
  }
  .page-faq .faq-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---- 桌面端 ---- */
@media (min-width: 960px) {
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-aside-w) minmax(0, 1fr);
    gap: 48px;
  }

  .page-faq .faq-aside {
    position: sticky;
    top: 96px;
  }

  .page-faq .faq-aside__inner {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 20px;
  }

  .page-faq .faq-aside__link {
    justify-content: flex-start;
    padding: 11px 16px;
    white-space: normal;
  }

  .page-faq .faq-q-marker {
    min-width: 42px;
  }
}
