* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Tahoma, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #fff;
  transition: background-color .4s ease;
}

body.night {
  background: #0a0b0d;
}

#blogbg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.day-night-btn {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 94, 125, .18);
  background: rgba(255, 94, 125, .1);
  color: #ff5e7d;
  font-size: 13px;
  cursor: pointer;
  z-index: 20;
  transition: background .2s ease, color .2s ease;
}

.day-night-btn:hover {
  background: rgba(255, 94, 125, .2);
}

body.night .day-night-btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: #aaa;
}

.blognav {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 370px;
  max-width: calc(100% - 40px);
  transform: translate(-50%, calc(-58% - 100px));
  text-align: center;
  z-index: 10;
}

.logo {
  display: block;
  width: 300px;
  max-width: 76vw;
  height: auto;
  margin: 0 auto;
}

.blognav h2 {
  margin: 20px 0 24px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #666;
}

body.night .blognav h2 {
  color: #b5b5b5;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.menu a {
  display: block;
  width: 88px;
  height: 40px;
  line-height: 38px;
  border: 1px solid #eee;
  border-radius: 3px;
  color: #bbb;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s ease;
}

.menu a:hover {
  border-color: #ff5e7d;
  color: #ff5e7d;
}

.menu a.active {
  background: #ff5e7d;
  border-color: #ff5e7d;
  color: #fff;
}

.menu a.active:hover {
  color: #fff;
}

body.night .menu a {
  border-color: #2c2f33;
  color: #777;
}

body.night .menu a:hover {
  border-color: #ff5e7d;
  color: #ff5e7d;
}

body.night .menu a.active {
  background: #ff5e7d;
  border-color: #ff5e7d;
  color: #fff;
}

.contactme {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 92px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

.contactme a {
  position: relative;
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: #c4c4c4;
  transition: color .2s ease;
}

.contactme a:hover {
  color: #ff5e7d;
}

.contactme svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contactme .atips::after {
  content: attr(data-tips);
  position: absolute;
  left: 50%;
  top: -38px;
  transform: translate(-50%, 4px);
  padding: 0 10px;
  height: 26px;
  line-height: 26px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.contactme .atips:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.night .contactme a {
  color: #6b6b6b;
}

.footer {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: 28px;
  text-align: center;
  font-size: 10px;
  line-height: 20px;
  color: #ccc;
  z-index: 10;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: #ff5e7d;
}

body.night .footer,
body.night .footer a {
  color: #4f5359;
}

.arriveup {
  animation: arrive-up .7s ease .45s both;
}

.arriveup-long {
  animation: fade-in .9s ease 1.05s both;
}

@keyframes arrive-up {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-53% - 100px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-58% - 100px));
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .logo {
    width: 230px;
  }

  .blognav h2 {
    font-size: 14px;
  }

  .menu a {
    width: 80px;
    height: 38px;
    line-height: 36px;
    font-size: 13px;
  }

  .contactme {
    bottom: 84px;
    gap: 20px;
  }

  .footer {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arriveup,
  .arriveup-long {
    animation: none;
  }
}