/* Breadcrumb */
.zs-breadcrumb {
  padding: 1.5rem 7%;
  background-color: var(--color-bg-soft);
  font-size: 0.875rem;
}

.zs-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
}

.zs-breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.zs-breadcrumb li a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.zs-breadcrumb li a:hover {
  text-decoration: underline;
}

.zs-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-text-subtle);
}

/* Hero Section */
.zs-product-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.zs-product-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zs-product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zs-product-hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding-left: 7%;
  color: #fff;
}

.zs-product-hero-content h1 {
  font-size: 3.5rem; /* 放大标题 */
  font-weight: 700;
  margin-bottom: 1.5rem; /* 增加一点标题和段落的间距 */
  line-height: 1.2;
}

.zs-product-hero-content p {
  font-size: 1.5rem; /* 放大段落文案 */
  line-height: 1.5;
  font-weight: 400;
}

/* Product Grid */
.zs-product-grid-section {
  padding: 4rem 3% 0 3%; /* 左右留空 3% */
  background-color: var(--color-bg-soft); /* 浅灰色背景通栏 */
}

.zs-product-grid-section--last {
  padding-bottom: 4rem;
}

.zs-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

.zs-product-card {
  flex: 0 0 calc(33.333% - 1.333rem);
  display: flex;
  flex-direction: column;
  background: #FFF; /* 确保卡片背景与外层浅灰一致 */
  margin-bottom: 60px;
}

.zs-product-card-img {
  width: 100%;
  height: 25rem;
  overflow: hidden;
}

.zs-product-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

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

.zs-product-card-desc {
  padding: 2.5rem; /* 加大内边距 */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.zs-product-card-desc h3 {
  font-size: 1.25rem; /* 减小标题字号 */
  font-weight: 700;
  color: var(--color-text-strong);
  margin-top: 0;
  margin-bottom: 0; /* 减小与下方文字的间隙 */
}

.zs-product-card-desc p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.zs-product-link {
  font-weight: 700;
  color: #000;
  text-decoration: underline; /* 默认下划线 */
  text-decoration-color: var(--color-primary); /* 红色下划线 */
  text-underline-offset: 4px; /* 调整下划线距离 */
  font-size: 1rem;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  align-self: flex-start; /* 让链接不撑满整行，保持其自然宽度 */
}

.zs-product-link:hover {
  color: var(--color-primary); /* 鼠标悬停时文字变红 */
  text-decoration: none; /* 鼠标悬停时移除下划线 */
}

/* Pagination */
.zs-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.zs-pager {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.zs-pager-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--color-text-strong);
  font-weight: 500;
  font-size: 1rem;
  background-color: transparent;
  transition: all 0.3s ease;
}

.zs-pager-item a:hover {
  background-color: var(--color-border);
}

.zs-pager-item.is-active a {
  background-color: var(--color-primary);
  color: #fff;
}

.zs-pager-item--previous a,
.zs-pager-item--next a {
  font-size: 1.5rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .zs-product-card {
    flex: 0 0 calc(50% - 1rem);
  }
  .zs-product-hero-content {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .zs-product-card {
    flex: 0 0 100%;
  }
  .zs-product-hero-content {
    width: 100%;
    padding: 0 1.25rem;
  }
  .zs-product-hero-content h1 {
    font-size: 2rem;
  }
  .zs-product-hero-content p {
    font-size: 1rem;
  }
  .zs-product-grid-section {
    padding: 2rem 1.25rem 0 1.25rem;
  }
  .zs-product-grid-section--last {
    padding-bottom: 2rem;
  }
}
