/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: auto;
    /*max-width: 1500px;*/
    margin: 1px auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 全屏轮播容器样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100vw; /* 全屏宽度 */
    height: 100vh; /* 全屏高度 */
    z-index: 5;
    margin-bottom: 10px;
}

/* 设置每个幻灯片的样式 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 3s ease; /* 平滑过渡 */
}

/* 确保图片充满全屏，且保持比例 */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片充满容器且不变形 */
}

/* 按钮样式 */
.carousel-btn {
    position: absolute;
    top: 40%; /* 垂直居中 */
    transform: translateY(-80%);
    background-color: rgba(0, 0, 0, 0.3); /* 半透明背景 */
    color: whitesmoke; /* 按钮文本颜色 */
    border: none; /* 无边框 */
    border-radius: 50%; /* 圆形按钮 */
    width: 30px; /* 宽度 */
    height: 30px; /* 高度 */
    cursor: pointer; /* 鼠标变成点击样式 */
    display: flex; /* 可居中 */
    justify-content: center;
    align-items: center;
    font-size: 24px; /* 字号 */
    z-index: 1000; /* 确保按钮在图片之上 */
    transition: background-color 0.3s ease; /* 鼠标悬停时的渐变效果 */
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute; /* 定位在轮播图的下方 */
    bottom: 10px; /* 距离轮播图底部的距离 */
    left: 0;
    right: 0;
    gap: 10px; /* 圆点间距 */
    width: 100%; /* 跨全轮播图宽度 */
    z-index: 8;
}

.dot {
    width: 30px; /* 每个长条的宽度 */
    height: 5px; /* 每个长条的高度 */
    background-color: gray; /* 默认状态颜色 */
    border-radius: 2px; /* 让长条边缘圆滑 */
    cursor: pointer; /* 鼠标悬浮样式 */
    transition: background-color 0.3s ease; /* 颜色过渡动画 */
}

.dot.active {
    background-color: black; /* 激活状态的颜色 */
}
