/* =============================================================================
   常见问题页（lists_single_faq.htm）— 问答折叠（details/summary）
   依赖：style.css :root 与 .container（与全站同宽，勿额外限制 max-width）
   ============================================================================= */

.page-faq {
  color: var(--zg-text-secondary);
}

.page-faq .fq-main {
  padding-top: 0;
}

/* -----------------------------------------------------------------------------
   Hero：全幅 Banner + 底栏面包屑
   ----------------------------------------------------------------------------- */
.fq-hero {
  position: relative;
}

.fq-hero-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #0a1628;
}

.fq-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fq-breadcrumb {
  background: var(--zg-gray-100);
  border-bottom: 1px solid var(--zg-border);
}

.fq-breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 0 13px;
  font-size: 13px;
  color: var(--zg-text-muted);
}

.fq-bc-link {
  color: var(--zg-text-secondary);
  transition: color 0.2s;
}

.fq-bc-link:hover {
  color: var(--zg-blue);
}

.fq-bc-sep {
  color: #b0b6bf;
}

.fq-bc-current {
  color: var(--zg-text);
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   主内容
   ----------------------------------------------------------------------------- */
.fq-page-bg {
  background: linear-gradient(180deg, #e8ecf1 0%, #e2e7ee 40%, #dfe5ec 100%);
  padding: clamp(28px, 5vw, 48px) 0 clamp(56px, 8vw, 88px);
}

.fq-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.5vw, 32px);
}

.fq-card {
  margin: 0;
  padding: clamp(22px, 3.2vw, 36px) clamp(20px, 3vw, 40px);
  background: var(--zg-white);
  border-radius: var(--zg-radius-lg);
  border: 1px solid var(--zg-border);
  box-shadow: var(--zg-shadow-card);
}

/* 顶部导航卡 */
.fq-nav-fig {
  margin: 0 0 18px;
  border-radius: var(--zg-radius-md);
  overflow: hidden;
  border: 1px solid var(--zg-border);
  background: var(--zg-gray-100);
}

.fq-nav-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 470;
  object-fit: cover;
  display: block;
}

.fq-nav-cap {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--zg-text-muted);
  background: var(--zg-gray-50);
  border-top: 1px solid var(--zg-border);
}

.fq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.fq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--zg-text-secondary);
  background: var(--zg-gray-50);
  border: 1px solid var(--zg-border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.fq-pill:hover {
  border-color: var(--zg-blue);
  color: var(--zg-blue);
  background: var(--zg-white);
}

.fq-pill--current {
  background: var(--zg-blue);
  border-color: var(--zg-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 220, 0.22);
  cursor: default;
}

.fq-nav-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--zg-text-muted);
}

.fq-inline-tel {
  color: var(--zg-blue);
  font-weight: 700;
  text-decoration: none;
}

.fq-inline-tel:hover {
  text-decoration: underline;
}

/* 分区标题 */
.fq-sec-title {
  margin: 0 0 clamp(14px, 2vw, 18px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--zg-border);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  color: var(--zg-text);
  line-height: 1.35;
}

/* 问答列表 */
.fq-qalist {
  border: 1px solid var(--zg-border);
  border-radius: var(--zg-radius-md);
  overflow: hidden;
  background: var(--zg-gray-50);
}

.fq-item {
  border-bottom: 1px solid var(--zg-border);
}

.fq-item:last-child {
  border-bottom: none;
}

.fq-item > summary {
  list-style: none;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
  color: var(--zg-text);
  cursor: pointer;
  background: var(--zg-white);
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.fq-item > summary::-webkit-details-marker {
  display: none;
}

.fq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--zg-text-muted);
  border-bottom: 2px solid var(--zg-text-muted);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.25s, border-color 0.2s;
}

.fq-item[open] > summary {
  background: rgba(13, 110, 220, 0.06);
  color: var(--zg-blue);
}

.fq-item[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--zg-blue);
}

.fq-item > summary:hover {
  background: rgba(13, 110, 220, 0.04);
}

.fq-item > summary:focus {
  outline: none;
}

.fq-item > summary:focus-visible {
  outline: 2px solid var(--zg-blue);
  outline-offset: 2px;
}

.fq-a {
  padding: 0 18px 18px;
  background: var(--zg-white);
  border-top: 1px solid var(--zg-border);
}

.fq-a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--zg-text-secondary);
}

.fq-a p + p {
  margin-top: 10px;
}

.fq-a p:first-child {
  margin-top: 0;
}

.fq-a p:last-child {
  margin-bottom: 0;
}

.fq-empty {
  margin: 0;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--zg-text-muted);
  text-align: center;
  background: var(--zg-white);
}

/* 底部 CTA */
.fq-cta-card {
  text-align: center;
}

.fq-cta-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--zg-text);
}

.fq-cta-text {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--zg-text-secondary);
}

.fq-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--zg-radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.fq-btn:active {
  transform: scale(0.98);
}

.fq-btn--primary {
  background: var(--zg-blue);
  color: #fff;
  border-color: var(--zg-blue);
  box-shadow: 0 4px 14px rgba(13, 110, 220, 0.28);
}

.fq-btn--primary:hover {
  background: var(--zg-blue-hover);
  border-color: var(--zg-blue-hover);
  color: #fff;
}

.fq-btn--outline {
  background: var(--zg-white);
  color: var(--zg-text);
  border-color: var(--zg-border);
}

.fq-btn--outline:hover {
  border-color: var(--zg-blue);
  color: var(--zg-blue);
  background: var(--zg-blue-soft);
}

/* -----------------------------------------------------------------------------
   移动端
   ----------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .fq-hero-banner {
    height: 500px;
  }

  .fq-breadcrumb-inner {
    font-size: 12px;
  }

  .fq-card {
    padding: 18px 14px;
  }

  .fq-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .fq-pill {
    flex-shrink: 0;
  }

  .fq-item > summary {
    padding: 14px 14px;
    font-size: 14px;
  }

  .fq-a {
    padding: 0 14px 16px;
  }

  .fq-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fq-btn {
    width: 100%;
    justify-content: center;
  }
}
