/* ==========================================================================
   China Second Cars — v2
   B2B used-car export. Navy #0B3A5C / accent #E6A23C.
   ========================================================================== */

:root {
  --navy: #0B3A5C;
  --navy-900: #072a44;
  --navy-700: #14507c;
  --accent: #E6A23C;
  --accent-dark: #c9862a;
  --ink: #17242f;
  --muted: #5c6b7d;
  --line: #e2e7ee;
  --line-strong: #cfd7e2;
  --soft: #f5f7fa;
  --white: #fff;
  --ok: #1f7a4d;
  --warn: #b45309;
  --danger: #b42318;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(11, 58, 92, .06), 0 8px 24px rgba(11, 58, 92, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(30px, 3.4vw, 46px); }
h2 { font-size: clamp(22px, 2.2vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 2px 5px; border-radius: 3px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; font-size: 15px; font-weight: 600; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--accent); color: #2b1a02; }
.btn-accent:hover { background: var(--accent-dark); color: #2b1a02; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--soft); }
.btn-ghost { background: var(--soft); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #eef2f7; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c9c4; }
.btn-danger:hover { background: #fdf3f2; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-xs { padding: 4px 9px; font-size: 12.5px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { font-weight: 750; font-size: 17px; letter-spacing: -.02em; }

.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav a {
  font-size: 14.5px; font-weight: 550; color: #33445a; padding: 6px 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
/* 俄语菜单更长，窄一点的桌面宽度收紧间距，避免换行 */
@media (max-width: 1360px) and (min-width: 901px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 13.5px; }
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.is-active { color: var(--navy); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.lang-switch a.on { background: var(--navy); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { display: block; padding: 13px 24px; border-bottom: 1px solid var(--soft); font-weight: 550; color: #33445a; }
.mobile-nav .mobile-lang { display: flex; gap: 10px; padding: 14px 24px; }
.mobile-nav .mobile-lang a { border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; }
.mobile-nav .mobile-lang a.on { background: var(--navy); color: #fff; }
.mobile-nav.open { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(230, 162, 60, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy) 55%, #0e4468);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .85fr;
  gap: 56px; padding: 78px 24px 84px; align-items: start;
}
.hero-copy h1 { color: #fff; margin-bottom: 20px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero .kicker { color: var(--accent); }
.hero-lead { font-size: 18px; line-height: 1.62; color: rgba(255, 255, 255, .82); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero .btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.hero-points li {
  font-size: 14.5px; color: rgba(255, 255, 255, .8); padding-left: 22px; position: relative;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px;
  border: 2px solid var(--accent); border-radius: 50%;
}

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.hero-stats > div { padding: 16px 14px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .65); }

.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 24px;
}
.hero-card h2 { font-size: 19px; color: #fff; }
.hero-card p { font-size: 14.5px; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy-900); color: #fff; }
.section--flush { padding-top: 8px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 0 0 8px; padding-left: 14px; border-left: 3px solid var(--accent); }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; font-size: 15.5px; }
.section-head--dark h2 { color: #fff; }
.section-head--dark p { color: rgba(255, 255, 255, .7); }

.link-arrow { font-size: 14px; font-weight: 650; color: var(--navy); white-space: nowrap; }
.link-arrow:hover { color: var(--navy-700); }

/* ---------- Cards ---------- */

.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; min-height: 92px; transition: border-color .15s, box-shadow .15s;
}
.brand-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.brand-card-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.brand-card-count, .brand-card-blurb { font-size: 12.5px; color: var(--muted); }

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

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-grid--sm { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.model-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px 20px 16px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.model-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.model-card-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.model-card h3 { font-size: 20px; margin: 6px 0 8px; color: var(--navy); }
.model-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.model-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--soft); }
.model-stock { color: var(--ok); font-weight: 650; }

.model-group { margin-bottom: 42px; }
.model-group-title { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }

/* ---------- Unit cards ---------- */

.unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.unit-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.unit-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.unit-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.unit-card:hover .unit-media img { transform: scale(1.03); }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px;
  color: #fff; background: var(--ok);
}
.badge--reserved { background: var(--warn); }
.badge--sold { background: #6b7280; }
.unit-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.unit-body h3 { font-size: 16px; margin: 0; line-height: 1.35; }
.unit-body h3 a { color: var(--ink); }
.unit-specs { font-size: 13px; color: var(--muted); margin: 0; }
.dot-sep { color: var(--line-strong); }
.unit-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--soft); }
.price { display: block; font-size: 19px; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; }
.price--ask { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-note { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stock-no, .stock-chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: var(--soft); padding: 3px 6px; border-radius: 3px;
  white-space: nowrap;
}
.stock-chip { display: inline-block; color: var(--navy); }

.detail-about { margin-top: 18px; }
.detail-about h2 { font-size: 16px; margin: 0 0 8px; }
.detail-about .prose { font-size: 14.5px; line-height: 1.66; color: var(--muted); margin: 0; }

/* ---------- Countries ---------- */

.country-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.country-chip {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font-weight: 650; color: var(--navy);
}
.country-chip span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.country-chip:hover { border-color: var(--navy); box-shadow: var(--shadow); }

.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.country-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.country-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.country-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.country-region { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.country-ports { font-size: 13.5px; color: #33445a; }
.country-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 32px; align-items: start; }

/* ---------- Process ---------- */

.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: p; }
.process-grid li { position: relative; padding-top: 6px; }
.process-num { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); display: block; margin-bottom: 10px; }
.process-grid h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.process-grid p { color: rgba(255, 255, 255, .72); font-size: 14px; margin: 0; }

/* ---------- Panels / specs ---------- */

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 20px;
}
.panel h2 { font-size: 18px; margin-bottom: 14px; }
.panel--soft { background: var(--soft); }
.panel--warn { border-left: 3px solid var(--accent); }
.panel--note { background: #fbf8f1; border-color: #f0e3c8; }
.panel--lead p { font-size: 16px; color: #2b3a4a; }
.prose { white-space: pre-line; color: #2b3a4a; }
.prose p { margin-bottom: 1em; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 600; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.trim-list { margin: 0; }
.trim-list dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.trim-list dt:first-child { margin-top: 0; }
.trim-list dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.tick-list, .check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tick-list li, .check-list li { position: relative; padding-left: 24px; font-size: 14.8px; color: #2b3a4a; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.check-list li::before { content: "!"; position: absolute; left: 4px; top: 1px; color: var(--warn); font-weight: 700; }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 16px 30px 16px 0; font-weight: 650; font-size: 15.5px;
  position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 20px; color: var(--muted); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 18px; color: var(--muted); font-size: 14.8px; }
.faq-answer p { margin: 0; }

/* ---------- Page head / breadcrumbs ---------- */

.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 34px 0 40px; }
.page-head h1 { margin-bottom: 12px; color: var(--navy); }
.page-head--post h1 { margin-top: 8px; }
.page-lead { font-size: 16.5px; color: var(--muted); max-width: 760px; margin-bottom: 6px; }

.breadcrumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Model page ---------- */

.model-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 30px 0 44px; }
.model-hero-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 46px; align-items: start; }
.model-hero h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; color: var(--navy); }
.model-years-hero { font-size: 16px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.model-hero-aside { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.aside-fact { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--soft); font-size: 14px; }
.aside-fact:last-child { border-bottom: 0; }
.aside-fact span { color: var(--muted); }
.price-band { padding: 16px; background: var(--navy); color: #fff; display: grid; gap: 2px; }
.price-band-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.price-band strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.price-band-note { font-size: 12px; color: rgba(255, 255, 255, .65); }

.model-layout { display: grid; grid-template-columns: 1.55fr .75fr; gap: 36px; align-items: start; }
.sticky-box {
  position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: #fff; display: grid; gap: 10px;
}
.sticky-box h3 { margin: 0; font-size: 17px; }
.sticky-box p { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.sticky-box .btn { width: 100%; }

.sourcing-box {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 28px;
}
.sourcing-box h2 { font-size: 20px; margin-bottom: 6px; }
.sourcing-box p { margin: 0; color: var(--muted); }

/* ---------- Inventory ---------- */

.inventory-layout { display: grid; grid-template-columns: 268px 1fr; gap: 32px; align-items: start; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; position: sticky; top: 88px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters-head h2 { font-size: 15px; margin: 0; }
.filters-reset { font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.filters .field { margin-bottom: 12px; }
.inventory-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.sort-form label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sort-form select { width: auto; }

.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 56px 24px; text-align: center; background: var(--soft); }
.empty-state h2 { font-size: 19px; }
.empty-state p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.empty-note { color: var(--muted); font-size: 14.5px; padding: 28px 0; text-align: center; }

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.page-link {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px; font-size: 13.5px; color: var(--navy); padding: 0 10px;
}
.page-link:hover { border-color: var(--navy); }
.page-link.is-current { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 650; }

/* ---------- Detail page ---------- */

.detail-head { padding: 20px 0 0; }
.detail-wrap { display: grid; grid-template-columns: 1.35fr .95fr; gap: 40px; align-items: start; }
.gallery-main { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--soft); cursor: pointer; aspect-ratio: 4 / 3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--navy); }

.detail-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-top .badge { position: static; }
.detail-info h1 { font-size: clamp(26px, 2.4vw, 34px); color: var(--navy); margin-bottom: 6px; }
.detail-sub { font-size: 13.5px; color: var(--muted); }
.detail-price { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0 18px; }
.detail-price strong { font-size: 30px; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; }
.detail-price span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.detail-price--ask strong { font-size: 20px; }
.detail-actions { display: grid; gap: 9px; margin-bottom: 18px; }
.detail-actions .btn { width: 100%; }
.notice { background: #fdf6e8; border: 1px solid #f0e0bd; color: #7a5312; padding: 10px 12px; border-radius: 4px; font-size: 13.5px; }
.detail-specs h2 { font-size: 16px; margin: 22px 0 8px; }

/* ---------- Inquiry form ---------- */

.inquiry-layout { display: grid; grid-template-columns: 1.5fr .75fr; gap: 36px; align-items: start; }
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-section { border: 0; border-top: 1px solid var(--line); padding: 22px 0 6px; margin: 0; }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); padding: 0; margin-bottom: 14px; }
.form-error { background: #fdf3f2; border: 1px solid #f3c9c4; color: var(--danger); padding: 10px 12px; border-radius: 4px; font-size: 14px; }

.inquiry-vehicle {
  display: flex; gap: 16px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--soft); margin-bottom: 22px;
}
.inquiry-vehicle-media { width: 130px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #e8edf3; }
.inquiry-vehicle-media img { width: 100%; height: 100%; object-fit: cover; }
.inquiry-vehicle-body h3 { margin: 6px 0 4px; font-size: 17px; }
.inquiry-vehicle-body p { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.inquiry-vehicle-price { font-weight: 700; color: var(--navy); font-size: 15px; }
.inquiry-vehicle-price span { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.inquiry-aside { display: grid; gap: 16px; position: sticky; top: 88px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success-box { text-align: center; padding: 60px 0 40px; }
.success-mark {
  width: 54px; height: 54px; border-radius: 50%; background: #e8f5ee; color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px;
}
.ref-number { font-family: var(--mono); font-size: 18px; color: var(--navy); background: var(--soft); display: inline-block; padding: 8px 16px; border-radius: 4px; }

/* ---------- Forms ---------- */

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: #33445a; margin-bottom: 6px; }
.field em { color: var(--danger); font-style: normal; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 58, 92, .1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.field-row .field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.check-row input { width: auto; }

/* ---------- CTA band / footer ---------- */

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--accent); color: #2b1a02; }
.cta-band .btn-primary:hover { background: var(--accent-dark); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.inline-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.site-footer { background: #081d2e; color: rgba(255, 255, 255, .72); padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; }
.footer-brand .brand--footer { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-text { color: #fff; }
.footer-tagline { color: rgba(255, 255, 255, .82); margin-bottom: 8px; }
.footer-note { font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: rgba(255, 255, 255, .5);
}
.footer-legal { display: flex; gap: 18px; }

.wa-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .38);
  transition: transform .15s;
}
.wa-fab:hover { transform: scale(1.06); color: #fff; }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.post-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.post-card time { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.post-card h2 { font-size: 19px; margin: 8px 0; color: var(--navy); }
.post-card p { font-size: 14px; color: var(--muted); }
.post-meta { font-size: 13px; color: var(--muted); }
.post-body h2 { margin-top: 34px; font-size: 21px; color: var(--navy); }
.post-body p { font-size: 16px; line-height: 1.72; color: #263543; }

/* ---------- Admin ---------- */

.admin-body { background: #eef2f6; }
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-900); color: rgba(255, 255, 255, .75); display: flex; flex-direction: column; padding: 20px 0; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 0 20px 20px; font-weight: 700; font-size: 14.5px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.admin-nav { display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; }
.admin-nav a { color: rgba(255, 255, 255, .72); padding: 9px 12px; border-radius: 4px; font-size: 14px; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.is-active { background: rgba(230, 162, 60, .16); color: #ffcf8a; font-weight: 600; }
.admin-side-foot { margin-top: auto; padding: 16px 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.admin-side-foot a { color: rgba(255, 255, 255, .6); }
.admin-side-foot a:hover { color: #fff; }

.admin-main { padding: 30px 34px 60px; max-width: 1240px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.admin-head h1 { font-size: 26px; margin: 0 0 4px; color: var(--navy); }
.admin-sub { font-size: 13.5px; color: var(--muted); margin: 0; }
.admin-head-actions { display: flex; gap: 8px; }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.admin-card--flush { padding: 0; overflow: hidden; }
.admin-card h2 { font-size: 16px; margin-bottom: 12px; }
.admin-card--internal summary { cursor: pointer; }
.admin-card--internal summary h2 { display: inline-block; margin: 0 0 14px; }
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: block; }
.stat-card:hover { border-color: var(--navy); }
.stat-card span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { display: block; font-size: 30px; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-card--alert { border-color: var(--accent); background: #fffaf1; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 650; }
.pill--on { background: #e8f5ee; color: var(--ok); }
.pill--off { background: #f1f4f8; color: var(--muted); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab span { margin-left: 6px; font-size: 11.5px; background: var(--soft); padding: 1px 6px; border-radius: 10px; color: var(--muted); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--accent); font-weight: 650; }
.tab.is-active span { background: #fdf1dc; color: var(--accent-dark); }

.admin-search { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-search input { flex: 1; max-width: 380px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.table th { text-align: left; padding: 10px 12px; background: var(--soft); font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table code { font-size: 12px; }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 3px; display: block; background: var(--soft); }
.thumb--empty { display: block; }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.inline-form { display: inline; }
.warn-text { color: var(--warn); }

.status-tag { font-size: 12px; padding: 3px 8px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.status-tag--on_sale { background: #e8f5ee; color: var(--ok); }
.status-tag--reserved { background: #fdf6e8; color: var(--warn); }
.status-tag--sold { background: #eef0f3; color: #4b5563; }
.status-tag--draft { background: #eef2f7; color: var(--muted); }
.status-tag--hidden { background: #f3eefb; color: #6b46c1; }

.flash { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.flash--ok { background: #eefaf3; border-color: #bfe7d1; color: #14603c; }
.flash--error { background: #fdf3f2; border-color: #f3c9c4; color: #8f1d15; }

.admin-form h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--soft); }
.admin-card > h2 { text-transform: none; letter-spacing: 0; color: var(--ink); border-bottom: 0; font-size: 16px; }
.form-actions { display: flex; gap: 10px; margin: 8px 0 40px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.radio-row label { display: flex; align-items: center; gap: 6px; }
.radio-row input { width: auto; }
.code-block { background: #0d2233; color: #cfe3f5; padding: 12px 14px; border-radius: 4px; font-size: 13px; overflow-x: auto; font-family: var(--mono); }

.image-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.image-tile { margin: 0; position: relative; }
.image-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.image-tile .btn { position: absolute; top: 6px; right: 6px; }

.inquiry-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.inquiry-card h2 { font-size: 17px; margin: 0 0 4px; border: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.inquiry-card-actions { display: flex; gap: 6px; }
.inquiry-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); }
.inquiry-fields span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.inquiry-fields strong { font-size: 14px; font-weight: 600; }
.inquiry-message { margin: 0 0 14px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--line-strong); font-size: 14px; color: #33445a; white-space: pre-line; }
.status-form { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.status-form select { width: auto; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 4px; }

/* auth */
.admin-auth-body { background: linear-gradient(160deg, var(--navy-900), var(--navy)); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-box { background: #fff; border-radius: 10px; padding: 34px 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand strong { display: block; color: var(--navy); font-size: 15px; }
.auth-brand span { font-size: 12.5px; color: var(--muted); }
.auth-box h1 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.auth-lead { font-size: 14px; color: var(--muted); }
.auth-form .field { margin-bottom: 14px; }
.auth-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Responsive ---------- */

/* 带筛选侧栏的库存页：大屏 3 列，卡片更舒展 */
@media (min-width: 1200px) {
  .inventory-main .unit-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
  .unit-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .country-row { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .admin-shell { grid-template-columns: 200px 1fr; }
  .admin-main { padding: 24px 22px 50px; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 24px 60px; }
  .model-hero-grid, .model-layout, .detail-wrap, .inquiry-layout, .country-layout { grid-template-columns: 1fr; gap: 26px; }
  .sticky-box, .inquiry-aside { position: static; }
  .inventory-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .model-grid, .post-grid, .country-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .sourcing-box { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two { grid-template-columns: 1fr; }
  .inquiry-fields { grid-template-columns: repeat(2, 1fr); }
  .image-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .section-tight { padding: 34px 0; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .unit-body { padding: 11px 12px 13px; }
  .unit-body h3 { font-size: 14.5px; }
  .price { font-size: 16px; }
  .model-grid, .post-grid, .country-grid, .brand-grid { grid-template-columns: 1fr; }
  .brand-strip, .country-row { grid-template-columns: repeat(2, 1fr); }
  .field-row, .field-row--3 { grid-template-columns: 1fr; gap: 0; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats strong { font-size: 21px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .header-inner { height: 60px; gap: 12px; }
  .brand-text { font-size: 15px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .inquiry-fields { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 18px 14px 40px; }
  .wa-fab { right: 14px; bottom: 16px; width: 46px; height: 46px; }
  .table--vehicles th:nth-child(3), .table--vehicles td:nth-child(3),
  .table--vehicles th:nth-child(4), .table--vehicles td:nth-child(4) { display: none; }
}

/* RTL 预留（阿拉伯语启用时自动生效） */
[dir="rtl"] .section-head h2 { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 3px solid var(--accent); }
[dir="rtl"] .tick-list li, [dir="rtl"] .check-list li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .tick-list li::before, [dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .wa-fab { right: auto; left: 20px; }
