﻿body {
}

@coupon_backcolor: #ff6563;
@coupon_backcolor_gray: #DEDEDE;

@coupon_width: 250px;
@coupon_left_width: 100px;
@coupon_right_width: 150px;
@coupon_height: 110px;
@coupon_bottom_height: 30px;
@coupon_top_height: 80px;

.coupon {
    width: @coupon_width;
    height: @coupon_height;
    padding: 0;
    display: inline-block;
    cursor: pointer;
    margin-right: 4px;
    margin-top: 4px;

    &.active {
        .left {
            background-color: @coupon_backcolor;
        }

        .right {
            background-color: @coupon_backcolor;
        }

        .bottom {
            border: 1px solid @coupon_backcolor;

            span {
                color: @coupon_backcolor;
            }
        }
    }

    .left {
        margin: 0;
        background-color: @coupon_backcolor_gray;
        height: @coupon_top_height;
        width: @coupon_left_width;
        display: inline-block;
        float: left;
        text-align: center;


        span {
            font-weight: 800;
            display: inline-block; // 一定要加这个，不然没效果
            transform: scale(1,2);
            -ms-transform: scale(1,2);
            -webkit-transform: scale(1,2);
            -moz-transform: scale(1,2);
            -o-transform: scale(1,2);
            font-size: 35px;
            line-height: @coupon_top_height;
            color: white;
        }
    }

    .right {
        margin: 0;
        background-color: @coupon_backcolor_gray;
        width: @coupon_right_width;
        height: @coupon_top_height;
        float: left;
        border-left: 1px dashed #fff;
        padding: 8px;
        position: relative;

        .t1 {
            font-size: 25px;
            font-weight: 600;
            text-align: center;
            color: #fff;
        }

        .t2 {
            margin-top: 4px;
            font-size: 14px;
            text-align: center;
            color: #fff;
        }

        .t3 {
            text-align: center;
            color: #fff;
            font-size: 12px;
        }
    }

    .bottom {
        margin: 0;
        width: @coupon_width;
        height: @coupon_bottom_height;
        display: inline-block;
        text-align: center;
        border: 1px solid @coupon_backcolor_gray;
        color: white;

        span {
            font-size: 14px;
            line-height: @coupon_bottom_height;
            color: @coupon_backcolor_gray;
        }
    }
}

.order-list {
    margin-top: 20px;

    @color-font: 515a6e;
    @color-light: #f5f5f5;
    @color-secondary: #aaa;
    @color-border: #e5e5e5;
    @border: 1px solid #e5e5e5;
    @font-size-md: 14px;
    @font-size-sm: 12px;

    .secondary {
        color: @color-secondary;
        font-size: 12px;
    }

    .border-full {
        border: 1px solid #e5e5e5;
    }

    .border-up {
        border-top: 1px solid @color-border;
        border-left: 1px solid @color-border;
        border-right: 1px solid @color-border;
    }

    .border-down {
        border-bottom: 1px solid @color-border;
        border-left: 1px solid @color-border;
        border-right: 1px solid @color-border;
    }

    color: @color-font;
    font-size: @font-size-md;

    td {
    }

    thead {
        tr {
            color: @color-secondary;
            border: @border;
            height: 40px;
            background-color: @color-light;

            td {
                text-align: center;
            }
        }
    }

    tbody {
        tr {
            &.blank {
                height: 20px;
            }

            &.header {
                .border-up;
                height: 30px;

                td {
                    padding: 8px 8px;
                    background-color: @color-light;
                }
            }

            &.content {
                .border-down;

                td {
                    padding: 8px;

                    .img-file {
                        border: @border;
                        display: inline-block;
                        width: 80px;
                        height: 80px;
                        position: relative;
                        overflow: hidden;

                        img {
                            max-width: 80px;
                            max-height: 80px;
                            margin: auto;
                            position: absolute;
                            top: 0;
                            left: 0;
                            bottom: 0;
                            right: 0;
                        }
                    }


                    .desc {
                        width: 360px;
                        display: inline-block;
                        padding: 0 8px;
                        vertical-align: top;

                        .title {
                            width: 360px;
                            //color: skyblue;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            height: 24px;
                            margin-bottom: 2px;
                        }

                        .amount {
                            height: 20px;
                            color: @color-secondary;
                            font-size: @font-size-sm;

                            span {
                                margin-right: 8px;
                            }
                        }

                        .param {
                            min-height: 60px;
                            color: @color-secondary;
                            font-size: @font-size-sm;
                        }

                        .delivery {
                            display: block;
                            height: 20px;
                            color: @color-font;
                            font-size: @font-size-sm;
                        }
                    }

                    .good-price {
                        height: 80px;
                        width: 100px;
                        vertical-align: top;
                        display: inline-block;
                        text-align: center;
                    }

                    .kuan {
                        height: 80px;
                        width: 100px;
                        vertical-align: top;
                        display: inline-block;
                        text-align: center;
                    }
                }
            }
        }
    }
}






///查询我的优惠券列表
.CouponCardList {
    padding-left: -10px;
    //通享券
    .CommonCouponCard {
        .couponLeft {
            background-color: #fe7062;
            color: white;
            padding: 0px;

            p {
                font-size: 30px;
                text-align: center;
                margin-top: 20px;
                margin-bottom: 20px;
                margin-right: 10px;

                .price_sign {
                    font-size: 20px;
                }
            }
        }
    }
    //专用券
    .SpecialProductCouponCard {
        padding-left: -10px;

        .couponLeft {
            background-color: #93b0fe;
            color: white;
            padding: 0px;

            p {
                font-size: 30px;
                text-align: center;
                margin-top: 20px;
                margin-bottom: 20px;
                margin-right: 10px;

                .price_sign {
                    font-size: 20px;
                }
            }
        }
    }
    //不可用券
    .DisabledCouponCard {
        padding-left: -10px;
        color: #dfdfdf;

        .couponLeft {
            background-color: #f6f6f6;
            padding: 0px;

            p {
                font-size: 30px;
                text-align: center;
                margin-top: 20px;
                margin-bottom: 20px;
                margin-right: 10px;

                .price_sign {
                    font-size: 20px;
                }
            }
        }
    }

    .couponMid {
        .couponinfo {
            font-size: 10px;
            margin-top: 15px;
            margin-bottom: 15px;

            .left {
                padding-right: 0px;
            }

            .right {
                padding-left: 0px;
                padding-right: 0px;
            }
        }
    }
    //下单
    .couponRight {
        background-color: #f6f6f6;
        padding: 0px;

        p {
            font-size: 15px;
            text-align: center;
            width: 15px;
            margin: 20px auto;
            line-height: 24px;
        }
    }
}

@text-level1: #444;
@text-level2: #666;
@text-level3: #888;
@text-level4: #999;

@shadow: 0px 0px 16px 0 rgba(0, 0, 0, .15);

body {
    background-color: #fefefe;
}

header {
    background-color: #fff;
}

.banner-line {    
    padding: 50px 0 0 0;
}

.banner-line-dark {
    padding: 50px 0 0 0;
    background-color: #eeeeee;
}
.c-bg {
    background-color: #fff;
}

.hot-card {
    display: block;
    margin: -4px -5px;
    overflow: auto;

    .hot-card-item {
        display: inline-block;
        float: left;
        border: #efefef 1px solid;
        overflow: hidden;

        &:hover {
            -webkit-box-shadow: @shadow;
            -moz-box-shadow: @shadow;
            -ms-box-shadow: @shadow;
            -o-box-shadow: @shadow;
            box-shadow: @shadow;
        }

        margin: 4px 5px;
        /*  &:nth-of-type(1) {
            margin-left: 0px;
        }*/

        img {
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            height: 100%;
        }

        img:hover {
            transform: scale(1.05);
        }


        &.hot-card-item-c1 {
            width: 226px;
            height: 296px;
        }

        &.hot-card-item-c2 {
            width: 462px;
            height: 296px;
        }
    }
}



.area-title {
    text-align: center;
    margin-bottom: 10px;

    h1 {
        font-size: 35px;
        color: @text-level2;
    }

    h2 {
        font-size: 22px;
        color: @text-level4;
    }
}

@promotion-color-title: #7600c8;
@promotion-color-stage-over: #969696;
@promotion-color-stage-active: #ffd002;
@promotion-color-stage-wait: #9966cc;
@promotion-color-stage-main: #efefef;
@promotion-color-dark: #333;


.promotion {
    margin-top: 30px;

    .promotion-title {
        overflow: hidden;
        text-align: center;

        h1 {
            color: #fff;
            margin-top: 20px;
        }

        height: 100px;
        background-color: @promotion-color-title;
    }

    .promotion-stage {
        display: flex;
        height: 76px;
        background-color: #eee;


        .promotion-stage-item {
            position: relative;
            cursor: pointer;
            text-shadow: 0px 0px 5px #333;
            margin: 0 1px;
            text-align: center;
            vertical-align: middle;
            height: 76px;
            display: inline-block;
            flex: 1;
            background-color: @promotion-color-stage-over;

            &:nth-of-type(1) {
                margin: 0 1px 0 0;
            }

            &:nth-last-of-type(1) {
                margin: 0 0 0 1px;
            }

            &.active {
                text-shadow: 0px 0px 5px #999;
                background-color: @promotion-color-stage-active;

                p {
                    color: @promotion-color-dark;
                }

                .status {
                    padding: 4px 14px;
                    color: #FFF;
                    background-color: @promotion-color-dark;
                    border-radius: 20px 20px;
                }
            }

            &:after {
                display: block;
                bottom: 0px;
                position: absolute;
                content: "";
                height: 2px;
                width: 100%;
                background-color: #EEE;
            }

            &.selected:after {
                height: 0px;
            }

            &.wait {
                background-color: @promotion-color-stage-wait;
            }

            p, span {
                font-size: 20px;
                color: #FFF;
            }

            .time {
                margin-top: 10px;
                font-weight: 800;
            }

            .status {
                display: inline-block;
                font-size: 16px;
                margin-top: 6px;
            }
        }
    }

    .promotion-content {
        .promotion-countdown {
            height: 54px;
            background-color: @promotion-color-stage-over;
            text-align: center;
            overflow: hidden;
            vertical-align: middle;
            color: #fff;

            &.active {
                background-color: @promotion-color-stage-active;
                color: @promotion-color-dark;
            }

            &.wait {
                background-color: @promotion-color-stage-wait;
            }


            .desc {
                font-size: 24px;
                display: inline-block;
                height: 54px;
                vertical-align: top;
                padding-top: 15px;
                line-height: 24px;
            }

            .time {
                padding-top: 7px;
                height: 54px;
                display: inline-block;
                font-size: 24px;
                vertical-align: top;

                span {
                    font-weight: 600;
                    display: inline-block;
                    color: #fff;
                    background-color: @promotion-color-dark;
                    width: 40px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    margin: 0 8px;

                    &:nth-of-type(1) {
                    }
                }
            }
        }

        .promotion-img {
            height: auto;
            background-color: @promotion-color-stage-main;
        }
    }
}


.a-btn {
    &a {
        color: #fff;

        &:hover {
            color: #666;
        }
    }

    @linear-gradient: top, #80a9da 0%, #6f97c5 100%;
    box-sizing: border-box;
    //background: -moz-linear-gradient(top, #fe592a 0%, #930000 100%);
    //box-shadow: 0px 1px 1px rgba(255,255,255,0.8) inset, 1px 1px 3px rgba(0,0,0,0.2);
    flex: 1;
    height: 75px;
    display: block;
    float: left;
    position: relative;
    border: 1px solid #7098c6;
    margin: 0;
    overflow: hidden;
    text-align: center;
    vertical-align: top;
    background: linear-gradient(@linear-gradient);
    background: -moz-linear-gradient(@linear-gradient);
    background: -webkit-linear-gradient(@linear-gradient);
    background: -o-linear-gradient(@linear-gradient);
    text-shadow: 0px 0px 5px #666;
    color: #fff;



    &:nth-of-type(1) {
        margin-left: 0;
    }

    .text {
        transition: all 0.1s ease-in 0s;
        -moz-transition: all 0.1s ease-in 0s;
        -webkit-transition: all 0.1s ease-in 0s;
        -o-transition: all 0.1s ease-in 0s;
        overflow: hidden;
        height: 100%;
        text-decoration: none;

        &:hover {
            text-shadow: 0px 0px 5px #333;
            transform: scale(1.1);
        }

        .a-btn-text {
            margin-top: 16px;
            display: block;
            font-size: 25px;
            color: #fff;
        }

        .a-btn-text2 {
            display: block;
            font-size: 16px;
            margin-top: 6px;
            color: #fff;
        }
    }
}
