/* Category Search Widget Styles */
/* 分类搜索组件样式 - 底部无弧度 */

/* Elementor容器层级 - 确保下拉菜单不被其他组件遮挡 */
.elementor-widget-category_search_widget {
    position: relative;
    z-index: 999 !important;
    overflow: visible !important;
}

.elementor-widget-category_search_widget .elementor-widget-container {
    overflow: visible !important;
}

/* 确保包含搜索组件的Elementor section/column也有高层级 */
.elementor-section:has(.category-search-container),
.elementor-column:has(.category-search-container),
.elementor-widget-wrap:has(.category-search-container) {
    z-index: 999 !important;
    overflow: visible !important;
}

/* 下拉菜单展开时的父容器 */
.category-dropdown.is-open,
.category-dropdown:hover {
    z-index: 999999 !important;
}

/* 主容器 */
.category-search-container {
    position: relative;
    width: 100%;
    min-height: 350px;
    overflow: visible;
    border: none !important;
    box-shadow: none !important;
    z-index: 100;
}

/* 背景 */
.category-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.category-background .bg-video,
.category-background .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-search-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* 搜索框区域定位 - 复用video-search-widget的样式 */
.category-search-container .search-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .category-search-container {
        min-height: 280px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .category-search-container {
        min-height: 220px;
        overflow: visible;
    }
    
    .category-search-container .search-wrapper {
        width: 95%;
        padding: 0 10px;
    }
}

/* 响应式 - 小屏手机 */
@media (max-width: 480px) {
    .category-search-container {
        min-height: 180px;
    }
}
