@import "../theme.scss";

.fl {
    float: left;
}

.fr {
    float: right;
}

a:link,
a:visited,
a:active {
    text-decoration: none;
}

em,
i {
    font-style: normal;
}

.clearfix {
    zoom: 1;
    display: block;

    &:before {
        display: table;
        content: " ";
    }

    &:after {
        content: ".";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
}

.sld_img_center {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;

    img {
        position: absolute;
        top: 50%;
        left: 50%;
        max-width: 100%;
        max-height: 100%;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

.sld_collect_wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;

    .wrapper_main {
        flex: 1;
        height: 100%;
        overflow: hidden;
        width: 100%;
        padding-left: 10px;
        //font-family: "微软雅黑";

        .sld_follow_m {
            height: 100%;
        }

        .sld_h3_wrap {
            
            border: 1px solid #eeeeee;
            background: #ffffff;

            .sld_option {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 52px;
                // width: 380px;

                .sld_option_list {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    // margin-top: 18px;
                    transition: all 0.5s;
                    margin-left: 15px;
                    font-weight: bold;
                    font-size: $fontE;
                    color: #282E30;

                    &:hover {
                        color: $colorMain;
                    }

                    img {
                        vertical-align: top;
                        float: left;
                        margin-top: -3px;
                        margin-right: 3px;
                    }

                    cursor: pointer;
                }

                .sld_option_btn {
                    padding: 5px 20px 5px;
                    margin-left: 20px;
                    font-weight: 400;
                    font-size: $fontE;
                    color: #282E30;
                    // margin-top: 13px;
                    // margin-right: 10px;
                    //font-family: "Microsoft YaHei";
                    border: 1px solid #e7e7e7;
                    border-radius: 5px;
                    transition: all 0.2s;
                    width: 160px;
                    height: 44px;
                    background: #DDE1E6;
                    cursor: pointer;

                    &:hover {
                        background-color: $colorMain;
                        color: #fff;
                    }
                }
            }

            .sld_grade_nav {
                height: 50px;
                line-height: 50px;
                margin-left: -1px;

                a {
                    display: inline-block;
                    width: 178px;
                    text-align: center;
                    font-weight: bold;
                    font-size: $fontE;
                    color: #282E30;
                    cursor: pointer;
                    border-right: 1px solid #eeeeee;

                    &:hover {
                        color: $colorMain;
                    }
                }

                a.on {
                    color: #fff;
                    background-color: $colorMain;
                    font-weight: 600;
                }
            }
        }

        .fav_goods_list {
            height: 100%;
            overflow: hidden;
            width: 100%;

            &>ul {
                height: 100%;
                overflow: auto;
                margin-top: 5px;
            }

            .sld_follow_goods:hover {
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            }

            .sld_follow_goods {
                position: relative;
                float: left;
                width: 24%;
                height: 358px;
                background-color: #fff;
                margin: 0.5%;
                border: 1px solid #eeeeee;
                padding: 13px;
                box-sizing: border-box;

                &:nth-of-type(4n) {
                    margin-right: 0;
                }

                .check_wrap {
                    position: absolute;
                    right: 0;
                    top: 0;
                    width: 100%;
                    height: 358px;
                    // background: rgba(0, 0, 0, 0.1);

                    .border {
                        display: block;
                        position: absolute;
                        right: 0px;
                        top: 0px;
                        width: 100%;
                        height: 360px;
                        z-index: 0;
                        cursor: pointer;

                        .checklogo {
                            position: absolute;
                            top: 0px;
                            right: 0px;
                            width: 31px;
                            height: 31px;
                            visibility: visible;
                            // background-image: url(/member/choose.png);
                        }
                    }

                    input[type="checkbox"] {
                        visibility: hidden;
                        position: absolute;
                        top: 0px;
                        right: 0px;
                        width: 31px;
                        height: 31px;
                        z-index: 1;
                    }

                    input[type="checkbox"]:checked~.border {
                        border: 2px solid $colorMain;

                        .checklogo {
                            position: absolute;
                            top: -2px;
                            right: -2px;
                            width: 31px;
                            height: 31px;
                            // background-image: url(/member/chosen.png);
                        }
                    }
                }

                .cg_name {
                    font-size: 12px;
                    line-height: 16px;
                    word-break: break-all;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                    color: #333333;

                    em {
                        display: inline-block;
                        padding: 1px 4px;
                        border: 1px solid $colorMain;
                        color: $colorMain;
                        font-size: 12px;
                        -webkit-border-radius: 2px;
                        -moz-border-radius: 2px;
                        border-radius: 2px;
                    }
                }

                .cg_img {
                    position: relative;
                    width: 100%;
                    height: 214px;

                    /* 遮罩层 */
                    .mask {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        background-color: rgba(153, 153, 153, 0.6);
                        /* 灰色透明遮罩 */
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        z-index: 1;
                    }

                    /* 白色圆圈 */
                    .circle {
                        background-color: white;
                        width: 129px;
                        height: 56px;
                        opacity: 0.65;
                        font-weight: bold;
                        font-size: 12px;
                        color: $colorMain;
                        // border-radius: 50%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        text-align: center;
                    }

                    .lazy {
                        width: 100%;
                        height: 214px;
                        background-size: cover;
                    }
                }

                .cg_btns {
                    position: absolute;
                    bottom: -1px;
                    left: 0px;
                    width: 100%;
                    height: 42px;
                    background: #DDE1E6;
                    &:hover {
                        background-color: $colorMain;
                    }
                    a {
                        float: left;
                        display: inline-block;
                        width: 100%;
                        height: 42px;
                        text-align: center;
                        font-weight: 400;
                        font-size: $fontE;
                        color: #282E30;
                        line-height: 42px;
                        box-sizing: border-box;
                        text-transform: uppercase;
                    }

                    a:hover {
                        color: #fff;
                    }

                    // a:nth-child(1) {
                    //     border-top: 1px solid #eeeeee;

                    //     &:nth-child(1):hover {
                    //         color: '#FFF';
                    //         cursor: pointer;
                    //     }
                    // }

                    // a:nth-child(2) {
                    //     border: 1px solid #eee;
                    // }

                    // a:nth-child(2):hover {
                    //     color: $colorMain;
                    //     cursor: pointer;
                    // }
                }

                .cg_price {
                    margin: 10px 0 6px;

                    .fl {
                        color: $colorMain;
                        font-size: 14px;

                        .fl strong {
                            font-size: 18px;
                        }
                    }

                    .fr {
                        font-size: 12px;
                        color: #999;
                        line-height: 20px;

                        em {
                            color: $colorMain;
                            margin-left: 2px;
                        }
                    }
                }
            }
        }

        .fav_store_list {
            margin-bottom: 100px;
            overflow: hidden;
            width: 100%;

            .fav_store_type {
                height: 50px;
                background: #fff;

                span {
                    margin-right: 2px;
                    display: inline-block;
                    line-height: 50px;
                    width: 118px;
                    text-align: center;
                    font-weight: 600;
                    font-size: 10px;
                    cursor: pointer;
                }

                .on {
                    color: $colorMain;
                    border-bottom: 3px solid $colorMain;
                }
            }

            .sld_vendor_item {
                width: 100%;
                height: 320px;
                margin-top: 10px;
                background-color: #fff;
                border: 1px solid #eeeeee;

                .sld_vendor {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    width: 25%;
                    height: 100%;
                    // padding: 46px 60px 0 60px;
                    box-sizing: border-box;
                    border-right: 1px solid #eee;

                    &:hover .sld_vendor_top {
                        opacity: 1;
                        z-index: 2;
                        cursor: pointer;
                    }

                    .sld_rate {
                        margin-top: 8px;
                        text-align: center;
                    }

                    .sld_vendor_bottom {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        text-align: center;
                        width: 100%;
                        border-top: 1px solid #eee;

                        a {
                            width: 100%;
                            height: 46px;
                            text-align: center;
                            line-height: 46px;
                            color: #444444;
                            font-size: 14px;

                            i {
                                font-size: 14px;
                                color: $colorMain;
                                margin-right: 6px;
                            }
                        }
                    }

                    .sld_vendor_top {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 32px;
                        color: #000;
                        opacity: 0;
                        z-index: -1;
                        transition: all 0.3s;

                        button {
                            //width: 49.5%;
                            width: 100%;
                            height: 32px;
                            background-color: #cccccc;
                            border: none;
                            cursor: pointer;
                        }
                    }

                    .sld_rate {
                        margin-top: 8px;
                        text-align: center;

                        i {
                            float: left;
                            margin: 0 1px;
                            color: $colorMain;
                        }
                    }

                    .sld_vendor_logo {
                        width: 114px;
                        height: 114px;
                    }

                    .sld_vendor_name {
                        text-align: center;
                        color: #444444;
                        font-size: 13px;
                        margin-top: 10px;
                    }
                }

                .main_lbbox {
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                    position: relative;
                    width: 75%;
                    // height: 298px;

                    overflow: hidden;

                    .sld_vendor_collect {
                        height: 70px;
                        padding: 15px 0 20px 15px;
                        box-sizing: border-box;

                        a {
                            float: left;
                            display: inline-block;
                            width: 200px;
                            height: 34px;
                            line-height: 34px;
                            text-align: center;
                            border: 1px solid #eeeeee;
                            background-color: #fff;
                            color: #444444;
                            font-size: 14px;

                            &:last-child {
                                border-left: none;
                            }
                        }

                        .sld_follow_on {
                            background-color: $colorMain;
                            color: #fff;
                        }
                    }

                    .sld_vendor_goods {
                        flex: 1;
                        height: 100%;
                        position: relative;
                        padding: 0 48px;
                        overflow: hidden;

                        .goods_price {
                            font-size: $fontE;
                            color: $colorMain;
                            margin-top: 3px;
                            font-weight: 600;
                        }

                        .goods_name {
                            width: 140px;
                            margin-top: 15px;
                            color: #444444;
                            font-size: 14px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }

                        li {
                            width: 140px;
                            float: left;
                            margin-right: 20px;

                            .sld_img {
                                width: 140px;
                                height: 150px;
                            }
                        }

                        .hd {
                            i {
                                font-size: 20px;
                            }

                            .next,
                            .prev {
                                position: absolute;
                                top: 45px;
                                width: 32px;
                                height: 70px;
                                font-size: $fontE;
                                color: #fff;
                                background-color: #8d8b8b;
                                text-align: center;
                                line-height: 70px;
                            }

                            .next {
                                right: 0;
                            }

                            .prev {
                                left: 0;
                                background-color: #ccc;
                                -webkit-transform: rotate(180deg);
                                -moz-transform: rotate(180deg);
                                -ms-transform: rotate(180deg);
                                -o-transform: rotate(180deg);
                                transform: rotate(180deg);
                            }
                        }

                        .slide_wrap {
                            width: 100%;
                            // height: 213px;
                            overflow: hidden;

                            .bd {
                                display: flex;
                                transition: all 0.3s;

                                li {
                                    float: left;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.el-pager li.active {
    color: $colorMain;
    cursor: default;
}

.el-pager li:hover {
    color: $colorMain;
}

.el-button--primary {
    color: #fff;
    background-color: $colorMain;
    border-color: $colorMain;
}