/* 美食页面样式 */
.food-banner {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/meishi.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 美食分类导航 */
.food-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.food-categories {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

.food-categories li {
    margin: 0 1rem;
}

.food-categories a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

.food-categories a:hover,
.food-categories a.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 美食卡片样式 */
.food-section {
    padding: 4rem 0;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.food-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.food-card .food-image {
    width: 100%;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #f5f5f5;
}

.food-card .food-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.food-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.food-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.food-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.food-desc {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.food-details {
    margin-bottom: 1rem;
    margin-top: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.detail-item i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.btn-more {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn-more:hover {
    background-color: var(--accent-color);
}

/* 美食地图样式 */
.food-map {
    padding: 4rem 0;
    background-color: var(--background-color);
    
}

.map-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

#food-map-canvas {
    flex: 2;
    height: 400px;
    background-color: #eee;
    border-radius: 8px;
}

.map-sidebar {
    flex: 1;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.food-locations {
    list-style: none;
}

.food-locations li {
    margin-bottom: 1.5rem;
}

.food-locations h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 美食文化样式 */
.food-culture {
    padding: 4rem 0;
}

.culture-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.culture-text {
    flex: 1;
}

.culture-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .map-container {
        flex-direction: column;
    }
    
    #food-map-canvas {
        height: 300px;
    }
    
    .culture-content {
        flex-direction: column;
    }
    
    .culture-image {
        order: -1;
    }
}

@media (max-width: 767px) {
    .food-categories {
        flex-wrap: wrap;
    }
    
    .food-categories li {
        margin: 0.5rem;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.2rem;
    }
    
    .food-card .food-image {
        min-height: 80px;
    }
}

@media (max-width: 575px) {
    .food-nav {
        top: 60px;
    }
    
    .food-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .food-grid {
        grid-template-columns: 1fr;
    }
    
    .food-card {
        max-width: 100%;
    }
} 