/* EasyDecide · 成功案例推广横条（全站内页 · 真实图优先） */
.ed-cases-promo-wrap {
  width: 100%;
  max-width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
section.ed-nw-hero + .ed-cases-promo-wrap {
  margin-top: -4px;
  padding-bottom: 16px;
}
.ed-hero + .ed-cases-promo-wrap,
section.ed-hero + .ed-cases-promo-wrap {
  margin-top: 0;
  padding: 0 16px 16px;
}
main#main > .ed-cases-promo-wrap:first-child,
main.ed-nw-main > .ed-nw-main__inner > .ed-cases-promo-wrap:first-child {
  padding-top: 12px;
}

/* 杠杆/零信用：挂在数据条下的槽位内，与 .ed-lv-wrap 同宽、去掉双层 padding */
.ed-lv-cases-slot[data-ed-cases-promo] {
  margin: 8px auto 4px;
}
.ed-lv-cases-slot[data-ed-cases-promo] .ed-cases-promo-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.ed-usd-lv > main > .ed-cases-promo-wrap,
body.ed-usd-lv main .ed-cases-promo-wrap {
  margin-top: 8px;
  margin-bottom: 4px;
  padding-left: clamp(12px, 2.4vw, 28px);
  padding-right: clamp(12px, 2.4vw, 28px);
}

.ed-cases-promo {
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(105deg, #0d9488 0%, #14b8a6 38%, #2dd4bf 100%);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13, 148, 136, .28);
  position: relative;
  overflow: hidden;
  transition: filter .2s ease, transform .2s ease;
}
.ed-cases-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255,255,255,.22), transparent 42%);
  pointer-events: none;
}
.ed-cases-promo:hover {
  filter: brightness(1.04);
}
.ed-cases-promo:active {
  transform: scale(.995);
}

.ed-cases-promo__photos {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ed-cases-promo__thumb--card {
  width: 46px;
  height: 30px;
  border-radius: 4px;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .2));
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ed-cases-promo__thumb--card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
}
.ed-cases-promo__thumb--card:nth-child(2),
.ed-cases-promo__thumb--card:nth-child(3) {
  transform: none;
}
.ed-cases-promo__thumb:nth-child(2):not(.ed-cases-promo__thumb--card) {
  transform: translateY(2px);
}
.ed-cases-promo__thumb:nth-child(3):not(.ed-cases-promo__thumb--card) {
  transform: translateY(-2px);
}
.ed-cases-promo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ed-cases-promo__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ed-cases-promo__tag {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ed-cases-promo__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}
.ed-cases-promo__title {
  font-size: clamp(14px, 2.4vw, 17px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.ed-cases-promo__sub {
  font-size: clamp(11px, 1.8vw, 13px);
  opacity: .92;
  font-weight: 500;
}
.ed-cases-promo__side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.ed-cases-promo__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0f766e !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ed-cases-promo__thumb:nth-child(n+4) {
    display: none;
  }
  .ed-cases-promo__thumb--card {
    width: 40px;
    height: 26px;
  }
}
@media (max-width: 640px) {
  .ed-cases-promo {
    flex-wrap: wrap;
    padding: 12px 12px;
    gap: 10px;
  }
  .ed-cases-promo__photos {
    width: 100%;
    justify-content: flex-start;
  }
  .ed-cases-promo__main {
    width: 100%;
  }
  .ed-cases-promo__side {
    width: 100%;
    align-items: stretch;
  }
  .ed-cases-promo__cta {
    justify-content: center;
  }
  .ed-cases-promo__sub {
    display: none;
  }
}

/* ---------- 首页 hero 内：与 ed-hero-ad 同尺寸，不被 ed-sheet 遮挡 ---------- */
.ed-cases-promo-wrap--hero {
  width: 100%;
  max-width: none;
  margin: var(--ed-hero-ad-gap, 10px) 0 0;
  padding: 0;
  box-sizing: border-box;
}
.ed-cases-promo__photos,
.ed-hero-ad--cases .ed-cases-promo__photos {
  display: none !important;
}
.ed-hero-ad--cases {
  background:
    linear-gradient(105deg, #0d9488 0%, #14b8a6 38%, #99f6e4 100%) !important;
  color: #0a100d !important;
  border-top: 2px solid rgba(15, 47, 34, .12);
  z-index: 8;
  padding: 10px 14px 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  gap: 10px !important;
}
.ed-hero-ad--cases .ed-hero-ad__title {
  color: #0a100d !important;
}
.ed-hero-ad--cases .ed-hero-ad__tag {
  background: #0f2f22;
  color: #99f6e4;
}
.ed-hero-ad--cases .ed-hero-ad__cta {
  background: #174a35;
  color: #fff !important;
}
.ed-hero-ad--cases .ed-cases-promo__photos {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: -2px;
}
.ed-hero-ad--cases .ed-cases-promo__thumb,
.ed-hero-ad--cases .ed-cases-promo__thumb--card {
  width: 42px;
  height: 27px;
  border-radius: 4px;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ed-hero-ad--cases .ed-cases-promo__thumb:nth-child(n+4) {
  display: none;
}
.ed-hero-ad--cases .ed-cases-promo__thumb img,
.ed-hero-ad--cases .ed-cases-promo__thumb--card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
@media (max-width: 899px) {
  .ed-hero-ad--cases {
    padding: 8px 12px 10px !important;
    margin-top: 0 !important;
    gap: 8px !important;
  }
  .ed-hero-ad--cases .ed-cases-promo__thumb:nth-child(n+3) {
    display: none;
  }
  .ed-hero-ad--cases .ed-cases-promo__thumb,
  .ed-hero-ad--cases .ed-cases-promo__thumb--card {
    width: 36px;
    height: 23px;
  }
  .ed-hero-ad--cases .ed-hero-ad__title {
    margin-top: 0;
    line-height: 1.28;
  }
}
