/* 文件：css/product-list.css */

/* ========== 页面 Banner ========== */
.page-banner {
  position: relative;
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #064E3B 0%, #047857 40%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.banner-overlay {
  display: none;
}
.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.banner-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 2px;
}
.breadcrumb {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .separator {
  margin: 0 6px;
}
.breadcrumb .current {
  color: #fff;
}

/* ========== 筛选栏 ========== */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  position: relative;
}
.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
  min-width: 60px;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 18px;
  border: 1px solid #ddd;
  border-radius: 22px;
  background: #fff;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: #07C160;
  color: #07C160;
}
.filter-tab.active {
  background: #07C160;
  color: #fff;
  border-color: #07C160;
}

/* 移动端折叠筛选 */
.filter-mobile-toggle {
  display: none;
}
.filter-mobile-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}
.btn-filter-toggle {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #f9f9f9;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-filter-toggle .arrow {
  font-size: 0.7rem;
  transition: transform 0.25s;
}
.btn-filter-toggle.open .arrow {
  transform: rotate(180deg);
}

/* ========== 产品卡片网格 ========== */
.product-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========== 产品卡片 ========== */
.product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.product-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 40%, #a5d6a7 100%);
  position: relative;
  overflow: hidden;
}
.product-card-img::after {
  content: 'LiPower';
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 0.75rem;
  color: rgba(0,0,0,0.15);
  font-weight: 700;
  letter-spacing: 2px;
}
.product-card-body {
  padding: 18px 20px;
}
.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 10px;
}
.product-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag-voltage {
  background: #E8F5E9;
  color: #07C160;
}
.tag-tier {
  background: #FFF3E0;
  color: #E65100;
}
.product-specs {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 8px;
}
.product-sellpoint {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
  min-height: 40px;
}
.product-card-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 18px;
}
.product-card-actions .btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}
.btn-quote {
  background: #FF6B00;
  color: #fff;
}
.btn-quote:hover {
  background: #E55D00;
}
.btn-detail {
  background: #fff;
  color: #07C160;
  border: 1.5px solid #07C160 !important;
}
.btn-detail:hover {
  background: #F0FFF4;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}
.empty-state .empty-icon {
  margin-bottom: 20px;
}
.empty-state p {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #666;
}
.empty-state .empty-sub {
  font-size: 0.9rem;
  color: #aaa;
}

/* ========== 分页 ========== */
.pagination-area {
  text-align: center;
  margin-top: 40px;
}
.btn-load-more {
  padding: 12px 48px;
  border: 1.5px solid #07C160;
  border-radius: 8px;
  background: #fff;
  color: #07C160;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-load-more:hover {
  background: #F0FFF4;
}
.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.loaded-all {
  display: inline-block;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #999;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 200px;
  }
  .banner-content h1 {
    font-size: 1.8rem;
  }
  .filter-bar {
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
  }
  /* PC 端筛选隐藏 */
  #voltage-filter-group,
  #tier-filter-group {
    display: none;
  }
  /* 移动端切换按钮 */
  .filter-mobile-toggle {
    display: block;
  }
  .filter-mobile-panel.show {
    display: flex;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-grid-section {
    padding: 20px 16px 40px;
  }
  .product-card-img {
    height: 180px;
  }
}
