/* 轮播图模块 CSS - 从homepage.css中提取 */

/* 轮播图容器样式 */
.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.carousel {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
}

/* 幻灯片区域 */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    min-height: 100%;
    min-width: 100%;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

/* 幻灯片覆盖层 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 30px;
    text-align: center;
}

.slide-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.slide-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航点 */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* 导航按钮 */
.carousel-prev, 
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #520049;
    transition: background 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-prev:hover, 
.carousel-next:hover {
    background: white;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .carousel {
        height: 400px;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 320px;
    }
    
    .slide-overlay h3 {
        font-size: 1.5rem;
    }
    
    .slide-overlay p {
        font-size: 1rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-prev, 
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 280px;
    }
    
    .slide-overlay h3 {
        font-size: 1.2rem;
    }
    
    .slide-overlay p {
        font-size: 0.9rem;
    }
} 