.page-faq {
  --faq-accent: var(--accent-1);
  --faq-accent-2: var(--accent-2);
  --faq-gold: var(--accent-3);
  --faq-bg-glass: rgba(17, 34, 64, 0.78);
  --faq-bg-deep: rgba(10, 25, 47, 0.9);
  --faq-radius-lg: 18px;
  --faq-radius-sm: 10px;
  --faq-gap: 28px;
  --faq-sidebar-w: 280px;
  background:
    radial-gradient(ellipse 800px 400px at 90% 10%, rgba(123, 47, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 600px 300px at 10% 60%, rgba(0, 255, 163, 0.08), transparent 55%),
    var(--bg);
  padding-bottom: 80px;
  position: relative;
  overflow-x: hidden;
}

/* ===== 面包屑 ===== */
.page-faq .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.page-faq .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.page-faq .breadcrumb a:hover {
  color: var(--accent-1);
}

.page-faq .breadcrumb__sep {
  color: var(--accent-2);
  font-weight: 700;
}

/* ===== 首屏 Hero ===== */
.page-faq .faq-hero {
  padding-top: 44px;
  padding-bottom: 34px;
}

.page-faq .faq-hero__inner {
  max-width: 860px;
}

.page-faq .faq-hero .section__label {
  margin-bottom: 12px;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 18px;
  font-style: italic;
  text-shadow: 0 0 18px rgba(0, 255, 163, 0.25);
}

.page-faq .faq-hero__lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 720px;
  margin: 0 0 22px;
}

.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-hero__meta .tag {
  border: 1px solid rgba(123, 47, 255, 0.6);
  background: rgba(123, 47, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  padding: 5px 12px;
  letter-spacing: 0.05em;
}

.page-faq .faq-hero__visual {
  margin-top: 26px;
  border-radius: var(--faq-radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(17, 34, 64, 0.7), rgba(26, 26, 46, 0.85));
  border: 1px solid rgba(0, 255, 163, 0.12);
}

.page-faq .faq-hero__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 布局容器 ===== */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--faq-gap);
  align-items: start;
  padding-top: 8px;
}

/* ===== 侧边栏 ===== */
.page-faq .faq-sidebar {
  position: relative;
}

.page-faq .faq-sidebar__inner {
  background: var(--faq-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 163, 0.08);
  border-radius: var(--faq-radius-lg);
  padding: 24px 20px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.page-faq .faq-sidebar__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 255, 163, 0.15);
  text-transform: uppercase;
}

.page-faq .faq-sidebar .toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.page-faq .toc__link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.28s ease;
  letter-spacing: 0.03em;
}

.page-faq .toc__link:hover {
  color: var(--text-strong);
  background: rgba(0, 255, 163, 0.08);
  border-left-color: var(--accent-2);
}

.page-faq .toc__link--active {
  color: var(--accent-1);
  background: rgba(0, 255, 163, 0.1);
  border-left-color: var(--accent-1);
  font-weight: 700;
}

.page-faq .faq-sidebar__contact {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  text-align: center;
}

.page-faq .faq-sidebar__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.2), rgba(123, 47, 255, 0.2));
  color: var(--accent-3);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}

.page-faq .faq-sidebar__contact p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.page-faq .faq-sidebar__contact .btn--ghost {
  width: 100%;
  justify-content: center;
  border-color: rgba(123, 47, 255, 0.5);
  color: var(--text);
}

.page-faq .faq-sidebar__contact .btn--ghost:hover {
  border-color: var(--accent-2);
  background: rgba(123, 47, 255, 0.14);
  color: var(--text-strong);
}

.page-faq .faq-sidebar__note {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

.page-faq .faq-sidebar__note::before {
  content: "⚡ ";
  color: var(--accent-1);
}

/* ===== 内容主体 ===== */
.page-faq .faq-content {
  display: flex;
  flex-direction: column;
  gap: 42px;
  min-width: 0;
}

.page-faq .faq-chapter {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.page-faq .faq-chapter__head {
  margin-bottom: 18px;
  padding: 0 2px;
}

.page-faq .faq-chapter__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.22), rgba(123, 47, 255, 0.22));
  color: var(--accent-1);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 255, 163, 0.15);
}

.page-faq .faq-chapter h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-strong);
  margin: 8px 0 10px;
  letter-spacing: 0.02em;
  border-left: 4px solid var(--accent-2);
  padding-left: 14px;
}

.page-faq .faq-chapter__head > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
  max-width: 680px;
}

/* ===== FAQ 手风琴组 ===== */
.page-faq .faq-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-faq .faq-item {
  border-radius: var(--faq-radius-lg);
  background: var(--faq-bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-faq .faq-item:hover {
  border-color: rgba(0, 255, 163, 0.22);
  box-shadow: 0 4px 24px rgba(0, 255, 163, 0.06);
}

.page-faq .faq-item[data-open] {
  border-color: rgba(0, 255, 163, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 255, 163, 0.1), 0 8px 30px rgba(0, 0, 0, 0.25);
}

.page-faq .faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-strong);
  transition: background 0.25s ease;
}

.page-faq .faq-item__trigger:hover {
  background: rgba(0, 255, 163, 0.05);
}

.page-faq .faq-item__q {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.page-faq .faq-item__icon {
  flex-shrink: 0;
  color: var(--accent-2);
  transition: transform 0.35s ease, color 0.3s ease;
}

.page-faq .faq-item:hover .faq-item__icon {
  color: var(--accent-1);
}

.page-faq .faq-item[data-open] .faq-item__icon {
  transform: rotate(180deg);
  color: var(--accent-1);
}

.page-faq .faq-item__panel {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.45s ease, padding 0.4s ease, opacity 0.36s ease, transform 0.36s ease;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-faq .faq-item[data-open] .faq-item__panel {
  max-height: 700px;
  padding: 0 20px 20px;
  opacity: 1;
  transform: translateY(0);
}

.page-faq .faq-item__panel p {
  margin: 10px 0;
}

.page-faq .faq-item__panel p:first-child {
  margin-top: 0;
}

.page-faq .faq-item__panel strong {
  color: var(--text-strong);
  font-weight: 700;
}

/* ===== 步骤列表 ===== */
.page-faq .faq-steps {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: faq-step;
}

.page-faq .faq-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
  padding: 8px 12px;
  background: rgba(10, 25, 47, 0.45);
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.page-faq .faq-steps li:hover {
  background: rgba(0, 255, 163, 0.07);
  border-left-color: var(--accent-1);
}

.page-faq .faq-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-2), rgba(123, 47, 255, 0.5));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
  box-shadow: 0 0 12px rgba(123, 47, 255, 0.25);
}

/* ===== 普通列表 ===== */
.page-faq .faq-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-faq .faq-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

.page-faq .faq-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-size: 16px;
  line-height: 1.4;
}

/* ===== 图片 ===== */
.page-faq .faq-figure {
  margin: 20px 0 0;
  padding: 12px;
  background: var(--faq-bg-deep);
  border: 1px solid rgba(123, 47, 255, 0.2);
  border-radius: var(--faq-radius-lg);
  transition: border-color 0.35s ease;
}

.page-faq .faq-figure:hover {
  border-color: rgba(123, 47, 255, 0.45);
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: calc(var(--faq-radius-lg) - 6px);
}

.page-faq .faq-figure figcaption {
  padding: 12px 6px 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
}

.page-faq .faq-figure--wide {
  max-width: 640px;
}

/* ===== 安全提示 ===== */
.page-faq .faq-security-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--faq-radius-lg);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 92, 92, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.28);
}

.page-faq .faq-security-note__icon {
  flex-shrink: 0;
  color: var(--faq-gold);
  margin-top: 2px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.3));
}

.page-faq .faq-security-note strong {
  display: block;
  color: var(--faq-gold);
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.page-faq .faq-security-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* ===== 底部引导 ===== */
.page-faq .faq-bottom {
  margin-top: 10px;
  padding: 30px 28px;
  border-radius: var(--faq-radius-lg);
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.92), rgba(26, 26, 46, 0.9));
  border: 1px solid rgba(0, 255, 163, 0.16);
  text-align: center;
}

.page-faq .faq-bottom h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-strong);
}

.page-faq .faq-bottom p {
  margin: 0 auto 20px;
  max-width: 500px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

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

.page-faq .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.page-faq .btn--primary {
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.95), rgba(0, 220, 145, 0.95));
  color: #06281D;
  box-shadow: 0 6px 22px rgba(0, 255, 163, 0.22);
}

.page-faq .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 163, 0.32);
}

.page-faq .btn--ghost {
  background: transparent;
  border: 1px solid rgba(123, 47, 255, 0.5);
  color: var(--text-strong);
}

.page-faq .btn--ghost:hover {
  border-color: var(--accent-2);
  background: rgba(123, 47, 255, 0.12);
  transform: translateY(-2px);
}

/* ===== 响应式：平板以上 ===== */
@media (min-width: 900px) {
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-w) minmax(0, 1fr);
    gap: 40px;
  }

  .page-faq .faq-sidebar__inner {
    padding: 28px 22px;
  }

  .page-faq .faq-content {
    gap: 54px;
  }

  .page-faq .faq-chapter__head {
    padding: 0 4px;
  }

  .page-faq .faq-item__trigger {
    padding: 20px 24px;
  }

  .page-faq .faq-item__q {
    font-size: 17px;
  }

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

  .page-faq .faq-item[data-open] .faq-item__panel {
    padding: 0 24px 22px;
  }

  .page-faq .faq-bottom {
    padding: 36px 40px;
  }

  .page-faq .faq-figure {
    padding: 16px;
  }

  .page-faq .faq-figure figcaption {
    padding: 14px 8px 8px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-hero__inner {
    max-width: 960px;
  }

  .page-faq .faq-hero {
    padding-top: 56px;
    padding-bottom: 40px;
  }
}

/* ===== 移动端窄屏 ===== */
@media (max-width: 399px) {
  .page-faq .faq-item__trigger {
    padding: 16px 14px;
  }

  .page-faq .faq-item__panel,
  .page-faq .faq-item[data-open] .faq-item__panel {
    padding: 0 14px 16px;
  }

  .page-faq .faq-hero h1 {
    font-size: 1.9rem;
  }

  .page-faq .faq-bottom {
    padding: 24px 18px;
  }

  .page-faq .faq-bottom__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-faq .faq-bottom__actions .btn {
    justify-content: center;
  }

  .page-faq .faq-steps li {
    padding: 8px;
  }
}
