.page-faq {
  --faq-lime: #39FF14;
  --faq-gold: #FFD700;
  --faq-purple: #7B2FF7;
  --faq-line: rgba(123, 47, 247, 0.28);
  --faq-soft-bg: rgba(123, 47, 247, 0.08);
  --faq-card-bg: rgba(11, 16, 38, 0.72);
  position: relative;
  background: #0B1026;
  color: #E6E6FA;
  min-height: 100vh;
}

.page-faq *,
.page-faq *::before,
.page-faq *::after {
  box-sizing: border-box;
}

.page-faq a {
  color: inherit;
  text-decoration: none;
}

.page-faq img {
  max-width: 100%;
  height: auto;
}

.page-faq__shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

/* ===== 面包屑 ===== */
.page-faq .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(230, 230, 250, 0.55);
  margin-bottom: 28px;
}

.page-faq .breadcrumbs__item + .breadcrumbs__item::before {
  content: "·";
  margin-right: 8px;
  color: rgba(123, 47, 247, 0.7);
}

/* ===== 首屏 Hero ===== */
.faq-hero {
  position: relative;
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--faq-line);
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.24) 0%, transparent 70%);
  pointer-events: none;
}

.faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.faq-hero__title {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #F8F8FF;
  margin: 12px 0 18px;
  max-width: 640px;
}

.faq-hero__lede {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(230, 230, 250, 0.82);
  max-width: 620px;
  margin: 0 0 26px;
}

.faq-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(230, 230, 250, 0.58);
  margin-top: 22px;
}

.faq-hero__meta-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #39FF14, #7B2FF7);
  flex-shrink: 0;
}

.faq-hero__media {
  position: relative;
  max-width: 600px;
}

.faq-hero__img {
  width: 100%;
  height: auto;
  border-radius: 6px 22px 6px 22px;
  border: 1px solid rgba(57, 255, 20, 0.35);
  filter: saturate(1.1);
  display: block;
}

.faq-hero__note {
  position: absolute;
  right: 6px;
  bottom: -14px;
  transform: rotate(2deg);
  background: #4B0082;
  color: #F8F8FF;
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px 12px 4px 12px;
}

/* ===== 搜索框 ===== */
.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(6, 9, 20, 0.95), rgba(11, 16, 38, 0.88));
  border: 1px solid rgba(123, 47, 247, 0.5);
  border-radius: 8px 18px 8px 18px;
  padding: 12px 16px;
  max-width: 620px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-search:focus-within {
  border-color: rgba(57, 255, 20, 0.7);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.12);
}

.faq-search__icon {
  color: rgba(230, 230, 250, 0.5);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #F8F8FF;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  padding: 4px 0;
}

.faq-search__input::placeholder {
  color: rgba(230, 230, 250, 0.35);
}

.faq-search__key {
  border: 1px solid rgba(123, 47, 247, 0.5);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  color: rgba(230, 230, 250, 0.65);
  background: rgba(75, 0, 130, 0.3);
  font-family: inherit;
}

/* ===== 平台数据条 ===== */
.faq-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(123, 47, 247, 0.18);
  border: 1px solid rgba(123, 47, 247, 0.24);
  border-radius: 6px 18px 6px 18px;
  margin: 34px 0 58px;
  overflow: hidden;
}

.faq-stats__item {
  background: #0B1026;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-stats__num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.faq-stats__label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(230, 230, 250, 0.65);
}

/* ===== 高频问题区 ===== */
.faq-console {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.22) 0%, rgba(11, 16, 38, 0.4) 100%);
  border: 1px solid rgba(123, 47, 247, 0.3);
  border-radius: 10px 28px 10px 28px;
  padding: 28px 20px 22px;
  margin-bottom: 64px;
}

.faq-console__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.faq-console__heading {
  max-width: 520px;
}

.faq-console__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #F8F8FF;
  margin: 6px 0 8px;
}

.faq-console__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(230, 230, 250, 0.68);
}

.faq-console__legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(230, 230, 250, 0.7);
  padding-top: 24px;
}

/* ===== 状态灯 ===== */
.faq-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.faq-status-dot--green {
  background: #39FF14;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.75);
}

.faq-status-dot--yellow {
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  animation: faq-pulse 2s ease-in-out infinite;
}

@keyframes faq-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 215, 0, 0.4); }
  50% { opacity: 0.55; box-shadow: 0 0 14px rgba(255, 215, 0, 0.8); }
}

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

.faq-item {
  border: 1px solid rgba(123, 47, 247, 0.24);
  border-left: 3px solid #39FF14;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.06) 0%, rgba(11, 16, 38, 0.45) 100%);
  border-radius: 6px 16px 6px 16px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.faq-item:has(.faq-status-dot--yellow) {
  border-left-color: #FFD700;
}

.faq-item[open] {
  background: rgba(11, 16, 38, 0.78);
  border-color: rgba(123, 47, 247, 0.42);
}

.faq-item__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #F8F8FF;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.faq-item__toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: #39FF14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] .faq-item__toggle {
  transform: rotate(135deg);
  background: rgba(57, 255, 20, 0.12);
}

.faq-item__answer {
  padding: 4px 20px 20px 44px;
}

.faq-item__answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(230, 230, 250, 0.78);
  border-left: 1px solid rgba(123, 47, 247, 0.3);
  padding-left: 16px;
}

/* ===== 分类索引 ===== */
.faq-cats {
  margin-bottom: 64px;
}

.faq-cats__head {
  margin-bottom: 28px;
}

.faq-cats__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  color: #F8F8FF;
  margin: 6px 0 8px;
}

.faq-cats__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230, 230, 250, 0.68);
  max-width: 640px;
}

.faq-cats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.faq-cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: linear-gradient(145deg, rgba(75, 0, 130, 0.75) 0%, rgba(11, 16, 38, 0.85) 100%);
  border: 1px solid rgba(255, 215, 0, 0.16);
  border-radius: 10px 22px 10px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  border-color: rgba(57, 255, 20, 0.4);
}

.faq-cat-card__num {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #FFD700;
}

.faq-cat-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #F8F8FF;
}

.faq-cat-card__list {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(230, 230, 250, 0.72);
  margin: 0;
}

.faq-cat-card__go {
  font-size: 13px;
  font-weight: 700;
  color: #39FF14;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ===== 联系支持 ===== */
.faq-support {
  background: linear-gradient(120deg, #500024 0%, #1a0b2e 55%, #0B1026 100%);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 10px 28px 10px 28px;
  margin-bottom: 64px;
  padding: 32px 20px;
}

.faq-support__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.faq-support__media {
  position: relative;
  max-width: 400px;
}

.faq-support__img {
  width: 100%;
  height: auto;
  border-radius: 6px 20px 6px 20px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  display: block;
}

.faq-support__content {
  padding: 0;
}

.faq-support__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  color: #F8F8FF;
  margin: 6px 0 10px;
}

.faq-support__desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(230, 230, 250, 0.75);
  max-width: 540px;
  margin: 0 0 22px;
}

.faq-support__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.faq-support__row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(123, 47, 247, 0.24);
  font-size: 14px;
}

.faq-support__row:first-child {
  border-top: 1px dashed rgba(123, 47, 247, 0.24);
}

.faq-support__label {
  width: 52px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 215, 0, 0.75);
}

.faq-support__value {
  color: rgba(230, 230, 250, 0.85);
  word-break: break-all;
}

/* ===== 共享 Button 补全 ===== */
.page-faq .eui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px 16px 6px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-faq .eui-btn--primary {
  background: linear-gradient(135deg, #7B2FF7 0%, #4B0082 100%);
  color: #F8F8FF;
  box-shadow: 0 8px 22px rgba(123, 47, 247, 0.3);
}

.page-faq .eui-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(123, 47, 247, 0.42);
}

/* ===== 响应式增强 ===== */
@media (min-width: 720px) {
  .faq-cats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .faq-console {
    padding: 36px 32px 28px;
  }

  .faq-support {
    padding: 40px 32px;
  }
}

@media (min-width: 1000px) {
  .faq-hero {
    padding-top: 88px;
  }

  .faq-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
  }

  .faq-hero__media {
    justify-self: end;
  }

  .faq-support__inner {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
  }

  .faq-support__content {
    padding: 12px 20px 12px 0;
  }
}

@media (min-width: 1200px) {
  .faq-cats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .faq-hero__grid {
    gap: 80px;
  }

  .faq-cats__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .faq-cats__desc {
    text-align: right;
  }
}
