@font-face {
  font-family: theme;
  src: url(/res/theme.woff2);
}
@font-face {
  font-family: sans;
  src: url(/res/sans.woff2)
}


body {
  font-family: theme, serif;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  color: #edc;
  overscroll-behavior-y: none;
  touch-action: none;
}
a, body, input {
  cursor: none;
}
input {
  outline: none;
  border: none;
  border-bottom: 1px solid #edc;
  transition: border-bottom 0.2s;
  background-color: transparent;
  color: #edc;
  display: block;
  font-family: theme, serif;
}
input:focus {
  border-bottom: 1px solid #d74;
}
input::selection {
  background-color: #edc;
  color: #333;
}
a {
  color: #d74;
  transition: filter 0.2s;
}
a:hover {
  filter: opacity(0.5);
}
en {
  font-style: normal;
  color: #d74;
}


@keyframes fade-in {
  0% {
    transform: translate3d(0,1.6vw,0);
    filter: blur(2px) opacity(0);
  }
}
@keyframes fade-out {
  100% {
    transform: translate3d(0,1.6vw,0);
    filter: blur(2px) opacity(0);
  }
}

@keyframes scale-in {
  0% {
    transform: translate3d(-4.8vw,0,0) scale(0.95);
    filter: opacity(0);
  }
}

@keyframes rotating {
  100% {
    transform: rotate3d(360deg);
  }
}


body > header {
  z-index: 98;
  position: fixed;
  width: 100%;
  height: 6.4vw;
  background-image: linear-gradient(0deg, rgba(0,0,0,0),rgba(0,0,0,0.7));
}
body > header > a > img {
  height: 4vw;
  margin: 0.8vw 8vw;
}
#home-nav {
  display: flex;
  position: absolute;
  right: 0;
  top: 0;
  padding-right: 2.4vw;
  animation: fade-in 0.5s;
}
#home-nav > div {
  padding: 1.2vw 2.4vw;
  width: 4vw;
}
#home-nav > div > h2 {
  font-weight: normal;
  margin: 0;
  color: #edc;
  font-size: 1vw;
  transition: font-size 0.2s, color 0.2s;
  line-height: 1.5vw;
}
#home-nav > div > p {
  margin: 0;
  color: #ba9;
  font-size: 0.6vw;
  transition: font-size 0.2s, color 0.2s;
}
#home-nav > div:hover > h2, #home-nav > div:hover > p, 
#home-nav > div.active > h2, #home-nav > div.active > p {
  color: #d74;
}
#home-nav > div.active > h2 {
  font-size: 1.2vw;
}
#home-nav > img {
  height: 2vw;
  margin: 1.4vw;
}

body > bg {
  z-index: -1;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;left: 0;
  background-image: url(/res/bg.png);
  background-position: bottom;
  background-size: cover;
}

body > main {
  position: absolute;
  top: 0;left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
body > main > div {
  position: absolute;
  animation: fade-in 0.5s;
}


#cursor {
  z-index: 100;
  position: fixed;
  width: 30px;
  height: 30px;
  background-color: #d740;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 5px #fff, 0 0 2px #fff;
  pointer-events: none;
  transition: background-color 0.2s, width 0.2s, height 0.2s, filter 0.2s;
  transform: translate3d(-50%,-50%,0);
}
#cursor.link {
  width: 20px;
  height: 20px;
  background-color: #d74a;
}
#cursor.none {
  display: none;
}
#cursor.hue {
  width: 80px;
  height: 80px;
  mix-blend-mode: difference;
  border-radius: 40px;
  background-color: #b53;
  box-shadow: none;
}
#cursor.focus {
  width: 10px;
  height: 10px;
  background-color: #fff;
}



#viewer {
  z-index: 99;
  position: fixed;
  left: 0;top: 0;
  width: 100%;height: 100%;
  overflow: hidden;
  animation: fade-in 0.5s;
  backdrop-filter: blur(2px);
  background-color: #1128;
  display: none;
}
#viewer > div {
  display: flex;
  position: absolute;
  bottom: 0;
  left: calc(50% - 11vw);
  width: 16vw;
  justify-content: space-between;
  background-color: #112;
  padding: 1.2vw 3vw;
  border-radius: 4vw 4vw 0 0;
  box-shadow: 0 0 3px #000;
}
#viewer > div > img {
  height: 2vw;
  transition: filter 0.2s;
}
#viewer > div > img:hover {
  filter: opacity(0.5);
}
#viewer > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  transition: transform 0.2s;
}
#viewer > x, #fsvideo > x {
  position: absolute;
  width: 4vw;
  height: 4vw;
  border-radius: 2vw;
  right: 1.6vw;
  top: 1.6vw;
  background-image: url(/res/viewer/x.png);
  background-size: contain;
  box-shadow: 0 0 5px #b53;
  transition: box-shadow 0.2s;
  filter: opacity(0.8);
}
#viewer > x:hover, #fsvideo > x:hover {
  box-shadow: 0 0 20px #b53;
}


#fsvideo {
  z-index: 99;
  position: fixed;
  left: 0;top: 0;
  width: 100%;
  height: 100%;
}
#fsvideo > video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  animation: fade-in 0.5s;
}



/* 手机 */
[mobile] {display: none;}
@media screen and (orientation: portrait) {
[mobile] {display: unset;}
body{
  cursor: default;
}
body > header {
  height: 10vh;
}
body > header > a > img {
  height: 6vh;
  margin: 2vh 4vh;
}
#cursor{display: none;}

#home-nav {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

#home-nav > div {
  padding: 3vh 0;
  width: 100%;
  text-align: center;
}
#home-nav > div > h2 {
  font-size: 2vh;
  line-height: 3vh;
}
#home-nav > div > p {
  margin: 0;
  font-size: 1vh;
}
#home-nav > div.active > h2 {
  font-size: 2.5vh;
}
#home-nav > img {
  height: 3vh;
  margin: 2vh;
}

#viewer > x, #fsvideo > x {
  width: 5vh;
  height: 5vh;
  border-radius: 2.5vh;
  right: 2vh;
  top: 2vh;
}
#viewer > div {
  left: 0;
  width: 100%;
  justify-content: center;
  padding: 2vh 0;
  border-radius: 1vh 1vh 0 0;
}
#viewer > div > img {
  height: 4vh;
  padding: 2vh;
}
}
