/* 智能问答系统样式 */
.qa-section {
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('../img/bg_6.jpg') no-repeat center/cover;
  padding: 4rem 2rem;
  position: relative;
  min-height: 100vh;
}

.qa-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 2rem;
}

/* 搜索框部分 */
.qa-search {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.qa-search-input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.qa-search-input:focus {
  outline: none;
  border-color: #D42B2B;
  box-shadow: 0 2px 15px rgba(212, 43, 43, 0.15);
}

.qa-search-button {
  background-color: #D42B2B;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0 1.5rem;
  margin-left: -50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.qa-search-button:hover {
  background-color: #b82424;
}

.qa-search-button i {
  margin-right: 0.5rem;
}

/* 热门问题部分 */
.qa-popular {
  margin-bottom: 2rem;
}

.qa-popular-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.qa-popular-title i {
  margin-right: 0.5rem;
  color: #D42B2B;
}

.qa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.qa-tag {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.qa-tag:hover {
  background-color: #f0f0f0;
  border-color: #D42B2B;
  transform: translateY(-2px);
}

.qa-tag.active {
  background-color: #D42B2B;
  color: white;
  border-color: #D42B2B;
}

/* 问答结果部分 */
.qa-result {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  overflow: hidden;
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.qa-result-header {
  background-color: #f8f9fa;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.qa-result-question {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.qa-result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
}

.qa-result-action {
  display: flex;
  align-items: center;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.qa-result-action:hover {
  color: #D42B2B;
}

.qa-result-content {
  padding: 1.5rem;
  line-height: 1.6;
}

.qa-result-answer {
  color: #333;
  white-space: pre-line;
}

.qa-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.qa-result-tag {
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

/* 相关问题部分 */
.qa-related {
  margin-bottom: 2rem;
  display: none;
  animation: fadeIn 0.5s ease;
}

.qa-related-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.qa-related-title i {
  margin-right: 0.5rem;
  color: #D42B2B;
}

.qa-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.qa-related-item {
  background-color: white;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.qa-related-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 加载动画 */
.qa-loading {
  display: none;
  text-align: center;
  padding: 3rem;
}

.qa-loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(212, 43, 43, 0.1);
  border-radius: 50%;
  border-top-color: #D42B2B;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.qa-loading-text {
  margin-top: 1rem;
  color: #666;
}

/* 空状态 */
.qa-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.qa-empty i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.qa-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.qa-empty-text {
  max-width: 500px;
  margin: 0 auto;
}

/* 标签过滤部分 */
.qa-filter {
  margin-bottom: 2rem;
  display: none;
}

.qa-filter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.qa-filter-title i {
  margin-right: 0.5rem;
  color: #D42B2B;
}

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

.qa-filter-tag {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qa-filter-tag:hover {
  background-color: #f0f0f0;
  border-color: #D42B2B;
}

.qa-filter-tag.active {
  background-color: #D42B2B;
  color: white;
  border-color: #D42B2B;
}

/* 语言切换按钮 */
.qa-language-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qa-language-toggle:hover {
  background-color: #f8f9fa;
}

.qa-language-toggle i {
  color: #D42B2B;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .qa-search {
    flex-direction: column;
  }
  
  .qa-search-input {
    border-radius: 8px;
    margin-bottom: 0.8rem;
  }
  
  .qa-search-button {
    margin-left: 0;
    width: 100%;
    border-radius: 8px;
  }
  
  .qa-result-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .qa-result-action {
    justify-content: center;
  }
  
  .qa-tags {
    gap: 0.5rem;
  }
  
  .qa-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}