/* ============================================================
   product.css - 产品列表页样式
   前缀标识: zs
============================================================ */

/* ============================================================
   产品页Banner
============================================================ */
.zs-pbanner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.zs-pbanner img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-pbanner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
  /* 文案左对齐：左边距与页面内容区（max-width 1400px + 30px 内边距）对齐 */
  padding: 0 30px 0 max(30px, calc(50% - 670px));
  text-align: left;
}

.zs-pbanner-title {
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 3px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   分类Tab导航条 - 紧贴banner底部
============================================================ */
.zs-pcat-bar {
  background: #2e2650;
  padding: 0;
  position: relative;
  z-index: 5;
}

.zs-pcat-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 0;
}

.zs-pcat-tab {
  position: relative;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
  font-family: inherit;
}

.zs-pcat-tab::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
}

.zs-pcat-tab:last-child::after {
  display: none;
}

.zs-pcat-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.zs-pcat-tab.zs-pcat-active {
  background: #5B4A9E;
}

.zs-pcat-tab.zs-pcat-active::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #5B4A9E;
}

/* ============================================================
   产品列表区
============================================================ */
.zs-plist {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 30px 60px;
}

/* 分类板块 */
.zs-plist-section {
  margin-bottom: 50px;
}

.zs-plist-section:last-child {
  margin-bottom: 0;
}

/* 分类标题行 */
.zs-plist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.zs-plist-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e1440;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
}

.zs-plist-more {
  font-size: 13px;
  color: #5B4A9E;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.zs-plist-more:hover {
  color: #4a3b8a;
}

/* 产品网格 - 4列 */
.zs-plist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* 产品卡片 */
.zs-plist-card {
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zs-plist-card:hover {
  transform: translateY(-4px);
}

.zs-plist-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.zs-plist-card-img {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.zs-plist-card:hover .zs-plist-card-img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: #cccccc;
}

.zs-plist-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-plist-card-name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
}

.zs-plist-card:hover .zs-plist-card-name {
  color: #5B4A9E;
}

/* ============================================================
   响应式
============================================================ */
@media screen and (max-width: 1280px) {
  .zs-plist-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 1024px) {
  .zs-pbanner-title {
    font-size: 36px;
  }

  .zs-plist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .zs-pcat-tab {
    padding: 12px 18px;
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  .zs-pbanner-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  /* 分类Tab横向滚动 */
  .zs-pcat-inner {
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .zs-pcat-inner::-webkit-scrollbar {
    display: none;
  }

  .zs-pcat-tab {
    padding: 12px 16px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .zs-plist {
    padding: 24px 16px 40px;
  }

  .zs-plist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .zs-plist-title {
    font-size: 18px;
  }

  .zs-plist-card-name {
    font-size: 12px;
    margin-top: 8px;
  }

  .zs-plist-section {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 480px) {
  .zs-pbanner-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .zs-plist {
    padding: 20px 12px 30px;
  }

  .zs-plist-grid {
    gap: 12px;
  }

  .zs-plist-card-name {
    font-size: 11px;
  }
}

/* zs-pbanner 文案左对齐（小屏左边距） */
@media screen and (max-width: 768px) {
  .zs-pbanner-overlay {
    padding: 0 16px;
  }
}
