/* ProductList页面专用样式 */
:root {
  --productlist-primary: #4caf50;
  --productlist-secondary: #2e7d32;
  --productlist-light: #e8f5e8;
  --productlist-gradient: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 25%, #68c583 50%, #4caf50 75%, #2e7d32 100%);
}

/* 产品列表页面背景 */
body {
  background: #ffffff;
}

/* 页面横幅 */
.page-hero {
  background: var(--productlist-gradient);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.page-hero h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

.page-hero .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* 面包屑导航 */
.breadcrumb-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  margin: 1rem auto;
  max-width: fit-content;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.breadcrumb-modern .breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-modern .breadcrumb-item a {
  color: var(--productlist-secondary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item.active {
  color: var(--productlist-primary);
  font-weight: 600;
}

/* 主要内容区域 */
.main-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 侧边栏样式 */
.sidebar {
  background: linear-gradient(135deg, rgba(168, 230, 207, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.sidebar-title {
  color: var(--productlist-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--productlist-primary);
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--productlist-secondary);
}

.category-group {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--productlist-primary);
  transition: all 0.3s ease;
}

.category-group:hover {
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
  transform: translateX(5px);
}

.category-title {
  color: var(--productlist-secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-title a {
  color: var(--productlist-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-title a:hover {
  color: var(--productlist-primary);
}

.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcategory-item {
  padding: 0.25rem 0;
}

.subcategory-item a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subcategory-item a:hover {
  color: var(--productlist-primary);
  padding-left: 0.5rem;
}

.product-count {
  background: var(--productlist-light);
  color: var(--productlist-secondary);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 产品列表头部 */
.products-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.products-title {
  color: var(--productlist-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-count {
  background: var(--productlist-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* 产品卡片样式 */
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(76, 175, 80, 0.1);
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
  border-color: var(--productlist-primary);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #f8f9fa;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.8) 0%, rgba(46, 125, 50, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.view-btn {
  background: white;
  color: var(--productlist-secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.product-card:hover .view-btn {
  transform: translateY(0);
}

.view-btn:hover {
  background: var(--productlist-primary);
  color: white;
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-title {
  color: var(--productlist-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-title a:hover {
  color: var(--productlist-primary);
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  height: 2.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 分页样式 */
.pagination-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.pagination {
  justify-content: center;
  margin: 0;
}

.page-item .page-link {
  border: none;
  color: var(--productlist-secondary);
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.page-item.active .page-link {
  background: var(--productlist-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.page-item .page-link:hover {
  background: var(--productlist-light);
  color: var(--productlist-secondary);
  transform: translateY(-2px);
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(168, 230, 207, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-radius: 15px;
  border: 2px dashed rgba(76, 175, 80, 0.3);
}

.empty-icon {
  font-size: 4rem;
  color: var(--productlist-primary);
  margin-bottom: 1rem;
}

.empty-title {
  color: var(--productlist-secondary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-description {
  color: #666;
  font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-hero {
    padding: 2rem 0;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
  }
  
  .main-content {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .sidebar {
    margin-bottom: 1rem;
  }
  
  .products-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .product-image-container {
    height: 180px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .pagination-container {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .product-image-container {
    height: 160px;
  }
  
  .page-item .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}