body {
  font-family: "Noto Sans SC", "HarmonyOS Sans", "HarmonyOS Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: #333;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 126.31px;
  height: 48px;
  object-fit: contain;
}

/* Main Content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-code {
  font-size: clamp(120px, 20vw, 200px);
  font-weight: 700;
  color: #333333;
  line-height: 1;
  letter-spacing: 8px;
  user-select: none;
  -webkit-text-stroke: 1px #333;
  text-stroke: 1px #333;
  paint-order: stroke fill;
}

.error-message {
  margin-top: 24px;
  font-size: 18px;
  color: #666;
  font-weight: 400;
}

.error-desc {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
}

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

.btn {
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #ffffff;
  color: #333;
  border: 1px solid #333;
  border-radius: 9999px;
}
.btn-primary:hover,
.btn-primary:active {
  background: #E60012;
  border-color: #E60012;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,0,18,0.25);
}

/* Footer - PC端居中 */
.footer {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #999;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: #666; }

.footer img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

/* H5 底部版权号分三行，居左 */
@media (max-width: 640px) {
  .header { padding: 16px 20px; justify-content: center; }
  .footer {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }
  .actions { flex-direction: column; width: 100%; max-width: 280px; }
  .btn { justify-content: center; }
}
