@font-face {
    font-family: "PingFang SC";
    src: url("/wp-content/themes/shengwang/assets/search/fonts/PingFangSC-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "PingFang SC";
    src: url("/wp-content/themes/shengwang/assets/search/fonts/PingFangSC-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "PingFang SC";
    src: url("/wp-content/themes/shengwang/assets/search/fonts/PingFangSC-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
.sw-search-bg {
    position: absolute;
    top: -24px;
    z-index: -1;
    left: 0;
    width: 100%;
    height: 294px;
    background: linear-gradient(#f8fbff 0, #fff 360px);
}
.sw-search-page {
    max-width: 1200px;
    margin: 112px auto;
    padding: 0 24px;
}

.sw-breadcrumb {
    display: flex;
    align-items: center;
}

.sw-breadcrumb,
.sw-breadcrumb a {
    font-size: 14px;
    color: #586376;
    font-family: "PingFang SC";
}

.sw-breadcrumb a:hover {
    color: #099dfd;
}

.sw-breadcrumb-arrow-right {
    margin: 0 8px;
    display: inline-block;
}

.sw-search-form-container {
    position: relative;
}

.sw-search-input-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 10%;
    width: 80%;
    background: #FFF;
    box-shadow: 0 18px 58px 0 #E6E9F2;
    z-index: 10;

    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E6E9F2;
    background: #FFF;
    box-shadow: 0 18px 52px 0 #E6E9F2;

    /* 动画效果 */
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.sw-search-input-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sw-search-input-dropdown-item {
    display: flex;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E6E9F2;
    cursor: pointer;
    /* 162.5% */
}

.sw-search-input-dropdown-item p,
.sw-search-input-dropdown-item b {
    color: #181F27;
    font-family: "PingFang SC";
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.sw-search-input-dropdown-item p {
    margin-bottom: 0;
}

.sw-search-input-dropdown-item p b {
    font-weight: 600;
}

.sw-search-input-dropdown-item span {
    color: #586376;
    font-family: "PingFang SC";
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.sw-search-input-dropdown-item:hover {
    background: #F8F9FC;

}

.sw-search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 16px 16px 24px;
    margin: 48px auto;
    width: 80%;

    border-radius: 16px;
    border: 1px solid #EBF1F9;
    background: #FFF;
    box-shadow: 0 18px 58px 0 #E6E9F2;
    transition: all .5s ease-in-out;
}

.sw-search-input-wrapper.focus {
    border-radius: 16px;
    border: 1px solid #099DFD;
    background: #FFF;
    box-shadow: 0 18px 58px 0 rgba(9, 157, 253, 0.16);
}

.sw-search-input-icon {
    margin-right: 16px;
    display: inline-block;
    width: 26px;
    height: 26px;
}

.sw-search-clear-btn {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/themes/shengwang/assets/search/images/close.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.sw-search-clear-btn-box {
    padding: 8px;
    margin: 0 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all .3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.sw-search-clear-btn-box:hover {
    /* background: #EBF1F9; */
    background: #EBF1F9;
}

.sw-search-clear-btn-box:hover svg path {
    stroke: #099DFD;

}

.sw-search-clear-btn-box.active {
    opacity: 1;
    visibility: visible;
}

.sw-search-clear-btn-box.active svg path {
    transition: all .3s ease-in-out;
}

.sw-search-clear-btn-box svg path {
    stroke: #586376;
}

.sw-search-input {
    color: #111827 !important;

    /* 四级标题 */
    font-family: "PingFang SC";
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 28px !important;
    /* 140% */
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.sw-search-input::placeholder {
    color: rgba(88, 99, 118, .5) !important;
    /* 四级标题 */
    font-family: "PingFang SC";
    font-size: 20px !important;
    font-weight: 400 !important;
    /* font-weight: 500 !important; */
    line-height: 28px !important;
    /* 140% */
}



.sw-search-btn {
    display: flex;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    color: #FFF !important;
    border-radius: 999px;
    background: #099DFD;

    /* Button */
    font-family: "PingFang SC";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    display: block;
    cursor: pointer;
    white-space: pre;
    /* 150% */
}



.sw-search-stats {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E6E9F2;
}

.sw-search-stats-list {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.sw-search-stats-list a {
    color: #181F27;
}

.sw-search-stat-item {
    display: flex;
    width: 154px;
    padding: 12px 0;
    align-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(24, 31, 39, 0.50);
    background: #fff;
    justify-content: center;

    /* Button */
    font-family: "PingFang SC";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    /* 150% */
    transition: all 0.3s ease-in-out;
}

.sw-search-stat-item:hover,
.sw-search-stat-item.active {
    background: #000;
    color: #fff;
}

.sw-search-empty {
    display: flex;
    padding: 48px;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    align-self: stretch;

    text-align: center;
    border-radius: 16px;
    background: #F8F9FC;
}

.sw-search-empty h3 {
    color: #181F27;
    margin: 0;
    /* 三级标题 */
    font-family: "PingFang SC" !important;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    /* 133.333% */
}

.sw-search-empty p.sw-search-empty-desc {
    color: #586376;
    text-align: center;

    /* 正文及标签 */
    font-family: "PingFang SC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;

    margin: 16px 0;
    /* 157.143% */
}

.sw-search-empty .sw-search-empty-btn.sw_button.sw-button-outline {
    color: #181F27;
    padding-left: 30px;
    font-family: "PingFang SC";
    font-weight: 500;
}

.sw-search-empty .sw_button.sw-button-outline.sw-search-empty-btn:hover {
    color: #fff;
}

.sw-hot-keywords {
    color: #586376;


    margin-top: 32px;
    /* 正文及标签 */
    font-family: "PingFang SC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 157.143% */
}

.sw-hot-keywords p {
    margin-bottom: 8px;
}

.sw-hot-keywords .sw-hot-keywords-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;


}

.sw-hot-keywords .sw-hot-keywords-list .sw-hot-keyword-item {
    margin-right: 8px;
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #E6E9F2;

    color: #586376;

    /* 正文及标签 */
    font-family: "PingFang SC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    /* 157.143% */
    cursor: pointer;
    transition: all 0.5s ease-in-out;

}

.sw-hot-keywords .sw-hot-keywords-list .sw-hot-keyword-item:hover {
    color: #099DFD;
    border: 1px solid #099DFD;
}

.sw-hot-keywords .sw-hot-keywords-list .sw-hot-keyword-item:last-child {
    margin-right: 0;
}

.sw-search-tips {
    margin-bottom: 24px;
    color: #586376;

    font-family: "PingFang SC";
    font-size: 14px;
    font-weight: 400;
}

.sw-search-results {
    margin: 0 auto;
    font-family: "PingFang SC";
    margin-bottom: 48px;
}

.sw-search-result-item {
    border-bottom: 1px solid #E6E9F2;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.sw-search-result-item:last-child {
    margin-bottom: 0;
}

.sw-search-result-title {
    color: #181F27;
    text-decoration: none;
    display: block;
    transition: color 0.3s;


    /* 三级标题 */
    font-family: "PingFang SC";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    /* 133.333% */
}

.sw-search-result-title:hover {
    color: #099DFD;
}

.sw-search-result-excerpt {
    font-size: 14px;
    color: #586376;
    line-height: 1.6;
    margin-bottom: 12px;


    overflow: hidden;
    text-overflow: ellipsis;

    /* 正文及标签 */
    font-family: "PingFang SC";
    /* 157.143% */
    margin: 8px 0 16px 0;
}

.sw-search-result-meta {
    display: flex;
}

.sw-search-result-type {
    color: #099DFD;
    border: 1px solid #099DFD;
    padding: 5px 10px;
    font-weight: 400;
    border-radius: 6px;
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
    .sw-search-page {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .sw-search-page {
        padding: 0 20px;
        margin: 30px auto;
    }

    .sw-search-input-wrapper {
        width: 100%;
    }

    .sw-search-btn {
        display: none;
    }

    .sw-search-clear-btn-box {
        margin: 0;
    }

    .sw-search-stats-list {
        grid-template-columns: repeat(3, 1fr);
        display: grid;
        gap: 8px;
    }

    .sw-search-stat-item {
        width: 100%;
        font-size: 14px;
    }

    .sw-search-empty-btn.sw_button {
        width: auto;
    }

    .sw-search-empty {
        padding: 48px 20px;
    }

    .sw-search-empty p.sw-search-empty-desc {
        margin-bottom: 20px;
    }

    .sw-hot-keywords .sw-hot-keywords-list .sw-hot-keyword-item {
        margin-bottom: 8px;
    }

    .sw-search-input {
        font-size: 18px !important;
    }

    .sw-search-input::placeholder {
        font-size: 18px !important;
        font-weight: 500;
    }

    .sw-search-input-dropdown-item p {
        width: 78%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .sw-search-input-dropdown {
        left: 0;
        width: 100%;
    }
}

/* 搜索模态窗 */
.sw-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(9px);
    z-index: -999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-in-out;
}

.sw-search-modal.show {
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sw-search-modal.show .sw-search-modal-content {
    transform: translateY(0);
    transition: all 0.5s ease-in-out;
}

.sw-search-modal-close {
    position: absolute;
    top: 48px;
    right: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 18px 28px 0 #E6E9F2;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-search-modal-content {
    margin-top: 144px;
    margin: 144px auto 0 auto;
    width: 760px;
    background: none;
    translate: translateY(-50%);
}

.sw-search-modal-content .sw-search-input::placeholder {
    font-size: 18px;
    font-weight: 400;
}

.sw-search-modal-search-form .sw-hot-keywords {
    margin-top: 48px;
}

.sw-search-modal-content .sw-hot-keywords .sw-hot-keywords-list {
    justify-content: flex-start;

}

.sw-search-modal-content .sw-hot-keywords p {
    color: #586376;

    /* 正文及标签 */
    font-family: "PingFang SC";
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    /* 157.143% */
}

.sw-search-modal-content .sw-search-btn {
    display: none;
}

.sw-search-modal-content .sw-search-input-wrapper {
    padding: 0 16px 0 24px;
    height: 80px;
    width: 100%;
}

.sw-search-modal-content .sw-search-input-dropdown {
    left: 0;
    width: 100%;
}

.sw-search-modal-content.sw-search-clear-btn-box {
    display: none;
}

@media (max-width: 768px) {
    .sw-search-modal {
        width: 100vw;
    }

    .sw-search-modal-content {
        width: 85%;
        margin-top: 200px;
    }

    .sw-search-modal-content .sw-search-input-wrapper {
        height: 70px;
    }

    .sw-search-modal-content .sw-search-input-wrapper {
        padding: 0 16px 0 16px;
    }

    .sw-search-modal-close {
        right: 8%;
    }

}

/* 搜索模态窗结束 */
/**
 * 搜索导航icon部分
 */
 body.search-results .sw-header-wrap .sw-nav-search svg path{
    stroke: #586376;
 }
.sw-header-wrap .sw-nav-search {
    padding: 14px;
    margin-right: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.sw-header-wrap .sw-nav-search svg path {
    stroke: #EBF1F9;
    transition: stroke 0.3s ease;
}

.sw-header-wrap:hover .sw-nav-search {
    opacity: 1;
    visibility: visible;
}
.sw-header-wrap:hover .sw-nav-search svg path {
    stroke: #586376;
}

.sw-header.scrolls .sw-header-wrap .sw-nav-search {
    opacity: 1;
    visibility: visible;
}

.sw-btns-wrap {
    display: flex;
    align-items: center;
}

.sw-header.scrolls .sw-header-wrap .sw-nav-search svg path {
    stroke: #586376;
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
    .sw-btns-wrap {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .sw-btns-wrap {
        display: flex;
        margin-left: auto;
    }

    .sw-header-wrap .sw-nav-search {
        opacity: 1;
        visibility: visible;
        margin-right: 5px;
    }
}

/**
 * 搜索导航icon部分结束
 */