/* 业务视觉：手势、吸附、循环与自动播放均由共享 VooCarousel 提供。 */
.campaign-carousel {
  padding: 24px 72px;
  background: #fff;
  color: #fff;
  font-family: var(--wre-font-family);
  -webkit-font-smoothing: antialiased;
}
.campaign-carousel *,
.campaign-carousel *::before {
  box-sizing: border-box;
}
.campaign-carousel .voo-carousel {
  position: relative;
}
/* 尺寸来自配置；图片仍在轨道中按原始比例自然撑高。 */
.campaign-carousel__frame[data-sized] {
  position: relative;
}
.campaign-carousel__frame[data-sized] > .voo-carousel {
  position: absolute;
  inset: 0;
}
.campaign-carousel__frame[data-sized] > .voo-carousel > .voo-carousel__viewport {
  height: 100%;
}
.campaign-carousel .voo-carousel__viewport {
  border-radius: 12px;
}
.campaign-carousel__item {
  position: relative;
  display: block;
  height: auto;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.campaign-carousel__image {
  display: block;
  /* 图片参与文档流，以容器宽度和原始比例撑开高度，完整展示素材。 */
  width: 100%;
  height: auto;
}
.campaign-carousel__content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  left: 104px;
  top: 50%;
  transform: translateY(-50%);
  max-width: calc(100% - 208px);
  z-index: 2;
}
.campaign-carousel__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.campaign-carousel h2,
.campaign-carousel p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.campaign-carousel h2 {
  font: 700 56px/67px var(--wre-font-heading);
}
.campaign-carousel p {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}
.campaign-carousel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 28px;
  background: #fff;
  color: #282828;
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
.campaign-carousel__item--center .campaign-carousel__content {
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  width: max-content;
}
.campaign-carousel__item--left:has(.campaign-carousel__content)::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 700px;
  max-width: 100%;
  background: linear-gradient(90deg, rgb(0 0 0 / 30%), transparent);
  z-index: 1;
  pointer-events: none;
}
.campaign-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 16px;
  pointer-events: none;
}
.campaign-carousel__dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.campaign-carousel__dots span {
  display: block;
  width: 8px;
  height: 8px;
  background: rgb(255 255 255 / 40%);
  border-radius: 4px;
}
.campaign-carousel__dots [aria-current] span {
  width: 40px;
  background: white;
}
.campaign-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: rgb(0 0 0 / 40%);
  color: #fff;
  cursor: pointer;
  opacity: 0;
}
.campaign-carousel__arrow--previous {
  left: 24px;
}
.campaign-carousel__arrow--next {
  right: 24px;
}
.campaign-carousel .voo-carousel:hover .campaign-carousel__arrow,
.campaign-carousel .voo-carousel:focus-within .campaign-carousel__arrow {
  opacity: 1;
}
.campaign-carousel__pause {
  position: absolute;
  right: 24px;
  bottom: 48px;
  padding: 6px 12px;
  color: #282828;
  background: #fff;
  border: 0;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}
.campaign-carousel__pause:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.campaign-carousel button:focus-visible,
.campaign-carousel__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
[data-campaign-carousel='zeelool'][data-device='desktop'] .campaign-carousel__dots {
  background: linear-gradient(transparent, rgb(0 0 0 / 10%));
}
/* V 的字体由宿主主题提供，业务配置不重复声明品牌。 */
[data-campaign-carousel='vooglam'] .voo-carousel__viewport {
  border-radius: 0;
}
[data-campaign-carousel='vooglam'] .campaign-carousel__content {
  gap: 32px;
  margin-top: -12px;
}
[data-campaign-carousel='vooglam'] .campaign-carousel__text {
  gap: 12px;
}
[data-campaign-carousel='vooglam'] h2 {
  font: 500 32px/46px var(--wre-font-heading);
}
[data-campaign-carousel='vooglam'] p {
  font-size: 18px;
  line-height: 24px;
}
[data-campaign-carousel='vooglam'] .campaign-carousel__cta {
  width: 170px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font: 500 14px/20px var(--wre-font-heading);
  backdrop-filter: blur(10.5px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
}
[data-campaign-carousel='vooglam']
  .campaign-carousel__item--left:has(.campaign-carousel__content)::before {
  width: 50%;
  background: linear-gradient(90deg, rgb(0 0 0 / 50%), transparent);
}
[data-campaign-carousel='vooglam'] .campaign-carousel__item--center .campaign-carousel__text {
  text-align: center;
}
/* PC 居中文案按设计稿贴近图片底部，左对齐版式仍保留垂直居中。 */
[data-campaign-carousel='vooglam'][data-device='desktop']
  .campaign-carousel__item--center
  .campaign-carousel__content {
  top: auto;
  bottom: 48px;
  margin-top: 0;
  transform: translateX(-50%);
}
[data-campaign-carousel='vooglam'] .campaign-carousel__dots {
  padding: 16px 0;
}
[data-campaign-carousel='vooglam'] .campaign-carousel__arrow {
  border-radius: 0;
  color: #1a1c1e;
  background: rgb(255 255 255 / 60%);
  margin-top: -9px;
}
/* 移动端按宿主设备选择布局；375 基准字号随设计系统 rem 缩放。 */
.campaign-carousel[data-device='mobile'] {
  padding: 0;
}
.campaign-carousel[data-device='mobile'] .voo-carousel__viewport {
  border-radius: 0;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__content {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  transform: none;
  max-width: none;
  width: auto;
  padding: 1.25rem 0.75rem 1.5rem;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(0deg, rgb(0 0 0 / 30%), transparent);
  margin: 0;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__text {
  gap: 0.375rem;
  text-align: center;
  width: 100%;
}
.campaign-carousel[data-device='mobile']
  .campaign-carousel__item--left
  .campaign-carousel__content {
  align-items: flex-start;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__item--left .campaign-carousel__text {
  text-align: left;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__item::before {
  display: none;
}
.campaign-carousel[data-device='mobile'] h2 {
  font-size: 1.5rem;
  line-height: 1.75rem;
}
.campaign-carousel[data-device='mobile'] p {
  font-size: 0.875rem;
  line-height: 1.0625rem;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__cta {
  width: auto;
  min-width: 7.5rem;
  min-height: 2rem;
  padding: 0 1rem;
  border-radius: 2.75rem;
  font-size: 0.75rem;
  line-height: 0.875rem;
  font-weight: 400;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__arrow {
  display: none;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__dots {
  padding: 0.5rem 0;
  gap: 0.25rem;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__dots span {
  width: 0.25rem;
  height: 0.25rem;
}
.campaign-carousel[data-device='mobile'] .campaign-carousel__dots [aria-current] span {
  width: 1.5rem;
}
[data-campaign-carousel='vooglam'][data-device='mobile'] .campaign-carousel__content {
  padding-top: 1rem;
  padding-bottom: 2.75rem;
  gap: 1rem;
  background: linear-gradient(0deg, rgb(0 0 0 / 60%), transparent);
}
/* 单图没有分页器，文案底部无需预留分页器空间。 */
[data-campaign-carousel='vooglam'][data-device='mobile'][data-count='1']
  .campaign-carousel__content {
  padding-bottom: 1rem;
}
[data-campaign-carousel='vooglam'][data-device='mobile'] .campaign-carousel__text {
  gap: 0.375rem;
}
[data-campaign-carousel='vooglam'][data-device='mobile'] h2 {
  font-size: 1.25rem;
  line-height: 1.875rem;
}
[data-campaign-carousel='vooglam'][data-device='mobile'] p {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
[data-campaign-carousel='vooglam'][data-device='mobile'] .campaign-carousel__cta {
  width: 8rem;
  min-width: 8rem;
  min-height: 2rem;
  border-radius: 0.25rem;
  background: rgb(255 255 255 / 30%);
  font: 500 0.875rem/1.25rem var(--wre-font-heading);
}
[data-campaign-carousel='vooglam'][data-device='mobile'] .campaign-carousel__dots {
  bottom: 0.5rem;
  padding: 0.5rem 0;
}
[data-campaign-carousel='vooglam'][data-device='mobile']
  .campaign-carousel__dots
  [aria-current]
  span {
  width: 1rem;
}
@media (max-width: 1023px) {
  .campaign-carousel[data-device='desktop'] {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* V 轮播全端贴合容器；明确品牌与终端，避免同页两品牌的通用边距规则覆盖。 */
.campaign-carousel[data-campaign-carousel='vooglam'][data-device] {
  padding: 0;
}
/*$vite$:1*/