select-coupons.page.css 7.77 KB
body {
    background-color: #f0f0f0;
}

.select-coupons-page {
    .filter-box {
        height: 88px;
        display: flex;
        padding: 14px 0;
        box-shadow: 0 0 16px 0 #eee;
        background-color: #fff;
        position: relative;

        .valid,
        .invalid {
            flex: 1;
            line-height: 60px;
            text-align: center;
            color: #b0b0b0;
        }

        .valid {
            border-right: 1px solid #e0e0e0;
        }

        .show-filter-btn,
        .active {
            color: #444;
        }
    }

    .filter-item {
        display: flex;
        width: 100%;
        height: 130px;
        justify-content: space-around;
        align-items: center;
        background-color: #fff;

        button {
            width: 150px;
            height: 70px;
            background-color: #fff;
            color: #444;
            font-size: 28px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
        }
    }

    .exchange-box {
        height: 90px;
        padding: 16px 20px;
        background-color: #fff;

        input {
            width: 570px;
            height: 60px;
            margin-right: 12px;
            padding: 0 20px;
            background-color: #f0f0f0;
            border-radius: 4px;
            border: none;
        }

        .exchange-coupon-btn {
            width: 120px;
            height: 60px;
            border-radius: 4px;
            font-size: 28px;
            color: #fff;
            background-color: #b0b0b0;
        }

        .active {
            background-color: #444;
        }
    }

    .tip-box {
        width: 100%;
        padding: 14px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        font-size: 22px;
        background-color: #ff8083;
    }

    .coupon-list {
        padding: 20px;
        margin-bottom: 80px;

        .coupon-list-type {
            width: 100%;
            font-size: 24px;
            color: #444;
            margin-top: 10px;
            margin-bottom: 30px;
            display: flex;

            hr {
                width: 142px;
                border: none;
                border-bottom: 1px solid #e0e0e0;
            }
        }

        .coupon {
            width: 710px;
            height: 200px;
            margin-bottom: 20px;
            position: relative;

            .coupon-left {
                width: 200px;
                height: 200px;
                background-image: resolve("home/coupon/overtime.png");
                background-size: 100% 100%;
                float: left;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;
            }

            .coupon-left > p {
                color: #fc5960;
                font-size: 24px;

                > span {
                    font-size: 60px;
                    font-weight: 600;
                }
            }

            .coupon-right {
                width: 510px;
                height: 200px;
                background-color: #fff;
                border-top-right-radius: 8px;
                border-bottom-right-radius: 8px;
                float: right;
                padding: 22px;
                font-size: 22px;
                color: #b0b0b0;
                position: relative;
                display: flex;

                .info {
                    flex: 1;
                    position: relative;
                }

                .type-shop {
                    color: #efaf46;
                }

                .type-activity {
                    color: #fc5960;
                }

                .type-freight {
                    color: #222;
                }

                .info > .title {
                    width: 400px;
                    font-size: 24px;
                    color: #444;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                }

                .info > .title > .catalog-name {
                    font-weight: 500;
                }

                .info > .time {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                }

                .info > .desc {
                    width: 400px;
                    font-size: 20px;
                    color: #444;
                    position: absolute;
                    left: 0;
                    bottom: 0;
                }

                .info > .unusable-desc {
                    color: #b0b0b0;
                }

                .check {
                    width: 40px;
                    height: 40px;
                    position: absolute;
                    top: 50%;
                    right: 30px;
                    transform: translateY(-50%);
                }

                .check > .iconfont {
                    font-size: 40px;
                    color: #444;
                }

                .check > .icon-point1 {
                    color: #e0e0e0;
                }
            }

            .top-tip {
                width: 84px;
                height: 84px;
                background-image: resolve("home/coupon/top-tip.png");
                background-size: 100% 100%;
                position: absolute;
                top: 0;
                right: 0;
            }
        }

        .coupon-activity {
            > .coupon-left {
                background-image: resolve("home/coupon/activity.png");
            }

            > .coupon-right .catalog-name {
                color: #fc5960;
            }
        }

        .coupon-freight {
            > .coupon-left {
                background-image: resolve("home/coupon/freight.png");

                > p {
                    color: #000;
                }

                > p > span {
                    font-size: 48px;
                    font-weight: 600;
                }
            }

            > .coupon-right .catalog-name {
                color: #000;
            }
        }

        .coupon-shop {
            > .coupon-left {
                background-image: resolve("home/coupon/shop.png");

                > p {
                    color: #ffa72e;
                }
            }

            > .coupon-right .catalog-name {
                color: #ffa72e;
            }
        }

        .no-support-selected {
            > .coupon-left > p {
                color: #b0b0b0;
            }

            > .coupon-right .info > .title {
                color: #b0b0b0;
            }
        }
    }

    .use-now {
        width: 100%;
        height: 100px;
        position: fixed;
        left: 0;
        bottom: 0;
        background: #fff;
        z-index: 3;

        .left-info {
            width: 510px;
            height: 100px;
            float: left;
            padding: 12px 20px;
        }

        .use-now-btn {
            width: 240px;
            height: 100px;
            background-color: #d0021b;
            color: #fff;
            font-size: 34px;
            float: right;
        }

        p {
            font-size: 24px;
            text-align: right;
            line-height: 42px;
        }

        .nums {
            color: #d0021b;
            font-weight: 500;
        }
    }

    .hide {
        display: none;
    }

    .no-conpon-now {
        text-align: center;
        padding-top: 262px;
        color: #b0b0b0;

        .icon-not {
            width: 208px;
            height: 130px;
            background-image: resolve("home/employ/not.png");
            background-size: 100% 100%;
            margin: auto auto 30px;
        }

        p {
            font-size: 28px;
        }
    }
}