
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1a2b4c;
  --blue: #1559b7;
  --yellow: #ffc107;
  --red: #e63946;
  --gray-bg: #f5f7fa;
  --text: #1a2b4c;
  --text-muted: #666;
  --border: #e0e6ee;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息条 ===== */
.top-bar {
  background: var(--navy);
  color: #99a8bc;
  font-size: 12px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #fff; }
.top-bar span { margin: 0 10px; }

/* ===== 促销条 ===== */
.promo-bar {
  background: var(--yellow);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  text-align: center;
}

/* ===== 导航 ===== */
.nav {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
}
.logo span { color: var(--red); }
.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-menu a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
}

/* ===== 页面标题区 ===== */
.page-hero {
  background: var(--gray-bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 15px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.breadcrumb a { color: var(--blue); }

/* ===== 筛选+列表布局 ===== */
.list-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 40px 0;
}

/* ===== 左侧筛选 ===== */
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
}
.filter-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.filter-option:hover { color: var(--blue); }
.filter-option .count {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== 右侧列表 ===== */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.result-count {
  font-size: 14px;
  color: var(--text-muted);
}
.result-count strong { color: var(--navy); }
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
}

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

.car-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.car-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.car-img {
  position: relative;
  background: var(--gray-bg);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
}
.car-tag.new { background: #28a745; }
.car-tag.hot { background: var(--red); }
.car-tag.used { background: #6c757d; }

.car-info {
  padding: 15px;
}
.car-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.car-year {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.car-specs {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.car-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 2px;
}
.car-price-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.car-btn {
  display: block;
  text-align: center;
  background: var(--navy);
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}
.car-btn:hover {
  background: var(--blue);
  text-decoration: none;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}
.pagination a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ===== CTA区 ===== */
.cta-section {
  background: var(--navy);
  padding: 50px 0;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}
.cta-section p {
  color: #99a8bc;
  margin-bottom: 25px;
}
.cta-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 35px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 16px;
}
.cta-btn:hover { background: #e6a800; text-decoration: none; }

/* ===== Footer ===== */
.footer {
  background: #0f1a2e;
  color: #99a8bc;
  padding: 50px 0 20px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #99a8bc; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a3a55;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ===== WhatsApp悬浮球 ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;
  font-size: 28px;
  color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .list-layout {
    grid-template-columns: 1fr;
  }
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
}
@media (max-width: 480px) {
  .car-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 24px;
  }
}
