/* 搜索功能修复样式 */

/* 搜索图标样式 */
.nav-search {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-search:hover {
    transform: scale(1.1);
}

.seabtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.seabtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 搜索框容器样式 */
.top_search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.top_search.on {
    opacity: 1;
    visibility: visible;
}

.e_container-18 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

.e_container-18.on {
    opacity: 1;
    visibility: visible;
}

.e_container-18 > .p_item {
    flex: 1;
    max-width: 100%;
    max-height: 100%;
}

/* 背景遮罩 */
.e_container-18 .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
    transition: 0.3s ease;
    cursor: pointer;
    z-index: 9998;
}

/* 搜索区域 */
.search_area {
    background-color: rgba(242, 242, 242, 1);
    margin: 0 auto;
    padding: 60px 5% 60px 5%;
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 1200px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索表单样式 */
.e_form-19 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.e_form-19 > .p_formItem {
    flex: 1;
    max-width: 100%;
    max-height: 100%;
}

.e_form-19 .cbox-19-0 {
    flex: 1;
}

.e_form-19 .cbox-19-1 {
    flex: 0 0 60px;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow: hidden;
}

/* 输入框样式 */
.e_input-20 {
    height: auto;
}

.e_input-20 .form-control {
    border-right: none;
    height: 50px;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    padding: 5px 25px;
    font-size: 16px;
    border-right: none;
}

.e_input-20 .form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ddd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* 搜索按钮样式 */
.e_formBtn-21 {
    display: flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 60px;
    padding: 0;
    height: 100%;
    background: #fff;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(228, 228, 228, 1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.e_formBtn-21 .ss_icon {
    fill: var(--main-color, #2c5aa0);
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
}

.e_formBtn-21:hover .ss_icon {
    fill: #ffffff;
}

.e_formBtn-21 span {
    display: none;
    width: 100%;
    position: relative;
    z-index: 1;
    outline: 0;
    margin: 0px;
    overflow: hidden;
}

.e_formBtn-21::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.3s;
    z-index: 0;
    opacity: 0;
    top: 0;
    left: 0px;
    background: var(--main-color, #2c5aa0);
}

.e_formBtn-21:hover::after {
    opacity: 1;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .search_area {
        padding: 40px 20px;
        max-width: 100%;
    }

    .e_form-19 {
        width: 100%;
        border-radius: 20px;
    }

    .e_input-20 .form-control {
        height: 45px;
        font-size: 14px;
        padding: 5px 20px;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .e_form-19 .cbox-19-1 {
        flex: 0 0 50px;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .e_formBtn-21 {
        width: 50px;
    }
}
