/* 有车抱抱 · 网页版（引流站）—— 品牌视觉与海报一致 */
:root {
  --green: #0aa276;
  --green-deep: #0b6b52;
  --green-dark: #0a5c46;
  --gold: #ffd43b;
  --gold-light: #ffe978;
  --ink: #143b31;
  --muted: #6b7f78;
  --bg: #f4f8f6;
  --card: #ffffff;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

/* ---- 顶部 ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1ad1a2, #0aa276);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(14, 138, 102, 0.9);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { color: #fff; font-size: 18px; }
.brand-txt em { font-style: normal; color: rgba(255, 255, 255, 0.78); font-size: 11px; letter-spacing: 1.5px; }
.top-badge {
  font-size: 12px; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}

/* ---- 主视觉 ---- */
.hero {
  background: linear-gradient(160deg, #1ad1a2 0%, #0aa276 70%, #0a9a70 100%);
  padding: 26px 18px 30px;
  color: #fff;
}
.hero h1 { font-size: 30px; line-height: 1.28; font-weight: 800; letter-spacing: 0.5px; }
.hero .gold { color: var(--gold-light); }
.hero-sub { margin-top: 10px; font-size: 14px; opacity: 0.88; }

.offer {
  margin-top: 20px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.18);
}
.offer-free {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-deep); color: #fff;
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.offer-main { flex: 1 1 auto; min-width: 0; }
.offer-line1 { font-size: 15px; font-weight: 700; }
.offer-line2 { font-size: 30px; font-weight: 800; letter-spacing: 2px; line-height: 1.15; }
.offer-pills { display: flex; flex-direction: column; gap: 8px; }
.offer-pills span {
  background: var(--green-deep); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

.stats {
  margin-top: 20px;
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 12px 0;
}
.stat { flex: 1; text-align: center; }
.stat strong { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.stat span { font-size: 12px; opacity: 0.82; }

/* ---- 通用区块 ---- */
section h2 { font-size: 20px; font-weight: 800; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-sub { font-size: 13px; color: var(--muted); }

/* ---- 车源广场 ---- */
.plaza { padding: 24px 18px 8px; }
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.loading, .empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}
.car-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 59, 49, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.car-card:active { transform: scale(0.99); }
.car-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9efe7, #bfe4d6);
}
.car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-thumb .no-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: rgba(10, 92, 70, 0.35);
}
.car-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(10, 92, 70, 0.85);
}
.tag.grade { background: rgba(202, 138, 4, 0.92); }
.tag.sold { background: rgba(120, 120, 120, 0.85); }
.tag.demo { background: rgba(90, 90, 110, 0.55); border: 1px dashed rgba(255,255,255,0.85); padding: 2px 7px; }
.car-body { padding: 12px 14px 14px; }
.car-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.car-meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.car-foot { margin-top: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.car-price { font-size: 18px; font-weight: 800; color: #d9480f; }
.car-price em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.car-score { font-size: 12px; color: var(--green-deep); font-weight: 700; }
.more-btn {
  display: block; margin: 16px auto 0;
  padding: 10px 26px; font-size: 14px; font-weight: 700;
  color: var(--green-deep); background: #fff;
  border: 1.5px solid var(--green); border-radius: 999px;
  cursor: pointer;
}
.more-btn[hidden] { display: none; }
.more-btn:active { background: #eaf7f1; }
.plaza-tip { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---- 流程 ---- */
.steps { padding: 24px 18px 8px; }
.steps ol { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.steps li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 3px 10px rgba(20, 59, 49, 0.06);
}
.steps li b { font-size: 15px; color: var(--green-deep); }
.steps li span { font-size: 13.5px; color: var(--muted); }

/* ---- CTA ---- */
.cta { padding: 26px 18px 8px; }
.cta-card {
  background: linear-gradient(160deg, #1ad1a2, #0a9a70);
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
  color: #fff;
}
.cta-title { font-size: 22px; font-weight: 800; }
.cta-sub { margin-top: 6px; font-size: 14px; opacity: 0.88; }
.cta-free {
  margin-top: 14px;
  display: inline-block;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  color: var(--green-dark);
  font-size: 13px; font-weight: 800;
  padding: 8px 14px; border-radius: 999px;
}
.cta-pill {
  display: block;
  margin: 16px auto 0;
  width: fit-content;
  background: #fff; color: var(--green-deep);
  font-size: 15px; font-weight: 800;
  padding: 12px 26px; border-radius: 999px;
}

/* ---- 页脚 ---- */
.foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 18px 30px;
  font-size: 12.5px; color: var(--muted);
}
.foot a { color: var(--green-deep); text-decoration: none; font-weight: 700; }

@media (min-width: 720px) {
  .hero h1 { font-size: 40px; }
  .offer-line2 { font-size: 38px; }
  .car-grid { grid-template-columns: repeat(3, 1fr); }
}
