/* ===== 子导航产品列表页 ===== */
.category-main { padding: 8px 0 64px; }
.category-main .container { width: 76%; max-width: 1000px; }
.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: #999;
  font-size: 10px;
  line-height: 1.6;
}
.category-breadcrumb a:hover { color: #333; }
.category-breadcrumb__separator { color: #aaa; }
.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 26px;
}
.category-heading h1 {
  color: #222;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.3px;
}
.category-sort {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: #777;
  font-size: 10px;
}
.category-sort select {
  max-width: 130px;
  padding: 3px 18px 3px 3px;
  border: 0;
  background: #fff;
  color: #777;
  font: inherit;
  cursor: pointer;
  outline: none;
}
.category-sort select:focus-visible { outline: 1px solid #888; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 25px;
}
.category-card { min-width: 0; }
.category-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
}
.category-card__media-link { display: block; height: 100%; }
.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.category-card:hover .category-card__media img { transform: scale(1.025); }
.category-card__add {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .2s ease, transform .2s ease;
}
.category-card:hover .category-card__add,
.category-card:focus-within .category-card__add {
  opacity: 1;
  transform: translateY(0);
}
.category-card__add:hover { background: #222; }
.category-card__title {
  margin: 8px 0 3px;
  color: #222;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}
.category-empty {
  padding: 70px 0;
  color: #777;
  text-align: center;
}
.category-empty[hidden] { display: none; }
.category-toast {
  position: fixed;
  top: 42%;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 40px);
  padding: 16px 24px;
  border-radius: 5px;
  background: rgba(45, 48, 50, .9);
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -35%);
  transition: opacity .2s ease, transform .2s ease;
}
.category-toast.is-show { opacity: 1; transform: translate(-50%, -50%); }
.category-toast svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
}
@media (hover: none) {
  .category-card__add { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .category-main { padding-bottom: 44px; }
  .category-main .container { width: auto; }
  .category-heading { align-items: flex-start; margin: 20px 0; }
  .category-heading h1 { font-size: 21px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 480px) {
  .category-heading { flex-direction: column; gap: 10px; }
  .category-heading h1 { font-size: 20px; }
  .category-grid { gap: 20px 12px; }
  .category-card__title { font-size: 10px; }
  .category-card__add { height: 26px; font-size: 9px; }
}
