/* ==========================================
   FAQ 常见问题页面样式
   ========================================== */

/* ========== 页面头部 ========== */
.faq-header {
  padding: 120px 0 60px;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.faq-header .container {
  position: relative;
  z-index: 1;
}

.faq-header .page-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease;
}

.faq-header .page-subtitle {
  font-size: 20px;
  margin-bottom: 24px;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.faq-header .breadcrumb {
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* ========== FAQ 主体布局 ========== */
.faq-section {
  padding: 80px 0;
  background: var(--bg-color);
}

/* FAQ 布局容器 */
.faq-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ========== 左侧边栏 ========== */
.faq-sidebar {
  flex-shrink: 0;
  width: 280px;
  position: sticky;
  top: 20px; /* 紧贴导航栏下方，留一点间距 */
  z-index: 10; /* 确保在内容之上，但在header(z-index:1000)之下 */
  max-height: calc(100vh - 100px); /* 限制最大高度，避免超出视口 */
  overflow-y: auto; /* 如果内容过多，允许滚动 */
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-left: 8px;
}

/* 分类导航 */
.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-category-btn {
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.faq-category-btn i {
  font-size: 18px;
  width: 24px;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.faq-category-btn span {
  flex: 1;
}

.faq-category-btn:hover {
  background: rgba(255, 107, 53, 0.05);
  border-color: transparent;
  transform: translateX(4px);
}

.faq-category-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.faq-category-btn.active i {
  color: var(--white);
}

/* ========== 右侧内容区域 ========== */
.faq-content {
  flex: 1;
  min-width: 0; /* 防止flex子项溢出 */
}

/* ========== FAQ 手风琴容器 ========== */
.faq-wrapper {
  width: 100%;
}

/* ========== FAQ 项目 ========== */
.faq-item {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  opacity: 1;
}

.faq-item.hide {
  display: none;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ========== FAQ 按钮（问题区域） ========== */
.faq-item .accordion-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 30px;
  background: #F7F9FC;
  border: none;
  border-radius: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.faq-item .accordion-button::after {
  display: none; /* 隐藏Bootstrap默认的箭头 */
}

.faq-item .accordion-button:hover {
  background: #EDF2F7;
}

.faq-item .accordion-button:focus {
  box-shadow: none;
  outline: none;
}

/* FAQ 激活状态（展开时） */
.faq-item .accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed) .faq-number {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.faq-item .accordion-button:not(.collapsed) .faq-icon {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-item .accordion-button:not(.collapsed) .faq-icon i::before {
  content: "\f068"; /* FontAwesome minus 图标 */
}

/* FAQ 编号 */
.faq-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

/* FAQ 问题文本 */
.faq-question {
  flex: 1;
  line-height: 1.5;
}

/* FAQ 图标 */
.faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  font-size: 16px;
  color: var(--primary-color);
  transition: all var(--transition-base);
}

/* ========== FAQ 内容区域 ========== */
.faq-item .accordion-body {
  padding: 30px 30px 35px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.8;
  border-top: 2px solid #F7F9FC;
}

.faq-item .accordion-body p {
  margin-bottom: 16px;
  color: var(--text-dark);
}

.faq-item .accordion-body p:last-child {
  margin-bottom: 0;
}

/* 列表样式 */
.faq-item .accordion-body ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.faq-item .accordion-body ul li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--text-dark);
}

.faq-item .accordion-body ul li i {
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent-color);
  font-size: 16px;
}

.faq-item .accordion-body ul li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* FAQ 提示信息 */
.faq-note {
  padding: 16px 20px;
  background: rgba(0, 212, 170, 0.1);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-md);
  margin-top: 20px !important;
  font-size: 14px;
  color: var(--text-dark);
}

.faq-note i {
  color: var(--accent-color);
  margin-right: 8px;
}

/* FAQ 高亮信息 */
.faq-highlight {
  padding: 16px 20px;
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  margin-top: 20px !important;
  font-size: 14px;
  color: var(--text-dark);
}

.faq-highlight i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* ========== FAQ 时间线 ========== */
.faq-timeline {
  margin: 24px 0;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  opacity: 0.3;
}

.timeline-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.timeline-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

/* ========== FAQ 网格布局 ========== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.faq-grid-item {
  padding: 20px;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

.faq-grid-item:hover {
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-4px);
}

.faq-grid-item .grid-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
}

.faq-grid-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-grid-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

/* ========== FAQ 联系方式 ========== */
.faq-contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.contact-method-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-method-item:hover {
  background: rgba(255, 107, 53, 0.05);
  transform: translateX(4px);
}

.contact-method-item .method-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--white);
}

.method-info {
  flex: 1;
}

.method-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.method-info p {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--text-dark);
}

.method-info p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.method-info .method-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== FAQ 数据统计 ========== */
.faq-stats {
  display: flex;
  justify-content: space-around;
  margin: 24px 0;
  padding: 30px 0;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-family-number);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* ========== FAQ 对比表格 ========== */
.faq-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.comparison-col {
  padding: 24px;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
}

.comparison-col h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-col h4 i {
  color: var(--primary-color);
  font-size: 22px;
}

.comparison-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-col ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}

.comparison-col ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 底部 CTA ========== */
.faq-cta {
  margin-top: 60px;
  padding: 0 20px;
}

.faq-cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 60px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 30px;
}

.faq-cta .cta-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.faq-cta .cta-text {
  flex: 1;
}

.faq-cta .cta-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-cta .cta-text p {
  margin: 0;
  font-size: 15px;
  color: var(--text-light);
}

.faq-cta .cta-actions {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1023px) {
  /* 平板：分类回到顶部 */
  .faq-layout {
    flex-direction: column;
    gap: 40px;
  }
  
  .faq-sidebar {
    width: 100%;
    position: static;
  }
  
  .sidebar-title {
    text-align: center;
  }
  
  .faq-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .faq-category-btn {
    justify-content: center;
  }
  
  .faq-category-btn:hover,
  .faq-category-btn.active {
    transform: translateX(0) translateY(-2px);
  }
  
  .faq-grid,
  .faq-contact-methods,
  .faq-comparison {
    grid-template-columns: 1fr;
  }
  
  .faq-cta-content {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  
  .faq-cta .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .faq-cta .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .faq-header {
    padding: 80px 0 40px;
  }
  
  .faq-header .page-title {
    font-size: 32px;
  }
  
  .faq-header .page-subtitle {
    font-size: 16px;
  }
  
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-layout {
    gap: 30px;
  }
  
  .sidebar-title {
    font-size: 16px;
  }
  
  .faq-categories {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
  
  .faq-category-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .faq-category-btn i {
    font-size: 16px;
  }
  
  .faq-item .accordion-button {
    padding: 20px;
    font-size: 16px;
    gap: 12px;
  }
  
  .faq-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .faq-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .faq-item .accordion-body {
    padding: 24px 20px;
    font-size: 14px;
  }
  
  .faq-item .accordion-body ul li {
    padding-left: 28px;
  }
  
  .faq-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .faq-cta {
    margin-top: 40px;
  }
  
  .faq-cta-content {
    padding: 30px 20px;
    gap: 20px;
  }
  
  .faq-cta .cta-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .faq-cta .cta-text h3 {
    font-size: 20px;
  }
  
  .faq-cta .cta-text p {
    font-size: 14px;
  }
}

