.search-page { 
    padding: 20px 0; 
}

.search-header { 
    background: #f8f9fa; 
    padding: 30px 0; 
    margin-bottom: 30px; 
}

.search-form { 
    max-width: 1400px; 
    margin: 0 auto; 
}

.search-input-group { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
    align-items: center;
}

.search-results-count {
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

.search-input-group input { 
    flex: 1; 
    padding: 12px 16px; 
    border: 2px solid #e9ecef; 
    border-radius: 8px; 
    font-size: 16px; 
    outline: none; 
    transition: border-color 0.3s; 
}

.search-input-group input:focus { 
    border-color: #007bff; 
}

.search-input-group button { 
    padding: 12px 24px; 
    background: #007bff; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    transition: background-color 0.3s; 
}

.search-input-group button:hover { 
    background: #0056b3; 
}

/* 使用统一的容器类 */

.results-header { 
    margin-bottom: 30px; 
    text-align: center; 
}

.results-count { 
    color: #666; 
    margin-bottom: 10px; 
}

.results-query { 
    font-size: 24px; 
    font-weight: bold; 
    color: #333; 
}

.results-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-bottom: 10px; 
    align-items: stretch;
}

.result-card { 
    background: white; 
    border: 1px solid #e9ecef; 
    border-radius: 12px; 
    padding: 0; 
    transition: all 0.3s; 
    cursor: pointer; 
    text-decoration: none; 
    color: inherit; 
    display: flex;
    flex-direction: column;
    height: 100%;
}

.result-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
    border-color: #007bff; 
}

.result-content {
    padding: 16px;
    flex: 1;
    cursor: pointer;
}

.result-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
}

.result-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 16px;
    object-fit: cover;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.result-description { 
    color: #666; 
    line-height: 1.6; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    padding-left: 4px;
    padding-right: 4px;
}

.result-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 12px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    margin-top: auto;
    overflow: hidden;
}

.result-category { 
    display: inline-block; 
    background: #e9ecef; 
    color: #666; 
    padding: 4px 12px; 
    border-radius: 6px; 
    font-size: 12px; 
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.result-category:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

/* 标签样式 */
.result-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 12px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}



.result-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    white-space: nowrap;
    flex-shrink: 0;
}

.result-tag:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
}

.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    margin-top: 40px; 
}

.pagination button { 
    padding: 8px 16px; 
    border: 1px solid #e9ecef; 
    background: white; 
    color: #333; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.pagination button:hover:not(:disabled) { 
    background: #007bff; 
    color: white; 
    border-color: #007bff; 
}

.pagination button:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.pagination .current-page { 
    background: #007bff; 
    color: white; 
    border-color: #007bff; 
}

.loading { 
    text-align: center; 
    padding: 40px; 
    color: #666; 
}

.loading-spinner { 
    display: inline-block; 
    width: 20px; 
    height: 20px; 
    border: 2px solid #f3f3f3; 
    border-top: 2px solid #007bff; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin-right: 10px; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.no-results { 
    text-align: center; 
    padding: 60px 20px; 
    color: #666; 
}

.no-results h3 { 
    margin-bottom: 10px; 
    color: #333; 
}

.back-home { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 20px; 
    background: #007bff; 
    color: white; 
    text-decoration: none; 
    border-radius: 6px; 
    transition: background-color 0.3s; 
}

.back-home:hover { 
    background: #0056b3; 
}

.load-more-hint {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .search-header {
        padding: 0;
    }

    /* 优化移动端网站卡片样式 */
    .result-card {
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        border: 1px solid #e0e0e0;
    }

    .result-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .result-content {
        padding: 12px;
    }

    .result-header {
        margin-bottom: 8px;
        align-items: center;
    }

    .result-logo {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .result-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        margin-top: -2px;
        flex: 1;
    }

    .result-description {
        font-size: 13px;
        line-height: 1.5;
        color: #666;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 2px;
    }

    /* 优化分类和标签样式 */
    .result-categories {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .result-category, .result-tag {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 10px;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: auto;
        line-height: 1.2;
    }

    .result-category {
        background: #e3f2fd;
        color: #1976d2;
        border: 1px solid #bbdefb;
    }

    .result-tag {
        background: #fff3e0;
        color: #f57c00;
        border: 1px solid #ffcc02;
    }

    /* 优化网格布局 */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 0;
    }

    /* 超小屏幕优化 */
    @media (max-width: 480px) {
        .result-content {
            padding: 10px;
        }

        .result-header {
            margin-bottom: 6px;
            align-items: center;
        }

        .result-logo {
            width: 24px;
            height: 24px;
            margin-right: 8px;
            flex-shrink: 0;
        }

        .result-title {
            font-size: 15px;
            line-height: 1.3;
        }

        .result-description {
            font-size: 12px;
            line-height: 1.4;
        }

        .result-categories {
            margin-top: 6px;
            padding-top: 6px;
            gap: 3px;
        }

        .result-category, .result-tag {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 8px;
            margin: 0;
            line-height: 1.1;
        }

        .results-grid {
            gap: 10px;
            margin-bottom: 0;
        }
    }
} 