
/* ===== Scoped base (ONLY this module) ===== */
#dealer-hero-v40{
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
#dealer-hero-v40 *{ box-sizing:border-box; }
#dealer-hero-v40 img{ display:block; max-width:100%; }

/* ===== Hero container (Big-screen friendly like wholesale-hero-v40) ===== */
#dealer-hero-v40 .hero{
  position:relative;
  width:100%;
  max-width:1920px;
  margin:0 auto 48px;
  overflow:hidden;
  border-radius:12px;

  /* ✅ Reference logic */
  min-height:500px;
  height:min(100svh, 680px);  /* ✅ cap 680px, adapt to viewport */
}

/* ===== Image layer ===== */
#dealer-hero-v40 .hero__img-box{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
#dealer-hero-v40 .hero__img{
  width:100%;
  height:100%;
  object-fit:cover;

  transform:scale(1);
  transition:transform .7s ease;
  will-change:transform;
}

/* ===== Overlay ===== */
#dealer-hero-v40 .hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:rgba(0,0,0,0.18);
  pointer-events:none;
}

/* ===== Content ===== */
#dealer-hero-v40 .hero__content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 20px;

  pointer-events:none; /* ✅ keeps full-area hover working */
}
#dealer-hero-v40 .hero__content-inner{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

/* ===== Typography (CeilingFanHub Standard) ===== */
#dealer-hero-v40 .hero__title{
  margin:0 0 26px 0; /* ✅ 24–28px */
  color:#fff;
  font-weight:600;
  font-size:clamp(52px, 4.2vw, 68px);
  line-height:1.12;
  letter-spacing:-0.015em;
  text-shadow:0 2px 4px rgba(0,0,0,.30);
}
#dealer-hero-v40 .hero__subtitle{
  margin:0 auto 34px auto; /* ✅ 32–36px */
  color:#fff;
  font-weight:400;
  font-size:clamp(20px, 1.6vw, 26px);
  line-height:1.55;
  max-width:58ch;
  text-shadow:0 2px 4px rgba(0,0,0,.30);
}

/* ===== CTA (Standard) ===== */
#dealer-hero-v40 .hero__btn{
  pointer-events:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:14px 24px;
  border-radius:10px;
  text-decoration:none;
  cursor:pointer;

  font-size:17px;
  font-weight:600;
  line-height:1;
  color:#fff;

  background:#8B4513;
  border:1px solid #8B4513;
  transition:transform .18s ease, box-shadow .2s ease, background-color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
#dealer-hero-v40 .hero__btn:hover{
  background:#6d350f;
  border-color:#6d350f;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.18);
}

/* ===== Hover zoom (DESKTOP ONLY, full area) ===== */
@media (hover:hover) and (pointer:fine){
  #dealer-hero-v40 .hero:hover .hero__img{
    transform:scale(1.08); /* ✅ align with wholesale-hero-v40 feel */
  }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width:768px){

  .dealer-content-wrap{
    align-items:stretch; /* 让绝对定位更可控 */
  }

  /* ✅ FIX: overlay card has equal spacing on all sides */
  .dealer-content-inner{
    position:absolute;

    /* 原来是 inset:auto 14px 14px 14px; */
    top:20px;          /* ✅ 新增：顶部留白 */
    right:14px;
    bottom:14px;
    left:14px;

    margin:0;
    width:auto;
    max-width:none;

    padding:24px 22px;
    border-radius:12px;

    background:rgba(255,255,255,.88);
    backdrop-filter:saturate(140%) blur(2px);
    border:1px solid rgba(238,238,238,0.9);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
  }
}


  #dealer-hero-v40 .hero__btn{
    width:100%;
    max-width:340px;
    white-space:normal;
    text-align:center;
  }
}
