/* 轮播图样式 - 所有类名添加v2-前缀避免冲突 */
.v2-cus-banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.v2-cus-banner {
    position: relative;
    width: 100%;
    height: 220px; /* 移动端高度 */
    margin: 0 auto; /* 水平居中 */
}

/* 响应式高度 */
@media (min-width: 768px) {
    .v2-cus-banner {
        height: 500px; /* PC端高度 */
    }
}

.v2-cus-banner-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 核心动画样式 */
.v2-cus-banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 默认透明 */
    transform: scale(0.85); /* 缩放效果 */
    z-index: 0; /* 默认层级 */
    transition:
        opacity 1.2s ease-in-out,
        transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.v2-cus-banner-item.v2-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.v2-cus-banner-item.v2-prev {
    z-index: 1;
}

/* 图片容器与适配 */
.v2-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-banner-img {
    max-height: 100%;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.v2-banner-img.loaded {
    opacity: 1;
}

/* 文字说明 */
.v2-banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3000000', endColorstr='#00000000', GradientType=0);
    color: white;
    transform: translateY(40px);
    opacity: 0;
    transition: 
        transform 1s ease-in-out 0.5s,
        opacity 1s ease-in-out 0.5s;
}

.v2-cus-banner-item.v2-active .v2-banner-caption {
    transform: translateY(0);
    opacity: 1;
}

.v2-banner-caption h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.v2-banner-caption p {
    font-size: 14px;
    margin: 0;
    display: none;
}

@media (min-width: 768px) {
    .v2-banner-caption p {
        display: block;
    }
    .v2-banner-caption h3 {
        font-size: 24px;
    }
}

/* 控制按钮 */
.v2-cus-banner-prev, .v2-cus-banner-next {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    transition: background-color 0.3s;
}

.v2-cus-banner-prev {
    left: 10px;
}

.v2-cus-banner-next {
    right: 10px;
}

.v2-cus-banner-prev:hover, .v2-cus-banner-next:hover {
    background-color: rgba(0,0,0,0.5);
}

/* 指示器 */
.v2-cus-banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.v2-cus-banner-indicators span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.v2-cus-banner-indicators span.v2-active {
    background-color: white;
    width: 24px;
    border-radius: 5px;
}
    