/* 信息列表页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 搜索筛选区域 */
.search-filters {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.search-bar {
    margin-bottom: 2rem;
}

.search-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    max-width: 600px;
    margin: 0 auto;
    transition: border-color 0.3s ease;
}

.search-input:focus-within {
    border-color: #ff6b35;
}

.search-input i {
    color: #6c757d;
    margin-right: 1rem;
}

.search-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.search-input .btn {
    margin-left: 1rem;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
}

/* 筛选器 */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 120px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
}

/* 信息列表 */
.info-list {
    padding: 3rem 0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.result-count {
    color: #6c757d;
    font-size: 0.95rem;
}

.result-count strong {
    color: #ff6b35;
    font-weight: 700;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.view-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 信息卡片 */
.info-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-card:hover .info-image img {
    transform: scale(1.05);
}

.info-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-badge.hot {
    background: #dc3545;
}

.info-content {
    padding: 1.5rem;
}

.info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #212529;
    line-height: 1.3;
}

.info-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b35;
}

.location {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #ffc107;
}

.rating .fas {
    color: #ffc107;
}

.rating .far {
    color: #dee2e6;
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.publisher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.publisher span {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}


/* 列表视图样式 */
.info-grid.list-view {
    grid-template-columns: 1fr;
}

.info-grid.list-view .info-card {
    display: flex;
    align-items: stretch;
}

.info-grid.list-view .info-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.info-grid.list-view .info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .search-filters {
        padding: 1.5rem 0;
    }
    
    .search-input {
        flex-direction: column;
        align-items: stretch;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .search-input .btn {
        margin-left: 0;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .list-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-grid.list-view .info-card {
        flex-direction: column;
    }
    
    .info-grid.list-view .info-image {
        width: 100%;
        height: 200px;
    }
    
    .info-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .page-btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-content {
        padding: 1rem;
    }
    
    .search-input {
        padding: 0.75rem;
    }
}