* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

.carousel-container1 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-wrapper1 {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item1 {
    flex: 0 0 100%;
       height: 460px; /* 设置固定高度，根据需要调整 */
       position: relative;
       overflow: hidden;
}

.carousel-item1 img {
   position: absolute;
       top: 50%;
       left: 0;
       transform: translateY(-50%);
       width: 100%;
       height: auto;
       object-fit: cover;
}

.carousel-controls1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-control1 {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-control1:hover {
    background-color: rgba(0, 0, 0, 0.5);
}


@media (max-width: 768px) {
    .carousel-container1 {
        margin: 20px;
    }
    
    .carousel-control1 {
        width: 30px;
        height: 30px;
    }
}
