@function px2rem($px) { @return $px / 75+rem; } html, body { width: 100%; // background: radial-gradient(circle, #32140C 0%, #05040A 100%); background: #63063E; } .back { position: fixed; top: px2rem(70); left: px2rem(34); z-index: 99; width: px2rem(62); height: px2rem(62); img { width: 100%; height: 100%; } p { color: #fff; font-size: px2rem(32); position: absolute; width: 9rem; left: 0; top: 0; height: 100%; text-align: center; line-height: px2rem(62); } } .header { width: px2rem(750); height: px2rem(990); position: relative; margin: 0 auto px2rem(23); background: url(../images/header.png) no-repeat; background-size: 100% 100%; .qualifyGift_icon { width: px2rem(50); height: px2rem(126); position: absolute; top: px2rem(200); right: 0; } .rule_icon { width: px2rem(50); height: px2rem(126); position: absolute; top: px2rem(344); right: 0; } } .tab { width: px2rem(700); height: px2rem(86); margin: 0 auto px2rem(24); position: relative; display: flex; justify-content: space-between; div { width: px2rem(168); height: px2rem(86); } .tab1 { background: url(../images/tab1.png) no-repeat; background-size: 100% 100%; } .tab2 { background: url(../images/tab2.png) no-repeat; background-size: 100% 100%; } .tab3 { background: url(../images/tab3.png) no-repeat; background-size: 100% 100%; } .tab4 { background: url(../images/tab4.png) no-repeat; background-size: 100% 100%; } .act1 { background: url(../images/tabAct1.png) no-repeat; background-size: 100% 100%; } .act2 { background: url(../images/tabAct2.png) no-repeat; background-size: 100% 100%; } .act3 { background: url(../images/tabAct3.png) no-repeat; background-size: 100% 100%; } .act4 { background: url(../images/tabAct4.png) no-repeat; background-size: 100% 100%; } } .page1 { .box1 { width: px2rem(690); height: px2rem(834); background: url(../images/pageBox1.png) no-repeat; background-size: 100% 100%; margin: 0 auto px2rem(29); position: relative; overflow: hidden; .pageBox1Rule_icon { width: px2rem(134); height: px2rem(42); position: absolute; right: 0; top: px2rem(88); } .time { width: px2rem(396); height: px2rem(58); line-height: px2rem(58); text-align: center; color: #fff; font-size: px2rem(28); font-weight: 400; position: absolute; left: 50%; transform: translateX(-50%); top: px2rem(112); background: url(../images/page1Box1timeBg.png) no-repeat; background-size: 100% 100%; span { border-radius: px2rem(5); padding: px2rem(1) px2rem(2); color: #BF294A; font-weight: bold; background: #fff; } } .text { width: px2rem(594); position: absolute; left: 50%; transform: translateX(-50%); top: px2rem(209); color: #fff; font-size: px2rem(24); font-weight: 400; text-align: center; line-height: 0.45rem; b { color: #FBBE47; } } .giftBoxs { width: px2rem(620); height: px2rem(435); margin: px2rem(338) auto 0; display: flex; justify-content: space-around; flex-wrap: wrap; div { width: px2rem(192); height: px2rem(202); margin-bottom: px2rem(30); background: url(../images/pageBox1qp.png) no-repeat; background-size: 100% 100%; text-align: center; color: #fff; font-size: px2rem(24); font-weight: 500; img { display: block; width: px2rem(128); height: px2rem(128); margin: px2rem(17) auto px2rem(16); } } .act { background: url(../images/pageBox1qpAct.png) no-repeat; background-size: 100% 100%; } } } .box2{ width: px2rem(690); height: px2rem(994); background: url(../images/page1Box2.png) no-repeat; background-size: 100% 100%; margin: 0 auto px2rem(138); } }