* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /* overflow: hidden; */ /* 移除这一行 */
}

.slider-container {
    position: relative; /* 修改为 relative */
    width: 100%;
    height: 100vh; /* 设置轮播图的高度 */
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent; /* 箭头容器背景透明 */
    color: white;
    border: none; /* 删除边框 */
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s; /* 悬停时改变箭头颜色 */
}

.prev-btn:hover, .next-btn:hover {
    color: #ccc; /* 悬停时箭头变浅色 */
}

.prev-btn:active, .next-btn:active {
    color: white; /* 点击时恢复箭头颜色 */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
    width: 30px;
    border-radius: 5px;
}