/* 
 * 淘南京 - 列表页专属样式
 */

.list-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.list-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.list-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.list-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.filter-section {
    padding: 3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-main);
    padding-top: 0.5rem;
    min-width: 4rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-item {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
}

.filter-item:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.filter-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

@media (max-width: 640px) {
    .list-grid {
        grid-template-columns: 1fr;
    }
}

.food-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.food-card-img {
    height: 15rem;
    overflow: hidden;
    position: relative;
}

.food-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s;
}

.food-card:hover .food-card-img img {
    transform: scale(1.1);
}

.food-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.food-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.food-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.food-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 4rem 0;
}

.page-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
    color: var(--text-muted);
}

.page-item:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.page-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
