.activity-wrap {
    height: 100%;
    .activity-hd {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: px2rem(304);
    }
    .activity-hd img {
        display: block;
        width: 100%;
    }
    .scratch-card__container {
        min-height: 100%;
        background: url(/src/img/cont_bg.jpg) no-repeat center;
        background-size: 100% auto;
        padding: px2rem(324) px2rem(20) px2rem(20);
        .scratch-ret__wrap {
            position: relative;
            height: px2rem(255);
            padding: px2rem(30) px2rem(42); // background: radial-gradient(circle, #f74a42 0, #f74a42 50%, transparent 0), radial-gradient(circle, #f74a42 0, #f74a42 50%, transparent 0);
            // background-repeat: repeat-y;
            // background-color: white;
            // background-size: 10px 10px;
            // background-position: -5px 0px, calc(100% + 5px) 0px;
            background: url(/src/img/ret-bg.png) no-repeat center;
            background-size: 100% 100%;
            .scratch-ret {
                position: relative;
                height: px2rem(195);
                text-align: center;
                visibility: hidden;
            }
            .ret-wrap {
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            .getward-text {
                font-size: 24px;
                color: #f74a42;
            }
            .loseward-text,
            .end-text {
                font-size: 24px;
                color: #333333;
            }
            .code-text {
                width: px2rem(549);
                height: px2rem(72);
                font-size: 16px;
                font-weight: bold;
                line-height: px2rem(72);
                color: #bb8c49;
                background-color: #ececec;
                margin: 0 auto;
            }
            .getward-tip {
                font-size: 12px;
                line-height: px2rem(36);
                color: #999;
                margin-top: px2rem(20);
            }
        }
        .card-layer {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
        }
    }
    .scratch-card-tips {
        width: px2rem(575);
        margin: px2rem(42) auto 0;
        font-size: 14px;
        line-height: px2rem(36);
        color: #fff;
        opacity: 0;
        transition: opacity .8s linear;
        &.fadeIn {
            opacity: 1;
        }
        .tip-detail {
            display: block;
            margin-top: px2rem(90);
            text-align: center;
            font-size: 15px;
            font-weight: bold;
            color: #ffd7a8;
        }
        .tips__item {
            margin-top: px2rem(40);
        }
    }
}

.dialog-tips {
    position: fixed;
    bottom: px2rem(50);
    left: 50%;
    transform: translate(-50%, 0px);
    visibility: hidden;
    &.fadeIn {
        animation: fadeIn 10s forwards;
    }
    span {
        display: inline-block;
        font-size: 16px;
        line-height: 1;
        letter-spacing: 2px;
        padding: px2rem(15) px2rem(30);
        background: rgba(0, 0, 0, .3);
        color: #fff;
        border-radius: 3px;
        white-space: nowrap;
    }
}

@keyframes fadeIn {
    0%,
    100% {
        visibility: visible;
        opacity: 0;
    } // 10%,
    // 14% {
    //     transform: translate(-50%, 0px);
    // }
    // 12% {
    //     transform: translate(-50%, -20px);
    // }
    20%,
    80% {
        visibility: visible;
        opacity: 1;
    } // 100% {
    //     transform: translate(-50%, 0);
    // }
}