/* 专用于产品网格卡片，确保1:1比例和内容居中 */

.product-card {
  aspect-ratio: 1 / 1;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #e9e3d2;
  box-shadow: 0 4px 24px 0 rgba(198,133,42,0.10), 0 2px 8px 0 rgba(0,0,0,0.05);
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  border-radius: 18px 18px 0 0;
}

.product-card .card-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 12px 14px 12px;
  text-align: center;
  min-height: 0;
}

.product-card h3 {
  margin: 0 0 0.5em 0;
  line-height: 1.5;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: #222;
}

.product-card .muted {
  margin: 0;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(108, 117, 125, 0.18), 0 4px 16px 0 rgba(0, 0, 0, 0.10);
}

@media (max-width: 900px) {
  .product-card { border-radius: 14px; }
  .product-card img { border-radius: 14px 14px 0 0; }
}

@media (max-width: 600px) {
  .product-card { border-radius: 10px; }
  .product-card img { border-radius: 10px 10px 0 0; }
}
