/* 搜索结果列表容器 */
.ajax-search-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

/* 单个搜索结果项 */
.search-result-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--wd-brd-radius);
    background-color: var(--wd-form-bg, #fff);
    color: var(--wd-text-color);
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    animation: wdAjaxSearchFadeUp 0.32s ease forwards;
    will-change: transform, opacity;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.search-result-item:hover {
    background-color: var(--wd-bg-gray, rgba(0, 0, 0, 0.04));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: var(--wd-primary-color);
}

.search-result-item:active {
    transform: scale(0.98);
}

@keyframes wdAjaxSearchFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 图片区域 */
.search-result-thumb {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: calc(var(--wd-brd-radius) * 0.5);
    overflow: hidden;
    background-color: var(--wd-bg-gray, #f5f5f5);
}

/* 骨架屏动画 */
.search-result-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%), var(--wd-bg-gray, #f5f5f5);
    transform: translateX(-100%);
    animation: wdAjaxSearchSkeleton 1.2s ease-in-out infinite;
}

.search-result-thumb img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.search-result-thumb.is-loaded::before { display: none; }
.search-result-thumb.is-loaded img { opacity: 1; }

.search-result-content { min-width: 0; flex: 1; }
.search-result-title {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--wd-title-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta { font-size: 13px; color: var(--wd-primary-color); font-weight: 500; }

@keyframes wdAjaxSearchSkeleton {
    100% { transform: translateX(100%); }
}