/* 产品中心页面样式 */

/* 空白内容区域样式 */
.empty-content {
  padding: 100px 0;
  text-align: center;
  background-color: #f8f9fc;
  border-radius: 10px;
  margin: 50px 0;
}

.empty-content h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.empty-content p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* 产品分类导航 */
.product-categories-nav {
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
  z-index: 100;
  padding: 15px 0;
  margin-bottom: 40px;
}

.category-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.category-tab i {
  font-size: 24px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.category-tab span {
  font-size: 14px;
  font-weight: 500;
}

.category-tab:hover, .category-tab.active {
  background-color: rgba(30, 94, 255, 0.05);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.category-tab:hover i, .category-tab.active i {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* 产品分类部分 */
.product-section {
  padding: 60px 0;
  position: relative;
  scroll-margin-top: 150px; /* 为锚点导航提供滚动偏移 */
}

.product-section:nth-child(even) {
  background-color: #f8f9fc;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.category-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  box-shadow: 0 10px 20px rgba(30, 94, 255, 0.2);
}

.category-icon i {
  font-size: 30px;
  color: #fff;
}

.category-title h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.category-title p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
}

/* 产品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(30, 94, 255, 0.15);
}

.product-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-view {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(30, 94, 255, 0.3);
}

.product-card:hover .btn-view {
  transform: translateY(0);
}

.btn-view:hover {
  box-shadow: 0 8px 20px rgba(30, 94, 255, 0.4);
  transform: translateY(-3px);
}

.product-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-content h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 12px;
}

.product-card-content h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.product-card-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  background-color: rgba(30, 94, 255, 0.08);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.product-card:hover .tag {
  background-color: rgba(30, 94, 255, 0.15);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .category-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
  }
  
  .category-tab {
    min-width: 120px;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .category-header {
    flex-direction: column;
    text-align: center;
  }
  
  .category-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .product-categories-nav {
    top: 60px;
    padding: 10px 0;
  }
  
  .category-tab {
    padding: 8px 15px;
  }
  
  .category-tab i {
    font-size: 20px;
  }
  
  .category-tab span {
    font-size: 12px;
  }
  
  .product-section {
    padding: 40px 0;
    scroll-margin-top: 120px;
  }
  
  .category-header h2 {
    font-size: 24px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}