/* 同道中友汽车服务网前台 UI */
:root {
  --brand: #C8102E;
  --brand-hover: #9E0B24;
  --brand-deep: #6B0F1A;
  --brand-soft: #FFF1F2;
  --brand-muted: #FECDD3;
  --ink: #1a0a0c;
  --muted: #6b5a5e;
  --line: #eadfdf;
  --surface: #ffffff;
}

.site-topbar { background: #14080a; 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, var(--brand-deep), var(--brand));
  box-shadow: 0 8px 18px rgba(200, 16, 46, 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(255,125,0,0.12); }
.site-nav { background: linear-gradient(90deg, var(--brand-deep), var(--brand) 40%, var(--brand-hover)); }

/* 首页广告（热门报价上方） */
.site-ad-wrap {
  position: relative;
}
.site-ad-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0;
  border: 1px solid rgba(255, 125, 0, 0.18);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.1);
  animation: ad-breathe 2.8s ease-in-out infinite;
  transition: box-shadow .25s ease, transform .25s ease;
}
.site-ad-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: cover;
  object-position: center;
}
.site-ad-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: ad-shine 3.6s ease-in-out infinite;
}
.site-ad-banner:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 36px rgba(255, 125, 0, 0.22);
}
.site-ad-banner:hover .site-ad-shine {
  animation-play-state: paused;
}
@keyframes ad-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(28, 25, 23, 0.1);
  }
  50% {
    transform: scale(1.012);
    box-shadow: 0 14px 34px rgba(255, 125, 0, 0.2);
  }
}
@keyframes ad-shine {
  0%, 35% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-ad-banner,
  .site-ad-shine { animation: none; }
}
@media (max-width: 768px) {
  .site-ad-banner { border-radius: 10px; }
  .site-ad-banner img { max-height: 78px; }
}

/* 全局主题色：旧蓝 #165dff 统一为品牌橙 */
.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: #c2410c !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(255,125,0,0.04), transparent 70%),
    #faf8f5;
  border: 1px solid rgba(255, 125, 0, 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(255, 125, 0, 0.28);
  color: var(--brand);
}
.lib-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 125, 0, 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(255,125,0,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(255, 125, 0, 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: #c2410c;
  font-weight: 600;
}
.lib-tag.used {
  background: #ffedd5;
  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(255, 125, 0, 0.45);
}
.lib-card-btn.ghost:hover { background: var(--brand-soft); }

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background:
    linear-gradient(105deg, rgba(26, 5, 8, 0.96) 0%, rgba(74, 12, 24, 0.88) 38%, rgba(26, 5, 8, 0.35) 62%, rgba(26, 5, 8, 0.08) 100%),
    url('/uploads/hero-car.jpg') center right / cover no-repeat,
    linear-gradient(120deg, #1a0508 0%, #4a0c18 48%, #C8102E 100%);
}
.home-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 52px;
  color: #fff;
}
.home-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 720px;
}
.home-hero p {
  margin-top: 12px;
  max-width: 560px;
  color: rgba(255,255,255,0.86);
  font-size: 0.98rem;
  line-height: 1.7;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 132px; height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 700; cursor: pointer; border: none;
}
.hero-btn-primary { background: #fff; color: #C8102E; }
.hero-btn-primary:hover { filter: brightness(1.05); }
.hero-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.hero-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px;
  color: rgba(255,255,255,0.9); font-size: 0.86rem;
}
.hero-stats strong { display: block; font-size: 1.25rem; color: #fff; }

.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: #1a0a0c;
  letter-spacing: 0.02em;
}
.hot-tab.active {
  color: #9E0B24;
  font-weight: 700;
}
.hot-tab.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: #C8102E;
  border-radius: 2px;
}
.hot-tab:hover { color: #9E0B24; }
.hot-quote-more {
  font-size: 0.82rem;
  color: #C8102E;
  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: #9E0B24;
  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: #fff7ed;
}
.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: #9E0B24; }
.hot-car-price {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #C8102E;
  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: #9E0B24; }

/* 在线客服 & 预约弹窗 */
.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, #E85A6B, #C8102E);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 125, 0, 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: #C8102E; font-weight: 700; }
.cs-primary {
  margin-top: 12px;
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #C8102E;
  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: #C8102E;
  box-shadow: 0 0 0 3px rgba(255,125,0,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: #C8102E;
  color: #C8102E;
}
.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: #ffb065;
  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: #14080a;
}
#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 {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    radial-gradient(ellipse 70% 80% at 85% 40%, rgba(200, 16, 46, 0.28), transparent 60%),
    linear-gradient(120deg, #1a0508 0%, #4a0c18 48%, #C8102E 100%);
}
  .home-hero-inner { padding: 36px 16px 34px; }
  .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; }
}

.site-footer { background: #14080a; }
