/*
 * jQuery Lunbo 轮播图样式
 * 适配当前网站的设计风格
 */

/* 轮播图容器样式 */
.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* 轮播图内容区域 */
.slider-main {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 轮播面板 */
.slider-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 轮播图片样式 */
.slider-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* 轮播额外内容容器 */
.slider-extra {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* 轮播导航点 */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    list-style: none;
}

.slider-nav li {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav li.slider-item-selected {
    background-color: #007bff;
    color: white;
    transform: scale(1.2);
}

/* 轮播控制按钮 */
.slider-page {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-pre,
.slider-next {
    position: absolute;
    width: 40px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    line-height: 70px;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.slider-pre:hover,
.slider-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

.slider-pre {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* 轮播图标题和描述 */
.slider-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    max-width: 80%;
}

.slider-caption h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.slider-caption p {
    margin: 0;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slider-nav li {
        width: 14px;
        height: 14px;
        line-height: 14px;
        font-size: 10px;
    }
    
    .slider-pre,
    .slider-next {
        width: 30px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
    }
    
    .slider-caption {
        bottom: 40px;
        padding: 10px 20px;
    }
    
    .slider-caption h3 {
        font-size: 20px;
    }
    
    .slider-caption p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slider-caption {
        display: none; /* 小屏幕上隐藏标题和描述 */
    }
    
    .slider-nav {
        bottom: 10px;
    }
}