/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面容器样式 */
.container {
    width: 100vw;
    height: 100vh;
    background-color: #fff;
}

/* 轮播容器样式 */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 轮播列表样式 */
.carousel-list {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* 轮播项样式 */
.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* 轮播项中的图片样式 */
.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* 轮播按钮样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: max(8%, 60px);
    height: 100%;
    font-size: clamp(20px, 3vw, 60px);
    color: white;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* 鼠标悬停显示按钮 */
.carousel-container:hover .carousel-btn {
    opacity: 1;
}

/* 按钮悬停效果 */
.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}