:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #d7dee9;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --orange: #ff6a00;
  --orange-dark: #d75000;
  --blue: #123f63;
  --blue-dark: #081827;
  --teal: #0b7a62;
  --gold: #c8953f;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.11);
  --deep-shadow: 0 30px 90px rgba(4, 14, 26, 0.28);
  --leather-highlight: rgba(255, 226, 188, 0.08);
  --leather-line: rgba(255, 205, 142, 0.14);
  --leather-grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' seed='23'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.72 0 0 0 0 0.78 0 0 0 0 0.82 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23grain)'/%3E%3C/svg%3E");
  --leather-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' seed='41'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.56 0 0 0 0 0.36 0 0 0 0 0.16 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23grain)'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #eef2f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[dir="rtl"] {
  direction: rtl;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  font-weight: 900;
  font-size: 16px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-nav a {
  padding: 10px 12px;
  color: #334155;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
body[data-page="home"] .site-nav a[data-nav="home"],
body[data-page="market"] .site-nav a[data-nav="market"],
body[data-page="suppliers"] .site-nav a[data-nav="suppliers"],
body[data-page="inquiry"] .site-nav a[data-nav="inquiry"] {
  color: var(--orange-dark);
  background: #fff3e8;
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ── 语言下拉 ── */
.lang-switcher {
  position: relative;
}
.lang-switcher > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.18s, border-color 0.18s;
}
.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary::marker { content: ''; }
.lang-switcher > summary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.lang-switcher[open] > summary {
  background: #f8fafc;
  border-color: #94a3b8;
}
.lang-switcher .lang-caret {
  transition: transform 0.18s;
  opacity: 0.6;
}
.lang-switcher[open] .lang-caret {
  transform: rotate(180deg);
}
.lang-switcher .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  list-style: none;
  z-index: 50;
}
.lang-switcher .lang-menu li { margin: 0; }
.lang-switcher .lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.lang-switcher .lang-menu a:hover {
  background: #f1f5f9;
}
.lang-switcher .lang-menu a.is-active {
  background: #fff3e8;
  color: #ff6a00;
  font-weight: 600;
}
body[dir="rtl"] .lang-switcher .lang-menu {
  right: auto;
  left: 0;
}

.factory-hero {
  padding: 80px 32px 96px;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.88) 0%, rgba(8, 24, 39, 0.78) 60%, rgba(8, 24, 39, 0.92) 100%),
    url("./assets/hero-premium.jpg") center / cover no-repeat;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.filter-panel,
.listing-panel,
.rfq-form,
.rfq-side {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 225, 236, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 900;
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.hero-headline {
  margin: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: rgba(231, 238, 247, 0.82);
  font-size: 17px;
  line-height: 1.65;
}

.hero-search,
.page-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  margin-top: 10px;
}

.factory-hero .hero-search {
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 10px;
}

.factory-hero .hero-search input {
  background: #fff;
  border-color: transparent;
  min-height: 50px;
  font-size: 15px;
}

.factory-hero .hero-search button {
  min-height: 50px;
  font-size: 15px;
}

.hero-search input,
.page-search input,
.filter-panel select,
.result-tools select,
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.rfq-form textarea {
  min-height: 118px;
  padding-top: 12px;
  resize: vertical;
}

.hero-search button,
.page-search button,
.rfq-form button,
.vehicle-actions a:first-child,
.primary-link {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.hero-search button:hover,
.page-search button:hover,
.rfq-form button:hover,
.chat-box button:hover,
.vehicle-actions a:first-child:hover,
.primary-link:hover {
  background: var(--orange-dark);
}

.outline-btn,
.vehicle-actions a:last-child {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.outline-btn:hover,
.vehicle-actions a:last-child:hover {
  color: #fff;
  background: var(--blue);
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.hero-trust-strip > div {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-trust-strip strong,
.hero-trust-strip span {
  display: block;
}

.hero-trust-strip strong {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.hero-trust-strip span {
  margin-top: 4px;
  color: rgba(214, 226, 240, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.control-room-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  max-width: 1440px;
  margin: -18px auto 0;
  padding: 28px 32px 36px;
}

.control-copy {
  display: grid;
  align-content: center;
  min-height: 320px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 24, 39, 0.98), rgba(18, 63, 99, 0.92)),
    url("./assets/hero-premium.jpg") center / cover;
  border: 1px solid rgba(203, 213, 225, 0.28);
  border-radius: 10px;
  box-shadow: var(--deep-shadow);
}

.control-copy .eyebrow {
  color: #ffb86a;
}

.control-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.control-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #d8e3ee;
  line-height: 1.7;
}

.control-board {
  min-height: 320px;
  padding: 20px;
  color: #e5edf6;
  background: #081827;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 10px;
  box-shadow: var(--deep-shadow);
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.16);
}

.board-top span {
  color: #ffb86a;
  font-weight: 900;
}

.board-top strong {
  color: #fff;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.board-grid article {
  min-height: 136px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(203, 213, 225, 0.16);
  border-radius: 8px;
}

.board-grid span,
.board-grid strong,
.board-grid b {
  display: block;
}

.board-grid span {
  color: #a9b8ca;
  font-size: 12px;
  font-weight: 900;
}

.board-grid strong {
  margin-top: 18px;
  color: #fff;
  font-size: 26px;
}

.board-grid b {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.board-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.16);
  border-radius: 8px;
}

.board-timeline span {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.section-block,
.market-preview,
.two-column-section,
.rfq-layout,
.detail-layout,
.market-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 38px 32px;
  transition: opacity 0.18s ease;
}

.market-layout.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

.section-block.soft {
  max-width: none;
  padding-left: max(32px, calc((100vw - 1400px) / 2 + 32px));
  padding-right: max(32px, calc((100vw - 1400px) / 2 + 32px));
  background: #fff;
  border-block: 1px solid var(--line);
}

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

.section-heading h2 {
  max-width: 660px;
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.advantage-card,
.selection-card,
.package-grid article,
.vehicle-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.advantage-card {
  padding: 20px;
}

.advantage-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-weight: 900;
}

.advantage-card h3 {
  min-height: 56px;
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.advantage-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.58;
}

.market-preview {
  padding-top: 22px;
}

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

.selection-card {
  overflow: hidden;
}

.selection-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.selection-card div {
  padding: 16px;
}

.selection-card strong,
.selection-card span {
  display: block;
}

.selection-card strong {
  font-size: 19px;
}

.selection-card span {
  margin-top: 6px;
  color: #475569;
  line-height: 1.45;
}

.flow-band {
  display: grid;
  grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
  gap: 34px;
  padding: 44px max(32px, calc((100vw - 1400px) / 2 + 32px));
  color: #fff;
  background: var(--blue-dark);
}

.flow-band h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.flow-steps span {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 14px;
  color: #dbeafe;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 800;
}

.page-hero {
  padding: 62px max(32px, calc((100vw - 1400px) / 2 + 32px));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 18, 31, 0.96), rgba(18, 63, 99, 0.84)),
    url("./assets/hero-premium.jpg") center / cover;
}

.page-hero.compact {
  padding-top: 48px;
  padding-bottom: 40px;
}

.page-hero.supplier {
  min-height: 340px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.6;
}

.page-search {
  max-width: 860px;
}

.market-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.filter-board {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.filter-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

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

.filter-label {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #64748b;
  background: #f8fafc;
  font-weight: 900;
}

.filter-options,
.body-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 11px 14px;
}

.filter-options button,
.body-options button,
.sort-tabs button,
.filter-selected button {
  min-height: 32px;
  padding: 0 12px;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.filter-options button:hover,
.body-options button:hover,
.sort-tabs button:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

.filter-options button.is-active,
.body-options button.is-active,
.sort-tabs button.is-active {
  color: var(--orange-dark);
  background: #fff3e8;
  border-color: #fed7aa;
}

.body-options button {
  min-width: 78px;
  background: #f8fafc;
  border-color: var(--line);
}

/* 主品牌 chip 区在极端情况下也限制高度,避免压垮页面 */
.filter-options {
  max-height: 168px;
  overflow-y: auto;
}

.filter-empty {
  font-size: 12px;
  color: #94a3b8;
  padding: 4px 8px;
}

.more-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
}

.more-filters label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.more-filters select {
  min-width: 118px;
  height: 34px;
  padding: 0 8px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.inline-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.filter-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #fbfdff;
}

.filter-selected > span {
  color: #64748b;
  font-weight: 900;
}

#selectedFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

#selectedFilters span {
  min-height: 28px;
  padding: 6px 8px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
}

#selectedFilters em {
  color: #94a3b8;
  font-style: normal;
}

.filter-selected button {
  color: var(--blue);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
}

.filter-panel label,
.rfq-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.check-line {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.outline-btn.full {
  width: 100%;
}

.listing-panel {
  min-width: 0;
  padding: 20px;
  box-shadow: none;
}

.listing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.listing-head .eyebrow {
  font-size: 22px;
  letter-spacing: 0;
}

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

.result-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.result-tools select {
  min-height: 38px;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.sort-tabs span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding-left: 6px;
  color: var(--muted);
  font-size: 13px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vehicle-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 0;
}

.vehicle-photo {
  position: relative;
  display: block;
  min-height: 100%;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}

.photo-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
  z-index: 1;
}

.photo-badges .badge {
  box-shadow: 0 1px 3px rgba(8, 24, 39, 0.18);
}

.vehicle-card img,
.vehicle-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.vehicle-body {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* 把 spec 表(或 risk 行,若存在)推到 body 底部,与右侧价格面板的按钮在视觉上对齐;
   多余高度作为呼吸感留在标题/配置名下方,而不是空空堆在最底。 */
.vehicle-body > .export-card-summary {
  margin-top: auto;
}
.vehicle-body > .condition-mini {
  margin-top: auto;
}
.vehicle-body > .condition-mini + .export-card-summary,
.vehicle-body > .export-card-summary + .condition-mini {
  margin-top: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 10px;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.hot {
  color: #9a3412;
  background: #ffedd5;
}

.badge.service {
  color: #166534;
  background: #dcfce7;
}

.vehicle-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.25;
}

.trim-line {
  margin: -3px 0 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.trim-line.large {
  margin: -4px 0 14px;
  font-size: 16px;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.vehicle-specs.dense {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.vehicle-specs.dense span {
  display: grid;
  min-height: 50px;
  padding: 8px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.25;
}

.vehicle-specs.dense span:nth-child(2n) {
  border-right: 0;
}

.vehicle-specs.dense span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.vehicle-specs b {
  color: #64748b;
  font-size: 11px;
}

.export-card-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.export-card-summary div {
  min-height: 58px;
  padding: 9px 10px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.export-card-summary div:nth-child(3n) {
  border-right: 0;
}

.export-card-summary div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.export-card-summary span,
.export-card-summary strong {
  display: block;
}

.export-card-summary span {
  color: var(--muted);
  font-size: 12px;
}

.export-card-summary strong {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.guazi-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.guazi-summary div {
  min-height: 54px;
  padding: 8px 6px;
  text-align: center;
  background: #fff;
  border-right: 1px solid var(--line);
}

.guazi-summary div:last-child {
  border-right: 0;
}

.guazi-summary b,
.guazi-summary span {
  display: block;
}

.guazi-summary b {
  color: var(--ink);
  font-size: 15px;
}

.guazi-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.condition-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.condition-mini span {
  min-height: 24px;
  padding: 4px 7px;
  color: #166534;
  background: #dcfce7;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.condition-mini.wide {
  margin-top: 14px;
}

.card-price-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: #fffaf5;
  border-left: 1px solid #fed7aa;
}

.card-price-panel > span,
.card-price-panel small,
.card-price-panel p {
  color: #9a3412;
  font-size: 12px;
}

.card-price-panel strong {
  color: var(--orange-dark);
  font-size: 30px;
  line-height: 1.05;
}

.card-price-panel p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.card-price-panel .vehicle-actions {
  grid-template-columns: 1fr;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price-row strong {
  color: var(--orange-dark);
  font-size: 23px;
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.vehicle-actions {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
  margin-top: 12px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.two-column-section.reverse {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.two-column-section.reverse img {
  order: 2;
}

.two-column-section img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.two-column-section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  color: #334155;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 4px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.package-grid article {
  padding: 18px;
}

.package-grid strong,
.package-grid span {
  display: block;
}

.package-grid strong {
  font-size: 18px;
}

.package-grid span {
  margin-top: 10px;
  color: #475569;
  line-height: 1.55;
}

.lead-copy {
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
}

.primary-link {
  display: inline-grid;
  margin-top: 8px;
}

.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  box-shadow: none;
}

.rfq-form .wide,
.rfq-form button {
  grid-column: 1 / -1;
}

.rfq-side {
  padding: 20px;
  box-shadow: none;
}

.rfq-side ol {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.9;
}

.success-box {
  display: none;
  margin-top: 18px;
  padding: 14px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-weight: 800;
}

.success-box.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.detail-main,
.detail-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.detail-gallery {
  background: #f8fafc;
}

.detail-hero-image {
  border-bottom: 1px solid var(--line);
}

/* 画廊轮播 — 单帧视口 + transform 平移轨道 + 缩略图 tab 切换 */
.carousel-viewport {
  position: relative;
  overflow: hidden;
  background: #0b1220;
  border-bottom: 1px solid var(--line);
}

.carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.carousel-arrow:hover {
  background: rgba(15, 23, 42, 0.78);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.carousel-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-arrow--prev { left: 12px; }
.carousel-arrow--next { right: 12px; }

[dir="rtl"] .carousel-arrow--prev { left: auto; right: 12px; }
[dir="rtl"] .carousel-arrow--next { right: auto; left: 12px; }
[dir="rtl"] .carousel-arrow svg { transform: scaleX(-1); }

.carousel-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
}

[dir="rtl"] .carousel-counter { right: auto; left: 12px; }

.carousel-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.carousel-thumbs::-webkit-scrollbar { height: 6px; }
.carousel-thumbs::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.2); border-radius: 999px; }

.carousel-thumb {
  flex: 0 0 96px;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
  opacity: 0.72;
}

.carousel-thumb:hover { opacity: 1; }

.carousel-thumb.is-active {
  border-color: var(--brand, #ff6a00);
  opacity: 1;
}

.carousel-thumb:focus-visible {
  outline: 2px solid var(--brand, #ff6a00);
  outline-offset: 2px;
}

.carousel-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-thumb { flex-basis: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.detail-copy,
.detail-side {
  padding: 20px;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: 34px;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-tabs a {
  min-height: 34px;
  padding: 8px 12px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-weight: 900;
}

.export-overview-card {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.export-overview-card div {
  min-height: 86px;
  padding: 13px 10px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}

.export-overview-card div:last-child {
  border-right: 0;
}

.export-overview-card span,
.export-overview-card strong {
  display: block;
  text-align: center;
}

.export-overview-card span {
  color: var(--muted);
  font-size: 12px;
}

.export-overview-card strong {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.guazi-score-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  margin-top: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  overflow: hidden;
}

.score-main {
  display: grid;
  place-items: center;
  padding: 18px 12px;
  color: #9a3412;
  background: #ffedd5;
  text-align: center;
}

.score-main span,
.score-main strong,
.score-main em {
  display: block;
  font-style: normal;
}

.score-main strong {
  font-size: 46px;
  line-height: 1;
}

.score-main em {
  font-weight: 900;
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.score-metrics div {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 12px;
  text-align: center;
  border-left: 1px solid #fed7aa;
}

.score-metrics strong,
.score-metrics span {
  display: block;
}

.score-metrics strong {
  font-size: 18px;
}

.score-metrics span {
  margin-top: 4px;
  color: #9a3412;
  font-size: 12px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.detail-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.subheading {
  margin: 18px 0 10px;
  font-size: 17px;
}

.archive-grid,
.feature-spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.archive-grid div,
.feature-spec-row div {
  min-height: 78px;
  padding: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.archive-grid div:last-child,
.feature-spec-row div:last-child {
  border-right: 0;
}

.archive-grid small,
.archive-grid strong,
.feature-spec-row strong,
.feature-spec-row span {
  display: block;
}

.archive-grid small,
.feature-spec-row span {
  color: var(--muted);
  font-size: 12px;
}

.archive-grid strong,
.feature-spec-row strong {
  margin-top: 6px;
  font-size: 16px;
}

.spec-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-cell {
  min-height: 74px;
  padding: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-cell:nth-child(4n) {
  border-right: 0;
}

.spec-cell:nth-last-child(-n + 4) {
  border-bottom: 0;
}

/* 末行不满时由模板补 `.spec-cell.is-filler` 占位 cell —— 视觉上空白但参与 nth 计数,
   让 nth-last-child(-n+4) 仍然命中真实末行,避免 L 型缺口。 */
.spec-cell.is-filler {
  background: #fff;
}

.spec-cell small,
.spec-cell strong {
  display: block;
}

.spec-cell small {
  color: var(--muted);
  font-size: 12px;
}

.spec-cell strong {
  margin-top: 6px;
  font-size: 14px;
}

.spec-cell strong.spec-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-cell strong.spec-color .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* 顶部「一眼快查」strip — 同 spec-matrix 视觉原语,只在 cell 背景 + 字号上做轻微强调,
   避免再造一个 export-overview-card 类型的独立卡片造成视觉不统一。 */
.spec-matrix.highlights {
  margin-top: 18px;
}

.spec-matrix.highlights .spec-cell {
  background: var(--soft);
}

.spec-matrix.highlights .spec-cell strong {
  font-size: 15px;
  font-weight: 900;
}

/* Highlights 段:车商录入的卖点 chip 列表(zh→en→es→ar 多语) */
.highlights-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.highlights-list li {
  padding: 6px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
}

/* condition 段落的描述文字(车商录入的中文 → 自动翻译为目标语言) */
.condition-narrative {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.condition-narrative small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.condition-narrative p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

/* detail-section 内的小标题(Engine/Motor/Battery/Body/Chassis 在 Powertrain 大段下的分组) */
.detail-section .subheading {
  margin: 22px 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.detail-section .subheading:first-of-type {
  margin-top: 0;
}

/* ── 装备配置(bitefu equipment JSONB 按分组渲染)── */
/* 视觉策略:auto-fit 两列(宽屏)→ 单列(窄屏)的自适应卡组,每张卡:
   - 左侧 3px 品牌橙竖条:为白底卡赋予视觉锚点,免得整片白显得空
   - 卡内大字组名 + 圆角计数徽章,让分组本身先有「分量」
   - chip 云:included(标配)走低饱和中性 pill,detail(混合值/尺寸数值)走橙色填充 pill
     —— 用色彩对比把「真有信息量」的条目从一片标配里挑出来,买家一眼能看到亮点。 */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.equipment-group {
  position: relative;
  padding: 22px 22px 20px 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.equipment-group::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 0 3px 3px 0;
}

.equipment-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink, #0f172a);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.equipment-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 9px;
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.equipment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 单个装备 chip:included 项偏中性、轻盈;detail 项填橙底色作高对比突出 */
.equip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #1e293b;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.equip-chip:hover {
  transform: translateY(-1px);
  border-color: #c2cad6;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.equip-chip .equip-key {
  font-weight: 700;
}

/* detail chip:有具体值(尺寸数值、双区分布)→ 橙色填充,把买家关心的「实际配置」抢眼地拎出 */
.equip-chip--detail {
  color: #7c2d12;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}

.equip-chip--detail .equip-val {
  padding: 1px 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.detail-section .muted {
  color: var(--muted, #6b7280);
  font-size: 13px;
  margin: 4px 0 8px;
}

.condition-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.condition-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 70px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.condition-table div:last-child {
  border-bottom: 0;
}

.condition-table strong,
.condition-table span,
.condition-table b {
  display: flex;
  align-items: center;
  padding: 10px 12px;
}

.condition-table strong {
  color: var(--blue);
  background: #eff6ff;
}

.condition-table span {
  color: #334155;
  border-left: 1px solid var(--line);
}

.condition-table b {
  justify-content: center;
  color: #166534;
  background: #dcfce7;
  border-left: 1px solid var(--line);
}

.report-pass-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.report-pass-row span {
  min-height: 34px;
  padding: 8px 12px;
  color: #166534;
  background: #dcfce7;
  border-radius: 8px;
  font-weight: 900;
}

.report-pass-row strong {
  min-height: 34px;
  padding: 8px 12px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 8px;
}

.report-module-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.report-module-grid article {
  min-height: 142px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-module-grid strong,
.report-module-grid span,
.report-module-grid b {
  display: block;
}

.report-module-grid strong {
  color: var(--blue);
}

.report-module-grid span {
  margin-top: 9px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.report-module-grid b {
  margin-top: 12px;
  color: #166534;
  font-size: 13px;
}

.config-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-list span {
  min-height: 34px;
  padding: 8px 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.fact {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact + .fact {
  margin-top: 8px;
}

.fact small,
.fact strong {
  display: block;
}

.fact small {
  color: var(--muted);
}

.fact strong {
  margin-top: 4px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 84px;
}

.detail-price {
  color: var(--orange-dark);
  font-size: 34px;
  font-weight: 900;
}

.price-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}

.price-box div {
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}

.price-box small,
.price-box strong {
  display: block;
}

.price-box small {
  color: #9a3412;
}

.price-box strong {
  margin-top: 4px;
}

.side-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.side-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.side-section ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.8;
}

.detail-side .vehicle-actions {
  grid-template-columns: 1fr;
}

.stock-showcase {
  padding-top: 8px;
}

.home-stock-grid {
  display: grid;
  gap: 10px;
}

.stock-row {
  display: grid;
  grid-template-columns: 120px minmax(180px, 0.7fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stock-row img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.stock-row strong,
.stock-row span {
  display: block;
}

.stock-row span {
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
}

.stock-row dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.stock-row dl div {
  min-height: 58px;
  padding: 9px 10px;
  background: #f8fafc;
}

.stock-row dt,
.stock-row dd {
  margin: 0;
}

.stock-row dt {
  color: var(--muted);
  font-size: 11px;
}

.stock-row dd {
  margin-top: 4px;
  font-weight: 900;
}

.quote-intel {
  padding-top: 8px;
}

.quote-intel-table {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-intel-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.quote-intel-table th,
.quote-intel-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.quote-intel-table th {
  color: #fff;
  background: var(--blue);
}

.quote-intel-table tr:last-child td {
  border-bottom: 0;
}

.quote-intel-table strong {
  color: var(--orange-dark);
}

/* ── 在线客服 widget(浮窗,实时双向翻译)── */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 16px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(255, 106, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  z-index: 1000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(255, 106, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.1);
}
.chat-launcher-icon { font-size: 16px; line-height: 1; }
.chat-launcher-text { line-height: 1; }
.chat-launcher-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.chat-box {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 8px 16px -6px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  z-index: 1000;
  font-size: 14px;
  animation: chat-pop 0.18s ease-out;
}
.chat-box[hidden],
.chat-consent[hidden],
.chat-messages[hidden],
.chat-peer-typing[hidden],
.chat-input-form[hidden],
.chat-offline-form[hidden],
.chat-offline-ok[hidden] { display: none !important; }

@keyframes chat-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d 0%, var(--orange) 60%, #e65a00 100%);
}
.chat-header strong { font-size: 14px; font-weight: 700; letter-spacing: 0.2px; }
.chat-status {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-close {
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.28); }

.chat-consent {
  padding: 16px;
  background: #fff;
}
.chat-consent h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #0f172a; }
.chat-consent p { margin: 0 0 10px; padding: 0; font-size: 12.5px; color: #64748b; line-height: 1.55; }
.chat-consent-links { font-size: 12px; }
.chat-consent-links a { color: var(--orange); text-decoration: none; }
.chat-consent-links a:hover { text-decoration: underline; }
.chat-consent-accept {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chat-consent-accept:hover { background: var(--orange-dark); }

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f8fafc;
}

/* 客服在线时段提示 —— 灰色非交互文字,渲染在消息列表顶部,
   随会话滚动一起滚走,不抢眼但能在首次会话时被读到。 */
.chat-hint {
  margin: 0 auto 12px;
  padding: 8px 12px;
  max-width: 90%;
  background: #eef2f7;
  border-radius: 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  max-width: 78%;
}
.chat-msg--buyer { margin-left: auto; align-items: flex-end; }
.chat-msg--agent { margin-right: auto; align-items: flex-start; }
.chat-msg--system { margin: 6px auto; align-items: center; max-width: 90%; }

.chat-bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg--buyer .chat-bubble {
  color: #fff;
  background: var(--orange);
  border-bottom-right-radius: 4px;
}
.chat-msg--agent .chat-bubble {
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
/* ── 购物车分享卡片 bubble(代替 .chat-bubble 显示结构化车辆清单) ── */
.chat-cart-bubble {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  /* width:100% + box-sizing 让 bubble 严格收敛到 .chat-msg 78% 上限,
     避免长标题 nowrap 撑破布局触发横向滚动。 */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* min-width:0 是兜底:.chat-msg 是 flex 列(flex-direction: column),
     默认 min-width:auto 会让子项无法收缩到 max-width 内。 */
  min-width: 0;
  overflow: hidden;
}
.chat-msg--buyer .chat-cart-bubble {
  /* 买家自己发的卡片;保持白底但与买家气泡区位 — 加一道浅橙边框暗示归属 */
  border-color: rgba(255, 106, 0, 0.35);
  border-bottom-right-radius: 4px;
}
.chat-msg--agent .chat-cart-bubble { border-bottom-left-radius: 4px; }
.chat-cart-intro {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.chat-cart-cards {
  display: grid;
  /* 显式 minmax(0, 1fr) — grid 默认 minmax(auto, 1fr) 会让子项按内容撑宽,
     导致 nowrap 标题把整列推宽过 bubble 上限。 */
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}
.chat-cart-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 9px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s, background .12s;
  /* min-width:0 + overflow:hidden 是 flex 列省略号的必须组合,
     否则 .chat-cart-card__body 的 flex:1 在 min-content 推动下仍会撑爆。 */
  min-width: 0;
  overflow: hidden;
}
.chat-cart-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  background: #fff;
}
.chat-cart-card img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.chat-cart-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.chat-cart-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #94a3b8;
}
.chat-cart-card__title {
  font-size: 12.5px;
  color: #0f172a;
  font-weight: 600;
  /* 2 行截断 — chat bubble 只有约 78% 视宽,长标题强行 nowrap 会被裁掉关键信息,
     2 行 clamp 更可读且仍能稳定收敛宽度。 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.3;
}
/* 注意:.chat-cart-card__dealer 样式已删除 — 门户买家端不展示商家信息(平台内部数据)。
   admin-web MessageThread 用自己的 Tailwind 样式渲染 dealer 行。 */
.chat-cart-card__price {
  font-size: 12px;
  color: var(--orange-dark, #c2410c);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chat-cart-more {
  margin: 6px 0 0;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}

.chat-msg--system .chat-bubble {
  font-size: 11.5px;
  color: #94a3b8;
  background: transparent;
  border: 0;
  padding: 2px 0;
}

.chat-msg-hint {
  margin-top: 3px;
  font-size: 10.5px;
  color: #94a3b8;
}
.chat-msg-hint--error { color: #dc2626; }

.chat-peer-typing {
  padding: 4px 14px 6px;
  font-size: 12px;
  color: #94a3b8;
  background: #f8fafc;
  font-style: italic;
}

.chat-input-form,
.chat-offline-form {
  padding: 10px 12px 12px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.chat-input-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.chat-input-form input[type="text"] {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-input-form input[type="text"]:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.chat-input-form button {
  height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.chat-input-form button:hover { background: var(--orange-dark); }
.chat-input-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-offline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-offline-form h4 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.chat-offline-form input,
.chat-offline-form textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-offline-form input { height: 36px; }
.chat-offline-form textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.5;
}
.chat-offline-form input:focus,
.chat-offline-form textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.chat-offline-form button {
  height: 38px;
  margin-top: 2px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chat-offline-form button:hover { background: var(--orange-dark); }

.chat-offline-ok {
  margin: 0;
  padding: 16px;
  font-size: 13px;
  color: #15803d;
  text-align: center;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
}

/* consent 屏的联系方式输入 —— 与同意条款合并一屏,
   买家提交「I agree, start chat」时一并写入,服务端在 conv:welcome 之后自动回传 */
.chat-consent-fields {
  margin: 14px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-consent-fields input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chat-consent-fields input:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.chat-consent-fields-hint {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}
.chat-contact-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.chat-contact-hint--ok { color: #15803d; }
.chat-contact-hint--error { color: #b91c1c; }
.chat-contact-hint[hidden] { display: none; }


@media (max-width: 480px) {
  .chat-box {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    bottom: 76px;
    height: calc(100vh - 100px);
    max-height: none;
    border-radius: 12px;
  }
  .chat-launcher {
    right: 12px;
    bottom: 12px;
  }
}

body[dir="rtl"] .site-header,
body[dir="rtl"] .listing-head,
body[dir="rtl"] .section-heading,
body[dir="rtl"] .price-row,
body[dir="rtl"] .chat-box header {
  flex-direction: row-reverse;
}

body[dir="rtl"] .chat-launcher,
body[dir="rtl"] .chat-box {
  right: auto;
  left: auto;
}

/* Premium demo refresh */
.site-header {
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2 + 28px));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(203, 213, 225, 0.78);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.brand-mark {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ff7a18, #d74b00);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.22);
}

.brand strong {
  color: #0f172a;
  font-size: 19px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: #6b7280;
  font-weight: 700;
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  padding: 11px 14px;
  color: #1f2937;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-switcher > summary {
  height: 38px;
}

.factory-hero .eyebrow {
  color: #ffb86a;
}

.hero-search button,
.page-search button,
.rfq-form button,
.vehicle-actions a:first-child,
.primary-link {
  min-height: 46px;
  background: linear-gradient(180deg, #ff7a18, #f05a00);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.2);
}

.section-block,
.market-preview,
.two-column-section,
.rfq-layout,
.detail-layout,
.market-layout {
  max-width: 1440px;
}

.section-heading h2 {
  color: #0f172a;
}

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

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.advantage-card,
.selection-card,
.package-grid article,
.vehicle-card,
.quote-intel-table,
.stock-row,
.filter-board,
.listing-panel,
.rfq-form,
.rfq-side,
.detail-main,
.detail-side {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.advantage-card,
.selection-card,
.package-grid article {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.advantage-card:hover,
.selection-card:hover,
.package-grid article:hover,
.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.12);
}

.selection-card img {
  object-fit: cover;
}

.filter-board {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
}

.filter-console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 24, 39, 0.98), rgba(18, 63, 99, 0.92)),
    url("./assets/hero-premium.jpg") center / cover;
  border-bottom: 1px solid rgba(203, 213, 225, 0.2);
}

.filter-console-head .eyebrow {
  color: #ffb86a;
}

.filter-console-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.filter-console-head span {
  display: block;
  max-width: 760px;
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.55;
}

.filter-console-stats {
  display: grid;
  grid-template-columns: repeat(3, 118px);
  gap: 8px;
}

.filter-console-stats div {
  min-height: 82px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 8px;
}

.filter-console-stats strong,
.filter-console-stats span {
  display: block;
}

.filter-console-stats strong {
  color: #fff;
  font-size: 24px;
}

.filter-console-stats span {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.filter-row {
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 62px;
  border-bottom-color: rgba(203, 213, 225, 0.86);
}

.filter-label {
  display: grid;
  align-content: center;
  color: #0f2f4a;
  background: linear-gradient(180deg, #f4f7fb, #eef3f8);
  border-right: 1px solid rgba(203, 213, 225, 0.86);
}

.filter-label b,
.filter-label small {
  display: block;
}

.filter-label b {
  font-size: 14px;
}

.filter-label small {
  margin-top: 3px;
  color: #7b8ba0;
  font-size: 11px;
  font-weight: 800;
}

.filter-options button,
.body-options button,
.sort-tabs button,
.filter-selected button {
  border-radius: 7px;
}

.filter-options,
.body-options {
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.filter-options button,
.body-options button {
  min-height: 36px;
  padding: 0 15px;
  color: #223047;
  background: #fff;
  border-color: #d4deea;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.filter-options button:hover,
.body-options button:hover {
  color: #0f2f4a;
  background: #f8fafc;
  border-color: #aab9cc;
}

.filter-options button.is-active,
.body-options button.is-active {
  color: #fff;
  background: linear-gradient(180deg, #163d5c, #0b2238);
  border-color: #0b2238;
  box-shadow: 0 12px 24px rgba(11, 34, 56, 0.16);
}

.more-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
}

.more-filters label {
  display: grid;
  gap: 6px;
  align-items: stretch;
  min-height: 70px;
  padding: 10px;
  color: #344256;
  background: #fff;
  border: 1px solid #d4deea;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.more-filters label > span {
  color: #627187;
  font-size: 12px;
  font-weight: 900;
}

.more-filters select {
  width: 100%;
  min-width: 0;
  height: 36px;
  background: #f8fafc;
  border-color: #d4deea;
  border-radius: 7px;
  font-weight: 800;
}

.inline-check {
  align-content: center;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 70px;
}

.inline-check span {
  align-self: center;
  color: #0f2f4a;
}

.filter-selected {
  min-height: 56px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

#selectedFilters span {
  color: #0f2f4a;
  background: #e7eef7;
  border: 1px solid #c6d3e2;
  border-radius: 7px;
}

.filter-selected button {
  min-height: 36px;
  color: #fff;
  background: #0f2f4a;
  border-color: #0f2f4a;
}

.listing-panel {
  padding: 22px;
  border-radius: 10px;
}

.vehicle-grid {
  gap: 14px;
}

.vehicle-card {
  grid-template-columns: 270px minmax(0, 1fr) 242px;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vehicle-photo {
  position: relative;
  min-height: 224px;
  overflow: hidden;
}

.vehicle-card img,
.vehicle-photo img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-stamp {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(8, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.vehicle-body {
  padding: 18px;
}

.vehicle-card h3 {
  color: #111827;
  font-size: 20px;
}

.badge {
  border-radius: 6px;
}

.export-card-summary {
  border-radius: 9px;
}

.export-card-summary div {
  background: #f8fafc;
}

.condition-mini span {
  background: #e6f8ee;
}

.card-price-panel {
  padding: 20px 18px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}

.card-price-panel strong {
  font-size: 32px;
}

.card-price-panel p {
  color: #334155;
}

.stock-row img {
  object-fit: cover;
}

.detail-layout {
  align-items: start;
}

.detail-main,
.detail-side {
  border-radius: 10px;
}

.detail-main img {
  aspect-ratio: 16 / 9;
}

.detail-copy,
.detail-side {
  padding: 24px;
}

.detail-copy h1 {
  color: #0f172a;
  font-size: 38px;
}

.trade-status-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.trade-status-row div {
  min-height: 72px;
  padding: 12px;
  background: #f8fafc;
}

.trade-status-row span,
.trade-status-row strong {
  display: block;
}

.trade-status-row span {
  color: var(--muted);
  font-size: 12px;
}

.trade-status-row strong {
  margin-top: 6px;
  font-size: 15px;
}

.detail-price {
  color: var(--orange-dark);
  font-size: 42px;
}

.page-hero.compact {
  padding-top: 58px;
  padding-bottom: 52px;
}

.page-hero h1 {
  max-width: 1120px;
  font-size: 42px;
}

.chat-launcher {
  background: linear-gradient(180deg, #ff7a18, #f05a00);
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.28);
}

/* Leather texture accents */
.control-board,
.filter-console-head,
.detail-side {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 28%),
    var(--leather-grain-dark),
    radial-gradient(ellipse at 32% 16%, rgba(255, 255, 255, 0.07), transparent 42%),
    radial-gradient(ellipse at 78% 82%, rgba(120, 71, 32, 0.18), transparent 46%),
    linear-gradient(142deg, rgba(8, 17, 26, 0.98) 0%, rgba(17, 45, 57, 0.95) 58%, rgba(27, 20, 17, 0.96) 100%);
  background-size: auto, 180px 180px, auto, auto, auto;
  background-blend-mode: normal, soft-light, screen, soft-light, normal;
  border-color: rgba(255, 205, 142, 0.16);
  box-shadow:
    var(--deep-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -18px 46px rgba(0, 0, 0, 0.12);
}

.control-board,
.filter-console-head,
.card-price-panel,
.detail-side {
  overflow: hidden;
}

.control-board,
.filter-console-head,
.card-price-panel {
  position: relative;
}

.control-board > *,
.filter-console-head > *,
.card-price-panel > *,
.detail-side > * {
  position: relative;
  z-index: 1;
}

.control-copy h2,
.filter-console-head h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.board-grid article,
.board-timeline span,
.filter-console-stats div {
  background:
    var(--leather-grain-dark),
    radial-gradient(ellipse at 22% 12%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.088), rgba(255, 255, 255, 0.06));
  background-size: 160px 160px, auto, auto;
  background-blend-mode: soft-light, screen, normal;
  border-color: rgba(255, 205, 142, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.board-grid article,
.filter-console-stats div {
  position: relative;
  overflow: hidden;
}

.badge.service,
.photo-stamp,
.filter-options button.is-active,
.body-options button.is-active,
.sort-tabs button.is-active {
  color: #fff7ed;
  background:
    var(--leather-grain-dark),
    radial-gradient(ellipse at 24% 8%, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(145deg, #111925 0%, #173349 58%, #2a1810 100%);
  background-size: 130px 130px, auto, auto;
  background-blend-mode: soft-light, screen, normal;
  border-color: rgba(255, 205, 142, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 10px 20px rgba(8, 24, 39, 0.09);
}

.badge.hot {
  color: #3a1f0c;
  background:
    var(--leather-grain-light),
    radial-gradient(ellipse at 26% 6%, rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(180deg, #fff0d6, #ffd9a8);
  background-size: 130px 130px, auto, auto;
  background-blend-mode: multiply, screen, normal;
  border: 1px solid rgba(200, 149, 63, 0.26);
}

.card-price-panel {
  background:
    var(--leather-grain-light),
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.5), transparent 46%),
    radial-gradient(ellipse at 84% 92%, rgba(189, 126, 55, 0.08), transparent 48%),
    linear-gradient(180deg, #fff8ee 0%, #fffdf8 54%, #ffffff 100%);
  background-size: 180px 180px, auto, auto, auto;
  background-blend-mode: multiply, screen, soft-light, normal;
  border-left-color: rgba(200, 149, 63, 0.2);
  box-shadow:
    inset 7px 0 18px rgba(200, 149, 63, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-price-panel > span,
.card-price-panel small {
  color: #7c4a18;
}

.detail-side {
  color: #fff7ed;
  border-color: rgba(255, 205, 142, 0.18);
}

.detail-side .eyebrow,
.detail-side .detail-price {
  color: #ffb86a;
}

.detail-side .lead-copy,
.detail-side ul,
.detail-side .fact small,
.detail-side .price-box small {
  color: #d8c8b8;
}

.detail-side .side-section {
  border-top-color: rgba(255, 205, 142, 0.12);
}

.detail-side .fact,
.detail-side .price-box div {
  background:
    var(--leather-grain-dark),
    radial-gradient(ellipse at 22% 10%, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.065));
  background-size: 150px 150px, auto, auto;
  background-blend-mode: soft-light, screen, normal;
  border-color: rgba(255, 205, 142, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.detail-side .fact strong,
.detail-side .price-box strong,
.detail-side h3 {
  color: #fffaf3;
}

.detail-side .vehicle-actions a:last-child {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 205, 142, 0.16);
}

/* 详情页侧栏(深色皮革主题)下的加购按钮 — 走"次级 CTA"层级:
   - 主 CTA(询价)= 实心橙色,a:first-child 已经处理
   - 次 CTA(向客服询问 / 加入购物车)= 暖白色描边 + 极浅金棕底,与 .price-box / .fact 卡的色调一致
   - 三级链接(返回市场)= 沿用 a:last-child 已有的暗灰描边
   高度统一为 46px,与主 CTA 对齐,避免按钮列里的视觉锯齿。 */
.detail-side .vehicle-actions .vehicle-chat-ask,
.detail-side .vehicle-actions .cart-add-btn {
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #fff7ed;
  background:
    linear-gradient(180deg, rgba(255, 205, 142, 0.10), rgba(255, 205, 142, 0.04));
  border: 1px solid rgba(255, 205, 142, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .15s, border-color .15s, color .15s;
}
.detail-side .vehicle-actions .vehicle-chat-ask:hover,
.detail-side .vehicle-actions .cart-add-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 205, 142, 0.18), rgba(255, 205, 142, 0.08));
  border-color: rgba(255, 205, 142, 0.55);
  color: #ffffff;
}
.detail-side .vehicle-actions .cart-add-btn.is-in-cart {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 205, 142, 0.16);
  color: #fff7ed;
  opacity: 0.85;
}
.detail-side .vehicle-actions .cart-add-btn.is-in-cart::before {
  /* 复用全局 ✓,但调成与暖白文字同色 */
  color: #fff7ed;
}

/* 头部 Cart 入口在浅色页面看起来正常,但放在落地页的浅色 header 里
   边框过于"漂"。给个轻微的色阶差,让它和语言切换器视觉权重一致。 */
/* .site-header 下沿用基础 .cart-launcher 的样式 — 与同行的 .lang-switcher hover 保持一致(灰色),
   不再单独染橙,避免两个按钮 hover 行为分裂 */
.site-header .cart-launcher {
  background: #fff;
  border-color: var(--line, #e5e7eb);
  color: #1f2937;
}
.site-header .cart-launcher:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1f2937;
}
.site-header .cart-launcher svg {
  color: inherit;
}

.trade-status-row {
  background: rgba(255, 205, 142, 0.16);
  border-color: rgba(255, 205, 142, 0.18);
}

.trade-status-row div {
  color: #fff7ed;
  background:
    var(--leather-grain-dark),
    radial-gradient(ellipse at 18% 10%, rgba(255, 255, 255, 0.075), transparent 42%),
    linear-gradient(145deg, #101923, #183448 62%, #251711);
  background-size: 150px 150px, auto, auto;
  background-blend-mode: soft-light, screen, normal;
}

.trade-status-row span {
  color: #d8c8b8;
}

.trade-status-row strong {
  color: #fffaf3;
}

@media (max-width: 1180px) {
  .advantage-grid,
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: relative;
    top: auto;
  }

  .vehicle-card {
    grid-template-columns: 200px minmax(0, 1fr) 210px;
  }

  .export-overview-card {
    grid-template-columns: repeat(3, 1fr);
  }

  .export-overview-card div {
    border-bottom: 1px solid var(--line);
  }

  .export-overview-card div:nth-child(3n) {
    border-right: 0;
  }

  .export-overview-card div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .spec-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-cell:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .spec-cell:nth-child(2n) {
    border-right: 0;
  }

  .spec-cell:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .spec-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .stock-row {
    grid-template-columns: 110px minmax(180px, 1fr);
  }

  .stock-row dl {
    grid-column: 1 / -1;
  }

  .report-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
  }

  .brand,
  .site-nav,
  .header-actions {
    width: 100%;
  }

  .site-nav {
    overflow-x: auto;
  }

  .factory-hero,
  .control-room-band,
  .section-block,
  .market-preview,
  .two-column-section,
  .rfq-layout,
  .detail-layout,
  .market-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .control-room-band,
  .market-layout,
  .two-column-section,
  .two-column-section.reverse,
  .rfq-layout,
  .flow-band {
    grid-template-columns: 1fr;
  }

  .hero-headline,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero-search,
  .page-search,
  .selection-grid,
  .flow-steps,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .hero-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .listing-head,
  .result-tools {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .section-heading a {
    grid-column: 1;
    grid-row: auto;
  }

  .listing-head,
  .result-tools {
    flex-direction: column;
  }

  .section-heading h2,
  .flow-band h2,
  .control-copy h2 {
    font-size: 26px;
  }

  .board-grid,
  .board-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-panel {
    position: static;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-label {
    padding: 12px 14px 6px;
    background: #f4f7fb;
    border-right: 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  }

  .filter-options,
  .body-options,
  .more-filters {
    padding-top: 8px;
  }

  .filter-console-head {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .filter-console-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .more-filters {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  .more-filters label {
    width: auto;
    align-items: stretch;
  }

  .more-filters select {
    width: 100%;
  }

  .vehicle-card {
    grid-template-columns: 1fr;
  }

  .vehicle-photo {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vehicle-card img,
  .vehicle-photo img {
    height: auto;
  }

  .card-price-panel {
    border-left: 0;
    border-top: 1px solid #fed7aa;
  }

  .export-card-summary,
  .export-overview-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .export-card-summary div,
  .export-card-summary div:nth-child(3n),
  .export-card-summary div:nth-last-child(-n + 3),
  .export-overview-card div,
  .export-overview-card div:nth-child(3n),
  .export-overview-card div:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .export-card-summary div:nth-child(2n),
  .export-overview-card div:nth-child(2n) {
    border-right: 0;
  }

  .export-card-summary div:nth-last-child(-n + 2),
  .export-overview-card div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .two-column-section.reverse img {
    order: 0;
  }

  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stock-row dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .guazi-score-card,
  .archive-grid,
  .feature-spec-row {
    grid-template-columns: 1fr;
  }

  .score-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-metrics div {
    border-left: 0;
    border-top: 1px solid #fed7aa;
  }

  .archive-grid div,
  .feature-spec-row div,
  .archive-grid div:last-child,
  .feature-spec-row div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-grid div:last-child,
  .feature-spec-row div:last-child {
    border-bottom: 0;
  }

  .condition-table div {
    grid-template-columns: 1fr;
  }

  .condition-table span,
  .condition-table b {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 540px) {
  .hero-headline,
  .page-hero h1 {
    font-size: 28px;
  }

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

  .advantage-grid,
  .package-grid,
  .vehicle-grid,
  .vehicle-actions,
  .rfq-form,
  .chat-box form,
  .spec-matrix,
  .stock-row,
  .stock-row dl,
  .report-module-grid,
  .board-grid,
  .board-timeline {
    grid-template-columns: 1fr;
  }

  .guazi-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .export-card-summary,
  .export-overview-card {
    grid-template-columns: 1fr;
  }

  .trade-status-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .export-card-summary div,
  .export-card-summary div:nth-child(2n),
  .export-card-summary div:nth-child(3n),
  .export-card-summary div:nth-last-child(-n + 2),
  .export-card-summary div:nth-last-child(-n + 3),
  .export-overview-card div,
  .export-overview-card div:nth-child(2n),
  .export-overview-card div:nth-child(3n),
  .export-overview-card div:nth-last-child(-n + 2),
  .export-overview-card div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .export-card-summary div:last-child,
  .export-overview-card div:last-child {
    border-bottom: 0;
  }

  .guazi-summary div {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .guazi-summary div:nth-child(3n) {
    border-right: 0;
  }

  .guazi-summary div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .spec-cell,
  .spec-cell:nth-child(2n),
  .spec-cell:nth-child(4n),
  .spec-cell:nth-last-child(-n + 2),
  .spec-cell:nth-last-child(-n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .spec-cell:last-child {
    border-bottom: 0;
  }

  .stock-row img {
    width: 100%;
  }

  .vehicle-specs.dense,
  .vehicle-specs.dense span {
    grid-template-columns: 1fr;
  }

  .vehicle-specs.dense span,
  .vehicle-specs.dense span:nth-child(2n),
  .vehicle-specs.dense span:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vehicle-specs.dense span:last-child {
    border-bottom: 0;
  }

  .advantage-card h3 {
    min-height: 0;
  }

  .more-filters label {
    width: 100%;
  }

  .body-options button {
    min-width: 0;
    flex: 1 1 30%;
  }

  .filter-console-stats,
  .more-filters {
    grid-template-columns: 1fr;
  }

  .chat-launcher {
    position: static;
    width: auto;
    height: 48px;
    margin: 24px 18px;
    border-radius: 8px;
  }

  .chat-box,
  body[data-page="market"] .chat-box,
  body[dir="rtl"] .chat-box {
    position: static;
    width: auto;
    margin: 0 18px 24px;
  }
}

/* ============================================================
   Site Footer
   ============================================================ */
.site-footer {
  background: #0b1320;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 48px 24px;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-footer .footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer .footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.18s;
}
.site-footer .footer-col a:hover {
  color: #ff6a00;
}
.site-footer .footer-brand .footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.site-footer .footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ff6a00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.site-footer .footer-brand strong {
  color: #fff;
  font-size: 16px;
}
.site-footer .footer-lang a.is-active {
  color: #ff6a00;
  font-weight: 600;
}
.site-footer .footer-base {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}
body[dir="rtl"] .site-footer .footer-grid {
  direction: rtl;
}
@media (max-width: 960px) {
  .site-footer {
    padding: 40px 24px 20px;
    margin-top: 48px;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 合规 / 法律页面(隐私政策 · 服务条款 · Cookie · 联系我们)──
   模板 site/compliance.njk 使用 .compliance__* 类;此前无样式导致正文整段塌成
   无边距全宽文本块。这里给一套与门户其它页面一致的卡片式排版(品牌橙链接、卡片阴影)。 */
.compliance {
  padding: 48px 0 72px;
}
.compliance__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.compliance__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
}
.compliance__body {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.compliance__body h2 {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.compliance__body h2:first-child {
  margin-top: 0;
}
.compliance__body p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
  font-size: 15px;
}
.compliance__body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.compliance__body ul,
.compliance__body ol {
  margin: 0;
  padding-left: 22px;
  color: #334155;
  line-height: 1.8;
}
.compliance__body li + li {
  margin-top: 6px;
}
.compliance__body table {
  width: 100%;
  border-collapse: collapse;
}
.compliance__body table th,
.compliance__body table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.compliance__body table th {
  background: var(--soft);
  font-weight: 700;
}

@media (max-width: 640px) {
  .compliance {
    padding: 28px 0 48px;
  }
  .compliance__title {
    font-size: 26px;
  }
  .compliance__body {
    padding: 22px;
  }
}

/* ───── 本地购物车 ─────
   - 头部入口走 .cart-launcher,与 .lang-switcher 高度对齐(34px)
   - 列表页 / 详情页加车按钮态由 cart.js 接管 .is-in-cart 切色
   - /cart 页面整体走和 market.card 一致的卡片风格 */
/* 与 .lang-switcher > summary 视觉对齐:同高 / 同圆角 / 同 border / 同 padding / 同字重,
   保证 header 右侧两个胶囊视觉一致(用户反馈:cart 边框比 lang 浅,看着不一对) */
.cart-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* lang-switcher > summary 在 line 2897 被 override 到 38px(并非原始定义的 34px),
     cart 必须同步到 38px,否则视觉低 4px。line-height:1 确保 button UA 默认不撑高。 */
  height: 38px;
  min-height: 38px;
  line-height: 1;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.cart-launcher:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.cart-launcher svg { display: block; flex-shrink: 0; }
.cart-launcher-label { line-height: 1; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand, #ff6a00);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cart-badge[hidden] { display: none; }
@media (max-width: 720px) {
  .cart-launcher-label { display: none; }
  .cart-launcher { padding: 0 10px; }
}

/* 加车按钮 — 详情页 / 列表卡片通用,已加态切换为已选 chip */
.cart-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 38px;
  border-radius: 19px;
  border: 1px solid var(--brand, #ff6a00);
  background: transparent;
  color: var(--brand, #ff6a00);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.cart-add-btn:hover {
  background: var(--brand, #ff6a00);
  color: #fff;
}
.cart-add-btn.is-in-cart {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}
.cart-add-btn.is-in-cart::before {
  content: '✓';
  font-weight: 700;
}
.cart-add-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.cart-add-btn--icon.is-in-cart::before { content: ''; }

/* 列表卡片快加按钮 — 浮在卡片图右上角 */
.vehicle-photo .cart-add-btn--icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 106, 0, .35);
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .25);
}
.vehicle-photo .cart-add-btn--icon.is-in-cart {
  background: #475569;
  border-color: #475569;
  color: #fff;
  /* 隐藏按钮原 "+" 文本节点,只留 ::before 的 ✓ — 否则两个字符会叠在同一格 */
  font-size: 0;
}
.vehicle-photo .cart-add-btn--icon.is-in-cart::before {
  content: '✓';
  font-size: 16px;
}

/* ───── 全局购物车抽屉 ─────
   - 左侧 slide-in,宽 380px(移动端 100vw)
   - backdrop 暗色半透明遮罩,点击 / ESC 关闭
   - z-index 居于 modal 与 chat 之间,确保 chat 仍可在抽屉之上被打开 */
.cart-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 9100;
  pointer-events: none;
}
.cart-drawer-root.is-open { pointer-events: auto; }
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background .22s ease;
}
.cart-drawer-root.is-open .cart-drawer-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -12px 0 36px -16px rgba(15, 23, 42, .35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}
.cart-drawer-root.is-open .cart-drawer { transform: translateX(0); }
/* RTL(阿语)— 抽屉从屏幕左侧滑入,与"购物车入口在右侧"的源点保持对称 */
[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 12px 0 36px -16px rgba(15, 23, 42, .35);
}
[dir="rtl"] .cart-drawer-root.is-open .cart-drawer { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.cart-drawer__head h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}
.cart-drawer__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.cart-drawer__close:hover { color: #0f172a; background: #f1f5f9; }

.cart-drawer__lead {
  margin: 10px 20px 0;
  font-size: 12px;
  color: #94a3b8;
}

.cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}
/* 强制覆盖:author 的 display:flex/grid 会盖掉 UA 的 [hidden]{display:none},
   必须显式声明,否则切到 list 时空态仍可见(同样适用 footer / list)。 */
.cart-drawer__empty[hidden],
.cart-drawer__list[hidden],
.cart-drawer__footer[hidden] {
  display: none !important;
}
.cart-drawer__empty h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #475569;
}
.cart-drawer__empty p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 16px;
  max-width: 240px;
}
.cart-drawer__empty a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 19px;
  background: var(--brand, #ff6a00);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  flex: 1;
  overflow-y: auto;
  /* 用 flex column 替代 grid:之前 display:grid 在 flex:1 父容器下,
     当 cart 项数少时 grid-auto-rows 会按 align-content:stretch 行为把每行抻平,
     造成卡片下方一大段空白(用户截图所示)。flex column 自动按内容高度堆叠,
     gap 维持原 10px 间距,行为最直觉。 */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-drawer__item {
  position: relative;
  display: grid;
  /* 列:勾选 + 封面 + 主区。留出右侧 chat-send 按钮位由绝对定位实现。 */
  grid-template-columns: 20px 84px 1fr;
  /* align-items: start 防止 grid 默认 stretch 把卡片整体拉高到与其他高项一致 */
  align-items: start;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fff;
}
.cart-drawer__item-check {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px; /* 与封面同高,使 checkbox 垂直居中对齐车图 */
  margin: 0;
  cursor: pointer;
}
/* 自定义 checkbox — 默认浅边框 + 白底,选中后品牌橙描边 + 细对勾,比原生 accent-color 满色更轻。 */
.cart-drawer__item-check input[type="checkbox"],
.cart-drawer__select-all input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .12s, background .12s;
  flex-shrink: 0;
}
.cart-drawer__item-check input[type="checkbox"]:hover,
.cart-drawer__select-all input[type="checkbox"]:hover {
  border-color: var(--brand, #ff6a00);
}
.cart-drawer__item-check input[type="checkbox"]:checked,
.cart-drawer__select-all input[type="checkbox"]:checked {
  border-color: var(--brand, #ff6a00);
  background: var(--brand, #ff6a00);
}
.cart-drawer__item-check input[type="checkbox"]:checked::after,
.cart-drawer__select-all input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
/* indeterminate(部分选中)— 横线代替对勾 */
.cart-drawer__select-all input[type="checkbox"]:indeterminate {
  border-color: var(--brand, #ff6a00);
  background: var(--brand, #ff6a00);
}
.cart-drawer__select-all input[type="checkbox"]:indeterminate::after {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 6px;
  width: 9px;
  height: 1.8px;
  background: #fff;
  border-radius: 1px;
}
.cart-drawer__item-photo {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}
.cart-drawer__item-main {
  min-width: 0;
}
.cart-drawer__item-main h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer__item-main h4 a {
  color: #0f172a;
  text-decoration: none;
}
.cart-drawer__item-main h4 a:hover { color: var(--brand, #ff6a00); }
.cart-drawer__item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  color: #94a3b8;
  font-size: 11px;
  margin: 0 0 4px;
}
.cart-drawer__item-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 8px;
  color: #cbd5e1;
}
.cart-drawer__item-price {
  font-size: 13px;
  color: var(--orange-dark, #c2410c);
  font-weight: 600;
  /* 右侧给绝对定位的 .cart-drawer__item-send 让位,价格行不被覆盖 */
  margin: 0 76px 0 0;
  font-variant-numeric: tabular-nums;
}
.cart-drawer__item-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(15, 23, 42, .04);
  color: #94a3b8;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 单条「送 chat」按钮 — 卡片右下角小 chip(图标 + 文字),与 remove 在视觉重量上拉开:
   remove 是消极动作(灰底 → 红 hover),send-one 是积极动作(浅底 → 品牌橙 hover)。
   绝对定位避免影响 grid 高度;与 remove 一起,小卡片视觉密度更紧凑。 */
.cart-drawer__item-send {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  transition: border-color .12s, color .12s, background .12s;
}
.cart-drawer__item-send svg { display: block; }
.cart-drawer__item-send:hover {
  border-color: var(--brand, #ff6a00);
  color: var(--brand, #ff6a00);
  background: #fff7ed;
}

.cart-drawer__item-remove:hover {
  background: #fef2f2;
  color: #dc2626;
}

.cart-drawer__footer {
  border-top: 1px solid #f1f5f9;
  padding: 12px 16px 16px;
  background: #fff;
}
.cart-drawer__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cart-drawer__select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.cart-drawer__summary {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.cart-drawer__actions {
  /* 两按钮:清空(左小) + 客服对话(右大主 CTA);询价 batch 路径已移除 */
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.cart-drawer__clear,
.cart-drawer__chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 19px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 0 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cart-drawer__clear {
  background: transparent;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.cart-drawer__clear:hover { border-color: #dc2626; color: #dc2626; }
.cart-drawer__chat {
  /* 主 CTA — 客服对话是 cart 唯一去处,品牌橙突出 */
  background: var(--brand, #ff6a00);
  border-color: var(--brand, #ff6a00);
  color: #fff;
}
.cart-drawer__chat:disabled,
.cart-drawer__chat.is-disabled {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #fff;
  cursor: not-allowed;
  opacity: .8;
}
.cart-drawer__chat:disabled:hover,
.cart-drawer__chat.is-disabled:hover {
  background: #cbd5e1;
  border-color: #cbd5e1;
}
.cart-drawer__chat:hover {
  background: #e85a00;
  border-color: #e85a00;
}

@media (max-width: 480px) {
  .cart-drawer__actions {
    grid-template-columns: 1fr 1fr;
  }
  .cart-drawer__clear { grid-column: 1 / -1; height: 32px; }
}

/* 抽屉打开时锁定 body 滚动 */
body.cart-drawer-open { overflow: hidden; }

/* 加车后 toast(cart.js 创建) */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  z-index: 9999;
  background: #0f172a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 旧 /cart 二级页样式已移除(改用全局抽屉),保留 .cart-* 抽屉相关规则 */
