/* FAQ列表页样式 */

/* Hero区域 */
.hero.small {
  padding: 40px 0;
}

.hero.small h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero.small p {
  font-size: 16px;
}

/* 主内容区域 */
.main-content {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  padding-bottom: 50px;
}

/* FAQ列表 */
.faq-list {
  flex: 1;
}

/* 搜索区域 */
.search-section {
  margin-bottom: 20px;
}

.search-box {
  
}
.search-box form{
display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff7d00;
}

.search-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.search-btn:hover {
  opacity: 0.9;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-item {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-item:hover {
  border-color: #ff7d00;
  color: #ff7d00;
}

.tab-item.active {
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
  border-color: #ff7d00;
}

/* FAQ内容 */
.faq-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #f0f0f0;
}

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

.faq-item.hidden {
  display: none;
}

.faq-header {
  padding: 20px 24px;
  cursor: pointer;
  background: #fff;
  transition: background 0.3s ease;
}

.faq-header:hover {
  background: #fff8f0;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
  transition: color 0.3s ease;
}

.faq-question i {
  font-size: 14px;
  color: #ff7d00;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.expanded .faq-question i {
  transform: rotate(180deg);
}

.faq-question:hover {
  color: #ff7d00;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}

.faq-item.expanded .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px;
}

.faq-answer p {
  padding: 16px 24px;
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.faq-answer ol,
.faq-answer ul {
  padding: 0 24px 16px 48px;
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.faq-answer li {
  margin-bottom: 8px;
}

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

/* 城市列表 */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.city-list span {
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  font-size: 13px;
  color: #666;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: #ff7d00;
  color: #ff7d00;
}

.page-btn.active {
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  border-color: #ff7d00;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
  width: auto;
  padding: 0 14px;
}

/* 侧边栏 */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title i {
  color: #ff7d00;
}

/* 热门问题 */
.hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list a {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.hot-list a:hover {
  color: #ff7d00;
}

/* 分类列表 */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

.category-list a:hover {
  color: #ff7d00;
}

.category-list i {
  width: 20px;
  height: 20px;
  background: #fff8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ff7d00;
}

/* 联系客服 */
.contact-box {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.contact-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.contact-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.contact-btn:hover {
  opacity: 0.9;
}

.contact-info {
  padding-top: 16px;
  border-top: 1px solid #ffe4cc;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #666;
  margin: 8px 0;
}

.contact-info i {
  color: #ff7d00;
}

/* 快速链接 */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  padding: 8px 0;
}

.quick-links a {
  font-size: 14px;
  color: #666;
  transition: color 0.3s ease;
}

.quick-links a:hover {
  color: #ff7d00;
}

/* 响应式 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
  }
  
  .category-tabs {
    flex-wrap: wrap;
  }
  
  .tab-item {
    padding: 8px 14px;
    font-size: 13px;
  }
}
