/* ==========================================================================
   404 错误页 - 独立原创样式
   布局：居中舞台 + 漂浮代码片段装饰 + 大号 404 数字
   ========================================================================== */

.error-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 126, 222, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 123, 169, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(127, 179, 232, 0.06) 0%, transparent 55%),
    var(--cream);
  position: relative;
  overflow: hidden;
}

.error-stage {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 漂浮代码片段 */
.float-code {
  position: absolute;
  font-family: var(--font-en), monospace;
  font-size: 13px;
  color: var(--purple-soft);
  opacity: 0.55;
  letter-spacing: 0.5px;
  animation: floatY 5s ease-in-out infinite;
}

.fc1 { top: 8%; left: 6%; animation-delay: 0s; }
.fc2 { top: 18%; right: 8%; animation-delay: 1.2s; color: var(--pink-soft); }
.fc3 { bottom: 22%; left: 10%; animation-delay: 2.1s; color: var(--blue-soft); }
.fc4 { bottom: 12%; right: 12%; animation-delay: 0.6s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* 大号 404 */
.error-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.en4 {
  font-size: 140px;
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.en0 {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 标题与描述 */
.error-title {
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.error-title .accent {
  color: var(--purple);
  position: relative;
}

.error-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 10px;
  background: var(--pink-soft);
  z-index: -1;
  border-radius: 4px;
}

.error-desc {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--body);
  max-width: 540px;
  margin: 0 auto 36px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* 快速入口 */
.error-quick {
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}

.eq-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-en);
  margin-bottom: 14px;
}

.eq-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eq-links a {
  font-size: 14px;
  color: var(--purple-deep);
  font-weight: 500;
  transition: color 0.28s ease;
}

.eq-links a:hover {
  color: var(--pink-deep);
}

.eq-links .dot {
  color: var(--purple-soft);
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 600px) {
  .en4 {
    font-size: 92px;
  }
  .en0 svg {
    width: 84px;
    height: 84px;
  }
  .error-title {
    font-size: 26px;
  }
  .error-desc {
    font-size: 14.5px;
  }
  .float-code {
    font-size: 11px;
  }
}
