:root {
  --title-1: 16px;
  --title-2: 24px;
  --title-3: 32px;
  --title-4: 48px;
  --title-5: 64px;
  --fontcolor-1: rgba(0, 0, 0, .8);
  --fontcolor-2: rgba(0, 0, 0, .6);
  --fontcolor-3: rgba(0, 0, 0, .4);
  --fontcolor-4: rgba(0, 0, 0, .2);
  --border-1: rgba(0, 0, 0, .1);
  --color-primary: #52E2C0;
  --color-gatekeeper-primary: #FFD535;
  --color-yueli-primary: #4E3EE9;
  --color-tuimeo-primary: #2488FF;
  --color-gkcms-primary: #FFD535;
  --color-vitamine-primary: #C00022;
  --color-background: #FFFFFF;
}

:root .darkmode {
  --fontcolor-1: rgba(255, 255, 255, 1);
  --fontcolor-2: rgba(255, 255, 255, .8);
  --fontcolor-3: rgba(255, 255, 255, .6);
  --fontcolor-4: rgba(255, 255, 255, .2);
  --border-1: rgba(255, 255, 255, .1);
  --color-background: #101010;
}

@media screen and (min-width: 2160px) {
  .cover .title-name {
    font-size: var(--title-2) !important;
  }

  .cover .title-cn {
    font-size: var(--title-5) !important;
  }

  .cover .title-en {
    font-size: var(--title-4) !important;
  }
}

@font-face {
  font-family: Nohemi;
  src: url('../font/Nohemi-VF.ttf');
}

::selection {
  color: #fff;
  background: var(--color-primary);
}

html {
  scrollbar-width: none;
}

body {
  font-family: Nohemi;
  margin: 0;
  background-color: var(--color-background);
  transition: background 0.6s;
}

body::-webkit-scrollbar {
  width: 0 !important
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

#butter {
  display: flex;
  flex-flow: column;
  align-items: center;
  top: 0;
  transition: top 1s;
}

.processbar {
  height: 2px;
  width: 100px;
  background: rgba(0, 0, 0, .1);
  transform: translatey(100px);
  box-sizing: border-box;
  animation: loading 10s forwards;
  transition: 0.3s;
  margin-top: 24px;
}

.processbar::after {
  content: attr(process);
}

.unspalsh {
  display: none;
  position: absolute;
  top: 0;
  z-index: -1;
}

.loading {
  position: fixed;
  display: flex;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 999;
  overflow: hidden;
}

.loading .processnum {
  position: absolute;
  color: #000;
  font-size: 48px;
  left: 0;
  text-align: right;
  width: 0%;
  bottom: 64px;
  font-weight: bold;
  transition: .6s width, .6s opacity;
  margin: 0;
  padding-right: 32px;
  box-sizing: border-box;
  opacity: 0;
}

.loading .bg {
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #52E2C0;
  transition: width .6s;
}

.loading .logo {
  width: 64px;
  height: 64px;
  position: absolute;
  display: flex;
  align-content: center;
  justify-content: center;
  top: 64px;
  left: 64px;
  transition: 1s opacity;
  opacity: 0;
}

.loading .logo .top, .loading .logo .bottom {
  fill: white;
  position: absolute;
  animation: toploading 1.5s infinite;
  transform-origin: bottom left;
}

.loading .logo .bottom {
  transform-origin: top right;
}

.start .logo, .start .processnum {
  opacity: 1;
}

.finish {
  animation: loadingfinish 0.6s forwards;
}

.hovertips {
  position: fixed;
  height: 120px;
  width: 120px;
  background: #101010;
  border-radius: 50%;
  color: var(--color-background);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 97;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s;
  transform: translateX(-50%) translateY(-50%) scale(.2);
}

.hovertips i {
  margin-bottom: 4px;
  font-size: 32px;
}

.effect {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.nav {
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 5;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-sizing: border-box;
}

.nav .inner {
  position: relative;
  width: 100%;
  max-width: 2160px;
  padding: 0 6.25vw;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nav .menu a {
  margin-right: 64px;
  color: var(--fontcolor-3);
  text-decoration: none;
  display: bold;
  pointer-events: auto;
  transition: color .6s;
}

.nav .menu .resume:hover {
  color: var(--fontcolor-1);
}

.nav .logo {
  fill: var(--fontcolor-1);
}

.nav .logo3d {
  opacity: 0;
  position: absolute;
  left: 6.25vw;
  height: 36px;
  transition: opacity 0.6s;
}

.nav .logo3d:hover {
  opacity: 1;
}

.cover .bg {
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  width: 100%;
  padding: 0 6.25vw;
  box-sizing: border-box;
  -webkit-mask-image: url('../img/mask.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 50%;
  -webkit-mask-position: 25% 50%;
  /* transition: 0.2s all; */
}

.cover {
  position: relative;
  display: flex;
  flex-flow: column;
  height: 100vh;
  width: 100%;
  max-width: 2160px;
  justify-content: space-between;
  box-sizing: border-box;
}

.cover .title-name {
  z-index: 5;
  text-align: right;
  font-size: 1.25vw;
  margin: 27vh 6.25vw 0 0;
  pointer-events: none;
  opacity: 0;
}

.cover .title-cn {
  pointer-events: none;
  z-index: 5;
  font-size: 3.33vw;
  font-weight: 600;
  margin-left: 6.25vw;
  opacity: 0;
}

.cover .title-cn p:last-child {
  margin-left: 64px;
}

.cover .title-en {
  pointer-events: none;
  z-index: 5;
  margin: 0 0 18vh 50%;
  font-size: 2.5vw;
  font-weight: 600;
  opacity: 0;
}

.cover .title-en p:first-child {
  margin-left: 64px;
}

.cover .arrow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  animation: scrolltips 2s infinite ease-out;
  color: var(--fontcolor-2);
  font-size: 12px;
  transition: opacity 1s;
}

.scrollbar {
  width: 4px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 19;
  transition: background 0.3s, height 0.6s cubic-bezier(0.25, 0.5, 0.44, 1);
}

.project {
  margin-top: 80px;
  width: 100%;
  max-width: 2160px;
}

.project .title {
  margin-left: 6.25vw;
  margin-bottom: 4.16%;
  font-size: var(--title-2);
  color: var(--fontcolor-2);
  font-weight: bold;
}

.caselist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 4.76%;
  padding: 0 6.25vw;
}

.caselist .case, .caselist .dev {
  width: 100%;
  margin-bottom: 10%;
}

.caselist .case .cover, .caselist .dev .cover {
  overflow: hidden;
  height: auto;
  cursor: none;
  border-radius: 3.07%;
}

.caselist .case .cover:hover img {
  transform: scale(1.05);
  /* filter: brightness(0.8); */
}

.caselist .case .cover:hover::before {
  top: 50%;
  opacity: 1;
}

.caselist .case img, .caselist .dev img {
  width: 100%;
  transition: transform .6s, filter .6s;
}

.caselist .case .name, .caselist .dev .name {
  position: relative;
  display: flex;
  align-items: center;
  font-size: var(--title-2);
  margin: 16px 0 4px 0;
  color: var(--fontcolor-1);
  font-weight: bold;
}

.caselist .case .introduction, .caselist .dev .introduction {
  color: var(--fontcolor-2);
}

.caselist .dev .cover {
  overflow: hidden;
  display: grid;
  height: 41.666vw;
  max-height: 860px;
  padding: 3.72%;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 3.72%;
  background: #F6F6F6;
}

.caselist .dev .cover:hover {
  cursor: auto;
}

.caselist .dev .cover a {
  transition: .3s;
  border-radius: 4.9%;
  background-size: cover;
  box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.05);
}

.caselist .dev .cover a:hover {
  transform: scale(1.05);
}

.other {
  max-width: 2160px;
  height: 2400px;
  padding: 0 6.25vw;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.other .title:first-child {
  font-weight: bold;
  padding-bottom: 32px;
  font-size: var(--title-2);
  color: var(--fontcolor-2);
}

.other .link {
  position: relative;
  display: flex;
  padding: 64px 0;
  box-sizing: border-box;
  border-top: 1px solid var(--border-1);
  cursor: none;
  opacity: .2;
  transition: all .3s;
}

.other .link:nth-last-child(1) {
  border-bottom: 1px solid var(--border-1);
}

.other .link:hover {
  opacity: 1;
}

.other .link .info {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.other .link .info .content {
  display: flex;
  flex-flow: column;
  gap: 16px;
}

.other .link .info .content .tag {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-primary);
}

.other .link .info .content .tag i {
  margin-right: 4px;
}

.other .link .info .content .title {
  font-size: 40px;
  font-weight: bold;
  color: var(--fontcolor-1);
}

.other .link .info .content .subtitle {
  font-size: 16px;
  color: var(--fontcolor-2);
}

.other .link .othercover {
  width: 37.5%;
  margin-right: 48px;
  border-radius: 16px;
  transition: all .6s;
}

.other .link:hover .othercover {
  transform: scale(1.05);
}

.other .link:hover .info {
  opacity: 1;
}

.other .link .info .award {
  display: flex;
  align-items: center;
  color: var(--fontcolor-2);
  align-self: flex-end;
}

.other .link .info .award svg path {
  fill: var(--fontcolor-2);
}

.contact {
  position: relative;
  padding: 64px 6.25vw;
  min-height: 600px;
  width: 100vw;
  max-width: 2160px;
  height: 40vh;
  display: flex;
  flex-flow: column;
  box-sizing: border-box;
  justify-content: space-between;
  background: url('../img/footer_bg.png');
  background-size: cover;
}

.contact .title {
  font-size: var(--title-2);
  margin-bottom: 16px;
  font-weight: bolder;
  color: var(--fontcolor-2);
}

.contact .email .text {
  position: relative;
  font-size: 48px;
  font-weight: bolder;
  text-decoration: underline;
  color: var(--fontcolor-1);
}

.contact .email .text .emoji {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  font-size: 80px;
  color: #000;
  transition: opacity 0.6s, transform 0.6s;
  transform: scale(.2);
}

.contact .media .icon a {
  margin-right: 24px;
}

.contact .media .icon a svg {
  fill: var(--fontcolor-1);
}

.contact .undertips {
  font-size: 14px;
  font-weight: normal;
  color: var(--fontcolor-4);
}

.contact .undertips a {
  margin: 0 12px;
  color: var(--fontcolor-3);
  transition: color 0.6s;
}

.contact .undertips a:hover {
  color: var(--fontcolor-1)
}

.contact .undertips a:nth-child(1) {
  margin: 0 12px 0 0;
}

.contact .logo {
  position: absolute;
  right: 6.25vw;
  bottom: 64px;
}

.contact .backtotop {
  position: absolute;
  top: 64px;
  right: 6.25vw;
  cursor: pointer;
}

.contact .backtotop svg {
  fill: none;
  stroke: var(--fontcolor-1);
}

.contact .logo {
  fill: var(--fontcolor-1);
}

/* 深色模式 */
.darkmode .nav {
  background: rgba(16, 16, 16, .6);
}

.darkmode .hovertips {
  background: #FFFFFF;
}

.darkmode .other .list {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.darkmode .other .list:nth-child(2), .darkmode .other .list:hover {
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.darkmode img, .darkmode a {
  filter: brightness(0.9)
}

@keyframes scrolltips {
  0% {
    bottom: 16px;
    color: var(--fontcolor-2);
  }

  50% {
    bottom: 4px;
    color: var(--fontcolor-2);
  }

  75% {
    bottom: 4px;
    color: rgba(0, 0, 0, 0);
  }

  76% {
    bottom: 16px;
    color: rgba(0, 0, 0, 0);
  }

  100% {
    bottom: 16px;
    color: var(--fontcolor-2);
  }
}

@keyframes toploading {
  to {
    transform-origin: center center;
    transform: rotate(-180deg);
  }
}

@keyframes bottomloading {
  to {
    transform-origin: center center;
    transform: rotate(-180deg);
  }
}

@keyframes loadingfinish {
  to {
    height: 0;
  }
}