/* 图片展示模块样式 */
.showcase-container {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 15px;
    position: relative;
}

.showcase-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: auto;
    min-height: 200px;
    background-color: #f5f5f5;
}

.showcase-slide {
    width: 100%;
    height: auto;
    min-height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
    visibility: hidden;
}

.showcase-slide.active {
    opacity: 1;
    z-index: 2; /* 确保活动幻灯片在顶层 */
    visibility: visible; /* 活动时显示 */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.showcase-slide img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f5f5f5;
}

/* 轮播图文字样式 */
.showcase-slide .slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    color: #fff;
    padding: 20px 25px 15px;
    text-align: left;
    z-index: 3; /* 确保文字在最上层 */
    transition: opacity 0.5s ease;
}

.showcase-slide.active .slide-text {
    /* 不需要单独的过渡属性，跟随幻灯片一起显示 */
}

.showcase-slide .slide-text h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-slide .slide-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: none;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 轮播控制样式 */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.dots-container .dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dots-container .dot.active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.showcase-prev-btn,
.showcase-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.showcase-slider:hover .showcase-prev-btn,
.showcase-slider:hover .showcase-next-btn {
    opacity: 0.8;
}

.showcase-prev-btn {
    left: 15px;
}

.showcase-next-btn {
    right: 15px;
}

.showcase-prev-btn:hover,
.showcase-next-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .showcase-slide img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .showcase-slide img {
        height: 120px;
    }
    
    .showcase-slide .slide-text {
        padding: 15px 20px 12px;
    }
    
    .showcase-slide .slide-text h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .showcase-slide .slide-text p {
        font-size: 14px;
        max-height: 40px;
    }
    
    .showcase-prev-btn,
    .showcase-next-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .showcase-slide img {
        height: 120px;
    }
    
    .showcase-slide .slide-text {
        padding: 10px 15px 8px;
    }
    
    .showcase-slide .slide-text h2 {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .showcase-slide .slide-text p {
        font-size: 12px;
        max-height: 36px;
    }
    
    .showcase-prev-btn,
    .showcase-next-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .dots-container {
        bottom: 8px;
        gap: 6px;
    }
    
    .dots-container .dot {
        width: 8px;
        height: 8px;
    }
} 