/* 轮播图图片统一高度，宽度自适应 */
#slider .slide img {
    height: 500px; /* 设置统一高度 */
    width: 100%; /* 宽度占满容器 */
    object-fit: contain; /* fill 拉伸；contain 原始比例；none 原始尺寸；cover 原始比例填充；scale-down 选择较小的比例 */
    object-position: center; /* 图片居中显示 */
}

/* 轮播图切换原点样式 */
.bx-wrapper .bx-pager.bx-default-pager a {
    background: #ccc; /* 默认灰色 */
    width: 12px;
    height: 12px;
    border-radius: 50%; /* 圆形 */
    margin: 0 5px;
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:hover {
    background: #ff6900; /* 选中时橙黄色 */
    width: 12px; /* 保持圆形 */
    height: 12px; /* 保持圆形 */
    border-radius: 50%; /* 保持圆形 */
}

/* 让"立即查看"按钮在轮播图中上下左右居中 */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
}

.style-banner {
    text-align: center;
    padding-top: 0;
    margin-bottom: 20px; /* 标题与按钮之间的间距 */
}

/* 按钮容器居中 */
.view-buttn {
    text-align: center;
}

.view-buttn .btn {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    background-color: var(--primary-color);
    padding: 8px 18px;
    border: 1px solid rgba(208, 208, 208, 0);
}

/* 确保轮播图容器能够正确显示固定高度的图片 */
.slideBox,
.slide {
    overflow: hidden;
}

/* 响应式设计：在小屏幕上降低图片高度 */
@media (max-width: 768px) {
    #slider .slide img {
        height: 300px;
    }
}

/* 修复导航栏与轮播图重叠问题 - 响应式设计 */
.sliderbox {
    margin-top: 82px;
}

/* 在小屏幕上减少顶部边距 */
@media (max-width: 960px) {
    .sliderbox {
        margin-top: 0px;
    }
}