/* ==================== 产品中心页面样式 ==================== */

/* 基础容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Banner轮播 ========== */
.product-center__banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: #000;
}

.product-center__banner-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-center__banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.product-center__banner-slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.product-center__banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 轮播指示器 */
.product-center__banner-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.product-center__banner-indicator {
  position: relative;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
  border: none;
  overflow: hidden;
}

.product-center__banner-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #D0021B;
  transition: width 0.4s ease;
}

.product-center__banner-indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.product-center__banner-indicator--active {
  background-color: rgba(255, 255, 255, 0.5);
}

.product-center__banner-indicator--active::before {
  width: 100%;
}

/* ========== 面包屑导航 ========== */
.product-center__breadcrumb {
  padding: 20px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #E5E5E5;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666666;
}

.breadcrumb__icon {
  flex-shrink: 0;
  margin-right: 4px;
}

.breadcrumb__link {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: #D0021B;
}

.breadcrumb__separator {
  color: #999999;
}

.breadcrumb__current {
  color: #333333;
}

/* ========== 页面标题 ========== */
.product-center__header {
  padding: 40px 0;
  text-align: center;
  background-color: #ffffff;
}

.product-center__title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin: 0;
  line-height: 1.5;
}

/* ========== 产品系统图标栏 ========== */
.product-center__systems {
  /* 复用首页system-buttons样式，无需额外样式 */
}

/* ========== 产品分类标签 ========== */
.product-center__category {
  padding: 50px 0 30px;
  text-align: center;
  background-color: #F5F5F5;
}

.product-center__category-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.product-center__category-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-center__tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  background-color: #F5F5F5;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-center__tab:hover {
  background-color: #E8E8E8;
}

.product-center__tab--active {
  background-color: #D0021B;
  color: #ffffff;
}

.product-center__tab--active:hover {
  background-color: #B00118;
}

/* ========== 产品列表区 ========== */
.product-center__products {
  padding: 40px 0 80px;
  background-color: #F5F5F5;
}

.product-center__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* 产品卡片 */
.product-center__card {
  display: flex;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-center__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 文字区域 - 左侧 40% */
.product-center__card-content {
  flex: 0 0 40%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background-color: #ffffff;
}

.product-center__card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin: 0;
  line-height: 1.5;
}

.product-center__card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin: 0;
}

.product-center__card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #D0021B;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.product-center__card-link:hover {
  gap: 8px;
  color: #B00118;
}

.product-center__card-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 图片区域 - 右侧 60% */
.product-center__card-image {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  aspect-ratio: 4 / 3;
}

.product-center__card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-center__card:hover .product-center__card-image img {
  transform: scale(1.05);
}

/* ========== 合作客户区 ========== */
.product-center__partners {
  padding: 80px 0;
  background-color: #ffffff;
}

.product-center__partners-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  margin: 0 0 50px 0;
  line-height: 1.5;
}

.product-center__partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  align-items: center;
}

.product-center__partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.product-center__partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.product-center__partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==================== 响应式设计 ==================== */

/* 平板端 (≤960px) */
@media (max-width: 960px) {
  .product-center__banner {
    height: 380px;
  }

  .product-center__banner-indicators {
    bottom: 20px;
    gap: 10px;
  }

  .product-center__banner-indicator {
    width: 35px;
    height: 3px;
  }

  .product-center__title {
    font-size: 20px;
  }

  .product-center__category-title {
    font-size: 16px;
  }

  .product-center__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-center__partners-title {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .product-center__partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* 手机端 (≤640px) */
@media (max-width: 640px) {
  .product-center__banner {
    height: 280px;
  }

  .product-center__banner-indicators {
    bottom: 15px;
    gap: 8px;
  }

  .product-center__banner-indicator {
    width: 30px;
    height: 3px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .product-center__header {
    padding: 30px 0;
  }

  .product-center__title {
    font-size: 18px;
  }

  .product-center__category {
    padding: 40px 0 20px;
  }

  .product-center__category-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .product-center__category-tabs {
    gap: 8px;
  }

  .product-center__tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .product-center__products {
    padding: 30px 0 60px;
  }

  .product-center__grid {
    gap: 20px;
  }

  .product-center__card {
    flex-direction: column;
  }

  .product-center__card-content {
    flex: 0 0 auto;
    padding: 20px;
    gap: 12px;
  }

  .product-center__card-title {
    font-size: 15px;
  }

  .product-center__card-desc {
    font-size: 13px;
  }

  .product-center__card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .product-center__partners {
    padding: 60px 0;
  }

  .product-center__partners-title {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .product-center__partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-center__partner-logo img {
    max-height: 60px;
  }
}
