/* Empty banners use each theme's existing carousel height. */
:is(.home-hero, .cb-home-hero--panorama) .home-banner-empty,
.cb-site .cb-home-hero--panorama .cb-home-slide.home-banner-empty {
    display: grid;
    place-items: center;
    width: 100%;
    background: linear-gradient(180deg, #f5f8fd, #edf3fc);
    color: #526780;
    isolation: isolate;
}

:is(.home-hero, .cb-home-hero--panorama) .home-banner-empty::before,
:is(.home-hero, .cb-home-hero--panorama) .home-banner-empty::after,
.cb-site .cb-home-hero--panorama .cb-home-slide.home-banner-empty::before,
.cb-site .cb-home-hero--panorama .cb-home-slide.home-banner-empty::after {
    display: none;
}

.home-banner-empty__content {
    padding: 32px 24px;
    text-align: center;
}

.home-banner-empty__icon {
    display: block;
    margin-bottom: 20px;
    color: #91a7c2;
    font-size: 52px;
    line-height: 1;
}

:is(.home-hero, .cb-home-hero--panorama) .home-banner-empty .home-banner-empty__title {
    margin: 0;
    color: #526780;
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0;
    text-shadow: none;
}

@media (max-width: 700px) {
    .cb-site .cb-home-hero--panorama .cb-home-slide.home-banner-empty {
        min-height: 400px;
    }

    .home-banner-empty__icon {
        font-size: 44px;
    }

    :is(.home-hero, .cb-home-hero--panorama) .home-banner-empty .home-banner-empty__title {
        font-size: 18px;
    }
}

/* Keep IIK's accepted illustration scale without replacing the configured image. */
@media (min-width: 993px) {
    .home-hero--compact-art .hero-slider-item:is(
        [style*="/static/index/picture/banner-20261022/"],
        [style*="/storage/images/69c21c77b0ba2.png"],
        [style*="/storage/images/69c215494737e.png"]
    )::after {
        transform: scale(.82);
        transform-origin: right top;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .home-hero--compact-art .hero-slider-item:is(
        [style*="/static/index/picture/banner-20261022/"],
        [style*="/storage/images/69c21c77b0ba2.png"],
        [style*="/storage/images/69c215494737e.png"]
    ) {
        background-position: right center;
        background-repeat: no-repeat;
        background-size: auto 80%;
    }
}

@media (max-width: 768px) {
    .home-hero--compact-art .hero-slider-item:is(
        [style*="/static/index/picture/banner-20261022/"],
        [style*="/storage/images/69c21c77b0ba2.png"],
        [style*="/storage/images/69c215494737e.png"]
    ) {
        background-repeat: no-repeat;
        background-size: auto 72%;
    }
}

/* The brand mark in the editable title opts this slide into its dark artwork. */
html .home-hero .hero-slider-item:has(.yunduan-banner-title) {
    --yunduan-content-width: min(1400px, calc(100% - 96px));
    isolation: isolate;
    overflow: hidden;
    background: #020b19 !important;
}

html .home-hero .hero-slider-item:has(.yunduan-banner-title)::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 26px auto auto calc(50% - 1050px);
    width: 1880px;
    height: 627px;
    background: var(--hero-banner-image) center / contain no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 95%, transparent),
        linear-gradient(180deg, transparent, #000 8%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 95%, transparent),
        linear-gradient(180deg, transparent, #000 8%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    transform: none;
    pointer-events: none;
}

html .home-hero .hero-slider-item:has(.yunduan-banner-title)::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: auto 0 32px;
    height: 160px;
    background:
        radial-gradient(ellipse at 64% 100%, transparent 59%, rgba(65, 167, 255, .22) 59.3%, transparent 59.8%),
        radial-gradient(ellipse at 38% 150%, transparent 58%, rgba(65, 167, 255, .12) 58.3%, transparent 58.8%),
        linear-gradient(90deg, transparent 12%, rgba(61, 161, 255, .12) 52%, transparent 90%) 0 88% / 100% 1px no-repeat;
    pointer-events: none;
    transform: none;
}

html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-art {
    display: none;
}

html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-content.common-layout {
    z-index: 2;
    width: var(--yunduan-content-width) !important;
    max-width: 1400px !important;
    height: 100%;
    padding: 0 0 48px !important;
    justify-content: center;
}

html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-title {
    max-width: 580px;
    margin: 0 0 28px;
    color: #f4f9ff;
    font-size: clamp(56px, 5vw, 84px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-shadow: 0 4px 32px rgba(16, 68, 129, .25);
}

.yunduan-banner-title {
    display: inline-block;
}

html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-desc {
    display: block;
    max-width: 540px;
    margin: 0;
    overflow: visible;
    color: #a5c9ed;
    font-family: "Arial", "Helvetica Neue", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .22em;
    text-shadow: none;
}

@media (min-width: 993px) and (max-width: 1440px) {
    html .home-hero .hero-slider-item:has(.yunduan-banner-title)::before {
        inset-inline-start: calc(50% - 960px);
        width: 1700px;
        height: 567px;
        top: 68px;
    }
}

@media (max-width: 992px) {
    html .home-hero .hero-slider-item:has(.yunduan-banner-title) {
        --yunduan-content-width: calc(100% - 48px);
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title)::before {
        inset: auto -60px 10px auto;
        width: 1350px;
        height: 450px;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-content.common-layout {
        padding: 64px 0 0 !important;
        justify-content: flex-start;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-title {
        margin-bottom: 20px;
        font-size: 52px;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-desc {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    html .home-hero .hero-slider-item:has(.yunduan-banner-title)::before {
        inset: auto max(-26px, calc((100vw - 660px) / 2)) 46px auto;
        width: 720px;
        height: 240px;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title)::after {
        bottom: 52px;
        height: 90px;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-content.common-layout {
        padding-top: 30px !important;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-title {
        max-width: 100%;
        margin-bottom: 10px;
        font-size: clamp(34px, 9vw, 42px);
        letter-spacing: .05em;
    }

    html .home-hero .hero-slider-item:has(.yunduan-banner-title) .hero-slider-desc {
        max-width: 100%;
        font-size: 15px;
        letter-spacing: .18em;
    }
}
