/* FAQ 页面样式 */
.sf-home {
  background: #fafbfc;
  color: #1f2a44; /* 覆盖base.css中的浅色文字 */
}

/* 确保FAQ页面内的所有文字在白色背景上都是深色 */
/* 标题区域保持白色文字（在深色背景上） */
.sf-home .faq-header,
.sf-home .faq-header * {
  color: #ffffff !important;
}

/* 内容区域使用深色文字（在白色背景上） */
.sf-home .faq-toc,
.sf-home .faq-block,
.sf-home .faq-cta {
  color: #1f2a44 !important;
}

/* 但链接保持蓝色 */
.sf-home .faq-list details p a {
  color: #1a73e8 !important;
}

/* 顶部标题区域 */
.faq-header {
  padding: 60px 20px 50px;
  text-align: center;
  background: linear-gradient(135deg, #31004b 0%, #1a73e8 100%);
  color: #ffffff;
  margin-bottom: 0;
}

.faq-header h1 {
  font-size: 42px;
  margin: 0 0 16px;
  font-weight: 700;
  color: #ffffff;
}

.faq-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* 目录导航 */
.faq-toc {
  padding: 30px 20px;
  border-bottom: 1px solid #e0e6ed;
  background: #ffffff;
  position: sticky;
  top: 64px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-toc nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.faq-toc nav a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #e0e6ed;
  border-radius: 24px;
  text-decoration: none;
  color: #1f2a44 !important; /* 强制深色 */
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  font-weight: 500;
}

.faq-toc nav a:hover {
  background: #1a73e8;
  color: #ffffff;
  border-color: #1a73e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

/* FAQ 内容区域 */
.faq-block {
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 20px;
  background: #ffffff;
  color: #1f2a44 !important; /* 确保文字是深色 */
}

.faq-block h2 {
  font-size: 28px;
  margin: 0 0 30px;
  color: #1f2a44 !important; /* 强制深色 */
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e6ed;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 18px 20px;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-list details:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.faq-list details[open] {
  border-color: #1a73e8;
  background: #f8f9ff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2a44 !important; /* 强制深色 */
  font-size: 16px;
  line-height: 1.6;
  padding: 4px 0;
  user-select: none;
  position: relative;
  padding-right: 24px;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: #1a73e8;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.faq-list details p {
  color: #5f6b85 !important; /* 强制深灰色 */
  margin: 16px 0 0;
  line-height: 1.8;
  font-size: 15px;
}

.faq-list details p a {
  color: #1a73e8 !important; /* 链接保持蓝色 */
  text-decoration: none;
  font-weight: 500;
}

.faq-list details p a:hover {
  color: #1557c7 !important; /* 悬停时深一点的蓝色 */
  text-decoration: underline;
}

/* 分隔线 */
.faq-divider {
  border-top: 1px solid #e0e6ed;
  margin: 40px 0;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA 区域 */
.faq-cta {
  padding: 50px 20px;
  border-top: 1px solid #e0e6ed;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.faq-cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.faq-cta p {
  margin: 0;
  color: #1f2a44 !important; /* 强制深色 */
  font-weight: 600;
  font-size: 20px;
}

.faq-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #1a73e8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.faq-btn-primary:hover {
  background: #1557c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
}

.faq-btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #e0e6ed;
  color: #1f2a44 !important; /* 强制深色 */
  text-decoration: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.2s ease;
}

.faq-btn-secondary:hover {
  border-color: #1a73e8;
  color: #1a73e8;
  background: #f8f9ff;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .faq-header h1 {
    font-size: 32px;
  }
  
  .faq-header p {
    font-size: 16px;
  }
  
  .faq-block {
    padding: 30px 16px;
  }
  
  .faq-block h2 {
    font-size: 24px;
  }
  
  .faq-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .faq-cta p {
    font-size: 18px;
  }
  
  .faq-cta-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .faq-btn-primary,
  .faq-btn-secondary {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }
}

