@font-face {
  font-family: "Minecraft UI";
  src: url("/fonts/Minecraft.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Minecraft UI";
  src: url("/fonts/Minecraft-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Fusion Pixel";
  src: url("/fonts/fusion-pixel-12px-zh-hans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --legacy-font: "Minecraft UI", "Fusion Pixel", "Microsoft YaHei", "PingFang SC", sans-serif;
  --legacy-ink: #121317;
  --legacy-muted: #6f7279;
  --legacy-line: #e5e6e9;
  --legacy-paper: #ffffff;
  --legacy-soft: #f5f5f6;
  --legacy-header-height: 64px;
  --legacy-safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--legacy-paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: #121317;
  color: var(--legacy-ink);
  background: #ffffff;
  background: var(--legacy-paper);
  font-family: "Minecraft UI", "Fusion Pixel", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-family: var(--legacy-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.legacy-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a:focus,
button:focus {
  outline: 2px solid var(--legacy-ink);
  outline-offset: 3px;
}

.legacy-skip-link {
  position: fixed;
  top: calc(8px + var(--legacy-safe-top));
  left: 12px;
  z-index: 1300;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--legacy-ink);
  transform: translateY(-180%);
}

.legacy-skip-link:focus {
  transform: translateY(0);
}

.legacy-header {
  position: relative;
  z-index: 1100;
  height: 64px;
  height: calc(var(--legacy-header-height) + var(--legacy-safe-top));
  padding-top: 0;
  padding-top: var(--legacy-safe-top);
  border-bottom: 1px solid var(--legacy-line);
  background: rgba(255, 255, 255, 0.97);
}

.legacy-header.is-fixed {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

.legacy-header.is-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.legacy-header-inner {
  width: 100%;
  max-width: 1480px;
  height: 64px;
  height: var(--legacy-header-height);
  margin: 0 auto;
  padding: 0 32px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.legacy-brand {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  color: var(--legacy-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.legacy-desktop-nav {
  height: 42px;
  margin-left: 44px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.legacy-desktop-nav a {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #34363b;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  font-size: 13px;
}

.legacy-desktop-nav a + a {
  margin-left: 3px;
}

.legacy-desktop-nav a:hover,
.legacy-desktop-nav a[aria-current="page"] {
  color: var(--legacy-ink);
  background: #f0f1f3;
}

.legacy-github {
  min-height: 40px;
  margin-left: auto;
  padding: 0 15px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--legacy-ink);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  font-size: 13px;
}

.legacy-github:hover {
  background: #45474c;
}

.legacy-github img {
  width: 17px;
  height: 17px;
  margin-right: 8px;
}

.legacy-menu-button {
  position: relative;
  z-index: 1120;
  width: 42px;
  height: 42px;
  margin: 0 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--legacy-ink);
  background: transparent;
  cursor: pointer;
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.legacy-menu-icon {
  position: relative;
  width: 19px;
  height: 14px;
  display: block;
}

.legacy-menu-icon i {
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  -webkit-transition: top 180ms ease, opacity 120ms ease, -webkit-transform 180ms ease;
  transition: top 180ms ease, opacity 120ms ease, transform 180ms ease;
}

.legacy-menu-icon i:nth-child(1) {
  top: 0;
}

.legacy-menu-icon i:nth-child(2) {
  top: 6px;
}

.legacy-menu-icon i:nth-child(3) {
  top: 12px;
}

.legacy-menu-button[aria-expanded="true"] .legacy-menu-icon i:nth-child(1) {
  top: 6px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.legacy-menu-button[aria-expanded="true"] .legacy-menu-icon i:nth-child(2) {
  opacity: 0;
}

.legacy-menu-button[aria-expanded="true"] .legacy-menu-icon i:nth-child(3) {
  top: 6px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.legacy-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  display: none;
  border: 0;
  background: rgba(18, 19, 23, 0.28);
  opacity: 0;
  cursor: pointer;
}

.legacy-mobile-nav {
  position: fixed;
  top: 72px;
  top: calc(var(--legacy-header-height) + var(--legacy-safe-top) + 8px);
  right: 12px;
  left: 12px;
  z-index: 1090;
  display: none;
  max-height: calc(100vh - 84px);
  max-height: calc(100vh - var(--legacy-header-height) - var(--legacy-safe-top) - 20px);
  max-height: calc(100dvh - var(--legacy-header-height) - var(--legacy-safe-top) - 20px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--legacy-line);
  border-radius: 18px;
  background: var(--legacy-paper);
  box-shadow: 0 18px 55px rgba(18, 19, 23, 0.18);
  opacity: 0;
  -webkit-transform: translateY(-8px);
  transform: translateY(-8px);
}

.legacy-mobile-nav a {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: #34363b;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  font-size: 15px;
}

.legacy-mobile-nav a:hover,
.legacy-mobile-nav a[aria-current="page"] {
  color: var(--legacy-ink);
  background: var(--legacy-soft);
}

.legacy-mobile-nav .legacy-mobile-github {
  margin-top: 6px;
  color: #ffffff;
  background: var(--legacy-ink);
}

.legacy-nav-overlay.is-open,
.legacy-mobile-nav.is-open {
  display: block;
  opacity: 1;
}

.legacy-mobile-nav.is-open {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.legacy-noscript-nav {
  display: none;
}

.legacy-noscript-message {
  position: fixed;
  top: 50%;
  right: 20px;
  left: 20px;
  z-index: 1070;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

.legacy-compact-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  color: var(--legacy-muted);
  font-size: 11px;
  text-align: center;
}

.legacy-compact-footer a {
  color: #45474c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 880px) {
  .legacy-header-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .legacy-desktop-nav {
    display: none;
  }

  .legacy-menu-button {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }

  .legacy-noscript-nav {
    position: fixed;
    top: 64px;
    top: calc(var(--legacy-header-height) + var(--legacy-safe-top));
    right: 0;
    left: 0;
    z-index: 1090;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-bottom: 1px solid var(--legacy-line);
    background: var(--legacy-paper);
  }

  .legacy-noscript-nav a {
    min-height: 38px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 0 10px;
    color: var(--legacy-ink);
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .legacy-header-inner {
    padding-right: 14px;
    padding-left: 14px;
  }

  .legacy-brand {
    font-size: 16px;
  }

  .legacy-github {
    display: none;
  }

  .legacy-menu-button {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
