.category-sidebar {
  width: 240px;
  padding: 18px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.86);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.category-item:hover {
  background: rgba(37, 99, 235, 0.10);
  color: rgba(15, 23, 42, 0.94);
  transform: translateY(-1px);
}

.category-item.active {
  background: rgba(37, 99, 235, 0.14);
  color: rgba(15, 23, 42, 0.96);
  font-weight: 650;
}

.content-area {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.40);
}

.breadcrumb a {
  color: rgba(15, 23, 42, 0.90);
  font-weight: 650;
  transition: color 160ms ease;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.breadcrumb span {
  color: rgba(15, 23, 42, 0.60);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  padding: 2px;
  isolation: isolate;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 28px rgba(2, 6, 23, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  z-index: 1;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 40px rgba(2, 6, 23, 0.18);
}

.product-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card .product-name {
  font-size: 15px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* 标准属性，提升兼容性 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.product-card .product-price {
  font-size: 18px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
}

.add-to-cart,
.add-to-cart-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 750;
  letter-spacing: 0.2px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.add-to-cart:hover,
.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  filter: brightness(1.02);
}

.add-to-cart:active,
.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

@media (max-width: 900px) {
  .category-sidebar {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
}


