.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 72px;
  min-height: 420px;
}

.error-page-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  background: #f5efe2;
  border: 1px solid #ebe2d0;
  border-radius: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page-card::before,
.error-page-card::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(121, 85, 72, 0.2);
  pointer-events: none;
}

.error-page-card::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.error-page-card::after {
  right: 12px;
  bottom: 12px;
  border-left: none;
  border-top: none;
}

.error-page-code {
  font-family: "SiYuanSongTi", serif;
  font-size: 104px;
  line-height: 1;
  color: rgba(121, 85, 72, 0.16);
  letter-spacing: 10px;
  margin: 0 0 24px;
  user-select: none;
}

.error-page-title {
  font-family: "SiYuanSongTi", serif;
  font-size: 26px;
  color: #5d4037;
  font-weight: normal;
  margin: 0 0 16px;
  line-height: 1.5;
}

.error-page-desc {
  margin: 0 auto 32px;
  font-size: 14px;
  line-height: 1.6;
  color: #857a7a;
  max-width: 500px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.error-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 2px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #c4b5a0;
  background: #fff;
  color: #5d4037;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.error-page-btn:hover {
  color: #fff;
  background: #936857;
  border-color: #936857;
}

.error-page-btn.primary {
  background: #795548;
  border-color: #795548;
  color: #fff;
}

.error-page-btn.primary:hover {
  background: #5d4037;
  border-color: #5d4037;
}

.error-page-tip {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.error-page-tip a {
  color: #795548;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.error-page-tip a:hover {
  color: #5d4037;
}

@media (max-width: 800px) {
  .error-page {
    padding: 16px 0 48px;
    min-height: 360px;
  }

  .error-page-card {
    padding: 40px 20px 28px;
  }

  .error-page-code {
    font-size: 72px;
    letter-spacing: 6px;
    margin-bottom: 20px;
  }

  .error-page-title {
    font-size: 20px;
  }

  .error-page-desc {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .error-page-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .error-page-btn {
    min-height: 44px;
    width: 100%;
  }
}
