/* 搜索框样式优化 */
.searchBarCtn {
    position: relative;
    width: 240px;
    margin-top: 18px;
    /* float: right; */
    margin-left: 20px;
}

.sbSearch {
    width: 40px;
    height: 38px;
    overflow: hidden;
    -webkit-transition: width .3s;
    -moz-transition: width .3s;
    transition: width .3s;
    -webkit-backface-visibility: hidden;
    position: relative;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sbSearch.open {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.s-input {
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    outline: 0;
    background: transparent;
    width: calc(100% - 40px);
    height: 38px;
    margin: 0;
    z-index: 10;
    padding: 0 15px;
    font-family: inherit;
    color: #2c3e50;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .3s, visibility .3s;
    -moz-transition: opacity .3s, visibility .3s;
    transition: opacity .3s, visibility .3s;
}

.sbSearch.open .s-input {
    opacity: 1;
    visibility: visible;
    background: #fff;
}

.sbSearch button {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
    transition: all 0.3s ease;
}

.sbSearch button i {
    color: #fff;
    font-size: 16px;
}

.sbSearch.open button i {
    color: #007bff;
}

.sbSearch button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sbSearch.open button:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* 搜索框聚焦效果 */
.s-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 搜索结果为空时的样式 */
.no-results {
    background-color: #f8f9fa;
    /* background-color: #fff; */
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
}

.no-results p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.no-results p:first-child {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.search-suggestions {
    margin-top: 25px;
    text-align: left;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
}

.search-suggestions h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.search-suggestions li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
    position: relative;
}

.search-suggestions li:before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .searchBarCtn {
        width: 100%;
        margin-top: 10px;
        float: none;
    }

    .sbSearch {
        width: 100%;
    }

    .s-input {
        width: calc(100% - 40px);
        opacity: 1;
        visibility: visible;
        background-color: #fff;
    }

    .sbSearch button i {
        color: #007bff;
    }

    .no-results {
        padding: 20px;
    }

    .search-suggestions {
        padding: 15px;
    }
}