/* WEHO Home Hero v1.3 — typography/buttons from v1.2 (do not revert).
   + Xpro defaults + post-12190.css. Overlay none/half/full.
   height 46.875vw; content 750px; container 1140px.
   Title 50px/700 + text-shadow; mobile 33px. Buttons 15px 35px, radius 4px.
   Not a visual QA match. */
.weho-home-hero {
  --weho-hero-height: 46.875vw;
  --weho-hero-content-width: min(750px, 92vw);
  --weho-hero-container-width: min(1400px, 100%);
  /* Fluid type: smaller viewport → smaller text & buttons (50/18/16 desktop → ~33/14/13 mobile). */
  --weho-hero-fs-title: clamp(2.0625rem, 5vw + 0.875rem, 3.125rem);
  --weho-hero-fs-series: clamp(0.875rem, 1.2vw + 0.625rem, 1.125rem);
  --weho-hero-fs-subtitle: clamp(0.75rem, 0.85vw + 0.45rem, 1rem);
  --weho-hero-fs-body: clamp(0.8125rem, 0.6vw + 0.625rem, 1rem);
  --weho-hero-subtitle-pad-y: clamp(0.55rem, 1vw + 0.35rem, 0.8125rem);
  --weho-hero-subtitle-pad-x: clamp(0.65rem, 1.8vw + 0.25rem, 1.25rem);
  --weho-hero-fs-btn: clamp(0.8125rem, 0.55vw + 0.625rem, 1rem);
  --weho-hero-btn-pad-y: clamp(0.5rem, 1.1vw + 0.35rem, 0.9375rem);
  --weho-hero-btn-pad-x: clamp(0.75rem, 2.8vw + 0.25rem, 2.1875rem);
  --weho-hero-actions-gap: clamp(0.5rem, 1.5vw, 0.9375rem);
  --weho-hero-btn-primary-bg: #DB261E;
  --weho-hero-btn-primary-color: #fff;
  --weho-hero-btn-primary-hover-bg: #FFFFFF;
  --weho-hero-btn-primary-hover-color: #2b2b2b;
  --weho-hero-btn-secondary-bg: #0000004D;
  --weho-hero-btn-secondary-color: #FFFFFF;
  --weho-hero-btn-secondary-hover-bg: #000000CC;
  --weho-hero-btn-secondary-hover-color: #FFFFFF;
  position: relative;
  width: 100%;
  isolation: isolate;
}

.weho-home-hero__viewport,
.weho-home-hero__swiper {
  height: 100%;
}

.weho-home-hero__viewport {
  position: relative;
  height: var(--weho-hero-height);
  min-height: 280px;
  overflow: hidden;
}

.weho-home-hero__swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Swiper 就绪前：横向排列防 FOUC；初始化后交给 .swiper-wrapper 的 transform */
.weho-home-hero:not([data-weho-ready="1"]) .weho-home-hero__wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.weho-home-hero__wrapper.swiper-wrapper {
  height: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.weho-home-hero__slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  box-sizing: border-box;
  overflow: hidden;
}

.weho-home-hero__bg-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.weho-home-hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  opacity: 1 !important;
}

/* Image mask (not text-shadow). Full = #000 at 0.5 opacity; half = left-dark, right-transparent. */
.weho-home-hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
  opacity: 1;
}

.weho-home-hero__slide--overlay-none::before {
  content: none;
}

.weho-home-hero__slide--overlay-full::before {
  background-color: #000;
  opacity: 0.5;
}

.weho-home-hero__slide--overlay-half::before {
  background: linear-gradient(
    90deg,
    rgba(18, 32, 58, 0.75) 0%,
    rgba(18, 32, 58, 0.7) 50%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0) 95%
  );
  opacity: 1;
}

.weho-home-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: var(--weho-hero-container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  box-sizing: border-box;
}

.weho-home-hero__content {
  max-width: var(--weho-hero-content-width);
  width: 100%;
  color: #fff;
}

.weho-home-hero__series {
  display: block;
  margin: 0 0 clamp(8px, 1.5vw, 12px);
  color: #DB261E;
  font-size: var(--weho-hero-fs-series);
  font-weight: 700;
}

.weho-home-hero__series-text {
  display: inline-block;
  position: relative;
  padding-left: calc(2.5em + 10px);
}

.weho-home-hero__series-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.5em;
  height: 2px;
  margin-top: 0;
  transform: translateY(-50%);
  background: #DB261E;
}

/* 旧 markup / Seraph 关键 CSS 缓存里残留的独立红线节点 */
.weho-home-hero__series-rule {
  display: none !important;
}

.weho-home-hero__title {
  display: inline-block;
  font-size: var(--weho-hero-fs-title);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin: 0 0 clamp(6px, 1.2vw, 10px);
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.weho-home-hero__title-em {
  color: var(--c1, #e70012);
}

.weho-home-hero__subtitle {
  display: block;
  margin: clamp(12px, 2.2vw, 20px) 0 clamp(14px, 2.5vw, 22px);
}

.weho-home-hero__subtitle-text {
  display: inline-block;
  max-width: 100%;
  padding: var(--weho-hero-subtitle-pad-y) var(--weho-hero-subtitle-pad-x);
  border-radius: 999px;
  background: var(--weho-hero-btn-primary-bg, #db261e);
  color: #fff;
  font-size: var(--weho-hero-fs-subtitle);
  font-weight: 700;
  line-height: 1.25;
  box-sizing: border-box;
}

.weho-home-hero__specs {
  display: block;
  margin: 0 0 clamp(10px, 2vw, 16px);
  color: #fff;
  font-size: var(--weho-hero-fs-body);
  line-height: 1.4;
}

.weho-home-hero__specs-line {
  margin: 0;
}

.weho-home-hero__specs-line + .weho-home-hero__specs-line {
  margin-top: 4px;
}

.weho-home-hero__desc {
  display: inline-block;
  font-size: var(--weho-hero-fs-body);
  line-height: 1.5;
  color: #fff;
  margin: 0 0 clamp(16px, 3.5vw, 30px);
}

.weho-home-hero__desc p {
  font-size: inherit;
  color: #fff;
  margin: 0;
}

.weho-home-hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--weho-hero-actions-gap);
}

.weho-home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--weho-hero-fs-btn);
  line-height: 1.25;
  padding: var(--weho-hero-btn-pad-y) var(--weho-hero-btn-pad-x);
  border: 1px solid #fff0;
  border-radius: 4px;
  box-sizing: border-box;
  gap: clamp(8px, 1.2vw, 14px);
  transition: color 0.3s ease-in-out, background 0.3s ease-in-out, border 0.3s ease-in-out;
}

.weho-home-hero__btn--primary {
  background: var(--weho-hero-btn-primary-bg);
  color: var(--weho-hero-btn-primary-color);
}

.weho-home-hero__btn--primary:hover,
.weho-home-hero__btn--primary:focus {
  background: var(--weho-hero-btn-primary-hover-bg);
  color: var(--weho-hero-btn-primary-hover-color);
}

.weho-home-hero__btn--secondary {
  background: var(--weho-hero-btn-secondary-bg);
  color: var(--weho-hero-btn-secondary-color);
  border-style: solid;
  border-width: clamp(1px, 0.25vw, 2px);
  border-color: #FFFFFF;
}

.weho-home-hero__btn--secondary:hover,
.weho-home-hero__btn--secondary:focus {
  background: var(--weho-hero-btn-secondary-hover-bg);
  color: var(--weho-hero-btn-secondary-hover-color);
}

/* Full-slide hit area (整图可点). Legacy id full-banner + v1.4 .weho-home-hero__slide-link */
.weho-home-hero__btn--full,
.weho-home-hero__slide-link,
.weho-home-hero__slide a.weho-home-hero__btn#full-banner {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: transparent !important;
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
}

.weho-home-hero__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.weho-home-hero__pagination .weho-home-hero__bullet,
.weho-home-hero__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 3px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #e7001230;
  opacity: 1;
  cursor: pointer;
  appearance: none;
}

.weho-home-hero__pagination .weho-home-hero__bullet.is-active,
.weho-home-hero__pagination .swiper-pagination-bullet-active {
  background: var(--c1, #e70012);
}

.weho-home-hero__pagination .weho-home-hero__bullet:focus,
.weho-home-hero__pagination .weho-home-hero__bullet:focus-visible,
.weho-home-hero__pagination .swiper-pagination-bullet:focus,
.weho-home-hero__pagination .swiper-pagination-bullet:focus-visible {
  outline: 2px solid var(--c1, #e70012);
  outline-offset: 2px;
  background: var(--c1, #e70012);
}

.weho-home-hero__pagination .weho-home-hero__bullet.is-active:focus,
.weho-home-hero__pagination .weho-home-hero__bullet.is-active:focus-visible,
.weho-home-hero__pagination .swiper-pagination-bullet-active:focus,
.weho-home-hero__pagination .swiper-pagination-bullet-active:focus-visible {
  background: var(--c1, #e70012);
}

@media (max-width: 767px) {
  .weho-home-hero {
    /* 手机标题比全局 clamp 下限再小一档（约 21–28px） */
    --weho-hero-fs-title: clamp(1.3125rem, 4vw + 0.4rem, 1.75rem);
  }
  .weho-home-hero__viewport {
    height: auto;
    min-height: 0;
  }
  .weho-home-hero__swiper,
  .weho-home-hero__wrapper,
  .weho-home-hero__wrapper.swiper-wrapper,
  .weho-home-hero:not([data-weho-ready="1"]) .weho-home-hero__wrapper,
  .weho-home-hero__slide {
    height: auto;
  }
  .weho-home-hero__bg-picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: var(--weho-hero-img-ratio, auto);
  }
  .weho-home-hero__bg-img {
    position: static;
    inset: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
    aspect-ratio: var(--weho-hero-img-ratio, auto);
  }
  .weho-home-hero__bg-picture .weho-home-hero__bg-img {
    aspect-ratio: auto;
  }
  .weho-home-hero__inner {
    position: absolute;
    inset: 0;
    height: auto;
    padding: 0 clamp(12px, 4vw, 20px);
  }
}
