﻿
/*flash动画开始*/

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

/* 轮播图片样式 */
.carousel-slides {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 标题容器样式 */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    box-sizing: border-box;
}

/* 标题文本样式 */
.slide-title {
    color: white;
    font-size: 14px;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 指示器样式 */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    right: 15px;
    z-index: 3; /* 确保在背景之上 */
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #fff;
    font-weight: bold;
}

/*flash动画结束*/



/* 移动端适配 - 屏幕宽度小于768px时生效 */
@media (max-width: 768px) {
    .slide-title {
        font-size: 12px; /* 缩小标题字体 */
        max-width: 60%; /* 减少标题占比，避免与指示器重叠 */
    }
    
    .carousel-dot {
        width: 20px; /* 缩小指示器尺寸 */
        height: 20px;
        font-size: 10px; /* 缩小指示器文字 */
    }
    
    .slide-info {
        padding: 6px 10px; /* 减少内边距 */
    }
    
    .carousel-dots {
        gap: 5px; /* 减少指示器间距 */
        right: 10px; /* 调整右边距 */
    }
}

/*flash动画结束*/