@charset "utf-8";
body {
  background: #fe8227;
}
#wrap {
  margin-top: -0.01333333rem;
  background-image: url("../image/bg.png");
}
/*砸蛋区域*/
#codex {
  position: relative;   /* 本次改动：给蛋区容器加定位基准，让 #hammer 的 absolute 定位(静态右上角与 index.js 动态砸蛋坐标)在手机版和 web 版都以 #codex 为参照 */
}
.box {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 9rem;
}
.tips {
  width: 3.33333333rem;
  margin: 0.1rem auto 0;
  background-color: #ff6d69;
  text-align: center;
  font-size: 0.26666667rem;
  line-height: 0.53333333rem;
  color: #fff;
  border-radius: 0.26666667rem;
}
#change {
  margin: 0 0.06666667rem;
}
.egg {
  width: 9.8rem;
}
.egg li {
  position: relative;
  float: left;
  width: 2.03333333rem;
  height: 2.26666667rem;
  margin: 0.13333333rem 0.6rem;
}
.egg li img {
  width: 2.36rem;
  height: 0.68rem;
}
.egg li img.goldegg {
  width: 2.03333333rem;
  height: 2.26666667rem;
}
.egg .info {
  display: none;
  position: absolute;
  left: -0.16rem;
  top: 0.33333333rem;
  width: 0.97333333rem;
  height: 0.58666667rem;
  background: url("../image/tips.png") no-repeat top center;
  background-size:100%;
}
.egg li img.goldegg {
  position: relative;
  left: 0.13333333rem;
  top: 0.26666667rem;
  width: 2.13333333rem;
  height: 2.26666667rem;
  -o-transform-origin: center bottom;
  -ms-transform-origin: center bottom;
  -moz-transform-origin: center bottom;
  -webkit-transform-origin: center bottom;
  transform-origin: center bottom;
  -o-transition: .5s;
  -ms-transition: .5s;
  -moz-transition: .5s;
  -webkit-transition: .5s;
  transition: .5s;
}
.egg li img.jump {
  -o-animation: jump .5s infinite alternate;
  -ms-animation: jump .5s infinite alternate;
  -moz-animation: jump .5s infinite alternate;
  -webkit-animation: jump .5s infinite alternate;
  animation: jump .5s infinite alternate;
}
@keyframes jump {
  100% {
    top: 0.13333333rem;
  }
}
#info {
  position: absolute;
  left: 0.53333333rem;
  top: 1.53333333rem;
  width: 1rem;
  height: 0.53333333rem;
}
#hammer {
  position: absolute;
  left: 8.4rem;
  top: 0.2rem;
  z-index: 10;
  width: 1.4rem;
  height: 1.6rem;
  background: url("../image/hammer.png") no-repeat top center;
  background-size:100%;
  -o-transform-origin: right bottom;
  -ms-transform-origin: right bottom;
  -moz-transform-origin: right bottom;
  -webkit-transform-origin: right bottom;
  transform-origin: right bottom;
  -o-transition: 1s ease-in-out;
  -ms-transition: 1s ease-in-out;
  -moz-transition: 1s ease-in-out;
  -webkit-transition: 1s ease-in-out;
  transition: 1s ease-in-out;
}
.shak {
  -o-animation: hammer-move 0.5s linear infinite alternate;
  -ms-animation: hammer-move 0.5s linear infinite alternate;
  -moz-animation: hammer-move 0.5s linear infinite alternate;
  -webkit-animation: hammer-move 0.5s linear infinite alternate;
  animation: hammer-move 0.5s linear infinite alternate;
}
@keyframes hammer-move {
  100% {
    -o-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -webkit-transform: rotate(-10deg);
    transform: rotate(-10deg);
  }
}
.hit {
  -o-animation: hammer-hit 0.2s 3 alternate;
  -ms-animation: hammer-hit 0.2s 3 alternate;
  -moz-animation: hammer-hit 0.2s 3 alternate;
  -webkit-animation: hammer-hit 0.2s 3 alternate;
  animation: hammer-hit 0.2s 3 alternate;
}
@keyframes hammer-hit {
  100% {
    -o-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    -moz-transform: rotate(-20deg);
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }
}
/*奖品展示*/
.awards {
  position: absolute;
  left: 0;
  bottom: 0;
  padding-top: 0.33333333rem;
  width: 100%;
  height: 2.8rem;
  background-color: #fe8227;
}
.awards .swiper-container {
  margin-left: 0.82666667rem;
  width: 100%;
  height: 2.6rem;
}
.awards .prize {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.28rem;
  height: 1.36rem;
}
.awards .swiper-slide {
  margin: 0;
  width: 1.33333333rem;
  height: 2.6rem;
  background-image: none;
}
.awards .swiper-slide-img {
  width: 0.93333333rem;
  height: 0.93333333rem;
  margin-bottom: 0.1rem;
  padding: 0.18666667rem;
  background-color: #fff;
  border: 2px solid #c86400;
  background-image: none;
}
.awards .swiper-slide img {
  width: 1rem;
  height: 1rem;
  margin:0;
}
.awards p {
  text-align: center;
  font-size: 0.26666667rem;
  white-space: nowrap;
  color: #fff;
}
/*规则背景色*/
#mask-rule .box-rule {
  background-color: #f7b50b;
}
#mask-rule .box-rule .star {
  background-image: url("../../common/image/rule/star1.png");
}

/* ========== 本次改动：砸金蛋 web 版兼容(窗口宽度≥1100px) ==========
   手机版(<1100px)完全不受影响，保持原布局。
   web 版：让页面与窗口同高同宽，取消横向/竖向滚动条；
   砸金蛋三栏(左侧奖品列表/中间金蛋/右侧中奖公告·活动说明)主体适配在视口内。 */
@media (min-width: 1100px) {
  html,
  body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;   /* 取消 web 版横向/竖向滚动条，页面与窗口同高同宽 */
  }
  #contmainmain {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;      /* 内容容器与窗口同高同宽，溢出部分隐藏，不再撑出滚动条 */
    overflow: hidden;
  }
  .showpeople {
    position: fixed;   /* 本次改动：web 版参与人数块固定到窗口最底部，始终显示、不被金蛋模块遮挡/裁掉 */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    font-size: 0.18rem;   /* 调小参与人数块 */
    z-index: 99;
  }
  #codex .mainbox { transform: translateY(-0.5rem); }   /* 本次改动：web 版金蛋模块(含锤子)上移0.5rem(原下移1rem导致金蛋底部盖住固定底部的参与人数条)，上移后与参与人数分离、第一排仍完整 */
}
