/* ==========================================================================
   首页 Hero 轮播 — 左文案 + 右场景图
   --------------------------------------------------------------------------
   原主题的 .eq-hero 是「整屏背景图 + 左侧压暗渐变」，只支持一张特色图片。
   这里改成两栏：左文案，右场景轮播。图片是应用场景（客厅 / 地暖卫生间 /
   暖气片 TRV / 安装商调试），用于让访客一眼看出产品装在什么环境里。

   作用域限定在 .eq-hero-split，不影响其它页面的 hero。
   ========================================================================== */

.eq-hero-split {
    background: linear-gradient(180deg, #F3F8F5 0%, #FFFFFF 100%);
    color: var(--ink);
    padding-block: 64px;
}

/* 两栏：文案略窄，图片略宽，避免图片被压成细条 */
.eq-hero-split .eq-hero-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
    padding-block: 0;
}

.eq-hero-split .eq-hero-copy {
    max-width: 560px;
}

/* 浅底深字：眉题用品牌绿，正文用带绿的灰，不要用纯黑 */
.eq-hero-split .eq-eyebrow {
    color: var(--brand-accent);
}

.eq-hero-split h1 {
    color: var(--ink);
}

.eq-hero-split .eq-leader {
    color: var(--ink-soft, #4A5F58);
}

/* 主按钮实色绿，次按钮白底描边，避免两个按钮都在抢注意力 */
.eq-hero-split .eq-button {
    background: var(--brand-accent);
    color: #fff;
}

.eq-hero-split .eq-button-outline {
    background: #fff;
    border: 1px solid var(--line-strong, #C4D6CF);
    color: var(--ink);
}

.eq-hero-split .eq-button-outline:hover {
    background: #F3F8F5;
}

/* 标题略收一点，给右栏留出呼吸空间 */
.eq-hero-split h1 {
    max-width: 15ch;
}

/* ---------- 轮播容器 ---------- */

.hero-carousel {
    position: relative;
    min-width: 0;
}

.hero-carousel-frame {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-l, 16px);
    overflow: hidden;
    background: var(--brand-surface, #F1F6F3);
    box-shadow: 0 22px 50px -26px rgba(15, 42, 36, .45), 0 0 0 1px var(--line, #DEE9E4);
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

.hero-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* <picture> 默认是 inline，高度为 auto 时 img 的 height:100% 会解析成 0，
   必须显式撑满，否则整块图不显示（只剩背景色） */
.hero-carousel-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 场景图的视觉重心偏中间，轻微推近让产品更清楚 */
    object-position: 50% 45%;
    transform: scale(1.02);
    transition: transform 6s ease-out;
}

.hero-carousel-slide.is-active img {
    transform: scale(1.06);
}

/* ---------- 图片上的场景标签 ---------- */

.hero-carousel-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(10, 16, 22, .62);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
    pointer-events: none;
    max-width: calc(100% - 96px);
}

.hero-carousel-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    line-height: 1.4;
}

.hero-carousel-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

/* ---------- 圆点 ---------- */

.hero-carousel-dots {
    position: absolute;
    right: 16px;
    bottom: 20px;
    display: flex;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(10, 16, 22, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: width .28s ease, background-color .28s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, .7);
}

.hero-carousel-dot.is-active {
    width: 22px;
    background: #fff;
}

.hero-carousel-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1023px) {
    /* 必须用 minmax(0,1fr)：单写 1fr 等于 minmax(auto,1fr)，
       最小尺寸会取图片的固有宽度（1400px），直接把栅格撑出屏幕 */
    .eq-hero-split .eq-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .eq-hero-split .eq-hero-copy {
        max-width: 620px;
    }

    .eq-hero-split h1 {
        max-width: none;
    }

    .hero-carousel-frame {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767px) {
    .eq-hero-split {
        padding-block: 32px 36px;
    }

    .hero-carousel-frame {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius, 12px);
    }

    .hero-carousel-caption {
        left: 12px;
        bottom: 12px;
        padding: 8px 11px;
        max-width: calc(100% - 80px);
    }

    .hero-carousel-title {
        font-size: 12px;
    }

    .hero-carousel-dots {
        right: 12px;
        bottom: 16px;
    }
}

/* 用户要求减少动效时，取消缩放与淡入过渡 */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel-slide,
    .hero-carousel-slide img,
    .hero-carousel-dot {
        transition: none;
    }

    .hero-carousel-slide img,
    .hero-carousel-slide.is-active img {
        transform: none;
    }
}
