/* 
 * 搜索页面美化样式
 * 优化内容间隔和布局
 */

/* 搜索页面容器 */
#product-search {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* 搜索结果内容区域 */
#product-search #content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 搜索结果标题 */
#product-search h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  color: #333;
}

/* 产品网格容器 */
#product-search .product-wrapper {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* 产品项间隔 */
#product-search .product-layout {
  margin-bottom: 30px;
  padding-left: 10px;
  padding-right: 10px;
}

/* 产品卡片 */
#product-search .product-thumb {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

#product-search .product-thumb:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* 产品图片区域 */
#product-search .product-thumb .image {
  padding: 15px;
  background: #fafafa;
}

#product-search .product-thumb .image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 产品信息区域 */
#product-search .product-thumb .caption {
  padding: 20px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 产品名称 */
#product-search .product-thumb .product-name {
  height: auto;
  min-height: 40px;
  margin-bottom: 15px;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
}

#product-search .product-thumb .product-name a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

#product-search .product-thumb .product-name a:hover {
  color: #3498db;
  text-decoration: none;
}

/* 产品价格 */
#product-search .product-thumb .price {
  margin-top: auto;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* 评分区域 */
#product-search .product-thumb .rating {
  padding: 8px 0;
  margin-bottom: 10px;
}

/* 分页区域 */
#product-search .pagination {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* 结果统计 */
#product-search .results {
  margin-top: 30px;
  color: #666;
  font-size: 14px;
}

/* 无结果提示 */
#product-search p {
  padding: 40px 20px;
  text-align: center;
  font-size: 16px;
  color: #999;
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 20px;
}

/* 筛选栏 */
#product-search .filter-bar {
  margin-bottom: 25px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 列表视图样式 */
#product-search .product-list .product-thumb {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  padding: 20px;
}

#product-search .product-list .product-thumb .image {
  width: 220px;
  min-width: 220px;
  margin-right: 20px;
  padding: 0;
  background: transparent;
}

#product-search .product-list .product-thumb .caption {
  flex: 1;
  padding: 0;
  text-align: left;
}

#product-search .product-list .product-thumb .product-name {
  text-align: left;
  margin-bottom: 15px;
}

#product-search .product-list .product-thumb .product-description {
  display: block;
  margin-bottom: 15px;
  color: #666;
  line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
  #product-search #content {
    padding: 20px 15px;
  }
  
  #product-search .product-layout {
    padding-left: 7.5px;
    padding-right: 7.5px;
    margin-bottom: 20px;
  }
  
  #product-search .product-thumb .caption {
    padding: 15px 10px;
  }
  
  #product-search .product-thumb .product-name {
    min-height: 36px;
    font-size: 14px;
  }
  
  #product-search .product-thumb .price {
    font-size: 16px;
  }
  
  #product-search h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  /* 列表视图移动端 */
  #product-search .product-list .product-thumb {
    flex-direction: column;
    padding: 15px;
  }
  
  #product-search .product-list .product-thumb .image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  #product-search #content {
    padding: 15px 10px;
  }
  
  #product-search .product-layout {
    margin-bottom: 15px;
  }
  
  #product-search .product-thumb .image {
    padding: 10px;
  }
  
  #product-search .product-thumb .caption {
    padding: 12px 8px;
  }
}
