:root {
  --nf-text: #243247;
  --nf-muted: #64748b;
  --nf-surface: rgba(255, 255, 255, 0.88);
  --nf-border: rgba(255, 255, 255, 0.72);
}
body.dark-mode {
  --nf-text: #e5edf8;
  --nf-muted: #b4c1d3;
  --nf-surface: rgba(24, 33, 48, 0.9);
  --nf-border: rgba(148, 163, 184, 0.25);
}
.not-found-page {
  box-sizing: border-box;
  min-height: 100svh;
  margin: 0;
  color: var(--nf-text);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  isolation: isolate;
}
.not-found-page::before,
.not-found-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.not-found-page::before {
  background:
    url("https://t.alcy.cc/fj") center/cover,
    url("/img/index/bg.png") center/cover;
}
.not-found-page::after {
  z-index: -1;
  background: rgba(230, 237, 247, 0.42);
}
.not-found-page.dark-mode::after {
  background: rgba(6, 13, 24, 0.7);
}
.not-found-header {
  padding: 22px 28px;
}
.not-found-brand {
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
}
.not-found-main {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px 16px 72px;
}
.not-found-card {
  box-sizing: border-box;
  width: min(620px, calc(100% - 32px));
  margin: 24px auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--nf-border);
  border-radius: 24px;
  background: var(--panel-bg, var(--nf-surface));
  color: var(--text-main, var(--nf-text));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  animation: notFoundEnter 0.5s ease both;
}
.not-found-code {
  margin: 0 0 20px;
  color: #0078d4;
  font:
    800 clamp(5rem, 13vw, 8rem) / 1 "Segoe UI",
    sans-serif;
  letter-spacing: -0.06em;
}
body.dark-mode .not-found-code {
  color: #60b7f5;
}
.not-found-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.5;
}
.not-found-description {
  max-width: 30em;
  margin: 0 auto;
  color: var(--text-desc, var(--nf-muted));
  font-size: 0.95rem;
  line-height: 1.85;
}
.not-found-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  margin-top: 28px;
  padding: 11px 22px;
  border: 1px solid #0078d4;
  border-radius: 12px;
  background: #0078d4;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.not-found-home:hover {
  background: #1687df;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.22);
}
.not-found-home:focus-visible,
.not-found-brand:focus-visible {
  outline: 3px solid #60b7f5;
  outline-offset: 4px;
}
@keyframes notFoundEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 768px) {
  .not-found-card {
    padding: 30px 22px;
    border-radius: 18px;
  }
  .not-found-description {
    font-size: 0.9rem;
  }
  .not-found-header {
    padding: 18px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .not-found-card {
    animation: none;
  }
  .not-found-home {
    transition: none;
  }
}
