/* ============================================
   FAQ 页面专属样式
   ============================================ */

/* 面包屑导航 */
.faq-breadcrumb {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: hsl(var(--accent));
}

.breadcrumb-separator {
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
}

.breadcrumb-separator svg {
  width: 0.875rem;
  height: 0.875rem;
}

.breadcrumb-current {
  color: #222222;
  font-weight: 600;
  font-size: 0.875rem;
}

/* FAQ Hero 区域 */
.faq-hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.section-accent {
  width: 4rem;
  height: 0.25rem;
  background-color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222222;
  font-size: 2.5rem;
  line-height: 1.2;
}

.section-desc {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 36rem;
  margin: 0 auto;
}

/* 搜索和筛选区 */
.faq-search {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.faq-search-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  width: 1.25rem;
  height: 1.25rem;
}

.search-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 3rem;
  font-size: 1rem;
  color: #222222;
  background-color: #ffffff;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* 分类筛选 */
.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #222222;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--primary) / 0.5);
}

.filter-tag.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--primary));
}

/* 结果计数 */
.results-count {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.count-number {
  font-weight: 600;
  color: #222222;
}

/* FAQ 内容区 */
.faq-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.faq-content-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-section-header {
  margin-bottom: 0.5rem;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--accent) / 0.1);
  border: 1px solid hsl(var(--accent) / 0.3);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.faq-badge svg {
  color: hsl(var(--accent));
  width: 1rem;
  height: 1rem;
}

.faq-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--accent));
}

.faq-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222222;
}

/* 手风琴列表 */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: hsl(var(--card) / 0.5);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #222222;
  transition: all 0.2s ease;
}

.accordion-trigger:hover {
  color: hsl(var(--accent));
}

.accordion-question {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.question-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.question-icon.secondary {
  color: #222222;
}

.accordion-question span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.accordion-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-answer {
  background: #ffffff;
  padding: 0 1.5rem 1.5rem 3.25rem;
  color: #222222;
  font-size: 0.875rem;
  line-height: 1.75;
}

.accordion-answer p {
  margin: 0;
}

/* CTA 区域 */
.faq-cta {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  background-color: #ffffff;
}

.cta-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 1rem;
}

.cta-desc {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* 按钮样式补充 */
.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #222222;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

/* 响应式调整 */
@media (max-width: 768px) {
  .faq-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-desc {
    font-size: 1rem;
  }
  
  .faq-search {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .filter-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .accordion-trigger {
    padding: 1rem;
  }
  
  .accordion-answer {
    padding: 0 1rem 1rem 2.75rem;
  }
  
  .faq-cta {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
