/* 页面banner样式 */
.page-banner {
    margin-top: 80px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 搜索栏样式 */
.search-bar {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.search-container input {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: #e60012;
    outline: none;
}

.search-container button {
    padding: 10px 20px;
    background: #e60012;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #cc0000;
}

.filter-tags {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover,
.tag.active {
    background: #e60012;
    color: #fff;
}

/* 菜品网格样式 */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.dish-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.dish-card:hover {
    transform: translateY(-5px);
}

.dish-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dish-image:hover img {
    transform: scale(1.05);
}

.dish-tags {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dish-content {
    padding: 20px;
}

.dish-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.desc {
    color: #666;
    margin-bottom: 20px;
}

.details {
    display: none;
    margin: 20px 0;
}

.details h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.details p {
    color: #666;
    margin-bottom: 15px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.social span {
    margin-left: 15px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.social span:hover {
    color: #e60012;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #e60012;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.back-to-top.visible {
    opacity: 1;
}

/* 动画效果 */
.dish-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 