/* ========================================
   常见问题页面样式
======================================== */

/* Hero区域 */
.zs-faq-hero {
  position: relative;
  height: 36rem;
  overflow: hidden;
}

.zs-faq-hero-bg {
  position: absolute;
  inset: 0;
}

.zs-faq-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.zs-faq-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-faq-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 36rem;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--zs-white);
}

.zs-faq-hero-text h1 {
  font-size: 3.5rem;
  color: var(--zs-white);
  margin-bottom: 0.7rem;
}

.zs-faq-hero-text p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 700px;
  opacity: 0.95;
}

.zs-faq-hero-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  opacity: 0.8;
}

/* FAQ内容区域 */
.zs-faq-section {
  padding: 5rem 2rem;
  background: var(--zs-light-gray);
}

.zs-faq-container {
  max-width: 1180px;
  margin: 0 auto;
}

.zs-faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.zs-faq-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.zs-faq-header p {
  color: var(--zs-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ列表 */
.zs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zs-faq-item {
  background: var(--zs-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.zs-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.7rem 2.25rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.zs-faq-question:hover {
  background: var(--zs-light-gray);
}

.zs-faq-question h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.zs-faq-question .zs-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.zs-faq-item.active .zs-faq-question .zs-arrow {
  transform: rotate(90deg);
}

.zs-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.zs-faq-item.active .zs-faq-answer {
  max-height: 500px;
}

.zs-faq-answer-inner {
  padding: 0 2.25rem 1.7rem;
  color: var(--zs-gray);
  line-height: 1.8;
}

/* 响应式 */
@media (max-width: 768px) {
  .zs-faq-hero {
    height: auto;
    min-height: 480px;
  }

  .zs-faq-hero-content {
    min-height: 480px;
  }

  .zs-faq-hero-text h1 {
    font-size: 2rem;
  }

  .zs-faq-section {
    padding: 3rem 1rem;
  }

  .zs-faq-question {
    padding: 1.2rem 1.5rem;
  }

  .zs-faq-question h3 {
    font-size: 1rem;
  }

  .zs-faq-answer-inner {
    padding: 0 1.5rem 1.2rem;
  }
}
