/* 产品列表页 子导航：2排 × 每排6个，等宽、带边框 */
.zlm-grid {
  box-sizing: border-box;
}
.zlm-grid ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.zlm-grid ul li {
  width: 100%;
  display: block;
  font-size: 14px;
}
.zlm-grid ul li a {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #333;
  background: #ffffff;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  transition: all 0.25s ease;
}
.zlm-grid ul li a:hover,
.zlm-grid ul li a.cur {
  background-color: #d50f06;
  color: #ffffff;
  border-color: #d50f06;
}

/* 中等屏幕：4列 */
@media screen and (max-width: 992px) {
  .zlm-grid ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* 手机端：子导航改为下拉选择框 */
.zlm-mobile-select {
  display: none;
  width: 100%;
}
.zlm-mobile-select select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: #333;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .zlm-grid ul {
    display: none;
  }
  .zlm-mobile-select {
    display: block;
  }
}

/* ===== Product cards (product list & product detail) ===== */
/* Moved out of the templates' inline styles */

.rd-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.rd-card {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow .2s;
}

.rd-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.rd-card .card-img {
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rd-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-card .card-txt {
  padding: 12px 12px 14px;
  border-top: 1px solid #e7ebf0;
}

.rd-card .card-txt b {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: bold;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .rd-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rd-cards {
    grid-template-columns: 1fr;
  }
}
