/* 初始化样式 */


/* Banner 容器核心样式 */
.mi-banner {
    position: relative;
    width: 100%;
    height: 600px; /* 可自定义高度 */
    overflow: hidden;
}

/* 轮播图列表 */
.mi-banner-list {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 单个轮播项 */
.mi-banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.5s ease; /* 淡入淡出动画 */
    background-size: cover; /* 图片铺满容器 */
    background-position: center; /* 图片居中 */
}

/* 激活的轮播项显示 */
.mi-banner-item.active {
    opacity: 1;
}

/* 小米风格长条指示器 */
.mi-banner-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px; /* 长条间距 */
    z-index: 10;
}

/* 长条按钮样式 */
.mi-banner-bar {
    width: 30px;
    height: 4px;
    background-color: #000000; /* 未激活状态 */
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 激活状态的长条（#960000） */
.mi-banner-bar.active {
    background-color: #960000;
    width: 40px; /* 激活时变宽 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mi-banner {
        height: 280px;
    }
    .mi-banner-bar {
        width: 15px;
        height: 3px;
    }
    .mi-banner-bar.active {
        width: 25px;
    }
}