/* 搜索快捷键与即时结果 */
.jr-sp-results {
    padding: 0 10px 10px;
}

.jr-sp-list {
    max-height: min(60vh, 520px);
    overflow-y: auto;
}

/* 有即时结果时收起热门词、历史与热门文章，列表更集中 */
.jr-sp-has-results > .search-keywords,
.jr-sp-has-results > .relates {
    display: none;
}

.jr-sp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--main-color);
}

.jr-sp-item:hover,
.jr-sp-item.jr-sp-active {
    background: var(--muted-bg-color);
    color: var(--main-color);
}

.jr-sp-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--muted-bg-color);
}

.jr-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jr-sp-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jr-sp-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jr-sp-meta {
    font-size: 12px;
}

.jr-sp-empty {
    padding: 16px 10px;
    text-align: center;
}

.jr-sp-more {
    display: block;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: var(--theme-color, var(--focus-color));
}

.jr-sp-more:hover,
.jr-sp-more.jr-sp-active {
    background: var(--muted-bg-color);
}

.jr-sp-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 0 10px 10px;
    font-size: 12px;
}

.jr-sp-hint[hidden] {
    display: none;
}

.jr-sp-hint kbd {
    margin-right: 4px;
    padding: 1px 5px;
    border: 1px solid var(--muted-border-color);
    border-radius: 4px;
    background: none;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    font-size: 11px;
    line-height: 16px;
}

.jr-sp-hint kbd + kbd {
    margin-left: -2px;
}

@media (max-width: 767px), (hover: none) {
    .jr-sp-hint {
        display: none;
    }
}
