/* 页面标题样式 */
.page-header {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/food-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

.page-header p {
    font-size: 1.5em;
    opacity: 0.9;
}

/* 导航菜单样式 */
.food-nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.nav-tabs a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-tabs a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-tabs a:hover::after,
.nav-tabs a.active::after {
    width: 100%;
}

.nav-tabs a.active {
    color: var(--primary-color);
}

/* 特色美食样式 */
.featured-section {
    padding: 80px 0;
    background-color: var(--white);
}

.food-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: none;
    color: var(--primary-color);
    font-size: 1.1em;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.food-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.food-item:hover {
    transform: translateY(-10px);
}

.food-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.food-item:hover .food-image img {
    transform: scale(1.05);
}

.food-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.food-item:hover .food-overlay {
    opacity: 1;
}

.recipe-btn {
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: var(--transition);
}

.recipe-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.food-info {
    padding: 20px;
}

.food-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.food-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    padding: 5px 15px;
    background-color: #f5f5f5;
    color: var(--text-color);
    border-radius: 15px;
    font-size: 0.9em;
}

/* 推荐餐厅样式 */
.restaurants-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.restaurant-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.restaurant-image {
    position: relative;
    height: 250px;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-rating {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #FFD700;
}

.score {
    font-weight: bold;
    color: var(--primary-color);
}

.restaurant-info {
    padding: 20px;
}

.restaurant-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.restaurant-desc {
    color: var(--text-color);
    margin-bottom: 15px;
}

.restaurant-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.restaurant-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.book-table-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: var(--transition);
}

.book-table-btn:hover {
    background-color: #d32f2f;
}

/* 食谱模态框样式 */
.recipe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.recipe-content {
    margin-top: 20px;
}

.recipe-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.recipe-image {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.ingredients h4,
.steps h4,
.tips h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.steps-list {
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.tips-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    line-height: 1.6;
}

/* 饮食文化样式 */
.culture-section {
    padding: 80px 0;
    background-color: var(--white);
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.culture-text h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.culture-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.culture-text ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.culture-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.culture-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5em;
}

.culture-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.culture-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.culture-gallery img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .food-grid,
    .restaurant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-details {
        grid-template-columns: 1fr;
    }
    
    .culture-content {
        grid-template-columns: 1fr;
    }
    
    .culture-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-tabs a {
        font-size: 1em;
        padding: 8px 15px;
    }
    
    .food-grid,
    .restaurant-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .recipe-image {
        height: 300px;
    }
} 