/* MOHAB Best Selling — Shopline 3.0 (Hover vehicle swap + smooth motion) */
.mohab-bs {
  --bs-bg: #ffffff;
  --bs-card-bg: #f5f3ef;
  --bs-green: #384521;
  --bs-gold: #d28f26;
  --bs-ink-2: #6e6e73;
  --bs-ink-3: #86868b;
  --bs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: var(--bs-pad-top, 96px) 0 var(--bs-pad-bottom, 72px);
  background: var(--bs-bg);
  font-family: "DIN Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.mohab-bs *,
.mohab-bs *::before,
.mohab-bs *::after {
  box-sizing: border-box;
}
.mohab-bs a {
  text-decoration: none;
}
.mohab-bs__inner {
  width: 100%;
  padding-left: 6%;
  padding-right: 6%;
}
.mohab-bs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.mohab-bs__title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bs-green);
}
.mohab-bs__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--bs-green) !important;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-green) !important;
  background: transparent;
  transition: background 0.28s var(--bs-ease), color 0.28s var(--bs-ease), transform 0.28s var(--bs-ease);
  white-space: nowrap;
}
.mohab-bs__all svg {
  flex-shrink: 0;
  transition: transform 0.28s var(--bs-ease);
}
.mohab-bs__all:hover {
  background: var(--bs-green) !important;
  color: #ffffff !important;
}
.mohab-bs__all:hover svg {
  transform: translateX(4px);
}

.mohab-bs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* 滚屏错峰入场动效 */
.mohab-bs__card {
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  transition: opacity 0.75s var(--bs-ease), transform 0.75s var(--bs-ease);
}
.mohab-bs.is-anim-ready .mohab-bs__card {
  opacity: 0;
  transform: translateY(32px);
}
.mohab-bs.is-anim-ready.is-visible .mohab-bs__card {
  opacity: 1;
  transform: translateY(0);
}
.mohab-bs.is-anim-ready.is-visible .mohab-bs__card:nth-child(1) { transition-delay: 0.04s; }
.mohab-bs.is-anim-ready.is-visible .mohab-bs__card:nth-child(2) { transition-delay: 0.16s; }
.mohab-bs.is-anim-ready.is-visible .mohab-bs__card:nth-child(3) { transition-delay: 0.28s; }

/* 图片展台容器：悬停微抬 + 柔和阴影 */
.mohab-bs__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--bs-card-bg);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.55s var(--bs-ease), box-shadow 0.55s var(--bs-ease);
}
.mohab-bs__card:hover .mohab-bs__media {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(18, 22, 16, 0.13);
}

/* 主图（产品白/米底渲染图） */
.mohab-bs__img-primary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2%;
  object-fit: contain;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.65s var(--bs-ease), opacity 0.45s var(--bs-ease);
  z-index: 1;
}

/* 第二张图（装车实景效果图）：默认隐藏并略微放大，悬停时电影感丝滑淡入+缓落 */
.mohab-bs__img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.08);
  transition: transform 0.75s var(--bs-ease), opacity 0.5s var(--bs-ease);
  z-index: 2;
}

/* 没有装车图时：纯主图柔和放大 */
.mohab-bs__media:not(.has-hover-img):hover .mohab-bs__img-primary,
.mohab-bs__card:hover .mohab-bs__media:not(.has-hover-img) .mohab-bs__img-primary {
  transform: scale(1.05);
}

/* 有装车图时：主图轻退淡出，装车实景图丝滑淡入拉近 */
.mohab-bs__card:hover .mohab-bs__media.has-hover-img .mohab-bs__img-primary {
  opacity: 0;
  transform: scale(1.04);
}
.mohab-bs__card:hover .mohab-bs__media.has-hover-img .mohab-bs__img-hover {
  opacity: 1;
  transform: scale(1.01);
}

/* 装车实景左下角极简毛玻璃提示角标 */
.mohab-bs__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 18, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--bs-ease) 0.08s, transform 0.45s var(--bs-ease) 0.08s;
  pointer-events: none;
}
.mohab-bs__card:hover .mohab-bs__media.has-hover-img .mohab-bs__badge {
  opacity: 1;
  transform: translateY(0);
}

.mohab-bs__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-ink-3);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mohab-bs__body {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.mohab-bs__name {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bs-green) !important;
}
.mohab-bs__name a {
  color: var(--bs-green) !important;
  transition: color 0.25s ease;
}
.mohab-bs__card:hover .mohab-bs__name a {
  color: var(--bs-gold) !important;
}
.mohab-bs__tags {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-gold);
  line-height: 1.45;
}
.mohab-bs__price {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bs-green);
}
.mohab-bs__price * {
  color: var(--bs-green) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
}
.mohab-bs__price s,
.mohab-bs__price del,
.mohab-bs__price [class*="origin"] {
  color: var(--bs-ink-3) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  margin-left: 8px;
}

/* 按钮从左到右品牌墨绿扫光填充 + 箭头轻推 */
.mohab-bs__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 22px;
  border: 1px solid var(--bs-ink-3) !important;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-ink-2) !important;
  background: transparent;
  transition: color 0.3s var(--bs-ease), border-color 0.3s var(--bs-ease);
  z-index: 1;
}
.mohab-bs__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bs-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.36s var(--bs-ease);
  z-index: -1;
}
.mohab-bs__cta svg {
  transition: transform 0.32s var(--bs-ease);
}
.mohab-bs__card:hover .mohab-bs__cta,
.mohab-bs__cta:hover {
  border-color: var(--bs-green) !important;
  color: #ffffff !important;
}
.mohab-bs__card:hover .mohab-bs__cta::before,
.mohab-bs__cta:hover::before {
  transform: scaleX(1);
}
.mohab-bs__card:hover .mohab-bs__cta svg,
.mohab-bs__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .mohab-bs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .mohab-bs {
    padding: 56px 0 48px;
  }
  .mohab-bs__head {
    align-items: center;
    margin-bottom: 24px;
  }
  .mohab-bs__all {
    padding: 8px 16px;
    font-size: 12px;
  }
  .mohab-bs__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mohab-bs__card,
  .mohab-bs__media,
  .mohab-bs__img-primary,
  .mohab-bs__img-hover,
  .mohab-bs__cta::before {
    transition: none !important;
    transform: none !important;
  }
  .mohab-bs.is-anim-ready .mohab-bs__card {
    opacity: 1 !important;
  }
}
