/* ========================================
   搜索页面专用样式
   ======================================== */

/* 搜索结果高亮 */
mark.search-highlight {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* 搜索错误 */
.search-error {
    text-align: center;
    padding: 3rem 2rem;
    color: #ff6b6b;
}

.search-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 搜索标签云 */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

/* 文章内小标签 */
.search-tags-list {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-link-small {
    padding: 0.2rem 0.6rem;
    background: rgba(74, 0, 224, 0.1);
    border: 1px solid rgba(74, 0, 224, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link-small:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 搜索分页间距 */
#search-pagination {
    margin-top: 3rem;
}