/* 搜索结果页专用样式 */

/* 顶部搜索栏固定定位 */
.results-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
}

/* 为固定的 header 预留空间 */
body.results-page {
    padding-top: var(--header-height) !important;
}

/* 防止移动端横向滚动 */
* {
    max-width: 100%;
}

body, html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 搜索结果卡片新布局 - 紧凑版 */
.result-card {
    padding-bottom: .2rem;
    margin-bottom: .2rem;
    border-bottom: 1px solid #f1f5f9;
    animation: fadeIn 0.5s ease-out;
}

/* 第一行：图标 + 标题 */
.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -10px;
}

.result-favicon-large {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.result-title-large {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.result-title-large a {
    color: #1a0dab;
    text-decoration: none;
}

.result-title-large a:hover {
    text-decoration: underline;
}

/* 第二行：描述 */
.result-body {
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 800px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 第三行：URL */
.result-footer {
    font-size: 0.8rem;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 移动端底部内容 */
.mobile-bottom-content {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-content {
        display: block;
        margin-top: 2rem;
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .mobile-footer-links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
        color: #64748b;
    }
    
    .mobile-footer-link {
        color: #64748b;
        text-decoration: none;
    }
    
    .mobile-footer-link:hover {
        color: #1e293b;
    }
    
    .mobile-footer-separator {
        color: #cbd5e1;
    }
}
