:root {
  color-scheme: light;
  --blue: #1769ff;
  --blue-dark: #0754dd;
  --blue-soft: #eef4ff;
  --text: #131722;
  --muted: #667085;
  --subtle: #8a94a6;
  --border: #dfe4ec;
  --surface: #f5f7fa;
  --white: #ffffff;
  --price: #f05b28;
  --shadow: 0 18px 45px rgba(36, 62, 103, 0.1);
  --container: 1280px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  border-bottom: 1px solid rgba(223, 228, 236, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  justify-self: start;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  color: #303747;
  font-size: 16px;
  font-weight: 550;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.city-picker {
  position: relative;
}

.city-trigger,
.favorites-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}

.city-trigger > svg:first-child,
.favorites-trigger svg {
  width: 21px;
  height: 21px;
}

.city-trigger .chevron {
  width: 15px;
  height: 15px;
}

.favorites-trigger[aria-pressed="true"] {
  color: var(--blue);
}

.favorites-trigger[aria-pressed="true"] svg {
  fill: currentColor;
}

.city-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: 136px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.city-menu button {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.city-menu button:hover,
.city-menu button[aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}

.menu-toggle svg {
  width: 100%;
  height: 100%;
}

.hero {
  padding: 36px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  min-height: 440px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 42px 0 72px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #10131a;
  font-size: clamp(44px, 4.3vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero-copy > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.search-box {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  width: min(100%, 590px);
  height: 66px;
  margin-top: 44px;
  padding-left: 20px;
  border: 1px solid #cfd6e2;
  border-radius: 12px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.1);
}

.search-box > svg {
  width: 24px;
  height: 24px;
  color: #526077;
}

.search-box input {
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.search-box input::placeholder {
  color: #8d96a7;
}

.search-box button {
  align-self: stretch;
  min-width: 132px;
  margin: -1px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.search-box button:hover {
  background: var(--blue-dark);
}

.search-box button:active {
  transform: scale(0.98);
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 440px;
}

.hero-visual::after {
  position: absolute;
  right: -8%;
  bottom: 42px;
  left: 15%;
  z-index: -1;
  height: 70px;
  border-radius: 50%;
  background: rgba(42, 54, 74, 0.1);
  filter: blur(35px);
  content: "";
}

.hero-visual img {
  position: absolute;
  right: -11%;
  bottom: -1%;
  width: 116%;
  max-width: none;
  height: 112%;
  object-fit: contain;
  object-position: center bottom;
}

.filter-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 0.8fr;
  padding: 22px 26px;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(48, 66, 94, 0.06);
}

.filter-group {
  min-width: 0;
  padding-inline: 26px;
}

.filter-group:first-child {
  padding-left: 0;
}

.filter-group:last-child {
  padding-right: 0;
}

.filter-group + .filter-group {
  border-left: 1px solid var(--border);
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  font-size: 17px;
  font-weight: 700;
}

.filter-label svg {
  width: 22px;
  height: 22px;
  color: #354057;
}

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

.filter-options button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background: #fbfcfd;
  color: #566176;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: 160ms ease;
}

.filter-options button:hover {
  border-color: #a9c5ff;
  color: var(--blue);
}

.filter-options button.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(23, 105, 255, 0.18);
}

.section {
  padding: 74px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.ranking-panel h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.text-link,
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.text-link svg,
.article-link svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.text-link:hover svg,
.article-link:hover svg {
  transform: translateX(3px);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.model-card:hover {
  transform: translateY(-5px);
  border-color: #bdd0f5;
  box-shadow: 0 18px 40px rgba(48, 66, 94, 0.11);
}

.model-image {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: var(--white);
}

.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(213, 220, 231, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #5d687a;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.favorite-button svg {
  width: 100%;
  height: 100%;
}

.favorite-button[aria-pressed="true"] {
  border-color: #ffcfc2;
  background: #fff5f2;
  color: var(--price);
}

.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.model-card-body {
  padding: 0 20px 22px;
}

.model-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.model-price {
  margin: 9px 0 15px;
  color: var(--price);
  font-size: 15px;
  font-weight: 650;
}

.model-tags {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.model-tags span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1f3f6;
  color: #697386;
  font-size: 12px;
  font-weight: 550;
}

.model-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.model-detail svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.model-detail:hover svg {
  transform: translateX(3px);
}

.empty-state {
  padding: 56px 24px;
  border: 1px dashed #c9d2e0;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-size: 22px;
}

.empty-state p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.empty-state button {
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-weight: 650;
  cursor: pointer;
}

.ev-database {
  border-top: 1px solid #edf0f5;
  background: #f8faff;
}

.database-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.database-heading h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.database-heading > div > p {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.database-stats {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.database-stats div {
  min-width: 108px;
  padding: 4px 24px 4px 20px;
  border-left: 1px solid #dce4f1;
}

.database-stats div:last-child {
  padding-right: 0;
}

.database-stats dt {
  color: var(--subtle);
  font-size: 12px;
}

.database-stats dd {
  margin: 7px 0 0;
  color: #20283a;
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.database-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: var(--white);
}

.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.brand-filter button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f5f8;
  color: #5d687b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 160ms ease;
}

.brand-filter button:hover {
  border-color: #bfd2fa;
  color: var(--blue);
}

.brand-filter button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.database-controls {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.database-search {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  width: 210px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d8dfea;
  border-radius: 8px;
  background: var(--white);
}

.database-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.09);
}

.database-search svg {
  width: 17px;
  height: 17px;
  color: #6d7789;
}

.database-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.database-sort select {
  width: 152px;
  height: 38px;
  padding: 0 32px 0 11px;
  border: 1px solid #d8dfea;
  border-radius: 8px;
  outline: 0;
  background: var(--white);
  color: #4e596c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.database-sort select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.09);
}

.database-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 2px 10px;
  color: var(--muted);
  font-size: 12px;
}

.database-result-line strong {
  color: #30394a;
  font-size: 13px;
}

.database-table-shell {
  overflow-x: auto;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(54, 72, 103, 0.045);
  scrollbar-color: #b9c3d2 transparent;
  scrollbar-width: thin;
}

.database-table-shell:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.22);
  outline-offset: 3px;
}

.database-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #3c4658;
  font-size: 13px;
}

.database-table th,
.database-table td {
  padding: 15px 13px;
  border-bottom: 1px solid #e7ebf1;
  text-align: left;
  vertical-align: middle;
}

.database-table thead th {
  background: #f4f6f9;
  color: #707a8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.database-table th:first-child {
  width: 220px;
}

.database-table th:nth-child(2) {
  width: 132px;
}

.database-table th:nth-child(3) {
  width: 105px;
}

.database-table th:nth-child(4) {
  width: 116px;
}

.database-table th:nth-child(5) {
  width: 142px;
}

.database-table th:nth-child(6) {
  width: 126px;
}

.database-table th:nth-child(7) {
  width: 125px;
}

.database-table th:last-child {
  width: 84px;
}

.database-table tbody tr:last-child td {
  border-bottom: 0;
}

.database-table tbody tr:hover td {
  background: #fbfcff;
}

.vehicle-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.vehicle-identity > span:last-child {
  min-width: 0;
}

.vehicle-identity strong {
  display: block;
  color: #202736;
  font-size: 14px;
  line-height: 1.35;
}

.vehicle-identity small {
  display: block;
  margin-top: 5px;
  color: #818b9c;
  font-size: 10px;
  white-space: nowrap;
}

.vehicle-identity a {
  color: #64799e;
}

.vehicle-identity a:hover,
.comparison-table a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.lead-inline {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: inherit;
  cursor: pointer;
}

.lead-inline:hover {
  text-decoration: underline;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 34px;
  border-radius: 7px;
  background: #eef2f7;
  color: #344054;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark[data-brand-key="byd"] { background: #fff0f0; color: #cf1f2c; }
.brand-mark[data-brand-key="tesla"] { background: #f2f3f5; color: #17191d; font-size: 15px; }
.brand-mark[data-brand-key="xiaomi"] { background: #fff2e8; color: #f15a24; }
.brand-mark[data-brand-key="li-auto"] { background: #eaf8f1; color: #008f5b; }
.brand-mark[data-brand-key="xpeng"] { background: #edf4ff; color: #0e66ce; }
.brand-mark[data-brand-key="leapmotor"] { background: #f0efff; color: #5a4bd6; }
.brand-mark[data-brand-key="galaxy"] { background: #e9f8f7; color: #0b7d78; }
.brand-mark[data-brand-key="aito"] { background: #eff1f3; color: #1c2128; font-size: 9px; }
.brand-mark[data-brand-key="onvo"] { background: #edf4ff; color: #1769ff; font-size: 8px; }

.price-cell,
.range-cell {
  color: #20283a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-cell {
  color: var(--price);
}

.energy-pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: #225dbb;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.stacked-value {
  display: block;
  color: #344054;
  white-space: nowrap;
}

.stacked-value small {
  display: block;
  margin-top: 5px;
  color: #818b9c;
  font-size: 10px;
}

.database-compare {
  min-width: 62px;
  height: 32px;
  border: 1px solid #bfd0ec;
  border-radius: 7px;
  background: var(--white);
  color: #2864be;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.database-compare:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.database-compare[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.database-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed #c8d2e1;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.database-empty[hidden] {
  display: none;
}

.database-empty strong {
  align-self: end;
  color: #30394a;
}

.database-empty span {
  align-self: start;
  margin-top: -42px;
  font-size: 13px;
}

.database-note {
  margin: 14px 2px 0;
  color: #788396;
  font-size: 11px;
  line-height: 1.7;
}

.insight-band {
  background: var(--surface);
}

.insight-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 74px;
}

.ranking-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid #d9dfe8;
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.rank {
  color: var(--blue);
  font-size: 29px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rank.muted {
  color: #697386;
}

.ranking-list strong {
  font-size: 15px;
}

.ranking-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trend-panel {
  padding: 30px 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.trend-panel h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.chart-legend span {
  width: 24px;
  height: 3px;
  border-radius: 3px;
}

.chart-legend .blue {
  background: var(--blue);
}

.chart-legend .gray {
  margin-left: 12px;
  background: #9ca6b5;
}

.trend-chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
  overflow: visible;
}

.grid-lines {
  fill: none;
  stroke: #e5e9ef;
  stroke-dasharray: 4 5;
  stroke-width: 1;
}

.axis-labels {
  fill: #8b95a6;
  stroke: none;
  font-size: 13px;
}

.line {
  fill: none;
  stroke-width: 3;
}

.line.ev {
  stroke: var(--blue);
}

.line.fuel {
  stroke: #9da7b6;
}

.points circle {
  stroke: var(--white);
  stroke-width: 2;
}

.ev-points {
  fill: var(--blue);
  stroke: var(--blue);
}

.fuel-points {
  fill: #9da7b6;
  stroke: #9da7b6;
}

.trend-panel > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.guide-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.guide-lead {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) 1.08fr;
  min-height: 330px;
  border-bottom: 1px solid var(--border);
}

.guide-lead > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.guide-lead > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 46px;
}

.guide-lead h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.guide-lead p {
  max-width: 600px;
  margin: 17px 0 21px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.guide-list {
  padding: 0 22px;
}

.guide-row {
  display: grid;
  grid-template-columns: 170px 1fr 28px;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 120px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.guide-row:last-child {
  border-bottom: 0;
}

.guide-row > img {
  width: 170px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.guide-row > span {
  min-width: 0;
}

.guide-row strong {
  display: block;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-row small {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-row > svg {
  width: 22px;
  height: 22px;
  color: #667085;
  transition: transform 160ms ease, color 160ms ease;
}

.guide-row:hover strong {
  color: var(--blue);
}

.guide-row:hover > svg {
  color: var(--blue);
  transform: translateX(4px);
}

.lead-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 72;
  transition: bottom 200ms ease;
}

.lead-float > button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 184px;
  min-height: 58px;
  padding: 9px 15px 9px 10px;
  border: 1px solid #cddbf4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 44px rgba(26, 49, 86, 0.18);
  color: #26344a;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lead-float > button:hover {
  transform: translateY(-3px);
  border-color: #9fbcf2;
  box-shadow: 0 20px 50px rgba(26, 49, 86, 0.23);
}

.lead-float-icon {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
}

.lead-float-icon svg {
  width: 22px;
  height: 22px;
}

.lead-float strong,
.lead-float small {
  display: block;
}

.lead-float strong {
  font-size: 14px;
}

.lead-float small {
  margin-top: 4px;
  color: #748095;
  font-size: 10px;
}

body:has(.compare-tray:not([hidden])) .lead-float {
  bottom: 112px;
}

.compare-tray {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 85;
  width: min(calc(100% - 48px), 920px);
  margin-inline: auto;
  border: 1px solid rgba(203, 214, 231, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(24, 39, 65, 0.18);
  backdrop-filter: blur(18px);
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 14px 12px 20px;
}

.compare-selection {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.compare-selection > strong {
  flex: 0 0 auto;
  font-size: 13px;
}

.compare-chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.compare-chips button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 9px 0 11px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  background: #f6f8fb;
  color: #3f4b5e;
  font-size: 12px;
  cursor: pointer;
}

.compare-chips button:hover {
  border-color: #b9cdf2;
  color: var(--blue);
}

.compare-chips svg {
  width: 14px;
  height: 14px;
}

.compare-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.compare-clear,
.compare-open {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.compare-clear {
  border: 1px solid #d9e0e9;
  background: var(--white);
  color: #596579;
}

.compare-open {
  min-width: 142px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}

.compare-open:hover:not(:disabled) {
  background: var(--blue-dark);
}

.compare-open:disabled {
  border-color: #d9dee7;
  background: #e9edf3;
  color: #9aa3b2;
  cursor: not-allowed;
}

.site-footer {
  padding: 32px 0 38px;
  background: var(--surface);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #4d586b;
  font-size: 14px;
  font-weight: 600;
}

.site-footer small {
  display: block;
  margin-top: 10px;
  color: #8791a2;
  font-size: 12px;
}

.detail-dialog {
  width: min(calc(100% - 32px), 660px);
  max-height: min(720px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(20, 32, 52, 0.25);
}

.detail-dialog.comparison-mode {
  width: min(calc(100% - 32px), 940px);
}

.detail-dialog::backdrop {
  background: rgba(19, 23, 34, 0.48);
  backdrop-filter: blur(4px);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.dialog-head small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.dialog-head h2 {
  margin: 6px 0 0;
  font-size: 26px;
}

.dialog-close {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.dialog-close svg {
  width: 100%;
  height: 100%;
}

.dialog-body {
  padding: 26px 28px 32px;
}

.dialog-model-image {
  width: 100%;
  max-height: 330px;
  border-radius: 12px;
  object-fit: cover;
}

.dialog-summary {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.dialog-facts div {
  padding: 14px;
  border-radius: 10px;
  background: var(--surface);
}

.dialog-facts small {
  display: block;
  color: var(--subtle);
  font-size: 11px;
}

.dialog-facts strong {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

.dialog-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: #4f5f78;
  font-size: 13px;
  line-height: 1.65;
}

.comparison-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.comparison-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 15px;
  border-right: 1px solid #e7ebf0;
  border-bottom: 1px solid #e7ebf0;
  text-align: left;
  vertical-align: middle;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table thead th {
  background: #f3f6fa;
  color: #212938;
  font-size: 14px;
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
  width: 146px;
}

.comparison-table thead small {
  display: block;
  margin-top: 5px;
  color: #7a8597;
  font-size: 10px;
  font-weight: 500;
}

.comparison-table tbody th {
  background: #fafbfc;
  color: #677286;
  font-size: 11px;
  font-weight: 650;
}

.comparison-table tbody td {
  color: #344054;
  font-weight: 600;
}

.comparison-source-row a {
  color: var(--blue);
  font-size: 11px;
}

.lead-service-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f4f8ff, #f8fbff);
}

.lead-service-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
}

.lead-service-icon svg {
  width: 23px;
  height: 23px;
}

.lead-service-intro strong {
  display: block;
  color: #26344c;
  font-size: 14px;
}

.lead-service-intro p {
  margin: 5px 0 0;
  color: #657188;
  font-size: 12px;
  line-height: 1.6;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.lead-form-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: #4c586b;
  font-size: 12px;
  font-weight: 650;
}

.lead-form-grid input,
.lead-form-grid select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  outline: 0;
  background: var(--white);
  color: #2f3949;
  font: inherit;
  font-size: 13px;
}

.lead-form-grid select:focus,
.lead-form-grid input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.09);
}

.lead-form-grid input[readonly] {
  background: #f4f6f9;
  color: #7a8494;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 19px;
  margin: 22px 0 0;
  padding: 15px 16px;
  border: 1px solid #e0e5ed;
  border-radius: 9px;
}

.contact-method legend {
  padding: 0 6px;
  color: #5f6b7e;
  font-size: 11px;
  font-weight: 650;
}

.contact-method label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4e596b;
  font-size: 12px;
  cursor: pointer;
}

.contact-method input,
.demo-consent input {
  accent-color: var(--blue);
}

.demo-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  color: #4e596b;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.demo-consent input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.lead-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.lead-submit:hover {
  background: var(--blue-dark);
}

.lead-prototype-note {
  margin: 10px 0 0;
  color: #98a1b0;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.lead-prototype-note.success-note {
  padding: 11px 13px;
  border-radius: 8px;
  background: #f6f8fa;
}

.lead-success {
  text-align: center;
}

.lead-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  background: #eaf8f1;
  color: #078a59;
}

.lead-success-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.lead-success h3 {
  margin: 15px 0 0;
  font-size: 21px;
}

.lead-success p {
  margin: 9px auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.lead-receipt {
  margin: 22px 0 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.lead-receipt div {
  display: grid;
  grid-template-columns: 118px 1fr;
  border-bottom: 1px solid var(--border);
}

.lead-receipt div:last-child {
  border-bottom: 0;
}

.lead-receipt dt,
.lead-receipt dd {
  margin: 0;
  padding: 12px 14px;
}

.lead-receipt dt {
  background: #f6f8fa;
  color: #758094;
  font-size: 11px;
}

.lead-receipt dd {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  word-break: break-word;
}

.lead-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.lead-success-actions button {
  min-height: 44px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lead-success-actions .secondary {
  border: 1px solid #d5dce7;
  background: var(--white);
  color: #536074;
}

.lead-success-actions .primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border-radius: 10px;
  background: #172033;
  color: var(--white);
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.24);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .header-inner {
    gap: 20px;
  }

  .main-nav {
    gap: 26px;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
  }

  .hero-copy h1 {
    font-size: 49px;
  }

  .hero-visual img {
    right: -20%;
    width: 130%;
  }

  .filter-shell {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }

  .filter-group:nth-child(3) {
    grid-column: 1 / -1;
    padding: 22px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .model-grid {
    gap: 14px;
  }

  .model-card-body {
    padding-inline: 16px;
  }

  .database-toolbar {
    grid-template-columns: 1fr;
  }

  .database-controls {
    justify-content: flex-end;
  }

  .insight-grid {
    gap: 42px;
  }
}

@media (max-width: 840px) {
  .models > .container,
  .ev-database > .container {
    min-width: 0;
    overflow-x: clip;
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    font-size: 25px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    height: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .main-nav a {
    min-height: 44px;
    border-radius: 9px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active {
    background: var(--blue-soft);
  }

  .header-actions {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  .favorites-trigger span {
    display: none;
  }

  .hero {
    padding-top: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 62px 0 10px;
  }

  .hero-copy h1 {
    max-width: 630px;
    font-size: 54px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual img {
    right: -3%;
    bottom: -7%;
    width: 106%;
    height: 115%;
  }

  .filter-shell {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .filter-group,
  .filter-group:first-child,
  .filter-group:last-child,
  .filter-group:nth-child(3) {
    grid-column: auto;
    padding: 0 0 22px;
    border: 0;
    border-bottom: 1px solid var(--border);
  }

  .filter-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .database-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .database-stats {
    width: 100%;
  }

  .database-stats div {
    flex: 1;
  }

  .database-table th:first-child,
  .database-table .vehicle-cell {
    position: sticky;
    left: 0;
  }

  .database-table th:first-child {
    z-index: 3;
  }

  .database-table .vehicle-cell {
    z-index: 2;
    background: var(--white);
    box-shadow: 8px 0 14px rgba(48, 66, 94, 0.05);
  }

  .database-table tbody tr:hover .vehicle-cell {
    background: #fbfcff;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .guide-lead {
    grid-template-columns: 1fr;
  }

  .guide-lead > img {
    height: 360px;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-actions {
    gap: 12px;
  }

  .city-trigger {
    gap: 4px;
    font-size: 13px;
  }

  .city-trigger > svg:first-child {
    display: none;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    right: 14px;
    left: 14px;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero-copy {
    padding-top: 52px;
  }

  .hero-copy h1 {
    max-width: 410px;
    font-size: clamp(39px, 12vw, 48px);
    line-height: 1.15;
  }

  .hero-copy > p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  .search-box {
    grid-template-columns: 24px 1fr;
    height: auto;
    min-height: 58px;
    margin-top: 30px;
    padding-left: 16px;
  }

  .search-box input {
    height: 58px;
    font-size: 15px;
  }

  .search-box button {
    grid-column: 1 / -1;
    min-height: 50px;
    margin: 0 7px 7px -9px;
    border-radius: 9px;
  }

  .hero-visual {
    min-height: 290px;
  }

  .hero-visual img {
    right: -10%;
    width: 120%;
  }

  .filter-shell {
    padding: 20px;
  }

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

  .filter-options button {
    min-width: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2,
  .ranking-panel h2 {
    font-size: 25px;
  }

  .database-heading h2 {
    font-size: 30px;
  }

  .database-heading > div > p {
    font-size: 14px;
  }

  .database-stats div {
    min-width: 0;
    padding: 2px 14px;
  }

  .database-stats div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .database-stats dd {
    font-size: 17px;
  }

  .database-toolbar {
    gap: 14px;
    margin-top: 28px;
    padding: 14px;
  }

  .brand-filter {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .brand-filter::-webkit-scrollbar {
    display: none;
  }

  .brand-filter button {
    flex: 0 0 auto;
  }

  .database-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .database-search,
  .database-sort select {
    width: 100%;
  }

  .database-result-line span {
    display: none;
  }

  .database-table {
    min-width: 1080px;
  }

  .database-table th:first-child {
    width: 196px;
  }

  .lead-form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .contact-method {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .lead-receipt div {
    grid-template-columns: 96px 1fr;
  }

  .lead-float {
    right: 12px;
    bottom: 12px;
  }

  .lead-float > button {
    min-width: 166px;
    min-height: 54px;
    padding: 7px 12px 7px 8px;
    border-radius: 13px;
  }

  .lead-float-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  body:has(.compare-tray:not([hidden])) .lead-float {
    bottom: 138px;
  }

  .compare-tray {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .compare-tray-inner {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .compare-selection {
    align-items: flex-start;
  }

  .compare-selection > strong {
    padding-top: 9px;
  }

  .compare-chips {
    flex-wrap: nowrap;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .compare-chips button {
    flex: 0 0 auto;
  }

  .compare-actions {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
  }

  .compare-clear,
  .compare-open {
    width: 100%;
  }

  body:has(.compare-tray:not([hidden])) .toast {
    bottom: 142px;
  }

  .text-link {
    font-size: 13px;
  }

  .model-grid {
    display: flex;
    gap: 14px;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .model-grid::-webkit-scrollbar {
    display: none;
  }

  .model-card {
    flex: 0 0 82vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .insight-grid {
    gap: 34px;
  }

  .trend-panel {
    padding: 24px 18px;
  }

  .trend-panel h3 {
    font-size: 21px;
  }

  .axis-labels {
    font-size: 16px;
  }

  .guide-lead > img {
    height: 270px;
  }

  .guide-lead > div {
    padding: 28px 22px 32px;
  }

  .guide-lead h3 {
    font-size: 24px;
  }

  .guide-list {
    padding: 0 16px;
  }

  .guide-row {
    grid-template-columns: 104px 1fr 20px;
    gap: 13px;
    min-height: 106px;
  }

  .guide-row > img {
    width: 104px;
    height: 72px;
  }

  .guide-row strong {
    font-size: 15px;
    white-space: normal;
  }

  .guide-row small {
    display: none;
  }

  .dialog-head,
  .dialog-body {
    padding-inline: 20px;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
