/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#recipeSearch {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

button {
    padding: 12px 24px;
    background: #ff6b6b;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #ff5252;
}

/* 菜谱网格布局 */
.recommend-grid, .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px 0;
}

/* 菜谱卡片 */
.recipe-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.1em;
    margin: 0 0 10px;
    color: #333;
}

.card-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-add {
    background: #4CAF50;
}

.btn-cancel {
    background: #ff4444;
}

.btn-confirm {
    background: #2196F3;
}

/* 我的菜单区域 */
.my-menu-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-actions {
    text-align: right;
    margin-bottom: 20px;
}

.recommend-tip {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}
/* 在原有样式中添加 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .button-group {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}

.menu-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
