.page-faq {
  --faq-deco-purple: #B829F0;
  --faq-deco-green: #39FF14;
  --faq-card-bg: rgba(22, 27, 34, 0.75);
  --faq-border-dim: #30363D;
  --faq-text-silver: #C0C0C0;
  --faq-text-white: #FFFFFF;
  --faq-glow: rgba(184, 41, 240, 0.3);
  --faq-radius: 10px;
  display: block;
  width: 100%;
  background-color: #0D1117;
  color: var(--faq-text-white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ===== 英雄区 ===== */
.page-faq .faq-hero {
  position: relative;
  background: linear-gradient(135deg, #0A192F 0%, #0D1117 100%);
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(184,41,240,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 15%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(57,255,20,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.page-faq .faq-hero__context {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--faq-text-silver);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  opacity: 0.75;
}

.page-faq .faq-hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--faq-text-white);
  line-height: 1.05;
  position: relative;
  display: inline-block;
}

.page-faq .faq-hero__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 64px;
  height: 4px;
  background: var(--faq-deco-purple);
  border-radius: 2px;
}

.page-faq .faq-hero__desc {
  font-size: 1rem;
  color: var(--faq-text-silver);
  max-width: 560px;
  margin: 0.75rem 0 0;
  line-height: 1.7;
}

.page-faq .faq-hero__deco {
  display: none;
}

/* ===== 横幅图片 ===== */
.page-faq .faq-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #0A192F;
}

.page-faq .faq-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 800 / 200;
}

/* ===== 分类标签 ===== */
.page-faq .faq-tabs {
  padding: 1.5rem 0 0.5rem;
  background: #0D1117;
  position: sticky;
  top: 68px;
  z-index: 10;
}

.page-faq .faq-tabs__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.page-faq .faq-tab {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--faq-text-silver);
  background: transparent;
  border: 1.5px solid var(--faq-border-dim);
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.page-faq .faq-tab:hover {
  color: var(--faq-text-white);
  border-color: var(--faq-deco-purple);
  box-shadow: 0 0 18px var(--faq-glow);
  background: rgba(184, 41, 240, 0.08);
}

.page-faq .faq-tab:focus-visible {
  outline: 2px solid var(--faq-deco-purple);
  outline-offset: 3px;
}

/* ===== 手风琴内容 ===== */
.page-faq .faq-content {
  padding: 2rem 1.25rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== 分类区块 ===== */
.page-faq .faq-category {
  margin-bottom: 2.5rem;
  scroll-margin-top: 150px;
}

.page-faq .faq-category__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--faq-text-white);
  margin: 0 0 1.2rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--faq-deco-purple);
  position: relative;
}

.page-faq .faq-category__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(22, 27, 34, 0.5);
}

.page-faq .faq-category__label {
  flex: 1;
}

/* ===== 单个问题项 ===== */
.page-faq .faq-item {
  display: block;
  margin-bottom: 0.6rem;
  border-radius: var(--faq-radius);
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-border-dim);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.page-faq .faq-item:hover {
  border-color: rgba(184, 41, 240, 0.4);
  box-shadow: 0 0 14px var(--faq-glow);
}

.page-faq .faq-item[open] {
  border-color: rgba(184, 41, 240, 0.5);
  box-shadow: 0 0 20px var(--faq-glow);
}

.page-faq .faq-item__question {
  display: block;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--faq-text-white);
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

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

.page-faq .faq-item__question::marker {
  display: none;
  content: '';
}

.page-faq .faq-item__question::before {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--faq-deco-purple);
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.page-faq .faq-item[open] .faq-item__question::before {
  transform: translateY(-50%) rotate(45deg);
  color: var(--faq-deco-green);
}

.page-faq .faq-item__question:hover {
  color: #e0e0e0;
}

.page-faq .faq-item__question:focus-visible {
  outline: 2px solid var(--faq-deco-purple);
  outline-offset: -2px;
  border-radius: var(--faq-radius) var(--faq-radius) 0 0;
}

.page-faq .faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 1.25rem;
  background: linear-gradient(180deg, rgba(22,27,34,0.4) 0%, rgba(10,25,47,0.3) 100%);
  border-top: 0 solid var(--faq-border-dim);
}

.page-faq .faq-item[open] .faq-item__answer {
  max-height: 320px;
  opacity: 1;
  padding: 1rem 1.25rem 1.25rem;
  border-top-width: 1px;
}

.page-faq .faq-item__answer p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--faq-text-silver);
  line-height: 1.7;
}

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

.page-faq .faq-link {
  color: var(--faq-deco-purple);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
}

.page-faq .faq-link:hover {
  color: var(--faq-deco-green);
  border-bottom-color: var(--faq-deco-green);
}

.page-faq .faq-link:focus-visible {
  outline: 2px solid var(--faq-deco-purple);
  outline-offset: 2px;
  border-radius: 2px;
}

.page-faq .faq-highlight {
  color: var(--faq-deco-green);
  font-weight: 600;
}

/* ===== 底部号召 ===== */
.page-faq .faq-cta {
  padding: 2.5rem 1.25rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #0D1117 0%, #0A192F 100%);
  border-top: 1px solid var(--faq-border-dim);
}

.page-faq .faq-cta__text {
  font-size: 1.05rem;
  color: var(--faq-text-silver);
  margin: 0 0 1.25rem;
}

.page-faq .faq-cta__btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--faq-text-white);
  background: var(--faq-deco-purple);
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(184,41,240,0.3);
}

.page-faq .faq-cta__btn:hover {
  background: #9a1fd6;
  box-shadow: 0 0 28px rgba(184,41,240,0.5);
  transform: scale(1.03);
}

.page-faq .faq-cta__btn:focus-visible {
  outline: 2px solid var(--faq-deco-green);
  outline-offset: 4px;
}

/* ===== 响应式 ===== */

/* ≥ 600px 窄平板 */
@media (min-width: 600px) {
  .page-faq .faq-hero {
    padding: 4rem 0 2.5rem;
  }

  .page-faq .faq-hero__title::after {
    width: 80px;
    height: 5px;
  }

  .page-faq .faq-hero__desc {
    font-size: 1.1rem;
  }

  .page-faq .faq-category__title {
    font-size: 1.45rem;
    padding-left: 1rem;
  }

  .page-faq .faq-category__icon {
    width: 50px;
    height: 50px;
  }

  .page-faq .faq-item__question {
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
  }

  .page-faq .faq-item__question::before {
    right: 1.5rem;
  }

  .page-faq .faq-item__answer {
    padding: 0 1.5rem;
  }

  .page-faq .faq-item[open] .faq-item__answer {
    padding: 1.1rem 1.5rem 1.35rem;
  }

  .page-faq .faq-tab {
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
  }

  .page-faq .faq-content {
    padding: 2.5rem 1.25rem 4rem;
  }
}

/* ≥ 960px 桌面 */
@media (min-width: 960px) {
  .page-faq .faq-hero {
    padding: 5rem 0 3rem;
  }

  .page-faq .faq-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-faq .faq-hero__text {
    max-width: 65%;
  }

  .page-faq .faq-hero__deco {
    display: block;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(184,41,240,0.2) 0%, transparent 100%);
    border: 1.5px solid rgba(57,255,20,0.2);
    border-radius: 12px;
    transform: rotate(12deg) translateY(-20px);
    position: relative;
  }

  .page-faq .faq-hero__deco::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,41,240,0.15);
    border-radius: 8px;
    transform: rotate(-6deg);
  }

  .page-faq .faq-hero__title::after {
    width: 100px;
  }

  .page-faq .faq-tabs {
    padding: 2rem 0 0.75rem;
  }

  .page-faq .faq-tabs__inner {
    gap: 1rem;
  }

  .page-faq .faq-tab {
    font-size: 0.95rem;
    padding: 0.6rem 1.6rem;
  }

  .page-faq .faq-content {
    padding: 3rem 1.25rem 5rem;
  }

  .page-faq .faq-category {
    margin-bottom: 3rem;
  }

  .page-faq .faq-category__title {
    font-size: 1.6rem;
    padding-left: 1.25rem;
    border-left-width: 5px;
  }

  .page-faq .faq-category__icon {
    width: 56px;
    height: 56px;
  }

  .page-faq .faq-item__question {
    font-size: 1.05rem;
    padding: 1.2rem 1.75rem;
  }

  .page-faq .faq-item__question::before {
    right: 1.75rem;
    font-size: 1.5rem;
  }

  .page-faq .faq-item__answer {
    padding: 0 1.75rem;
  }

  .page-faq .faq-item[open] .faq-item__answer {
    padding: 1.2rem 1.75rem 1.5rem;
  }

  .page-faq .faq-item__answer p {
    font-size: 0.95rem;
  }

  .page-faq .faq-cta {
    padding: 3rem 1.25rem 5rem;
  }

  .page-faq .faq-cta__text {
    font-size: 1.15rem;
  }

  .page-faq .faq-cta__btn {
    padding: 0.8rem 2.4rem;
    font-size: 1rem;
  }
}

/* ≥ 1200px 宽屏 */
@media (min-width: 1200px) {
  .page-faq .faq-hero {
    padding: 6rem 0 3.5rem;
  }

  .page-faq .faq-hero__deco {
    width: 130px;
    height: 130px;
  }

  .page-faq .faq-content {
    padding: 3.5rem 0 5.5rem;
  }
}
