/* product.html — 产品分类导航 + 图2 卡片列表 */

.pp-page {
  padding: 48px 0 88px;
  background: #f5f5f5;
}

.pp-inner {
  width: min(1300px, 92%);
  margin: 0 auto;
}

.pp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.pp-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: #1b3022;
}

.pp-crumb {
  margin: 0;
  font-size: 13px;
  color: #8a958e;
  white-space: nowrap;
}

.pp-crumb a {
  color: #5a6b60;
  text-decoration: none;
}

.pp-crumb a:hover {
  color: #2d6a3e;
  text-decoration: underline;
}

/* 图2：白底圆角产品卡片 */
.pp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  padding: 22px 22px 26px;
  text-decoration: none;
  color: inherit;
  min-height: 340px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.pp-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 48px);
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #afcbbf;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.pp-card-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0px 20px;
  min-height: 270px;
}

.pp-card-media img {
  display: block;
  max-width:100%;
  max-height: 270px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s ease;
}

.pp-card:hover .pp-card-media img {
  transform: scale(1.04);
}

.pp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-left: 2px;
}

.pp-card-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}

/* 图2：右下角绿色圆形箭头 */
.pp-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2d6a3e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
}

.pp-card:hover .pp-arrow {
  background: #245a33;
  transform: translateX(2px);
}

.pp-page-nav {
  margin-top: 36px;
  text-align: center;
}

/* 详情页同类别：一行 5 个 */
.pp-grid--5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pp-grid--5 .pp-card {
  min-height: 260px;
  border-radius: 18px;
  padding: 16px 14px 18px;
}

.pp-grid--5 .pp-card-media {
  min-height: 140px;
  padding: 28px 6px 12px;
}

.pp-grid--5 .pp-card-media img {
  max-height: 140px;
}

.pp-grid--5 .pp-card-name {
  font-size: 14px;
}

.pp-grid--5 .pp-arrow {
  width: 34px;
  height: 34px;
}

.pp-grid--5 .pp-badge {
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  font-size: 11px;
  height: 24px;
  padding: 0 10px;
}

@media (max-width: 960px) {
  .pp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pp-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pp-card {
    min-height: 280px;
    border-radius: 18px;
    padding: 16px 16px 20px;
  }

  .pp-card-media {
    min-height: 160px;
    padding-top: 40px;
  }

  .pp-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .pp-grid,
  .pp-grid--5 {
    grid-template-columns: 1fr;
  }

  /* 分类导航小屏换行 */
  .about-subnav .ab11 ul {
    flex-wrap: wrap;
  }

  .about-subnav .ab11 ul li {
    flex: 1 1 50%;
  }
}
