
/* Search */
.search-input-container {
    display: inline-block;
    border: 1px solid #bbb;
    border: 1px solid rgba(0, 0, 0, 0.25);
    margin-top: 0.8em;
    background-color: #fff;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    padding: 0 0.6em;
    white-space: nowrap;
}

.search-input-container i {
    cursor: pointer;
}

.search-input-container i:hover {
    color: #9c9cfe;
}

.search-input,
.header-search-input {
    display: inline-block;
    border: none;
    outline: none;
    width: 10.5em;
    height: 1.1em;
    padding: 0.5em 0.7em 0.5em 0;
    font-weight: 400;
    color: #444;
    font-size: 1em;
    line-height: 1.2;
    box-sizing: content-box;
    font-family: "微软雅黑", Arial, sans-serif;
}

.search-container {
    width: 60vw;
    height: 80vh;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -30vw;
    margin-top: -40vh;
    z-index: 9999;
    background-color: #fff;
    border-radius: 10px;
    border: #0000ff 1px solid;
    padding: 0.6em 0.8em;
    display: none;
}

@media (max-width: 768px) {
    .search-container {
        width: 90vw;
        margin-left: -45vw;
        margin-top: -40vh;
        padding: 0.7em;
    }
}

.search-container-main {
    overflow-x: auto;
    height: 100%;
}

.search-container-wrapper {
    min-width: 240px;
}

.search-mask {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.5;
    background-color: #000;
    z-index: 9998;
    display: none;
}

.search-filter {
    display: inline-block;
}

.search-filter input {
    vertical-align: text-bottom;
    cursor: pointer;
}

.search-filter input::after {
    background-color: #0000ff;
    color: #fff;
}

.search-filter span {
    vertical-align: middle;
}

.search-result-container {
    overflow-y: auto;
    max-height: calc(80vh - 150px);
}

.search-result-summary {
    margin: 5px;
}

.search-result-summary .number {
    font-weight: bold;
}

.search-result-item {
    width: 95%;
    margin-top: 2px;
    padding: 0.3em 0.6em;
    border: #000 1px solid;
}

.search-result-item .highlight {
    background-color: #ffd335;
}

.search-result-item .title {
    font-size: 1.1em;
    font-weight: 700;
    border-bottom: #bbb 1px dotted;
}

.search-result-item .title a {
    color: #0000ff;
}

.search-result-item .title a:hover {
    color: #6464ff;
}

.search-result-item .title .matched-num {
    color:#ffaa00;
    font-weight: normal;
    margin-left: 1.3em;
}

.search-result-item .preview {
    font-size: 0.9em;
    color: #000;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item .preview div {
    margin-top: 5px;
}

.search-result-item .preview .preview-number {
    font-weight: bold;
    color: #000;
}

.search-container .search-container-close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 20px;
    color: #000;
}

.search-container .search-container-close:hover {
    opacity: 0.5;
}