* { margin: 0; padding: 0; box-sizing: border-box; }

.lottery-page {
    min-height: 100vh;
    background: radial-gradient(49% 160%, #22b5ff 0, #3a72fa 100%);
    font-size: 14px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #fff;
    padding-bottom: 40px;
}

.lottery-page img { border: 0; }
.lottery-page ul, .lottery-page li { list-style-type: none; }

.lottery-box { overflow: hidden; max-width: 480px; margin: 0 auto; }

.lottery-box .title {
    text-align: center;
    padding: 40px 16px 20px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.lottery-meta {
    text-align: center;
    color: rgba(255,255,255,.9);
    margin-bottom: 8px;
    font-size: 13px;
}

.lottery-meta strong { color: #ffe08a; }

.lottery {
    animation: lotteryChangeBg .5s ease infinite;
    overflow: hidden;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(../images/k1.png);
}

@keyframes lotteryChangeBg {
    0% { background-image: url(../images/k1.png); }
    100% { background-image: url(../images/k2.png); }
}

.lottery .lottery-item {
    height: 340px;
    position: relative;
    margin-top: 10px;
    margin-left: 10px;
}

.lottery .lottery-item ul li {
    width: 33.33333333%;
    position: absolute;
    padding-right: 10px;
}

.lottery .lottery-item ul li:nth-child(2) { left: 33.33333333%; }
.lottery .lottery-item ul li:nth-child(3) { left: 66.66666666%; }
.lottery .lottery-item ul li:nth-child(4) { left: 66.66666666%; top: 110px; }
.lottery .lottery-item ul li:nth-child(5) { left: 66.66666666%; top: 220px; }
.lottery .lottery-item ul li:nth-child(6) { left: 33.33333333%; top: 220px; }
.lottery .lottery-item ul li:nth-child(7) { left: 0; top: 220px; }
.lottery .lottery-item ul li:nth-child(8) { left: 0; top: 110px; }

.lottery .lottery-item ul li .box {
    height: 100px;
    position: relative;
    text-align: center;
    overflow: hidden;
    background: url(../images/bg2.png) no-repeat center;
    background-size: 100% 100%;
}

.lottery .lottery-item ul li .box img {
    display: block;
    height: 50px;
    margin: 10px auto 5px;
}

.lottery .lottery-item ul li .box p {
    color: #708ABF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    padding: 0 4px;
}

.lottery .lottery-item ul li.on .box {
    background: url(../images/bg1.png) no-repeat center;
    background-size: 100% 100%;
}

.lottery .lottery-item ul li.on .box p { color: #fff; }

.lottery .lottery-item .lottery-start {
    position: absolute;
    left: 33.33333333%;
    width: 33.33333333%;
    top: 110px;
    padding-right: 10px;
}

.lottery .lottery-item .lottery-start .box {
    height: 100px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    background: url(../images/bg1.png) no-repeat center;
    background-size: 100% 100%;
    user-select: none;
}

.lottery .lottery-item .lottery-start .box p b {
    font-size: 36px;
    margin-top: 16px;
    margin-bottom: 10px;
    line-height: 30px;
    display: block;
}

.lottery .lottery-item .lottery-start .box:active { opacity: 0.7; }

.lottery .lottery-item .lottery-start .box.gray {
    background: url(../images/bg3.png) no-repeat center;
    background-size: 100% 100%;
    cursor: not-allowed;
}

.lottery .lottery-item .lottery-start .box.gray p {
    color: #708ABF;
    font-weight: bold;
    padding-top: 34px;
}

.lottery-desc {
    max-width: 400px;
    margin: 20px auto 0;
    padding: 0 20px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.lottery-back {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
}

.lottery-mask {
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    overflow: hidden;
    z-index: 222;
    top: 0;
    left: 0;
}

.lottery-mask.show { display: block; }

.lottery-alert {
    display: none;
    max-width: 360px;
    width: 86%;
    text-align: center;
    z-index: 10000;
    border-radius: 10px;
    background: #fff;
    padding: 20px;
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.lottery-alert.show { display: block; }

.lottery-alert h1 {
    font-size: 18px;
    font-weight: bold;
    color: #D92B2F;
}

.lottery-alert img {
    display: block;
    height: 100px;
    margin: 12px auto 0;
}

.lottery-alert h2 {
    font-weight: normal;
    color: #D92B2F;
    font-size: 15px;
    padding-top: 15px;
}

.lottery-alert .btnsave {
    border-radius: 3px;
    height: 40px;
    cursor: pointer;
    line-height: 40px;
    color: #fff;
    margin-top: 12px;
    background: linear-gradient(180deg, #d53c3f 0%, #c91418 100%);
    font-size: 16px;
}

@media (max-width: 420px) {
    .lottery .lottery-item { height: 300px; margin-left: 6px; }
    .lottery .lottery-item ul li .box,
    .lottery .lottery-item .lottery-start .box { height: 88px; }
    .lottery .lottery-item ul li:nth-child(4),
    .lottery .lottery-item .lottery-start { top: 96px; }
    .lottery .lottery-item ul li:nth-child(5),
    .lottery .lottery-item ul li:nth-child(6),
    .lottery .lottery-item ul li:nth-child(7) { top: 192px; }
    .lottery .lottery-item .lottery-start .box p b { font-size: 30px; margin-top: 12px; }
}
