/* 美食页面主体样式 */
.food-main {
    margin-top: 100px;
    padding: 20px;
    background: #f9f9f9;
}

/* 筛选导航样式 */
.food-filter {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.food-filter ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.food-filter li {
    margin: 0 15px;
}

.food-filter a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.food-filter li.active a,
.food-filter a:hover {
    background: #c41230;
    color: #fff;
}

/* 美食网格布局 */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* 美食卡片样式 */
.food-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.food-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.food-card:hover .food-img img {
    transform: scale(1.1);
}

.food-info {
    padding: 20px;
}

.food-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.cuisine {
    color: #c41230;
    font-size: 14px;
    margin-bottom: 10px;
}

.description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tags {
    margin-bottom: 15px;
}

.tags span {
    display: inline-block;
    padding: 3px 10px;
    background: #f5f5f5;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
}

.recipe-link {
    display: inline-block;
    padding: 8px 20px;
    background: #c41230;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.recipe-link:hover {
    background: #a00e26;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .food-filter ul {
        flex-wrap: wrap;
    }
    
    .food-filter li {
        margin: 5px;
    }
    
    .food-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
} 