/* 轮播容器 - 核心父盒子，限制轮播大小+溢出隐藏 */
.sd-banner-container {
    position: relative;
    width: 100%;
    height: 620px; /* 可根据需求修改轮播高度 */
    overflow: hidden;
    margin: 0 auto;
}

/* 轮播列表 - 横向排列所有轮播项，开启过渡实现平滑滚动 */
#sd-banner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* 滚动过渡动画，核心属性 */
}

/* 轮播项 - 图片容器，适配背景图 */
.sd-banner-item {
    flex: 1 0 100%; /* 强制每个轮播项占满容器宽度，核心 */
    height: 100%;
    background-position: center center; /* 背景图居中 */
    background-size: cover; /* 背景图铺满容器，不变形 */
    background-repeat: no-repeat;
}

/* 左右切换按钮样式 */
.sd-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10; /* 按钮置顶，不被轮播图遮挡 */
    transition: background-color 0.3s;
}
/* 按钮悬停高亮 */
.sd-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
/* 左按钮定位 */
.sd-nav-btn.prev {
    left: 20px;
}
/* 右按钮定位 */
.sd-nav-btn.next {
    right: 20px;
}

/* 指示器容器 - 底部居中 */
.sd-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px; /* 指示器之间的间距 */
    z-index: 10;
}

/* 指示器样式 */
.sd-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
/* 指示器高亮样式 - 当前轮播项对应指示器激活 */
.sd-indicator.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 6px; /* 高亮时变椭圆，视觉效果更好 */
}