/* 电脑端：大于等于1024px */
@media (min-width: 1024px) {
    .mg-home-slideshow {
        height: 810px;
    }
}

.mg-home-slideshow {
    --mg-accent: #1769d2;
    --mg-accent-dark: #0f4fa7;
    --mg-white: #fff;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(430px, 42vw, 610px);
    overflow: hidden;
    background: #081426;
    color: #fff;
    font-family: inherit;
}

.mg-home-slideshow__viewport,
.mg-home-slide {
    position: absolute;
    inset: 0
}

.mg-home-slide {
    visibility: hidden;
    opacity: 0;
    transition: opacity .65s ease, visibility .65s;
    pointer-events: none
}

.mg-home-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 1
}

.mg-home-slide__media,
.mg-home-slide__picture,
.mg-home-slide__picture img,
.mg-home-slide__background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.mg-home-slide__picture img,
.mg-home-slide__background-video {
    object-fit: cover;
    object-position: center
}

.mg-home-slide__background-video {
    z-index: 1;
    background: transparent
}

.mg-home-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(3, 13, 29, .82) 0%, rgba(3, 13, 29, .56) 38%, rgba(3, 13, 29, .13) 68%, rgba(3, 13, 29, .02) 100%)
}

.mg-home-slide__content {
    width: min(1280px, calc(100% - 96px));
    margin: 0 auto;
    padding: 78px 0 94px;
    max-width: 1280px
}

.mg-home-slide__content>* {
    max-width: 680px
}

.mg-home-slide__badge {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 13px;
    margin-bottom: 17px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 99px;
    background: rgba(15, 79, 167, .8);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em
}

.mg-home-slide__eyebrow {
    margin: 0 0 10px;
    color: #d7e9ff;
    font-size: clamp(15px, 1.35vw, 20px);
    font-weight: 650;
    letter-spacing: .025em
}

.mg-home-slide__title {
    margin: 0;
    max-width: 800px;
    color: #fff;
    font-size: clamp(35px, 4.1vw, 64px);
    line-height: 1.07;
    font-weight: 760;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .25)
}

.mg-home-slide__description {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.65;
    white-space: pre-line;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35)
}

.mg-home-slide__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px
}

.mg-home-slide__button,
.mg-home-slide__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 23px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 700 15px/1 inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease
}

.mg-home-slide__button {
    background: linear-gradient(135deg, #50505a, var(--mg-accent-dark));
    color: #fff;
    box-shadow: 0 10px 28px rgba(23, 105, 210, .34)
}

.mg-home-slide__button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 32px rgba(23, 105, 210, .46)
}

.mg-home-slide__play {
    border-color: rgba(255, 255, 255, .56);
    background: rgba(4, 16, 35, .38);
    color: #fff;
    backdrop-filter: blur(9px)
}

.mg-home-slide__play:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px)
}

.mg-home-slideshow__controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 13px;
    transform: translateX(-50%)
}

.mg-home-slideshow__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 99px;
    background: rgba(4, 16, 35, .35);
    backdrop-filter: blur(10px)
}

.mg-home-slideshow__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .2s, background .2s
}

.mg-home-slideshow__dot.is-active {
    width: 28px;
    background: #fff
}

.mg-home-slideshow__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(4, 16, 35, .35);
    color: #fff;
    font: 300 30px/1 Arial, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .18s, transform .18s
}

.mg-home-slideshow__arrow:hover {
    background: var(--mg-accent);
    transform: scale(1.05)
}

.mg-home-video-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 5vw;
    background: rgba(1, 8, 20, .91);
    backdrop-filter: blur(10px)
}

.mg-home-video-modal[hidden] {
    display: none
}

.mg-home-video-modal__video {
    display: block;
    width: min(1180px, 100%);
    max-height: 84vh;
    border-radius: 13px;
    background: #000;
    box-shadow: 0 25px 90px rgba(0, 0, 0, .6)
}

.mg-home-video-modal__close {
    position: absolute;
    top: 24px;
    right: 30px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: 300 34px/1 Arial, sans-serif;
    cursor: pointer
}

.mg-home-video-modal__close:hover {
    background: var(--mg-accent)
}

body.mg-home-video-open {
    overflow: hidden
}

body.mg-home-video-open .mg-home-slideshow {
    z-index: 10010
}

@media(max-width:900px) {
    .mg-home-slideshow {
        min-height: 520px
    }

    .mg-home-slide__content {
        width: min(100% - 48px, 760px);
        padding: 70px 0 95px
    }

    .mg-home-slide__overlay {
        background: linear-gradient(90deg, rgba(3, 13, 29, .82), rgba(3, 13, 29, .42) 72%, rgba(3, 13, 29, .12))
    }

    .mg-home-slide__title {
        max-width: 650px
    }

    .mg-home-slide__description {
        max-width: 570px
    }
}

@media(max-width:720px) {
    .mg-home-slideshow {
        min-height: 540px
    }

    .mg-home-slide__background-video {
        display: none
    }

    .mg-home-slide__picture img {
        object-position: center
    }

    .mg-home-slide__overlay {
        align-items: end;
        background: linear-gradient(0deg, rgba(3, 13, 29, .94) 0%, rgba(3, 13, 29, .72) 48%, rgba(3, 13, 29, .12) 100%)
    }

    .mg-home-slide__content {
        width: calc(100% - 34px);
        padding: 150px 0 92px
    }

    .mg-home-slide__badge {
        margin-bottom: 12px;
        font-size: 12px
    }

    .mg-home-slide__eyebrow {
        font-size: 14px
    }

    .mg-home-slide__title {
        font-size: clamp(31px, 9.5vw, 44px);
        line-height: 1.08
    }

    .mg-home-slide__description {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.5
    }

    .mg-home-slide__actions {
        margin-top: 20px
    }

    .mg-home-slide__button,
    .mg-home-slide__play {
        min-height: 44px;
        padding: 10px 17px;
        font-size: 13px
    }

    .mg-home-slideshow__controls {
        bottom: 18px
    }

    .mg-home-slideshow__arrow {
        width: 35px;
        height: 35px
    }

    .mg-home-video-modal {
        padding: 54px 14px 20px
    }

    .mg-home-video-modal__close {
        top: 12px;
        right: 14px
    }
}

@media(prefers-reduced-motion:reduce) {

    .mg-home-slide,
    .mg-home-slide__button,
    .mg-home-slide__play,
    .mg-home-slideshow__arrow {
        transition: none
    }

    .mg-home-slide__background-video {
        display: none
    }
}

.mg-home-slide--video-only .mg-home-slide__picture {
    display: none
}

.mg-home-slide--video-only .mg-home-slide__background-video {
    display: block
}