/* ===== 星空体育 · 常见问答页专属样式 ===== */
.page-faq {
  --faq-bg: #F5F7FA;
  --faq-dark: #0B1B3F;
  --faq-second: #1A2D5A;
  --faq-accent: #FF6B35;
  --faq-purple: #9A4DFF;
  --faq-panel: #E1E8F0;
  --faq-white: #FFFFFF;
  --faq-text: #1A1A2E;
  --faq-green: #00C896;
  background: var(--faq-bg);
  color: var(--faq-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}

.page-faq .breadcrumbs {
  padding: 24px 0 0;
}

.page-faq a {
  color: var(--faq-accent);
  text-decoration-color: rgba(255, 107, 53, 0.35);
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.page-faq a:hover {
  color: #E85A24;
  text-decoration-color: currentColor;
}

/* ===== Hero 页首横幅 ===== */
.page-faq .faq-hero {
  background: linear-gradient(135deg, var(--faq-dark) 0%, var(--faq-second) 78%, rgba(154, 77, 255, 0.28) 100%);
  color: var(--faq-white);
  padding: 56px 0 64px;
  margin-bottom: 42px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 6px;
  background: var(--faq-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.page-faq .faq-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faq-accent);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 4px;
  background: rgba(255, 107, 53, 0.08);
}

.page-faq .faq-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  margin: 20px 0 14px;
  letter-spacing: -0.02em;
}

.page-faq .faq-hero__lede {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
  max-width: 46ch;
  margin: 0 0 22px;
}

.page-faq .faq-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-hero__facts li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-faq .faq-hero__facts strong {
  color: var(--faq-accent);
  font-size: 16px;
  font-weight: 700;
}

.page-faq .faq-hero__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

/* ===== 快速索引 ===== */
.page-faq .faq-index {
  margin-bottom: 48px;
}

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

.page-faq .faq-index__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--faq-white);
  border: 1px solid var(--faq-panel);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--faq-text);
  border-left: 3px solid var(--faq-accent);
  box-shadow: 0 2px 0 rgba(11, 27, 63, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.page-faq .faq-index__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 27, 63, 0.09);
  border-color: var(--faq-accent);
}

.page-faq .faq-index__item:nth-child(2) {
  border-left-color: var(--faq-purple);
}

.page-faq .faq-index__item:nth-child(2):hover {
  border-color: var(--faq-purple);
}

.page-faq .faq-index__item:nth-child(3) {
  border-left-color: var(--faq-green);
}

.page-faq .faq-index__item:nth-child(3):hover {
  border-color: var(--faq-green);
}

.page-faq .faq-index__item:nth-child(4) {
  border-left-color: var(--faq-dark);
}

.page-faq .faq-index__item:nth-child(4):hover {
  border-color: var(--faq-dark);
}

.page-faq .faq-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faq-accent);
}

.page-faq .faq-index__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--faq-text);
}

.page-faq .faq-index__meta {
  font-size: 12px;
  color: rgba(26, 26, 46, 0.56);
}

/* ===== FAQ 区块通用 ===== */
.page-faq .faq-section {
  padding: 56px 0 60px;
  position: relative;
}

.page-faq .faq-section__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-faq .faq-section__side {
  min-width: 0;
}

.page-faq .faq-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faq-accent);
  background: rgba(255, 107, 53, 0.14);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.page-faq .faq-section__side h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-faq .faq-section__lede {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(26, 26, 46, 0.68);
  margin: 0 0 18px;
  max-width: 38ch;
}

.page-faq .faq-section__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11, 27, 63, 0.1);
  border: 1px solid var(--faq-panel);
  object-fit: cover;
}

/* ===== 折叠面板 ===== */
.page-faq .faq-section__list {
  min-width: 0;
}

.page-faq .faq-item {
  background: var(--faq-white);
  border: 1px solid var(--faq-panel);
  border-left: 3px solid var(--faq-panel);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.page-faq .faq-item:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item[open] {
  border-left-color: var(--faq-accent);
  box-shadow: 0 6px 20px rgba(11, 27, 63, 0.07);
}

.page-faq .faq-item__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--faq-text);
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.25s ease;
}

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

.page-faq .faq-item__q:hover {
  background: rgba(26, 26, 46, 0.02);
}

.page-faq .faq-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--faq-accent);
  background: rgba(255, 107, 53, 0.1);
  border-radius: 3px;
  padding: 3px 7px;
  flex-shrink: 0;
}

.page-faq .faq-item__title {
  flex: 1;
  min-width: 0;
}

.page-faq .faq-item__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid rgba(26, 26, 46, 0.35);
  border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 1px;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.page-faq .faq-item__icon::before {
  width: 9px;
  height: 1.8px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item__icon::after {
  width: 1.8px;
  height: 9px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item[open] .faq-item__icon {
  border-color: var(--faq-accent);
  background: rgba(255, 107, 53, 0.08);
}

.page-faq .faq-item[open] .faq-item__icon::before,
.page-faq .faq-item[open] .faq-item__icon::after {
  background: var(--faq-accent);
}

.page-faq .faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* 折叠面板展开内容（grid 平滑动画） */
.page-faq .faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.page-faq .faq-item[open] .faq-item__answer {
  grid-template-rows: 1fr;
}

.page-faq .faq-item__answer-inner {
  overflow: hidden;
  min-height: 0;
}

.page-faq .faq-item__text {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26, 26, 46, 0.74);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.page-faq .faq-item[open] .faq-item__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.06s;
}

/* 区块内关键文字强调 */
.page-faq .text-accent {
  color: var(--faq-accent);
  font-weight: 600;
}

/* ===== 区块变体：订阅价格（浅色）===== */
.page-faq .faq-section--price {
  background: var(--faq-bg);
  border-top: 1px solid rgba(225, 232, 240, 0.6);
  border-bottom: 1px solid rgba(225, 232, 240, 0.6);
}

/* ===== 区块变体：服务额度（深色）===== */
.page-faq .faq-section--quota {
  background: linear-gradient(150deg, var(--faq-dark) 0%, #0E2252 55%, var(--faq-second) 100%);
  color: var(--faq-white);
}

.page-faq .faq-section--quota .faq-section__num {
  color: var(--faq-purple);
  background: rgba(154, 77, 255, 0.16);
}

.page-faq .faq-section--quota .faq-section__side h2 {
  color: var(--faq-white);
}

.page-faq .faq-section--quota .faq-section__lede {
  color: rgba(255, 255, 255, 0.66);
}

.page-faq .faq-section--quota .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: transparent;
}

.page-faq .faq-section--quota .faq-item[open] {
  border-left-color: var(--faq-purple);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.page-faq .faq-section--quota .faq-item__q {
  color: var(--faq-white);
}

.page-faq .faq-section--quota .faq-item__q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.page-faq .faq-section--quota .faq-item__num {
  color: var(--faq-purple);
  background: rgba(154, 77, 255, 0.16);
}

.page-faq .faq-section--quota .faq-item__icon {
  border-color: rgba(255, 255, 255, 0.4);
}

.page-faq .faq-section--quota .faq-item__icon::before,
.page-faq .faq-section--quota .faq-item__icon::after {
  background: rgba(255, 255, 255, 0.65);
}

.page-faq .faq-section--quota .faq-item[open] .faq-item__icon {
  border-color: var(--faq-purple);
  background: rgba(154, 77, 255, 0.12);
}

.page-faq .faq-section--quota .faq-item[open] .faq-item__icon::before,
.page-faq .faq-section--quota .faq-item[open] .faq-item__icon::after {
  background: var(--faq-purple);
}

.page-faq .faq-section--quota .faq-item__text {
  color: rgba(255, 255, 255, 0.7);
}

.page-faq .faq-section--quota .text-accent {
  color: var(--faq-purple);
}

/* ===== 区块变体：战报费用（浅蓝灰）===== */
.page-faq .faq-section--report {
  background: rgba(225, 232, 240, 0.38);
  border-top: 1px solid rgba(225, 232, 240, 0.5);
  border-bottom: 1px solid rgba(225, 232, 240, 0.5);
}

/* ===== 区块变体：其他问题（白色）===== */
.page-faq .faq-section--other {
  background: var(--faq-white);
}

.page-faq .faq-section--other .faq-section__num {
  color: var(--faq-dark);
  background: rgba(11, 27, 63, 0.08);
}

.page-faq .faq-section--other .faq-item {
  background: var(--faq-bg);
}

/* ===== 联系 CTA ===== */
.page-faq .faq-cta {
  background: linear-gradient(135deg, var(--faq-dark) 0%, #101F4A 60%, rgba(154, 77, 255, 0.2) 130%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-cta::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.page-faq .faq-cta::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--faq-accent) 0 36px, transparent 36px 72px);
  opacity: 0.6;
}

.page-faq .faq-cta__panel {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-faq .faq-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--faq-white);
  margin: 0 0 12px;
}

.page-faq .faq-cta p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 26px;
}

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

.page-faq .faq-cta .btn {
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease;
}

.page-faq .faq-cta .btn:hover {
  transform: translateY(-2px);
}

.page-faq .faq-cta .btn--primary {
  background: var(--faq-accent);
  color: var(--faq-white);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.32);
}

.page-faq .faq-cta .btn--primary:hover {
  background: #E85A24;
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.4);
}

.page-faq .faq-cta .btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
}

.page-faq .faq-cta .btn--ghost:hover {
  border-color: var(--faq-white);
  color: var(--faq-white);
}

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

  .page-faq .faq-hero {
    padding: 76px 0 88px;
    margin-bottom: 48px;
  }

  .page-faq .faq-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .page-faq .faq-hero__content {
    flex: 1.05;
    min-width: 0;
  }

  .page-faq .faq-hero__image {
    flex: 0.95;
    min-width: 0;
    max-width: 480px;
    margin-right: auto;
  }

  .page-faq .faq-hero h1 {
    font-size: 42px;
  }

  .page-faq .faq-hero__lede {
    font-size: 16px;
    max-width: 52ch;
  }

  .page-faq .faq-index {
    margin-bottom: 64px;
  }

  .page-faq .faq-index__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .page-faq .faq-index__item {
    padding: 22px 20px;
  }

  .page-faq .faq-index__title {
    font-size: 18px;
  }

  .page-faq .faq-section {
    padding: 72px 0 80px;
  }

  .page-faq .faq-section__inner {
    flex-direction: row;
    gap: 56px;
    align-items: flex-start;
  }

  .page-faq .faq-section__side {
    flex: 4;
    position: sticky;
    top: 100px;
  }

  .page-faq .faq-section__list {
    flex: 6;
  }

  .page-faq .faq-section__inner--reverse .faq-section__list {
    order: 1;
  }

  .page-faq .faq-section__inner--reverse .faq-section__side {
    order: 2;
  }

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

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

  .page-faq .faq-item__text {
    padding: 0 24px 24px;
    font-size: 15px;
  }

  .page-faq .faq-cta {
    padding: 80px 0 88px;
  }
}

/* ===== 减小动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__answer {
    transition: none;
  }

  .page-faq .faq-item__text {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .page-faq .faq-item[open] .faq-item__text {
    transition: none;
  }

  .page-faq .faq-item__icon::before,
  .page-faq .faq-item__icon::after {
    transition: none;
  }

  .page-faq .faq-index__item,
  .page-faq .faq-cta .btn {
    transition: none;
  }
}
