/* 搜索结果页 - 拟物封面（与首页 .home-book-cover 一致） */
.search-result-cover.home-book-cover {
    width: 120px;
    max-width: 120px;
    min-width: 120px;
    flex-shrink: 0;
}

.search-results-page {
    --primary-color: #205A28;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

.search-results-summary {
    text-align: left;
    color: var(--text-secondary);
    font-size: 1rem;
    flex: 1;
    min-width: 0;
}

.search-results-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-results-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.search-results-control {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.search-results-control-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
}

.search-results-control .form-select {
    min-width: 120px;
    border-color: var(--border-color);
    font-size: 0.875rem;
}

.search-results-control .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 90, 40, 0.15);
}

.search-results-summary strong {
    color: var(--primary-color);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.search-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-result-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.search-result-meta-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.search-result-meta-label {
    color: #94a3b8;
}

.search-result-format {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.search-result-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.search-result-rating .stars {
    display: inline-flex;
    gap: 1px;
}

.search-result-rating .star {
    color: #dee2e6;
    font-size: 0.85rem;
}

.search-result-rating .star.filled {
    color: #ffc107;
}

.search-result-rating .star.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, #dee2e6 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-result-rating .rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-rating .rating-count {
    color: #94a3b8;
    font-size: 0.8rem;
}

.search-results-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-results-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.search-results-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* 拟物封面样式（与首页一致） */
.home-book-cover {
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        6px 8px 20px rgba(0, 0, 0, 0.12),
        2px 0 0 rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.06);
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.home-book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(90deg, #ced4da 0%, #e9ecef 50%, #ced4da 100%);
    z-index: 3;
    pointer-events: none;
}

.home-book-cover::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.home-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 576px) {
    .search-results-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-results-controls {
        justify-content: stretch;
    }

    .search-results-control {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }

    .search-results-control .form-select {
        width: 100%;
        min-width: 0;
    }

    .search-result-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-result-cover.home-book-cover {
        width: 100px;
        max-width: 100px;
        min-width: 100px;
    }

    .search-result-meta {
        justify-content: center;
    }
}
