/* ===== FAQ 页面专属样式 ===== */
.page-faq {
  --faq-hero-bg: linear-gradient(135deg, #0A2647 0%, #1E3A5F 100%);
  --faq-accent-bg: #FFF8F0;
  --faq-border-light: #E8EDF2;
  --faq-shadow-card: 0 2px 12px rgba(10, 38, 71, 0.08);
  --faq-shadow-card-hover: 0 4px 20px rgba(10, 38, 71, 0.12);
  --faq-arrow-color: #FF6B35;
  display: block;
  background-color: #F5F7FA;
}

/* ===== Hero 区域 ===== */
.page-faq .faq-hero {
  background: var(--faq-hero-bg);
  padding: 40px 0 32px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-faq .faq-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.page-faq .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.page-faq .breadcrumb-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.page-faq .breadcrumb-link:hover {
  color: #FF6B35;
}

.page-faq .breadcrumb-sep {
  color: rgba(255,255,255,0.4);
}

.page-faq .breadcrumb-current {
  color: #FF6B35;
  font-weight: 600;
}

.page-faq .faq-hero-text {
  max-width: 720px;
}

.page-faq .faq-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.page-faq .faq-hero-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 640px;
}

.page-faq .faq-hero-image {
  margin-top: 8px;
  border-radius: 0;
  overflow: hidden;
  max-width: 800px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}

/* ===== 主体内容容器 ===== */
.page-faq .faq-body {
  padding-top: 48px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== 手风琴组 ===== */
.page-faq .faq-group {
  background: #FFFFFF;
  box-shadow: var(--faq-shadow-card);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease;
  border: 1px solid #E2E8F0;
}

.page-faq .faq-group:hover {
  box-shadow: var(--faq-shadow-card-hover);
}

.page-faq .faq-group-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #0A2647;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #FF6B35;
  letter-spacing: -0.3px;
  position: relative;
}

/* ===== 手风琴项容器 ===== */
.page-faq .faq-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== 单个手风琴项 ===== */
.page-faq .faq-item {
  display: block;
  border-bottom: 1px solid #E2E8F0;
  transition: background 0.2s ease;
}

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

/* ===== 问题标题（可点击区域） ===== */
.page-faq .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
  position: relative;
}

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

.page-faq .faq-question::marker {
  display: none;
  content: "";
}

/* 按压效果 */
.page-faq .faq-question:active {
  background: #F0F3F7;
  transform: scale(0.99);
}

.page-faq .faq-question-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: #0A2647;
  flex: 1;
  letter-spacing: -0.2px;
}

/* ===== 箭头图标 ===== */
.page-faq .faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #FF6B35;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-faq .faq-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* 展开时箭头旋转 */
.page-faq .faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

/* ===== 答案区域 ===== */
.page-faq .faq-answer {
  padding: 0 0 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #4A5568;
  max-width: 720px;
  transition: background 0.3s ease;
}

.page-faq .faq-item[open] .faq-answer {
  background: #FFF8F0;
  padding: 16px 20px 20px;
  margin: 0 -20px 0;
  border-left: 4px solid #FF6B35;
}

.page-faq .faq-answer p {
  margin: 0 0 12px;
}

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

.page-faq .faq-inline-link {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.page-faq .faq-inline-link:hover {
  color: #CC552A;
  border-bottom-color: #CC552A;
}

/* ===== 答案内图片 ===== */
.page-faq .faq-answer-img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 16px 0 0;
  border: 1px solid #E2E8F0;
  object-fit: cover;
  object-position: center;
}

/* ===== 滚动显现动画 ===== */
.page-faq .faq-group {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-faq .faq-group.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 错峰延迟 */
.page-faq .faq-group:nth-child(2) { transition-delay: 0.05s; }
.page-faq .faq-group:nth-child(3) { transition-delay: 0.10s; }
.page-faq .faq-group:nth-child(4) { transition-delay: 0.15s; }
.page-faq .faq-group:nth-child(5) { transition-delay: 0.20s; }

/* ===== 移动端窄屏适配 ===== */
@media (max-width: 767px) {
  .page-faq .faq-hero {
    padding: 28px 0 24px;
  }

  .page-faq .faq-hero-title {
    font-size: 28px;
  }

  .page-faq .faq-hero-desc {
    font-size: 15px;
  }

  .page-faq .faq-hero-image {
    max-width: 100%;
    margin-top: 4px;
  }

  .page-faq .faq-hero-img {
    max-height: 180px;
  }

  .page-faq .faq-body {
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 24px;
  }

  .page-faq .faq-group {
    padding: 20px 16px;
  }

  .page-faq .faq-group-title {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .page-faq .faq-question {
    padding: 14px 0;
  }

  .page-faq .faq-question-text {
    font-size: 15px;
  }

  .page-faq .faq-icon svg {
    width: 16px;
    height: 16px;
  }

  .page-faq .faq-answer {
    font-size: 15px;
  }

  .page-faq .faq-item[open] .faq-answer {
    padding: 12px 14px 16px;
    margin: 0 -14px 0;
  }

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

  /* 移动端错峰延迟减半 */
  .page-faq .faq-group:nth-child(2) { transition-delay: 0.03s; }
  .page-faq .faq-group:nth-child(3) { transition-delay: 0.06s; }
  .page-faq .faq-group:nth-child(4) { transition-delay: 0.09s; }
  .page-faq .faq-group:nth-child(5) { transition-delay: 0.12s; }
}

/* ===== 桌面端增强 ===== */
@media (min-width: 768px) {
  .page-faq .faq-hero-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .page-faq .faq-hero-text {
    flex: 1 1 55%;
    max-width: 620px;
  }

  .page-faq .faq-hero-image {
    flex: 0 0 auto;
    width: 360px;
    max-width: 40%;
    margin-top: 0;
    margin-left: 24px;
  }

  .page-faq .faq-hero-img {
    max-height: 260px;
  }

  .page-faq .faq-group {
    padding: 36px 32px;
  }

  .page-faq .faq-group-title {
    font-size: 26px;
  }

  .page-faq .faq-question {
    padding: 20px 0;
  }

  .page-faq .faq-question-text {
    font-size: 18px;
  }

  .page-faq .faq-item[open] .faq-answer {
    padding: 20px 24px 24px;
    margin: 0 -24px 0;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero-image {
    width: 400px;
  }

  .page-faq .faq-hero-img {
    max-height: 280px;
  }

  .page-faq .faq-body {
    padding-top: 56px;
    padding-bottom: 96px;
    gap: 48px;
  }

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

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-group {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-faq .faq-group.is-visible {
    opacity: 1;
    transform: none;
  }

  .page-faq .faq-icon {
    transition: none;
  }

  .page-faq .faq-question:active {
    transform: none;
  }

  .page-faq .faq-answer {
    transition: none;
  }
}
