/*productlist页面css*/

/* 产品列表页英雄区背景图片 */
.plist-main .hero {
  background: url('../images/banner1.jpg') center/cover no-repeat;
}

/* 产品网格（4列，最多12条） */
/* 分类入口（产品中心封面页，仅此页面生效） */
.plist-section .cat-entries { margin-top: 24px; text-align: left; }
.plist-section .cat-row {
  display: flex;
  align-items: baseline; /* 使标签与链接文字基线对齐 */
  flex-wrap: wrap; /* 小屏时自动换行 */
  gap: 8px 16px;
}
.plist-section .cat-label {
  color: #374151; /* 稳重文本色 */
  font-weight: 500;
  line-height: 1.6; /* 与链接文字行高一致 */
  white-space: nowrap;
}
.plist-section .cat-grid {
  margin-top: 0; /* 与标签同排时取消上外边距，避免下沉 */
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  flex: 1 1 auto; /* 与标签同排时占据剩余空间 */
}
.plist-section .cat-card {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #374151;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  /* 下划线动画：默认隐藏，悬停显现 */
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px; /* 更精致的下划线粗细 */
  transition: color .2s ease, background-size .2s ease;
}
.plist-section .cat-card:hover { color: var(--brand-primary); background-size: 100% 1px; }
.plist-section .cat-card h3 { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; color: inherit; display: inline; }

/* 产品网格（4列，最多12条） */
.plist-section .plist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* 产品卡片 */
.plist-section .product-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  contain: paint;
  backface-visibility: hidden;
}
.plist-section .product-card:hover {
  box-shadow: 0 6px 20px rgba(17,24,39,0.08);
}

/* 主图 1:1 方形容器 */
.plist-section .product-thumb {
  display: block;
  text-decoration: none;
}
.plist-section .product-thumb .thumb-aspect {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 */
  background: #fafafa;
}
.plist-section .product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保持比例完整显示，避免 translate 亚像素模糊 */
  transform: none;
}

/* 文案与按钮 */
.plist-section .product-info {
  padding: 14px 16px 16px;
}
.plist-section .product-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.plist-section .product-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}
.plist-section .product-actions {
  margin-top: 12px;
}
.plist-section .plist-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
.plist-section .plist-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* 分页 */
.plist-section .plist-pagination {
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
}
.plist-section .pagination-list {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.plist-section .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px; /* pill */
  border: 1px solid #e6eef7; /* 更细更轻 */
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  line-height: 1; 
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.plist-section .page-link:hover {
  background: #f5faff; /* 轻微主色冷白 */
  border-color: #b7d3f5;
  color: var(--brand-primary);
}
.plist-section .page-item.active .page-link,
.plist-section .page-item.active .page-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.plist-section .page-item.disabled .page-link {
  color: #9ca3af;
  background: #f9fafb;
  border-color: #eef2f6;
  cursor: not-allowed;
  pointer-events: none;
}
.plist-section .page-link:focus-visible {
  outline: 2px solid rgba(0,114,206,.25);
  outline-offset: 2px;
}

/* 响应式断点 */
/* 响应式：分类入口 */
@media (max-width: 1200px) { .plist-section .plist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .plist-hero .container { padding-top: 40px; padding-bottom: 40px; }
  /* 使用通用hero-title样式，已移除特殊字体大小 */
  .plist-section .plist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px;}
}