/* 车辆卡片（买车页、首页共用，见 js/car-card.js） */
.cc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cc-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.18);
}

.cc-card:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.cc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.cc-media .cc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cc-card:hover .cc-img {
  transform: scale(1.03);
}

.cc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.cc-placeholder svg {
  width: 3rem;
  height: 3rem;
}

.cc-body {
  padding: 0.875rem 1rem 1rem;
}

.cc-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-price {
  margin: 0.25rem 0 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.cc-meta {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .cc-card:hover .cc-img { transform: none; }
}
