@charset "utf-8";
/*
 * BlueSAO 产品检索页面样式
 * Product Search Interface
 */

/* ========================================
   页面标题
   ======================================== */
.ps-page-title {
  text-align: center;
  margin-bottom: 30px;
}

.ps-page-title h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0;
}

/* ========================================
   搜索栏
   ======================================== */
.ps-search-bar {
  max-width: 680px;
  margin: 0 auto 40px;
}

.ps-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ps-search-input-wrapper {
  flex: 1;
  position: relative;
}

.ps-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #86868b;
  font-size: 15px;
  pointer-events: none;
}

.ps-search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  font-size: 15px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.3s;
  outline: none;
  box-sizing: border-box;
}

.ps-search-input:focus {
  border-color: #3399ff;
  box-shadow: 0 0 0 3px rgba(51,153,255,0.1);
}

.ps-search-input::placeholder {
  color: #999;
}

.ps-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.ps-search-clear:hover {
  color: #333;
  text-decoration: none;
}

.ps-search-btn {
  height: 44px;
  padding: 0 28px;
  background: #3399ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ps-search-btn:hover {
  background: #2270cc;
}

.ps-search-btn:active {
  transform: translateY(1px);
}

/* ========================================
   搜索结果信息
   ======================================== */
.ps-results-section {
  max-width: 1140px;
  margin: 0 auto;
}

.ps-results-info {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
}

.ps-results-info strong {
  color: #3399ff;
  font-weight: 600;
  font-size: 17px;
}

/* ========================================
   产品列表
   ======================================== */
.ps-product-list {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ps-product-item {
  display: block;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-product-item:hover {
  border-color: #3399ff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  text-decoration: none;
}

.ps-product-item:active {
  transform: translateY(-1px);
}

/* 产品图片 */
.ps-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-product-item:hover .ps-product-img img {
  transform: scale(1.05);
}

.ps-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ccc;
  font-size: 40px;
}

/* 产品信息 */
.ps-product-info {
  padding: 14px 16px 16px;
  border-top: 1px solid #f0f0f0;
}

.ps-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.ps-product-item:hover .ps-product-name {
  color: #3399ff;
}

.ps-product-category {
  font-size: 12px;
  color: #999;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   空结果
   ======================================== */
.ps-no-results {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
  border-radius: 8px;
}

.ps-no-results i {
  color: #ccc;
  margin-bottom: 20px;
}

.ps-no-results h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.ps-no-results p {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* ========================================
   分页
   ======================================== */
.ps-results-section .pagination {
  margin-top: 30px;
  margin-bottom: 30px;
}

.ps-results-section .pagination li a {
  color: #3399ff;
  border-color: #e1e8ed;
  padding: 8px 15px;
}

.ps-results-section .pagination li a:hover {
  background-color: #3399ff;
  color: #ffffff;
  border-color: #3399ff;
}

.ps-results-section .pagination li.active a {
  background-color: #3399ff;
  border-color: #3399ff;
  color: #ffffff;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板 (768px - 1199px) */
@media (max-width: 1199px) {
  .ps-product-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* 手机横屏 / 小平板 (480px - 768px) */
@media (max-width: 768px) {
  .ps-page-title {
    margin-bottom: 20px;
  }

  .ps-page-title h1 {
    font-size: 22px;
  }

  .ps-search-bar {
    margin-bottom: 30px;
  }

  .ps-search-input {
    height: 40px;
    font-size: 14px;
  }

  .ps-search-btn {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
  }

  .ps-product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ps-product-info {
    padding: 10px 12px 12px;
  }

  .ps-product-name {
    font-size: 13px;
  }

  .ps-product-img img {
    padding: 12px;
  }

  .ps-results-info {
    font-size: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
}

/* 手机竖屏 (最大 480px) */
@media (max-width: 480px) {
  .ps-page-title h1 {
    font-size: 20px;
  }

  .ps-search-form {
    flex-direction: column;
  }

  .ps-search-input-wrapper {
    width: 100%;
  }

  .ps-search-btn {
    width: 100%;
  }

  .ps-product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ps-product-info {
    padding: 8px 10px 10px;
  }

  .ps-product-name {
    font-size: 12px;
  }

  .ps-product-category {
    font-size: 11px;
  }

  .ps-product-img img {
    padding: 10px;
  }

  .ps-no-results {
    padding: 50px 15px;
  }

  .ps-no-results h3 {
    font-size: 16px;
  }
}
