/* Banner图片懒加载样式 - 确保loading图片垂直居中 */

/* Banner容器样式 */
.banner {
    position: relative;
    min-height: 200px;
    background-color: #f5f5f5;
    width: 1980px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner图片懒加载样式 */
.banner img.lazy {
    width: 100%;
    height: auto;
    min-height: 200px;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

.banner img.lazy.loaded {
    opacity: 1;
}

/* Loading状态指示器 */
.banner.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-image: url('/Public/Images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 10;
}

.banner.loaded::before {
    display: none;
}
