*{
    margin:0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none
}

body {
    background: url('./image/universe.png') no-repeat;
    background-size: 100%;
    overflow: hidden;
}

#screen{
    width: 20rem;
    height: 12rem;
    margin: 0 auto;
    position: relative;
}

#screen div{
    position: absolute;
    cursor: pointer;
}

#screen div img{
    width: 100%;
    display: block;
}

.left {
    position: absolute;
    top: 20%;
    left: 0;
    width: 3.5rem;
    /* background: rgba(0, 0, 0, 0.219); */
    /* padding-left: 30px; */
    z-index: 999
}

.jump {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    padding-left: .4rem;
    padding-bottom: .1rem;
    padding-top: .1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.521);
    border-top-right-radius: .1rem;
    border-bottom-right-radius: .1rem;
}

.jump a {
    vertical-align: middle;
    font-size: .4rem;
    color: rgb(72, 115, 235);
    display: inline-block;
    text-align: left;
    font-weight: 600;
    letter-spacing: .04rem;
    line-height: .8rem;
    margin-left: .2rem
}

.switch {
    display: flex;
    padding-left: .4rem;
    padding-bottom: .1rem;
    padding-top: .1rem;
    line-height: .8rem;
    border-top-right-radius: .1rem;
    border-bottom-right-radius: .1rem;
    background: rgba(0, 0, 0, 0.5);
}

.switch img {
    width: .8rem;
    height: .8rem;
    vertical-align: middle;
    display: inline-block;
}

.switch span {
    margin-left: .2rem;
    color: rgb(72, 115, 235);
    font-weight: 600;
    letter-spacing: .04rem;
    margin-right: .2rem
}

.switch .on {
    width: .4rem;
    height: .4rem;
    float: right;
    margin-top: .2rem;
    margin-right: .1rem
}

.jump img {
    width: .8rem;
    height: .8rem;
    vertical-align: middle;
    display: inline-block;
}

.rotate {
    transform: rotate(180deg)
}

.left ul li img {
    width: .8rem;
    height: .8rem;
    vertical-align: middle;
    display: inline-block;
    margin-right: .2rem
}

.left ul li {
    font-size: .4rem;
    padding-left: .4rem;
    cursor: pointer;
    color: rgb(72, 115, 235);
    line-height: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.521);
    border-top-right-radius: .1rem;
    border-bottom-right-radius: .1rem;
    background: rgba(0, 0, 0, 0.5);
    padding-bottom: .1rem;
    padding-top: .1rem;
}

.left ul li:last-child {
    border-bottom:none
}

.left .switch {
    font-size: .4rem;
    color: #fff;
    cursor: pointer;
}

.wall{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#foreground {
    background: url('./image/foreground.png') repeat 35% 0;
    -webkit-animation: STAR-BLINK 5s linear infinite;
    -moz-animation: STAR-BLINK 5s linear infinite;
    animation: STAR-BLINK 5s linear infinite;
    opacity: 0.2;
}

@keyframes STAR-BLINK {
    10% {
        opacity: 0;
    }
    50% {
        opacity: 2;
    }
    500% {
        opacity: 0;
    }
}

.loader {
    z-index: 1;
    left: 50%;
    top: 50%;
    margin-left: -1.3rem;
    margin-top: -1.3rem;
    width: 2.6rem;
    height: 2.6rem;
    /* transform: translate(-50%,110%); */
    font-size: .2rem;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader .face {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    animation: animate 5s linear infinite;
}

.loader .face:nth-child(1) {
    width: 100%;
    height: 100%;
    color: rgb(255, 255, 255);
    border-color: currentColor transparent transparent currentColor;
    border-width: 0.2em 0.2em 0 0;
    --deg: -45deg;
    animation-direction: normal;
}

.loader .face:nth-child(2) {
    width: 100%;
    height: 100%;
    color: rgb(0, 153, 255);
    border-color: currentColor currentColor transparent transparent;
    border-width: 0.2em 0 0 0.2em;
    --deg: -135deg;
    animation-direction: reverse;
}

.loader .face .circle {
    position: absolute;
    width: 50%;
    height: 0.1em;
    top: 50%;
    left: 50%;
    background-color: transparent;
    transform: rotate(var(--deg));
    transform-origin: left;
}

.loader .face .circle::before {
    position: absolute;
    top: -0.5em;
    right: -0.5em;
    content: '';
    width: 1em;
    height: 1em;
    background-color: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 2em,
    0 0 4em,
    0 0 6em,
    0 0 8em,
    0 0 10em,
    0 0 0 0.5em rgba(255, 255, 0, 0.1);
}

@keyframes animate {
    to {
        transform: rotate(1turn);
    }
}

.quan {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -3.6rem;
    margin-top: -1.3rem;
    width: 7rem;
    height: 3.4rem;
    background-image: url(./image/quan.png);
    background-size: 100%;
    transform: rotate(-8deg)
}

.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -1.3rem;
  margin-top: -1.3rem;
  width: 2.6rem;
  height: 2.6rem;
  background-image:url(./image/logo.gif);
  background-position: center center;
  background-size: 125%;
  border-radius: 100%;
  z-index: 1;
  transform-origin: center;
  /* animation: circle 30s linear infinite; */
}

.bag {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 19.6rem;
    height: 19.6rem;
    background-image: url(./image/bag.png);
    background-repeat: no-repeat;
    background-size: 100%;
    transform: translate(-49%, -27%) rotate(-9.5deg);
}

/*流星雨特效*/
#stars {
    margin: 0 auto;
    max-width: 32rem;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.star {
    top: 0;
    left: 10rem;
    display: block;
    width: 1px;
    background: transparent;
    position: relative;
    opacity: 0;
    /*过渡动画*/
    animation: star-fall 2.5s linear infinite;
    -webkit-animation: star-fall 2.5s linear infinite;
    -moz-animation: star-fall 2.5s linear infinite;
}

.star:after {
    content: '';
    display: block;
    border: solid;
    border-width: 0 1.8rem .06rem 1.8rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, .5);
    box-shadow: 0 0 1rem 0 rgba(255, 255, 255, .1);
    /*变形*/
    -webkit-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -moz-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -webkit-transform-origin: 0 100%;
    -moz-transform-origin: 0 100%;
    transform-origin: 0 100%;
}
@keyframes star-fall {
    0% {
        opacity: 0;
        transform: scale(0.5) translate3d(0, 0, 0);
        -webkit-transform: scale(0.5) translate3d(0, 0, 0);
        -moz-transform: scale(0.5) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1.5;
        transform:scale(1.0) translate3d(-4rem, 4rem, 0);
        -webkit-transform: translate3d(-4rem, 4rem, 0);
        -moz-transform: translate3d(-4rem, 4rem, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translate3d(-6rem, 6rem, 0);
        -webkit-transform: scale(1.2) translate3d(-6rem, 6rem, 0);
        -moz-transform: scale(1.2) translate3d(-6rem, 6rem, 0);
    }
}

#stars1 {
    margin: 0 auto;
    max-width: 32rem;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.star1 {
    top: 0;
    left: 15rem;
    display: block;
    width: 1px;
    background: transparent;
    position: relative;
    opacity: 0;
    /*过渡动画*/
    animation: star-fall1 4s linear infinite;
    -webkit-animation: star-fall1 4s linear infinite;
    -moz-animation: star-fall1 4s linear infinite;
}

.star1:after {
    content: '';
    display: block;
    border: solid;
    border-width: 0 1.8rem .06rem 1.8rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, .5);
    box-shadow: 0 0 1rem 0 rgba(255, 255, 255, .1);
    /*变形*/
    -webkit-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -moz-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -webkit-transform-origin: 0 100%;
    -moz-transform-origin: 0 100%;
    transform-origin: 0 100%;
}
@keyframes star-fall1 {
    0% {
        opacity: 0;
        transform: scale(0.5) translate3d(0, 0, 0);
        -webkit-transform: scale(0.5) translate3d(0, 0, 0);
        -moz-transform: scale(0.5) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1.5;
        transform:scale(1.0) translate3d(-4rem, 4rem, 0);
        -webkit-transform: translate3d(-4rem, 4rem, 0);
        -moz-transform: translate3d(-4rem, 4rem, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translate3d(-6rem, 6rem, 0);
        -webkit-transform: scale(1.2) translate3d(-6rem, 6rem, 0);
        -moz-transform: scale(1.2) translate3d(-6rem, 6rem, 0);
    }
}

#stars2 {
    margin: 0 auto;
    max-width: 32rem;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.star2 {
    top: 0;
    left: 30rem;
    display: block;
    width: 2px;
    background: transparent;
    position: relative;
    opacity: 0;
    /*过渡动画*/
    animation: star-fall2 10s linear infinite;
    -webkit-animation: star-fall2 10s linear infinite;
    -moz-animation: star-fall2 10s linear infinite;
}

.star2:after {
    content: '';
    display: block;
    border: solid;
    border-width: 0 1.8rem .06rem 1.8rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, .5);
    box-shadow: 0 0 1rem 0 rgba(255, 255, 255, .1);
    /*变形*/
    -webkit-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -moz-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -webkit-transform-origin: 0 100%;
    -moz-transform-origin: 0 100%;
    transform-origin: 0 100%;
}
@keyframes star-fall2 {
    0% {
        opacity: 0;
        transform: scale(0.5) translate3d(0, 0, 0);
        -webkit-transform: scale(0.5) translate3d(0, 0, 0);
        -moz-transform: scale(0.5) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1.5;
        transform:scale(1.0) translate3d(-6rem, 6rem, 0);
        -webkit-transform: translate3d(-6rem, 6rem, 0);
        -moz-transform: translate3d(-6rem, 6rem, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translate3d(-10rem, 10rem, 0);
        -webkit-transform: scale(1.2) translate3d(-10rem, 10rem, 0);
        -moz-transform: scale(1.2) translate3d(-10rem, 10rem, 0);
    }
}

#stars3 {
    margin: 0 auto;
    max-width: 38rem;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.star3 {
    top: 0;
    left: 32rem;
    display: block;
    width: 2px;
    background: transparent;
    position: relative;
    opacity: 0;
    /*过渡动画*/
    animation: star-fall3 8s linear infinite;
    -webkit-animation: star-fall3 8s linear infinite;
    -moz-animation: star-fall3 8s linear infinite;
}

.star3:after {
    content: '';
    display: block;
    border: solid;
    border-width: 0 1.8rem .06rem 1.8rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, .5);
    box-shadow: 0 0 1rem 0 rgba(255, 255, 255, .1);
    /*变形*/
    -webkit-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -moz-transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    transform: rotate(-45deg) translate3d(1px, .06rem, 0);
    -webkit-transform-origin: 0 100%;
    -moz-transform-origin: 0 100%;
    transform-origin: 0 100%;
}
@keyframes star-fall3 {
    0% {
        opacity: 0;
        transform: scale(0.5) translate3d(0, 0, 0);
        -webkit-transform: scale(0.5) translate3d(0, 0, 0);
        -moz-transform: scale(0.5) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1.5;
        transform:scale(1.0) translate3d(-5rem, 5rem, 0);
        -webkit-transform: translate3d(-5rem, 5rem, 0);
        -moz-transform: translate3d(-5rem, 5rem, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translate3d(-8rem, 8rem, 0);
        -webkit-transform: scale(1.2) translate3d(-8rem, 8rem, 0);
        -moz-transform: scale(1.2) translate3d(-8rem, 8rem, 0);
    }
}
