/* 案例展示页面增强样式 */

/* 项目类型筛选按钮 */
.case-filter-section {
  padding: 30px 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.case-filter-section .filter-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 15px;
}

.case-filter-section .filter-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.case-filter-section .filter-title span {
  color: #ff7019;
  margin-right: 10px;
}

.case-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.case-filter-buttons .filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 30px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.case-filter-buttons .filter-btn:hover {
  background: #fff;
  border-color: #ff7019;
  color: #ff7019;
}

.case-filter-buttons .filter-btn.active {
  background: #ff7019;
  border-color: #ff7019;
  color: #fff;
}

.case-filter-buttons .filter-btn .iconfont {
  margin-right: 8px;
  font-size: 18px;
}

/* 筛选结果统计 */
.filter-result-info {
  font-size: 14px;
  color: #999;
  padding: 15px 0;
}

.filter-result-info .count {
  color: #ff7019;
  font-weight: bold;
  margin: 0 5px;
}

/* 案例卡片增强 - 添加项目类型标签 */
.IndexCase_content_list .case-type-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  background: rgba(255, 112, 25, 0.9);
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  z-index: 10;
}

/* 案例卡片过渡动画 */
.IndexCase_content_list {
  transition: all 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

.IndexCase_content_list.hiding {
  opacity: 0;
  transform: scale(0.8);
}

.IndexCase_content_list.hidden {
  display: none !important;
}

/* 无结果提示 */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  width: 100%;
}

.no-results .iconfont {
  font-size: 60px;
  color: #ddd;
  display: block;
  margin-bottom: 20px;
}

.no-results p {
  font-size: 16px;
  margin-bottom: 10px;
}

.no-results .reset-filter {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background: #ff7019;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.no-results .reset-filter:hover {
  background: #e56010;
}

/* 分页样式增强 */
.page {
  text-align: center;
  padding: 40px 0 20px;
}

.page li {
  display: inline-block;
  margin: 0 5px;
}

.page li a {
  display: inline-block;
  min-width: 40px;
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  background: #f5f5f5;
  color: #666;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page li a:hover {
  background: #ff7019;
  color: #fff;
}

.page li.active a,
.page li a.page_class {
  background: #ff7019;
  color: #fff;
}

.page li a.next,
.page li a.prev {
  background: #eee;
}

.page li a.next:hover,
.page li a.prev:hover {
  background: #ff7019;
  color: #fff;
}

/* 加载更多按钮 */
.load-more-section {
  text-align: center;
  padding: 30px 0 50px;
}

.load-more-btn {
  display: inline-block;
  padding: 15px 50px;
  background: #f5f5f5;
  color: #666;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e5e5e5;
}

.load-more-btn:hover {
  background: #ff7019;
  color: #fff;
  border-color: #ff7019;
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.load-more-btn .loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* 分页信息 */
.pagination-info {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-top: 15px;
}

.pagination-info .current-page {
  color: #ff7019;
  font-weight: bold;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .case-filter-section {
    padding: 20px 0;
  }
  
  .case-filter-buttons {
    gap: 10px;
  }
  
  .case-filter-buttons .filter-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .page li a {
    min-width: 35px;
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
    font-size: 13px;
  }
  
  .load-more-btn {
    padding: 12px 35px;
    font-size: 14px;
  }
}
