/* ====================<notFound.css>==================== */

.notfound {
  width: 100%;
  flex: 1;
  min-height: 400px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.error {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--g-color);
  margin-bottom: 16px;
  animation: error-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: var(--g-text);
  margin: 0 0 12px;
}

.text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--g-text);
  opacity: 0.65;
  margin: 0 0 32px;
}

.back-index {
  display: inline-block;

  padding: 10px 28px;
  border: 2px solid var(--g-color);
  border-radius: 50px;

  font-size: 15px;
  color: var(--g-color);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-index:hover {
  background: var(--g-color);
  color: var(--g-on-color);
  transform: translateY(-2px);
}

/* ---------- 推荐内容 ---------- */
.notfound-more {
  width: 100%;
  max-width: 420px;
  margin-top: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.notfound-hint {
  margin: 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--g-text) 55%, transparent);
}

.notfound-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.notfound-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
}

.notfound-list a {
  font-size: 14px;
  color: var(--g-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.notfound-list a:hover {
  color: var(--g-color);
}

.notfound-list time {
  flex-shrink: 0;
  font-size: 12px;
  color: color-mix(in srgb, var(--g-text) 45%, transparent);
}

.notfound-links {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-sm) 0 0;
}

.notfound-links a {
  font-size: 13px;
  color: var(--g-color);
  text-decoration: none;
}

.notfound-links a:hover {
  text-decoration: underline;
}

/* ====================<响应式>==================== */

@media (max-width: 768px) {
  /* [响应式-sm] 手机：缩小标题层级与 404 字号 */
  .error {
    font-size: 90px;
  }
  .title {
    font-size: 20px;
  }
  .text {
    font-size: 14px;
  }
}
