conpon-new.page.css 8.02 KB
body {
    background-color: #f0f0f0;
}

.yoho-header {
    position: fixed;
    top: 0;
    left: 0;
}

.cpage-padding284 {
    padding-top: 284px;
}

.cpage-padding194 {
    padding-top: 194px;
}

.coupon-new-page {
    .filter-box {
        width: 100%;
        height: 88px;
        display: flex;
        padding: 14px 0;
        box-shadow: 0 0 16px 0 #eee;
        background-color: #fff;
        position: fixed;
        top: 106px;
        left: 0;
        z-index: 3;

        .filter-btn-box {
            flex: 1;
            line-height: 60px;
            text-align: center;
            color: #b0b0b0;
            border-right: 1px solid #e0e0e0;
        }

        .filter-btn-box:last-child {
            border-right: none;
        }

        .show-filter-btn {
            color: #b0b0b0;
        }

        .active {
            color: #444;
        }
    }

    .filter-item {
        display: flex;
        width: 100%;
        height: 130px;
        justify-content: space-around;
        align-items: center;
        background-color: #fff;
        position: fixed;
        top: 192px;
        left: 0;
        z-index: 3;

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

            &.active {
                background-color: #444;
                color: #fff;
                border: 1px solid transparent;
            }
        }
    }

    .exchange-box {
        height: 90px;
        padding: 16px 20px;
        background-color: #fff;
        position: fixed;
        top: 194px;
        left: 0;
        z-index: 2;

        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;
        }
    }

    .coupon-list {
        padding: 20px;

        .coupon-section {
            margin-bottom: 20px;
        }

        .coupon {
            position: relative;
            width: 710px;
            height: 200px;

            .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-left-activity {
                background-image: resolve("home/coupon/activity.png");
            }

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

                > p {
                    color: #000;
                }

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

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

                > p {
                    color: #ffa72e;
                }
            }

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

                .type-shop,
                .type-activity,
                .type-freight {
                    font-weight: 500;
                }

                .type-shop {
                    color: #efaf46;
                }

                .type-activity {
                    color: #fc5960;
                }

                .type-freight {
                    color: #222;
                }

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

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

                .use-intro {
                    position: absolute;
                    bottom: 22px;
                }

                .tip {
                    position: absolute;
                    top: 0;
                    right: 0;
                }
            }

            .use-now {
                font-size: 22px;
                position: absolute;
                width: 130px;
                height: 50px;
                line-height: 50px;
                text-align: center;
                border: 1px solid #444;
                border-radius: 25px;
                background-color: #fff;
                color: #444;
                bottom: 20px;
                right: 20px;
            }

            .stamp {
                position: absolute;
                width: 126px;
                height: 114px;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
                background-size: 100% 100%;
            }

            .overtime-stamp {
                background-image: resolve("home/coupon/timeout.png");
            }

            .used-stamp {
                background-image: resolve("home/coupon/used.png");
            }

            .invalid-stamp {
                background-image: resolve("home/coupon/invalid.png");
            }

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

        .freight-coupon {
            > .coupon-left {
                font-size: 48px;
            }
        }

        .coupon-invalid,
        .coupon-used,
        .coupon-overtime {
            > .coupon-left > p {
                color: #b0b0b0;
            }

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

                & > .type-activity {
                    color: #b0b0b0;
                }

                & > .type-freight {
                    color: #b0b0b0;
                }

                & > .type-shop {
                    color: #b0b0b0;
                }
            }
        }

        .coupon-intro {
            background: rgba(255, 255, 255, 0.7);
            margin-top: -12px;
            padding: 36px 22px 22px;

            li {
                font-size: 22px;
                color: #444;
            }
        }
    }

    .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;
        }
    }

    .used-tip {
        display: flex;

        span {
            color: #b0b0b0;
            font-size: 24px;
        }

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

    .hide {
        display: none;
    }
}