/**
 * 户用轮播图样式
 */

/* 主容器 */
.household-carousel-block {
    padding: 0;
    background: transparent;
    position: relative;
}

/* 轮播图容器 */
.household-carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* 轮播图包装器 */
.household-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* 轮播图轨道 */
.household-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 单个幻灯片 */
.household-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.household-slide.active {
    opacity: 1;
}

/* 幻灯片图片 */
.household-slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.household-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 右上角控制按钮 */
.household-carousel-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.household-carousel-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #2c3e50;
}

.household-carousel-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.household-carousel-btn:active {
    transform: translateY(0);
}

.household-carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .household-carousel-wrapper {
        height: 350px;
    }
    
    .household-carousel-controls {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .household-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .household-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .household-carousel-wrapper {
        height: 280px;
    }
    
    .household-carousel-controls {
        top: 10px;
        right: 10px;
    }
    
    .household-carousel-btn {
        width: 36px;
        height: 36px;
    }
}

/* 无障碍访问 */
.household-carousel-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}