.page-faq {
  --faq-sidebar-width: 240px;
  background: var(--color-bg);
  min-height: 100vh;
}

/* ===== 面包屑 ===== */
.page-faq .breadcrumb {
  padding-top: 24px;
  padding-bottom: 4px;
}
.page-faq .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  font-family: var(--font-data);
}
.page-faq .breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.page-faq .breadcrumb a:hover {
  color: var(--color-accent);
}
.page-faq .breadcrumb li + li::before {
  content: "/";
  color: var(--color-neutral);
  margin-right: 6px;
}
.page-faq .breadcrumb li:last-child {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== 页面头部 ===== */
.page-faq .faq-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-light);
  padding: 44px 0 56px;
  overflow: hidden;
}
.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.24) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-faq .faq-hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent) 0 30%, var(--color-gold) 30% 65%, transparent 65% 100%);
  z-index: 1;
}
.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}
.page-faq .faq-hero-copy .section-kicker {
  color: var(--color-accent);
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-faq .faq-hero-copy h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.25;
  margin: 12px 0 16px;
  color: #fff;
}
.page-faq .faq-hero-copy p {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}
.page-faq .faq-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-main);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
}

/* ===== 高频问题区域 ===== */
.page-faq .faq-section {
  padding-top: 48px;
  padding-bottom: 8px;
}
.page-faq .section-heading {
  margin-bottom: 28px;
}
.page-faq .section-desc {
  margin-top: 6px;
  color: #4a5868;
}
.page-faq .faq-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

/* ===== 左侧分类导航 ===== */
.page-faq .faq-category-nav {
  background: linear-gradient(180deg, var(--color-primary) 0%, #0d2548 100%);
  border-radius: 20px 6px 20px 6px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.page-faq .faq-category-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.page-faq .faq-category-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px 3px 8px 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-faq .faq-category-nav a .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.55;
  flex-shrink: 0;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.page-faq .faq-category-nav a:hover,
.page-faq .faq-category-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.page-faq .faq-category-nav a.is-active {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}
.page-faq .faq-category-nav a.is-active .cat-dot {
  background: #fff;
  opacity: 1;
}

/* ===== 手风琴列表 ===== */
.page-faq .faq-accordion {
  counter-reset: faq-count;
  min-width: 0;
}
.page-faq .faq-category {
  scroll-margin-top: 28px;
  margin-bottom: 44px;
}
.page-faq .faq-cat-title {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 16px;
}
.page-faq .faq-cat-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: var(--color-accent);
}
.page-faq .faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-main);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}
.page-faq .faq-item[open] {
  border-color: rgba(11, 31, 58, 0.28);
}
.page-faq .faq-item:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22);
}
.page-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 16px 44px 16px 48px;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  transition: background 0.2s ease;
  border-radius: 16px 6px 16px 6px;
}
.page-faq .faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item summary::before {
  counter-increment: faq-count;
  content: counter(faq-count, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 18px;
  font-family: var(--font-data);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.page-faq .faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.page-faq .faq-item[open] > summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.page-faq .faq-item summary:hover {
  background: rgba(245, 247, 250, 0.6);
}
.page-faq .faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.8;
  transition: max-height 0.32s ease, padding 0.32s ease;
}
.page-faq .faq-item[open] .faq-answer {
  max-height: 600px;
  padding: 0 18px 18px 20px;
}
.page-faq .faq-answer p {
  margin: 8px 0 0;
}
.page-faq .faq-answer p:first-child {
  margin-top: 0;
}
.page-faq .faq-answer a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* ===== 数据导出示意图 ===== */
.page-faq .faq-export-visual {
  margin-bottom: 14px;
  border-radius: var(--radius-main);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
}
.page-faq .faq-export-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* ===== 自助服务索引 ===== */
.page-faq .self-serve-section {
  position: relative;
  background: var(--color-primary);
  color: var(--color-text-light);
  margin-top: 16px;
  padding-top: 56px;
  padding-bottom: 56px;
  overflow: hidden;
}
.page-faq .self-serve-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent) 0 30%, var(--color-gold) 30% 60%, transparent 60% 100%);
}
.page-faq .self-serve-section .section-title {
  color: #fff;
}
.page-faq .self-serve-section .section-kicker {
  color: var(--color-gold);
}
.page-faq .self-serve-section .section-desc {
  color: rgba(255, 255, 255, 0.78);
}
.page-faq .self-serve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
.page-faq .self-serve-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-main);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-faq .self-serve-card:hover,
.page-faq .self-serve-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  outline: none;
}
.page-faq .self-serve-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
}
.page-faq .self-serve-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5a6a7a;
}
.page-faq .self-serve-card .btn {
  margin-top: auto;
}
.page-faq .self-serve-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px 5px 14px 5px;
}
.page-faq .self-serve-icon svg {
  width: 22px;
  height: 22px;
}
.page-faq .self-serve-icon.is-orange {
  background: rgba(255, 107, 53, 0.12);
  color: var(--color-accent);
}
.page-faq .self-serve-icon.is-blue {
  background: rgba(27, 58, 107, 0.1);
  color: var(--color-primary);
}
.page-faq .self-serve-icon.is-gold {
  background: rgba(212, 175, 55, 0.14);
  color: #a8861b;
}
.page-faq .self-serve-icon.is-green {
  background: rgba(46, 204, 113, 0.15);
  color: #23a55d;
}

/* ===== 联系支持 ===== */
.page-faq .contact-support-section {
  padding-top: 56px;
  padding-bottom: 72px;
}
.page-faq .contact-support-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 24px 8px 24px 8px;
  padding: 32px;
  color: #fff;
  display: grid;
  gap: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-faq .contact-support-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-faq .contact-support-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent) 0 25%, var(--color-gold) 25% 50%, transparent 50% 100%);
  pointer-events: none;
}
.page-faq .contact-support-info {
  position: relative;
  z-index: 1;
}
.page-faq .contact-support-info .section-kicker {
  color: var(--color-gold);
}
.page-faq .contact-support-info .section-title {
  color: #fff;
}
.page-faq .contact-support-info > p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}
.page-faq .contact-support-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 12px;
}
.page-faq .contact-support-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-small);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}
.page-faq .contact-support-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.page-faq .contact-support-list strong {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}
.page-faq .contact-support-note {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-main);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-faq .contact-support-note p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 56px 0 64px;
  }
  .page-faq .faq-hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .page-faq .faq-hero-copy h1 {
    font-size: 2.5rem;
  }
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-width) 1fr;
    gap: 32px;
  }
  .page-faq .faq-category-nav {
    position: sticky;
    top: 20px;
  }
  .page-faq .contact-support-card {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 44px 48px;
  }
}

@media (min-width: 640px) {
  .page-faq .self-serve-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .page-faq .self-serve-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item summary::after,
  .page-faq .faq-item .faq-answer,
  .page-faq .self-serve-card {
    transition: none;
  }
  .page-faq .self-serve-card:hover,
  .page-faq .self-serve-card:focus-visible {
    transform: none;
  }
}
