@mixin button() {
    position: fixed;
    left: 40rpx;
    right: 40rpx;
    bottom: 0;
    padding: $padding-md 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 80rpx;
        font-size: $font-base;
        font-weight: bold;
        border-radius: $border-radius-2;
        &:first-child {
            border: $border-sm solid $border-red;
            background: $bg-color;
            color: $font-color-search;
        }
        &:last-child {
            color: $white;
            background-image: $background-primary;
        }
    }
}
.btnGroup {
    position: absolute;
    bottom: 0rpx;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 93%;
    button {
        width: 48%;
        height: 80rpx;
        font-size: $font-base;
        font-weight: bold;
        border-radius: $border-radius-2;
        
        &.goods-bottom-buy{
            color: $white;
            background-image: $background-primary;
            &.disabled{
              opacity: 0.7;
            }
        }
        &.goods-bottom-car {
            
            border: $border-sm solid $border-color-search;
            background: $white;
            color: $font-color-search;
        }
        &.goods-bottom-confirm{
            width: 95%;
            color: $white;
            background-image: $background-primary;
            &.disabled{
              opacity: 0.7;
            }

        }

    }
    
}

.goods {
    height: 100vh;
    padding-bottom: calc(150rpx + env(safe-area-inset-bottom));
    box-sizing: border-box;
    &-container {
        height: calc(100% - 60px);
        // height: 800rpx;
        &-lose {
            &-container {
                background: #fff;
                padding: 90rpx 30rpx;
                text-align: center;
                image {
                    width: 300rpx;
                }
            }  
        }
    }
    &-wrapper {
        padding-bottom: 70rpx;
    }
    &-carousel {
        position: relative;
        width: 100%;
        height: 750rpx;
        swiper{
            height: 100%;
            &-item {
                width: 100%;
                height: 100%;
                image {
                    width: 100%;
                    height: 100%;
                }
            }
        }
        &-dots {
            position: absolute;
            right: 30rpx;
            bottom: 20rpx;
            line-height: $line-height-md;
            text-align: center;
            width: 60rpx;
            height: 34rpx;
            background: rgba(0, 0, 0, 0.4);
            border-radius: $border-radius-3;
            font-size: $font-sm;
            color: $white;
        }
    }
    &-info {
        padding: 0 30rpx;
        &.activity {
            width: 100%;
            padding: 0;
            .goods-info-max{
                padding: 0 30rpx;
            }
        }
        background: $white;
        margin-bottom: $margin-base;
        &-price {
            position: relative;
            .new-user-price-info{
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                .new-user-price{
                    flex: 1;
                    flex-shrink: 0;
                    height: 100%;
                    display: flex;
                    align-items: flex-end;
                    padding-bottom: 22rpx;
                    padding-left: 24rpx;
                    &-sale{
                        // margin-right: 16rpx;
                        color: $white;
                        .desc{
                            opacity: 0.8;
                            font-size: 22rpx;
                            margin-bottom: 8rpx;
                        }
                        .info{
                            display: flex;
                            align-items: baseline;
                            .symbol{
                                font-size: 26rpx;
                            }
                            .num{
                                line-height: 60rpx;
                                font-size: 60rpx;
                                padding-right: 16rpx;
                            }
                        }
                    }
                    &-market{
                        display: flex;
                        align-items: baseline;
                        color: $white;
                        .desc{
                            opacity: 0.8;
                            font-size: 22rpx;
                            margin-right: 8rpx;
                        }
                        .symbol{
                            opacity: 0.95;
                            font-weight: 500;
                            font-size: 24rpx;
                        }
                        .num{
                            opacity: 0.95;
                            line-height: 36rpx;
                            font-size: 36rpx;
                            font-weight: 500;
                        }
                    }
                }
                .new-user-limit-count{
                    width: 300rpx;
                    padding-left: 24rpx;
                    flex-shrink: 0;
                    height: 100%;
                    display: flex;
                    align-items: flex-end;
                    &-content{
                        text-align: center;
                        width: 100%;
                        height: 40%;
                        opacity: 0.8;
                        font-size: 24rpx;
                        color: #FE1132;
                    }
                }
            }
            &.activity {
                padding: 0;
            }
            padding: $padding-sm 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 105rpx;
            .Gi-price-noactivity {
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            .Gi-price-activity {
                width: 100%;
                position: relative;
                image {
                    width: 100%;
                    height: 100rpx;
                }
                &-price {
                    position: absolute;
                    left: 100rpx;
                    top: 20rpx;
                    text {
                        color: #fff;
                        &:nth-child(1) {
                            font-size: $font-lg;
                            line-height: 44rpx;
                            font-weight: bold;
                        }
                        &:nth-child(2) {
                            margin-right: $margin-sm;
                            font-size: $font-1;
                            font-weight: bold;
                        }
                        &:nth-child(3) {
                            text-decoration: line-through;
                            font-size: $font-base;
                            line-height: 40rpx;
                            color: #fff;
                        }
                       
                    }

                } 
            }       
            .Gi-price-left {
                text {
                    color: $font-color-red;
                    &:nth-child(1) {
                        font-size: $font-lg;
                        line-height: 44rpx;
                        font-weight: bold;
                    }
                    &:nth-child(2) {
                        margin-right: $margin-sm;
                        font-size: $font-1;
                        font-weight: bold;
                    }
                    &:nth-child(3) {
                        text-decoration: line-through;
                        font-size: $font-base;
                        line-height: 40rpx;
                        color: $text-color-n1;
                    }
                }
            }
            .Gi-price-right {
                bottom: 0;
                font-size: $font-md;
                line-height: 36rpx;
                color: $text-color-n1;
            }
            .Gi-price-maxactivity{
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                // padding: 0 30rpx;
                .iconfont{
                    margin-left: 16rpx;
                    color: $bg-color-gray;
                }
            }
            // max会员
            .Gi-price-maxprice{
               color: #33374B !important;
               text-decoration: none !important;
               font-size: $font-lg !important;
               margin-right: 8rpx;
            }
            // .Gi-price-maxImage{
            //     width: 88rpx !important;
            //     height: 24rpx !important;  
                
            // }
            
        }
        &-name {
            font-size: $font-base;
            line-height: 44rpx;
            color: $text-color-n5;
            font-weight: bold;
            padding-bottom: 14rpx;
            &.activity {
                padding: 0 30rpx ;
                margin-bottom: $padding-md;
            }
        }
        &-max{
            &-img{
                width: 100%;
                height: auto;
            }
            padding-bottom: 14rpx;
        }
        &-subtitle {
            padding: 0 30rpx 0;
            box-sizing: border-box;
            margin-bottom: 16rpx;
            &-activity {
                // padding-bottom: 20rpx;
                font-size: 12px;
                color: #999;
                &-subfix {
                    margin-left: 2rpx;
                    font-size: 12px;
                    color: #ec1500;
                    cursor: pointer;
                }
            }
            &-notice {
                margin-bottom: 16rpx;
                font-size: 12px;
                color: #333;
            }
        }
    }
    &-activity {
        // padding:  20rpx;
        padding: 0 35rpx;
        background: $white;
        margin-bottom: 20rpx;
        .activity-info{
            display: flex;
            align-items: center;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            height: 38rpx;
            .content{
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                .newComersIcon{
                    margin-right: 8rpx;
                    height: 26rpx;
                    width: auto;
                }
                .newComersLabel{
                    flex: 1;
                    overflow: hidden;
                    text-overflow:ellipsis;
                    white-space: nowrap;
                }
            }
        }
        // padding-left: 11rpx;
        &-button {
            // box-sizing: content-box;
            // margin-right: 10rpx;
            min-width: 60rpx;
            height: 32rpx;
            border-radius: 6rpx;
            line-height: 30rpx;
            text-align: center;
            border: $border-sm solid $border-color-search;
            // font-size: $font-sm;
            font-size: 22rpx;
            color: $font-color-search;
            margin-right: 15rpx;
        }
        &-content {
            overflow: hidden;
            text-overflow: ellipsis;
            display:-webkit-box;
            -webkit-line-clamp:2;
            -webkit-box-orient:vertical;
        }

    }
    &-sale {
        // padding:  20rpx;
        padding: 0 35rpx;
        background: $white;
        margin-bottom: 20rpx;
        // padding-left: 11rpx;
        &-button {
            box-sizing: content-box;
            margin-right: 10rpx;
            width: 70rpx;
            height: 30rpx;
            border-radius: 6rpx;
            line-height: 30rpx;
            text-align: center;
            border: $border-sm solid $border-color-search;
            font-size: $font-sm;
            color: $font-color-search;
        }
        &-content {
            width: 518rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: $font-md;
            line-height: 36rpx;
            color: $text-color-n5;
        }
        &-contents {
            width: 518rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            // white-space: nowrap;
            margin-right: 4rpx;
            font-size: $font-md;
            line-height: 36rpx;
            color: $text-color-n5;  
        }
    }
    &-param {
        padding: 0 35rpx;
        background: $white;
        &-text {
            max-width:450rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            display:-webkit-box;
            -webkit-line-clamp:1;
            -webkit-box-orient:vertical;
        }
        
        &-area {
            text {
                overflow: hidden;
                text-overflow: ellipsis;
                display:-webkit-box;
                -webkit-line-clamp:1;
                -webkit-box-orient:vertical;
                &:nth-child(1) {
                    font-size: $font-base;
                    margin-left: -4rpx;
                    margin-right: 10rpx;
                    color: $font-color-search;
                    width: 36rpx;
                }
                &.noAddr {
                    color: $text-color-n1;
                }
            }
        }
        &-service {
            text {
                &:after {
                    // display: inline-block;
                    
                    margin: 0 10rpx;
                    content: '';
                    // border-right: 2rpx solid #EBEBEB;
                    height: 22rpx;
                    vertical-align: middle;
                }
                &:last-child {
                    &:after {
                        height: 0;
                    }
                }
            }
        }
    }
    &-divider {
        display:flex;
        align-items:center;
        justify-content: center;
        margin: 30rpx 0;
        width: 100%;
        font-size: $font-sm;
        color: $text-color-n1;
        text-align: center;
        &:before, &:after{
            display: inline-block;
            content: '';
            width: 100rpx;
            height: 0;
            border-top: 2rpx solid #D8D8D8;
            margin-right: 10rpx;
        }
        &:after{
            margin-left: 10rpx;
            margin-right: 0;
         }
    }
    &-list {
        // background: #D8D8D8;

        padding: 0rpx 30rpx;
        overflow: hidden;
    }
    
    &-popup {
        position: relative;
        padding: 32rpx;
        &-selected{
            display: flex;
            align-items: flex-end;
            margin-bottom: 60rpx;
            image{
                width: 200rpx;
                height: 200rpx;
                border-radius: 8rpx;;
            }
            .Gp-selected-right{
                display: flex;
                flex-direction: column;
                padding-left: 20rpx;
                .Gps-right-header {
                    display: flex;
                    align-items: center;
                    margin-bottom: 20rpx;
                    .Gpsr-header-price{
                        margin-right: 10rpx;
                        text {
                            color: $font-color-red;
                            font-weight: bold;
                            &:first-child {
                                font-size: $font-sm;
                            }
                            &:last-child {
                                font-size: 36rpx;
                            }
                        }
                    }
                    .Gpsr-header-discount {
                        font-size: $font-sm;
                        color: $text-color-n1;
                        text {
                            &:last-child {
                                text-decoration: line-through;								}
                        }
                    }
                }
                .Gps-right-selected {
                    font-size: $font-md;
                    color: $text-color-n5;
                }
            }
        }
        &-param{
            display: flex;
            flex-direction: column;
            margin-bottom: 40rpx;
            .Gp-param-name {
                margin-bottom: 20rpx;
                font-size: $font-md;
                color: #A3A3A3;
            }
            .Gp-param-list{
                padding: 20upx 0 0;
                display: flex;
                flex-wrap: wrap;
                text{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-right: 20rpx;
                    padding: 0 30rpx;
                    background: #F7F7F7;
                    border-radius: 6rpx;
                    height: 52rpx;
                    font-size: $font-md;
                    color: $text-color-n5;
                    margin-bottom: 25rpx;
                }
                .Gpp-list-selected{
                    border: $border-sm solid $border-color-search;
                    font-size: $font-md;
                    background: $bg-color-pink;
                    color: $font-color-search;
                }
                .Gpp-list-disabled {
                    border: $border-sm solid $font-color-disabled;
                    font-size: $font-md;
                    background: #F7F7F7;
                    color: $font-color-disabled;
                }
            }
        }
        &-num {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 300rpx;
            position: relative;
            &-limit {
                position: absolute;
                right: 0;
                top: 55rpx;
                font-size: 27rpx;
                color: #EE0A24;
                width: 180rpx;
                text-align: right;
            }
            .Gp-num-name {
                font-size: $font-md;
                color: $font-color-dark;
                &-limit{
                    font-size: $font-sm;
                    color: $font-color-light;
                }
            }
        }
        &-button {
            position: fixed;
            left: 40rpx;
            right: 40rpx;
            bottom: 0;
            padding: 20rpx 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            button {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 324rpx;
                height: 80rpx;
                font-size: $font-base;
                font-weight: bold;
                border-radius: $border-radius-2;
                &:first-child {
                    border: $border-sm solid $border-color-search;
                    background: $white;
                    color: $font-color-search;
                }
                &:last-child {
                    color: $white;
                    background-image: $background-primary;
                }
            }
        }
    }
    &-area {
        height: 65vh;
        overflow: scroll;
        padding: 32rpx;
        &-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: $margin-lg;
            text {
                font-size: $font-md;
                color: $text-color-n1;
                &:first-child {
                    width: 40rpx;
                    height: 40rpx;
                    line-height: 40rpx;
                    font-size: $font-lg;
                }
                &:second-child {
                    flex: 1;
                }
            }
            &_selected {
                text {
                    &:first-child {
                        color: $font-color-search;
                        // color: #e4e;
                    }
                    &.secondText {
                        color: $font-color-dark;
                    }
                }
            }
        }
        &-none {
            display: inline-block;
            width: 100%;
            line-height: 55vh;
            font-size: $font-lg;
            color: $text-color-n5;
            text-align: center;
        }
        &-button {
            @include button;
        }
    }
    &-service {
        height: 65vh;
        overflow: scroll;
        padding: 32rpx;
        &-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: $margin-1;
            image {
                margin: 4rpx $margin-sm 0 0;
                width: 28rpx;
                height: 28rpx;
            }
            .Gs-item-right {
                flex: 1;
                display: flex;
                flex-direction: column;
                text {
                    line-height: 36rpx;
                    &:first-child {
                        margin-bottom: $margin-sm;
                        font-size: $font-md;
                        color: $text-color-n4;
                    }
                    &:last-child {
                        font-size: $font-md;
                        color: $text-color-n6;
                    }
                }
            }
        }
        &-max{
            overflow-y: scroll;
            height: 400rpx;
            &:first-child{
                padding: 0 44rpx;
            }
            text{     
                color: $font-color-dark;
                font-size: $font-md;
                white-space: pre-wrap;
            }
        }
        &-button {
            @include button;
        }

    }
    &-buoy {
        position: fixed;
        right: 20rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80rpx;
        height: 80rpx;
        background: #fff;
        border-radius: 50rpx;
        border: 1rpx solid #EBEBEB;
        // box-shadow: rgba(0, 0, 0, 0.4);
    }
    &-share {
        bottom: 325rpx;
        // position: absolute;
        image {
            width: 90rpx;
            height: 90rpx;
            position: absolute;
            &::after {
                border: none;
            }
        }
        button {
            width: 100%;
            border: none;
            background: transparent;
            display: flex;
            justify-content: center;
            position: relative;
            z-index: 10;
            &::after {
                border: none;
            }
            
        }
    }
    &-like {
        bottom: 430rpx;
        image {
            width: 90rpx;
            height: 90rpx;
            position: absolute;
            &::after {
                border: none;
            }
        }
    }
}
.memberImg {
    width: 132.68rpx;
    // height: 28rpx;
}
// .goods-info-price .Gi-price-activity image.memberImg {
//     width: 132.68rpx;
//     height: 28rpx;
// }

.price-wrap {
    padding: 12px 12px 18px 12px;
    color: #333;
    line-height: 1.6;
    background: #fff;
    border-radius: 8px;
    margin: 10px;
    font-size: 13px;
}
.price-wrap h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
}
.price-wrap .title {
    margin: 12px 0 10px 0;
    font-size: 13px;
    display: block;
    position: relative;
    color: #333;
    font-weight: bold;
}
.price-wrap .title::after {
    content: '';
    display: block;
    width: 2px;
    height: 2px;
    position: absolute;
    left: -8px;
    top: 9px;
    background: #333;
}
.price-content {
    color: #666;
}
.price-content text {
    display: block;
    font-size: 13px;
    color: #333;
}
.price-wrap ul {
    padding: 0;
}
.price-wrap li {
    margin-left: 8px;
}