/* 404 页面样式 */

.notfound-wrap {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 840px;
  max-width: 90vw;
  display: flex;
  align-items: center;
  text-align: left;
}

.notfound-img {
  width: 400px;
  height: auto;
  flex-shrink: 0;
  animation:
    notfoundFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
    notfoundFloat 3.5s ease-in-out 0.9s infinite;
}

.notfound-content {
  flex: 1;
  min-width: 0;
}

.notfound-code {
  font-size: 52px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.15;
  animation: notfoundFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.notfound-title {
  font-size: 28px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px 0;
  animation: notfoundFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.notfound-desc {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 32px 0;
  animation: notfoundFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.notfound-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.notfound-actions > * {
  animation: notfoundFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

@keyframes notfoundFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notfoundFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ─── 暗色模式 ─────────────────────────────────── */
.dark .notfound-code {
  color: #3b82f6;
  opacity: 0.35;
}
.dark .notfound-title {
  color: #e8e8e8;
}
.dark .notfound-desc {
  color: #a3a3a3;
}
