.carousel-container {

    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 310px;
    margin-top: 80px;
    top: 0px;
    left: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    position: relative;
    box-sizing: border-box;
    max-width: 940px;
    width: 100%;
    height: 100%;
    margin: 0 auto;


}

.carousel::before,
.carousel::after {
    content: "";
    display: table;
    box-sizing: border-box;
}

.carousel::after {
    clear: both;
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-right: 15%;
    margin-bottom: 4rem;
    margin-left: 15%;
    list-style: none;
}

.carousel-indicators [data-bs-target] {
    flex: 0 1 auto;
    width: 30px;
    height: 5px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;

}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    box-sizing: border-box;
}

.carousel-item button {
    cursor: pointer;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    line-height: 1;
    max-width: 100%;
    height: 270px;
}

.carousel-item .carousel-text {
    box-sizing: border-box;
    /*保持940px 去掉padding*/
    width: 100%;
    height: 40px;
    line-height: 40PX;
    background-color: red;
    color: #fff;
    text-align: left;
    padding-left: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.d-block {
    display: block !important;
}

.w-100 {
    width: 100% !important;
}

.carousel-caption {
    position: absolute;
    right: 15%;
    /* bottom: 1.25rem; */
    bottom: -500px;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    transition: bottom 0.8s linear 0.1s;
    background-color: rgb(5, 5, 5, 0.1);

    /*  background-color: rgba(255, 255, 255, 0.5);
    color: #f80303;*/
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-item:hover .carousel-caption.active {
    bottom: 2rem !important;


}

.carousel-caption.active h4,
.carousel-caption.active p {
    margin: 0;
    /*默认间距去掉*/
    line-height: 1.8;
    padding-bottom: 2px;
}

.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    cursor: pointer;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    cursor: pointer;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip-path: inset(50%);
            border: 0;
            white-space: nowrap;
        } */

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

.active.carousel-item-end,
.carousel-item-next:not(.carousel-item-start) {
    transform: translateX(100%);
}

.active.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-100%);
}

.carousel-item-start,
.carousel-item-end {
    transform: translateX(0);
}