/* resources/css/components/search-results.css
   统一搜索结果页组件样式。
   来源：wiki-search.css（与 wiki.css 末尾重复内容已去重，以 wiki 栏目为准）。
   适用于 /library/search?type= 所有类型。
*/

/* ── 搜索栏 ── */
.wiki-search-bar-wrap {
    margin-bottom: 0.875rem;
}

.wiki-search-form .wiki-search-input {
    font-size: 0.9375rem;
}

/* ── 结果摘要行 ── */
.wiki-search-summary {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.wiki-search-summary strong {
    color: var(--tblr-body-color);
    font-weight: 500;
}

/* ── 搜索结果列表容器 ── */
.wiki-search-results {
    padding: 0;
}

/* ── 搜索结果卡片 ── */
.wiki-search-card {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.wiki-search-card:last-child {
    border-bottom: none;
}

.wiki-search-card:hover {
    background: var(--tblr-bg-surface-secondary);
}

.wiki-search-card-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.wiki-search-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--tblr-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.wiki-search-card-title:hover {
    text-decoration: underline;
}

.wiki-search-card-word {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--tblr-secondary);
    font-weight: 400;
}

.wiki-search-card-snippet {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    line-height: 1.6;
    margin: 0 0 6px;
}

.wiki-search-card-snippet mark {
    background: #faeeda;
    color: #854f0b;
    padding: 1px 2px;
    border-radius: 3px;
    font-style: normal;
}

.wiki-search-card-meta {
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.wiki-search-card-sep {
    color: var(--tblr-border-color-dark, #adb5bd);
}

/* ── 空状态 ── */
.wiki-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.wiki-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tblr-bg-surface-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--tblr-secondary);
}

.wiki-empty-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.wiki-empty-desc {
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    line-height: 1.6;
}

.wiki-empty-desc a {
    color: var(--tblr-primary);
    text-decoration: none;
}
