/* =================================================
   搜索结果样式 (Search Results Styles)
   ================================================= */

.search-results {
    margin: 15px 0;
    padding: 0;
}

.search-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--md-sys-color-surface-variant);
}

.search-result-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--md-sys-color-surface-variant);
    border-radius: var(--radius-medium);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.search-result-card:hover {
    background: rgba(168, 199, 250, 0.1);
    border-left-color: var(--md-sys-color-primary);
    transform: translateX(5px);
}

.result-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    line-height: 1.4;
}

.result-url {
    display: inline-block;
    font-size: 13px;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    margin-bottom: 8px;
    word-break: break-all;
    transition: color 0.2s ease;
}

.result-url:hover {
    color: #D6E3FF;
    text-decoration: underline;
}

.result-snippet {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
}

/* 加载动画 */
@keyframes searchPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.search-loading {
    display: inline-block;
    animation: searchPulse 1.5s ease-in-out infinite;
}