/**
 * 首页专用样式（对应原 Elementor post-564）
 * 仅在 index.html 引用
 */

@import url("../lib/home.css");

/* Home-only tweaks（在此追加覆盖样式） */

/* Hero 轮播：去掉原单张背景，改由幻灯片层铺满 */
.elementor-564 .elementor-element.elementor-element-4f8d450c.hero-carousel {
  position: relative;
  overflow: hidden;
}

.elementor-grid-main .elementor-cta__bg{
  background-size: 100% 100% !important;
}

.elementor-564 .elementor-element.elementor-element-4f8d450c.hero-carousel:not(.elementor-motion-effects-element-type-background),
.elementor-564 .elementor-element.elementor-element-4f8d450c.hero-carousel > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: none;
}

.hero-carousel__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
}

.hero-carousel > .elementor-background-overlay,
.hero-carousel > .elementor-container {
  position: relative;
  z-index: 1;
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-carousel__arrow:hover,
.hero-carousel__arrow:focus-visible {
  background: rgba(15, 23, 42, 0.7);
  outline: none;
}

.hero-carousel__arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero-carousel__arrow--prev {
  left: 16px;
}

.hero-carousel__arrow--next {
  right: 16px;
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-carousel__dot.is-active,
.hero-carousel__dot:hover,
.hero-carousel__dot:focus-visible {
  background: #fff;
  border-color: #fff;
  outline: none;
}

@media (max-width: 767px) {
  .hero-carousel__arrow {
    width: 36px;
    height: 36px;
  }

  .hero-carousel__arrow--prev {
    left: 8px;
  }

  .hero-carousel__arrow--next {
    right: 8px;
  }

  .hero-carousel__dots {
    bottom: 12px;
  }
}
