.cars-heading {
  min-height: 520px;
  padding: 230px 0 130px;
  text-align: left;
  background-image: url(../images/home-hero-automotive-growth-v2.jpg);
  background-position: center 62%;
}

.cars-heading:after {
  background: linear-gradient(90deg, rgba(5, 13, 25, .9) 0%, rgba(7, 25, 48, .64) 46%, rgba(8, 21, 36, .28) 100%);
}

.cars-heading-copy {
  max-width: 720px;
}

.cars-heading .hero-kicker {
  display: inline-flex;
  width: auto;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.cars-heading h1 {
  margin-bottom: 15px;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.cars-heading p {
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.8;
}

.cars-catalog {
  padding: 90px 0 120px;
  background: #f4f7fb;
}

.catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: #007cf5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.catalog-intro h2 {
  margin-bottom: 14px;
  color: #132236;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.catalog-intro p {
  max-width: 680px;
  color: #6f7b8a;
  line-height: 1.8;
}

.catalog-total {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid #e5ebf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 55, 92, .06);
}

.catalog-total strong {
  color: #007cf5;
  font-size: 34px;
  line-height: 1;
}

.catalog-total span {
  color: #778495;
  font-size: 14px;
  font-weight: 600;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 24px 26px;
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 45px rgba(24, 54, 91, .07);
}

.filter-topline {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf1f6;
}

.car-search {
  position: relative;
  margin: 0;
}

.car-search i {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #8b97a7;
  transform: translateY(-50%);
}

.car-search input,
.sort-control select {
  width: 100%;
  height: 46px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #24364a;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.car-search input {
  padding: 0 16px 0 46px;
}

.car-search input:focus,
.sort-control select:focus {
  border-color: #66b4ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,124,245,.1);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.sort-control span {
  color: #728094;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sort-control select {
  min-width: 170px;
  padding: 0 36px 0 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.filter-row + .filter-row {
  margin-top: 10px;
}

.filter-label {
  flex: 0 0 58px;
  color: #536176;
  font-size: 14px;
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: #f1f4f8;
  color: #556477;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.filter-chip:hover {
  color: #007cf5;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: #007cf5;
  color: #fff;
  box-shadow: 0 7px 16px rgba(0,124,245,.22);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 20px;
  color: #526174;
  font-size: 14px;
  font-weight: 700;
}

.results-bar small {
  color: #98a3b0;
  font-size: 12px;
  font-weight: 500;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.car-card {
  overflow: hidden;
  border: 1px solid #e2e9f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 32px rgba(23, 47, 76, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.car-card:hover {
  border-color: rgba(0,124,245,.24);
  box-shadow: 0 18px 44px rgba(23, 47, 76, .14);
  transform: translateY(-5px);
}

.car-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #dfe8f3, #f4f7fb);
}

.car-photo:after {
  content: "车型图片";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: #8b9aac;
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.car-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.car-card:hover .car-photo img {
  transform: scale(1.035);
}

.car-photo.image-failed img {
  display: none;
}

.car-badge,
.fuel-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.car-badge {
  left: 14px;
  background: rgba(12,25,42,.72);
  color: #fff;
}

.fuel-badge {
  right: 14px;
  background: rgba(255,255,255,.9);
  color: #376784;
}

.fuel-badge:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #24a66a;
  vertical-align: 1px;
}

.car-card-body {
  padding: 22px 22px 21px;
}

.car-brand {
  margin-bottom: 4px;
  color: #8b97a6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.car-card h3 {
  color: #17263a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 14px;
  color: #6c798a;
  font-size: 12px;
}

.car-spec span + span:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 10px;
  background: #d9e0e9;
  vertical-align: -1px;
}

.car-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid #edf1f5;
}

.car-price > span {
  padding-bottom: 4px;
  color: #8a96a5;
  font-size: 12px;
}

.car-price p {
  color: #f04f3f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.car-price strong {
  margin-right: 3px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.empty-state {
  padding: 80px 20px;
  border: 1px dashed #ccd6e3;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.empty-state i {
  margin-bottom: 18px;
  color: #a2afbd;
  font-size: 32px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #27384d;
  font-size: 20px;
  font-weight: 700;
}

.empty-state p {
  color: #7c8998;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .cars-heading {
    min-height: 470px;
    padding: 200px 0 110px;
  }

  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cars-heading {
    min-height: 430px;
    padding: 170px 0 85px;
    background-position: 58% center;
  }

  .cars-heading h1 {
    font-size: 40px;
  }

  .cars-heading p {
    font-size: 16px;
  }

  .cars-catalog {
    padding: 64px 0 80px;
  }

  .catalog-intro {
    align-items: flex-start;
  }

  .catalog-intro h2 {
    font-size: 31px;
  }

  .catalog-total {
    display: none;
  }

  .filter-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .filter-topline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sort-control {
    display: grid;
    grid-template-columns: 48px 1fr;
  }

  .filter-row {
    align-items: flex-start;
  }

  .filter-label {
    padding-top: 9px;
  }

  .results-bar small {
    display: none;
  }

  .car-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .cars-heading h1 {
    font-size: 35px;
  }

  .filter-row {
    display: block;
  }

  .filter-label {
    display: block;
    margin-bottom: 8px;
    padding-top: 0;
  }

  .filter-chip {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .car-card,
  .car-photo img,
  .filter-chip {
    transition: none;
  }
}
