/* 易看车行前台 UI */
:root {
  --brand: #0D4A8F;
  --brand-hover: #0A3A72;
  --brand-soft: #E8EFF8;
  --brand-muted: #C5D4EC;
  --ink: #0B1220;
  --muted: #5B6B7C;
  --line: #D0D8E4;
  --surface: #ffffff;
}

.site-topbar { background: #0B1F3A; color: #d1d5db; }
.site-topbar a:hover { color: var(--brand); }
.site-header { backdrop-filter: saturate(1.2) blur(8px); background: rgba(255,255,255,0.96); }
.site-logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2B6BC4, #0D4A8F);
  box-shadow: 0 8px 18px rgba(13, 74, 143, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.site-search input { transition: border-color .2s, box-shadow .2s; }
.site-search input:focus { box-shadow: 0 0 0 3px rgba(13, 74, 143,0.12); }
.site-nav { background: linear-gradient(90deg, #1E5AA8, #0D4A8F 40%, #154080); }

/* 首页广告（热门报价上方） */
.site-ad-wrap {
  position: relative;
}
.site-ad-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
  border: 1px solid rgba(13, 74, 143, 0.22);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.12);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.site-ad-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  object-position: center;
}
.site-ad-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: ad-shine 4s ease-in-out infinite;
}
.site-ad-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 74, 143, 0.4);
  box-shadow: 0 14px 32px rgba(13, 74, 143, 0.2);
}
.site-ad-banner:hover .site-ad-shine {
  animation-play-state: paused;
}
@keyframes ad-shine {
  0%, 40% { transform: translateX(-120%); }
  60% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-ad-shine { animation: none; }
}
@media (max-width: 768px) {
  .site-ad-banner { border-radius: 10px; }
  .site-ad-banner img { max-height: 86px; }
}

/* 全局主题色：统一为淡蓝品牌色 */
.bg-yiche { background-color: var(--brand) !important; }
.text-yiche { color: var(--brand) !important; }
.border-yiche { border-color: var(--brand) !important; }
.hover\:bg-blue-700:hover { background-color: var(--brand-hover) !important; }
.hover\:bg-blue-50:hover { background-color: var(--brand-soft) !important; }
.bg-blue-100 { background-color: var(--brand-muted) !important; }
.text-blue-700 { color: #0A3D75 !important; }
.bg-blue-500 { background-color: var(--brand) !important; }

/* 选车 / 车型库 */
.lib-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.05);
}
.lib-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.lib-filters {
  display: grid;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(13, 74, 143,0.06), transparent 70%),
    #f5f9fc;
  border: 1px solid rgba(13, 74, 143, 0.1);
}
.lib-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.lib-filter-label {
  width: 40px;
  flex-shrink: 0;
  padding-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.lib-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.lib-chip {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #3f3a34;
  font-size: 0.86rem;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lib-chip:hover {
  background: #fff;
  border-color: rgba(13, 74, 143, 0.28);
  color: var(--brand);
}
.lib-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(13, 74, 143, 0.28);
  font-weight: 600;
}
.lib-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 14px;
}
.lib-sort {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.86rem;
  background: #fff;
  color: #334155;
  outline: none;
}
.lib-sort:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 74, 143,0.12);
}
.lib-car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lib-car-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 74, 143, 0.35);
  box-shadow: 0 14px 28px rgba(28, 25, 23, 0.08);
}
.lib-tag {
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--brand-muted);
  color: #0A3D75;
  font-weight: 600;
}
.lib-tag.used {
  background: #C5D4EC;
  color: #9a3412;
}
.lib-tag.brand {
  background: #f5f2ee;
  color: #57534e;
  font-weight: 500;
}
.lib-card-btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: filter .15s ease, background .15s ease;
}
.lib-card-btn.primary {
  background: var(--brand);
  color: #fff;
}
.lib-card-btn.primary:hover { filter: brightness(1.05); }
.lib-card-btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(13, 74, 143, 0.45);
}
.lib-card-btn.ghost:hover { background: var(--brand-soft); }

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background-color: #061428;
  background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80');
  /* 车身靠右前，去掉右侧大块空白 */
  background-position: 48% 42%;
  background-size: 118% auto;
  background-repeat: no-repeat;
}
.home-hero--v2 {
  isolation: isolate;
  border-bottom: 1px solid rgba(13, 74, 143, 0.45);
}
.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(6, 20, 40, 0.96) 0%,
      rgba(11, 31, 58, 0.9) 38%,
      rgba(13, 74, 143, 0.42) 68%,
      rgba(13, 74, 143, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 20, 40, 0.35), transparent 42%);
}
.home-hero-veil::after {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  background: linear-gradient(180deg, transparent, #2B6BC4, #0D4A8F, transparent);
  border-radius: 999px;
  opacity: 0.9;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 16px 56px;
  color: #fff;
}
.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #D6E6F8;
  background: rgba(13, 74, 143, 0.35);
  border: 1px solid rgba(91, 140, 200, 0.35);
  backdrop-filter: blur(6px);
}
.home-hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  max-width: none;
  white-space: nowrap;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.home-hero p {
  margin-top: 14px;
  max-width: 540px;
  color: rgba(226, 236, 248, 0.9);
  font-size: 0.98rem;
  line-height: 1.75;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 128px; height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hero-btn-primary {
  background: linear-gradient(135deg, #1E5AA8, #0D4A8F);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 74, 143, 0.35);
}
.hero-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.hero-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(214, 230, 248, 0.4);
  backdrop-filter: blur(4px);
}
.hero-btn-ghost:hover { background: rgba(255,255,255,0.16); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px;
  color: rgba(226, 236, 248, 0.92); font-size: 0.84rem;
}
.hero-stats > div {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 20, 40, 0.35);
  border: 1px solid rgba(91, 140, 200, 0.22);
  backdrop-filter: blur(4px);
}
.hero-stats strong { display: block; font-size: 1.22rem; color: #fff; margin-bottom: 2px; }

.section-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.home-car-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.home-car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

/* 热门车型报价目录式面板 */
.hot-quote-panel {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 18px 18px 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.hot-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.hot-quote-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.hot-tab.active {
  color: #0A3A72;
  font-weight: 700;
}
.hot-tab.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: #0D4A8F;
  border-radius: 2px;
}
.hot-tab:hover { color: #0A3A72; }
.hot-quote-more {
  font-size: 0.82rem;
  color: #0D4A8F;
  background: none;
  border: 0;
  cursor: pointer;
}
.hot-quote-more:hover { text-decoration: underline; }
.hot-quote-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.hot-quote-tabs::-webkit-scrollbar { display: none; }
.hot-tab {
  position: relative;
  padding: 11px 13px;
  font-size: 0.9rem;
  color: #475569;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.hot-quote-rows { padding: 2px 0 4px; }
.hot-quote-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 6px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.hot-quote-row:last-child { border-bottom: 0; }
.hot-row-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.hot-scroll-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hot-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2px 4px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.hot-scroll-track::-webkit-scrollbar { display: none; }
.hot-nav-btn {
  position: static;
  flex-shrink: 0;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-nav-btn:hover {
  color: #0A3A72;
  border-color: #fdba74;
}
.hot-nav-prev,
.hot-nav-next {
  left: auto;
  right: auto;
  top: auto;
  transform: none;
}
.hot-row-cars .hot-car-item {
  flex: 0 0 auto;
  width: 108px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background .15s ease;
}
.hot-row-cars .hot-car-item:hover {
  background: #E8EFF8;
}
.hot-car-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.hot-car-name:hover { color: #0A3A72; }
.hot-car-price {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #0D4A8F;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-car-links { display: none !important; }
.hot-quote-empty {
  padding: 28px 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}
.hot-strip-block {
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  padding-top: 8px;
}
.hot-strip-wrap .hot-scroll-track {
  padding: 4px 30px 2px;
  gap: 10px;
}
.hot-strip-item {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  cursor: pointer;
}
.hot-strip-thumb {
  width: 76px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hot-strip-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-strip-item:hover span { color: #0A3A72; }

/* 在线客服 & 预约弹窗 */
.cs-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2B6BC4, #0D4A8F);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 74, 143, 0.35);
}
.cs-btn:hover { filter: brightness(1.05); }
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.25);
}
.cs-panel {
  width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  display: none;
}
.cs-panel.open { display: block; }
.cs-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #111827;
  color: #fff;
}
.cs-panel-head button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.cs-panel-body {
  padding: 14px;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.6;
}
.cs-panel-body a { color: #0D4A8F; font-weight: 700; }
.cs-primary {
  margin-top: 12px;
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #0D4A8F;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.lead-toast-list {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 75;
  width: min(300px, calc(100vw - 110px));
  height: 78px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.lead-toast-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  will-change: transform;
}
.lead-toast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #57534e;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75);
  transition: opacity .8s ease;
}
.lead-toast-item::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D4A8F;
  box-shadow: 0 0 0 3px rgba(13, 74, 143,0.18);
}
.lead-toast-item.fade-out-up { opacity: 0; }
.lead-toast-item.from-bottom { opacity: 0; }
.lead-toast-item.from-bottom.show,
.lead-toast-item.show { opacity: 1; }

.home-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.home-pager.hidden { display: none; }
.home-pager .btn-page {
  min-width: 88px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
  font-size: 0.86rem;
  cursor: pointer;
}
.home-pager .btn-page:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.home-pager .btn-page:not(:disabled):hover {
  border-color: #0D4A8F;
  color: #0D4A8F;
}
.home-pager .page-info {
  min-width: 88px;
  text-align: center;
  color: #64748b;
  font-size: 0.86rem;
}
.brand-chip {
  border-radius: 999px !important;
  transition: all .15s ease;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 0.82rem;
}
.footer-stats strong {
  color: #9AD0ED;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.footer-stats-sep { color: #4b5563; }

#news-detail-content h3,
#usage-detail-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
#news-detail-content p,
#usage-detail-content p {
  margin: 0.65rem 0;
  line-height: 1.85;
  color: #374151;
}
#news-detail-content ul,
#usage-detail-content ul {
  margin: 0.75rem 0 0.25rem 1.1rem;
  list-style: disc;
  color: #4b5563;
}
#news-detail-content li,
#usage-detail-content li {
  margin: 0.35rem 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 300px;
    background-position: 42% 45%;
    background-size: 160% auto;
  }
  .home-hero-inner { padding: 40px 16px 36px; }
  .home-hero-veil::after { display: none; }
  .home-hero h1 {
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-stats > div { min-width: 96px; padding: 8px 12px; }
  .site-topbar .top-links { display: none; }
  .hot-quote-row { grid-template-columns: 56px 1fr; }
  .hot-tab { padding: 10px 10px; font-size: 0.86rem; }
  .hot-row-cars .hot-car-item { width: 92px; }
  .hot-strip-item { width: 68px; }
  .hot-strip-thumb { width: 68px; height: 42px; }
  .cs-float { right: 12px; bottom: 16px; }
  .lead-toast-list { left: 10px; bottom: 72px; width: min(260px, calc(100vw - 88px)); height: 72px; }
}
