﻿body {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, 苹方-简, PingFang SC, Source Han Sans SC, Microsoft YaHei, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  margin: 0;
  background-image: url(https://cdn.jsdelivr.net/npm/dukewill@0.0.15/images/daisea-background-min.jpg);
  background-attachment: fixed;
  /* will-change: transform; */
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  min-height: 800px
}


#title {
  left: calc((50% - 250px) * 0.5);
  width: 250px;
  position: fixed;
  top:38%;
  bottom: 0
}

#subtitle {
  left: calc(75% - 150px);
  width: 300px;
  position: absolute;
  top: 33%;
  bottom: 0
}

footer {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 20px;
  top: 100%;
  width: 100%;
  height: 100px;
  background-color: #183034;
  box-shadow: 0 -2px 3px 1px #0d1a1d
}

.h1, .h2, .h3, .h4, .h5, .h6 {
  color: #4CAF50
}

.home {
  position: fixed;
  left: 80px;
  top: 80px;
  font-size: 1.2em
}

.link {
  text-decoration: none;
  color: #F03838
}

.link:hover {
  text-decoration: underline
}

.linkwhite {
  text-decoration: none;
  color: #fff
}

/*.textfooter, .texttitle, .textsubtitle, .home, .button, .nav, .about*/

.about {
  left: calc(75% - 175px);
  width: 350px;
  position: absolute;
  top: 30%;
  font-size: 1em;
  color: #fff
}

.texttitle {
  font-size: 3em;
  text-align: center
}

.textsubtitle {
  font-size: 2em;
  text-align: center
}

.textfooter {
  text-align: center;
  padding-top: 20px;
  color: #a6b1b7;
  font-size: 14px
}

.button {
  position: absolute;
  left: calc(75% - 100px);
  border-radius: 0.5rem;
  color: #FFFFFF;
  padding: 20px;
  width: 180px;
  background-color: #4CAF50;
  border: none;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
  margin: 4px 2px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s;
  /* Safari */
  transition-duration: 0.4s
}

.button:hover {
  box-shadow: 0 12px 16px 0 rgba(104, 104, 104, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s
}

.button span:after {
  content: '»';
  position: absolute;
  opacity: 0;
  top: 2px;
  right: -20px;
  transition: 0.5s
}

.button:hover span {
  padding-right: 25px
}

.button:hover span:after {
  opacity: 1;
  right: 0
}

@media screen and (min-width: 751px) {
  .nav {
    display: none
  }
}

@media screen and (max-width: 751px) {
  #menuIcon {
    display: block;
    text-align: left;
    padding: 0 5px
    /*border-bottom: 1px #9c9c9c solid;*/
  }
  .nav {
    position: fixed;
    min-height: 20px
  }
  .nav ul {
    width: 120px;
    padding: 5px 0;
    position: absolute;
    top: 10px;
    left: 40px
    /*border: solid 1px #aaa;
    background: #fff url(images/icon-menu.png) no-repeat 10px 11px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);*/
  }
  .nav li {
    display: none;
    /* hide all <li> items */
    margin: 0
  }
  .nav .current {
    display: block
    /* show only current <li> item */
  }
  /*展开菜单后的样式*/
  .nav a {
    display: block;
    padding: 5px;
    text-align: left;
    text-decoration: none;
    color: #fff
  }
  .nav .current a {
    background: none;
    color: #666
  }
  /* on nav hover */
  .nav ul:hover {
    background-image: none
  }
  .nav ul:hover li {
    display: block;
    margin: 0 0 1px
  }
  /*.nav ul:hover .current {
    background: url() no-repeat 10px 7px;
  }*/

  /* right nav */
  .nav.right ul {
    left: auto;
    right: 0
  }
  /* center nav */
  .nav.center ul {
    left: 50%;
    margin-left: -90px
  }
  #title {
    position:absolute;
    left: calc(50% - 125px);
    top: 20%
  }
  #subtitle, .about {
    left: calc(50% - 150px);
    top: 35%
  }
  .home {
    display: none;
    /*缩小后 Home 消失*/
  }
  .button {
    left: calc(50% - 100px)
    /*按钮居中显示*/
  }
}

@media screen and (max-width: 400px) {
  .about {
    width: 80%
  }
}

  /*页脚logo*/
@-webkit-keyframes rotation {
  from {
      -webkit-transform: rotate(0deg)
  }
  to {
      -webkit-transform: rotate(360deg)
  }
}

.footlogo {
  width: 30px;
  height: 30px;
  top: 20px;
  opacity: .9;
  margin: 0 auto;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat
}

.Rotation {
  -webkit-transform: rotate(360deg);
  animation: rotation 12s linear infinite;
  -moz-animation: rotation 12s linear infinite;
  -webkit-animation: rotation 12s linear infinite;
  -o-animation: rotation 12s linear infinite
}

.star {
  background-image: url(https://cdn.jsdelivr.net/npm/dukewill@0.0.18/images/starlight.svg);
}