body{
    font:14px Microsoft Yahei,sans-serif,PingFangSC-Regular,Tahoma,helvetica,Segoe UI;
}

.filter{
    background-color: #eee;
    padding: 20px 5px 15px 5px;
    border-radius: 10px;
    margin:25px 0 18px 0;
}
.filter .form{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter .form input{
    border-radius: 5px;
    height: 32px;
    outline: none;
    padding:0 5px;
    border: 1px solid #ddd;
}
.filter .form input:hover{
    -webkit-transition: all .3s ease;-moz-transition: all .3s ease;-o-transition: all .3s ease;transition: all .3s ease;
    border-color: var(--theme);
}
.filter .form select{
    height: 32px;
    border: 1px solid #ddd;
    padding:0 5px;
    border-radius: 5px;
    color:#666;
}
.filter .form .g1{
    width:440px;
}
.filter .form .item{
    margin:15px;
    display: flex;
    height: 36px;
    align-items: center;
}
.filter .form .item label{
    margin-right: 5px;
    flex-shrink: 0;
}

.filter .tag .option{
    display: flex;
    margin-left:14px;
}
.filter .tag .option .e{
    background-color: #fafafa;
    margin:0 5px;
    padding:5px 10px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    border:1px solid #eee;
    border-bottom: none;
}
.filter .tag .option .e .iconfont{
    margin-right: 3px;
}
.filter .tag .tag1,.filter .tag .tag2{
    margin-top: 0px !important;
}

.filter .form .inputBox{
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}
.filter .form .inputBox label{
    color:#fff;
    height: 32px;
    line-height: 32px;
    padding:0 10px;
    font-weight: 500;
    font-family: sans-serif;
    flex-shrink: 0;
    margin:0px;
}
.filter .form .inputBox input{
    border:none;
    outline: none;
    padding:0 8px;
    height: 32px;
    display: block;
    width:100%;
    border-radius:5px;
    border:2px solid #bb6d50;
    font:14px Microsoft Yahei,sans-serif,PingFangSC-Regular,Tahoma,helvetica,Segoe UI;
}
.filter .form .inputBox input[readonly="true"]{
    color:#999;
}
.filter .form .inputBox input[readonly="true"]:hover{
    background-color: #eee;
    cursor: pointer;
}
.filter .form .g2{
    display: flex;
    flex-wrap: wrap;
}
.filter .form .inputGroup{
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    -webkit-transition: all .3s ease;-moz-transition: all .3s ease;-o-transition: all .3s ease;transition: all .3s ease;
    box-sizing: border-box;
}
.filter .form .inputGroup:hover{
    border-color: var(--theme);
}
.filter .form .inputGroup input{
    border:none;
     width:100%;
}
.filter .form .inputGroup .unit{
    color: #999;
    padding-right: 5px;
    font-size:12px;
}
.filter .form .btGroup{
    display: flex;
    height: 38px;
}
.filter .form .btGroup button{
    height: 32px;
    border:none;
    padding:0 20px;
    background-color: #bb6d50;
    color:#fff;
    margin-right: 15px;
    font-family: sans-serif;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 500;
    font-family: sans-serif;
    letter-spacing: 1px;
}
.filter .form .btGroup button:hover{
    background-color: #a95d42;
}
.filter .form .btGroup .reset{
    background-color: #999;
}
.filter .form .btGroup .reset:hover{
    background-color: #8a8a8a;
}

.filter .result{
    padding: 0 15px;
    display: flex;
}
.filter .result strong{
    color:#a95d42;
}
.filter .submit .loading{
    display: none;
}
.filter .submit.disable{
    opacity: 0.9;
    pointer-events: none; /* 禁止鼠标事件 */
}
.filter .submit.disable .text{
    display: none;
}
.filter .submit.disable .loading{
    display: block;
}

.filter .searchOptions{
    top:40px;
}
.filter .searchOptions.active{
    top:40px;
}


.ingredient{
    visibility: hidden;
    position: absolute;
    top:38px;
    background-color: #fff;
    width:100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: all .3s ease;-moz-transition: all .3s ease;-o-transition: all .3s ease;transition: all .3s ease;
    z-index: 99;
}
.ingredient.show{
    visibility: visible;
    opacity: 1;
}
.ingredient .selected{
    padding:5px 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.ingredient .selected_title{
    margin: 2px;
    height: 22px;
    line-height: 22px;
}
.ingredient .selected_item{
    margin: 2px;
    background: #f4dec8;
    border: 1px solid #dc9650;
    padding: 0 3px;
    color: #35150a;
    position: relative;
}
.ingredient ul{
    max-height: 400px;
    overflow: auto;
}
.ingredient ul li{
    display: flex;
    align-items: center;
    background-color: #f4dec8;
}
.ingredient ul li:hover{
    background-color: #eee;
}
.ingredient ul li .num{
    width: 32px;
    height:36px;
    line-height: 36px;
    text-align: center;
    font-size: 14px;
    color: #595959;
    background: #f5f5f5;
}
.ingredient ul li .abbreviation{
    width: 36px;
    height:36px;
    line-height: 36px;
    text-align: center;
    background: #bb6d50;
    color: #fff;
    font-size:13px;
}
.ingredient ul li .name{
    padding-left:5px;
}
.ingredient ul li .name i{
    font-size:12px;
    color: #696969;
}
.ingredient ul li .val{
    margin-left:auto;
    display: flex;
    height:36px;
    align-items: center;
    flex-shrink: 0;
}
.ingredient ul li .val .input{
    visibility: hidden;
    display:flex;
    align-items: center;
    background-color: #fff;
    padding:0 8px;
    height:32px;
    font-size:13px;
    color:#666;
    border-radius: 3px;
}
.ingredient ul li .val .input input{
    width:32px !important;
    height: 26px;
    border-radius: 0px;
    border:1px solid #eee;
    margin:0 5px;
    text-align: center;
}
.ingredient ul li .val .input input:hover{
    border-color: #a95d42;
}
.ingredient ul li .val .checkbox{
    background-color: #fff;
    height: 24px;
    width:24px;
    flex-shrink: 0;
    margin:0 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ingredient ul li .val .checkbox .iconfont{
    font-size:22px;
    opacity: 0.1;
}
.ingredient ul li .val.active .input{
    visibility: visible;
}
.ingredient ul li .val.active .checkbox{
    background-color:#bb6d50;
}
.ingredient ul li .val.active .iconfont{
    color:#ffffff;
    opacity: 1;
}

.ingredient .bottom{
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.ingredient .bottom .bt{
    height: 32px;
    line-height: 32px;
    border-radius: 5px;
    text-align: center;
    letter-spacing: 1px;
    background-color: #b7b7b7;
    padding:0 10px;
    margin:0 15px;
    cursor: pointer;
    opacity: 0.9;
    color:#fff;
}
.ingredient .bottom .bt:hover{
    opacity: 1;
}
.ingredient .bottom .clear{
    background-color: #666;
}
.ingredient .bottom .check{
    background-color: #f30;
}

/* 搜索类型切换 */
.searchTitle .tag .option .e:first-child{
    color:#fff;
    background-color: #bb6d50;
    border-color: #bb6d50;
}
.searchTitle .tag .tag2{
    display: none  !important;
}
.searchTitle  .form .ratio{
    display: none;
}
.searchIngredient .tag .option .e:last-child{
    color:#fff;
    background-color: #bb6d50;
    border-color: #bb6d50;
}
.searchIngredient .tag .tag1{
    display: none  !important;
}


.searchList{
    display: flex;
    flex-wrap: wrap;
    margin:0 -25px;
}
.searchList .obj{
    box-sizing: border-box;
    padding:0 25px;
}
.searchList .title{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
}
.searchList .title h2{
    font-size:22px;
}
.searchList .title .more{
    color:#666;
    display: flex;
    align-items: center;
}
.searchList .title .more .iconfont{
    font-size:12px;
}
.searchList .title .more:hover{
    color:var(--theme);
}

.searchList .list{
    display: flex;
    flex-wrap: wrap;
    margin:0 -10px;
}
.searchList .list .item{
    width:20%;
    position: relative;
}
.searchList .list .item .box{
    display: block;
    position: relative;
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 15px;
    padding: 15px;
    margin:10px;
}
.searchList .list .item .box:hover{
    border-color:var(--theme2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.searchList .list .item .box .imgbox{
    width:264px;
    height:264px;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.searchList .list .item .box .imgbox img{
    width:100%;
    max-height: 264px;
    display: block;
}
.searchList .list .item .box .info h3{
    font-family: sans-serif;
    font-size:16px;
    margin:8px 0 5px 0;
    word-break:break-all;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.searchList .list .item .box .info p{
    margin:8px 0;
    line-height: 14px;
    color:#999;
    word-break:break-all;
    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.searchList .list .item .box .info p:last-child{
    margin-bottom: 0px;
    color:#666;
}

.searchList .list .item:hover .getCard a{
   top:-65px;
   visibility: visible;
   opacity: 1;
}

.searchList .list .item .getCard{
    position: absolute;
    bottom:0;
    left:0;
    width:100%;
    height: 0%;
    display: flex;
    justify-content: center;
}
.searchList .list .item .getCard a{
    position: relative;
    top:-10px;
    opacity: 0;
    visibility: hidden;
    background-color: #ed4e6e;
    height: 32px;
    line-height: 32px;
    padding:0 15px;
    text-align: center;
    border-radius: 3px;
    color: #fff;
    -webkit-transition: all .3s ease;-moz-transition: all .3s ease;-o-transition: all .3s ease;transition: all .3s ease;
}
.searchList .list .item .getCard a:hover{
    background-color: #e04464;;
}

.searchList .rec{
    display: none;
}

.searchList .empty{
    background-color: #fafafa;
    display: none;
    border:1px solid #eee;
    padding:30px;
    margin-bottom: 15px;
    text-align: center;
}
.searchList .empty img{
    height: 32px;
    color:#666;
}
.searchList .empty .tip{
    padding-top:5px;
    color:#666;  
}



    