/* 轮播图样式 */
.carousel {
    margin-bottom: 20px;
}

.layui-carousel {
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item {
    position: relative;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    padding: 20px;
    color: #fff;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .layui-carousel, .carousel-item, .carousel-item img {
        height: 50vw !important; /* 设置高度为视口宽度的50% */
        max-height: 250px !important; /* 设置最大高度限制 */
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 12px;
    }
}