/* 错误页面基础样式 */
.error-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 错误详情框样式 */
#errorDetails {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

#errorDetails.show {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 装饰元素样式 */
.red-vertical-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #FF5252, #FF1744);
  border-radius: 60px !important;
  border-top-left-radius: 60px !important;
  border-bottom-left-radius: 60px !important;
}

/* 覆盖Tailwind的.rounded-full类 */
.rounded-full {
  border-radius: 60px !important;
}

/* 错误内容样式 */
.error-content p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.error-content .font-medium {
  color: #4B5563;
}

/* 交互效果 */
.hover-shadow-glow:hover {
  box-shadow: 0 0 15px rgba(22, 93, 255, 0.4);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 动画效果 */
@keyframes pulse {
  0%, 100% { opacity: 1 }
  50% { opacity: 0.5 }
}

@keyframes float {
  0% { transform: translateY(0) }
  50% { transform: translateY(-10px) }
  100% { transform: translateY(0) }
}

@keyframes wrench {
  0% { transform: rotate(-12deg) }
  8% { transform: rotate(12deg) }
  10% { transform: rotate(24deg) }
  18% { transform: rotate(-24deg) }
  20% { transform: rotate(-24deg) }
  28% { transform: rotate(24deg) }
  30% { transform: rotate(24deg) }
  38% { transform: rotate(-24deg) }
  40% { transform: rotate(-24deg) }
  48% { transform: rotate(24deg) }
  50% { transform: rotate(24deg) }
  58% { transform: rotate(-24deg) }
  60% { transform: rotate(-24deg) }
  68% { transform: rotate(24deg) }
  75%, 100% { transform: rotate(0) }
}

@keyframes progress {
  0% { width: 0% }
  100% { width: 100% }
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-wrench {
  animation: wrench 2.5s ease infinite;
  transform-origin: center center;
}

.progress-bar {
  background: linear-gradient(90deg, #165DFF 0%, #36BFFA 100%);
  animation: progress 30s linear forwards;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .red-vertical-line {
    width: 3px;
  }
  
  .error-container {
    padding: 1rem;
  }
}


/* 背景装饰元素 */
.error-background-decorations {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

.error-background-circle {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  opacity: 0.05;
}

.error-background-circle.right-top {
  right: -40px;
  top: -40px;
  width: 256px;
  height: 256px;
  background-color: var(--primary);
}

.error-background-circle.left-bottom {
  left: -80px;
  bottom: 40px;
  width: 320px;
  height: 320px;
  background-color: var(--secondary);
}

/* 错误图标容器 */
.error-icon-container {
  position: relative;
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
}

.error-icon-glow {
  position: absolute;
  inset: -0.125rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 9999px;
  filter: blur(4px);
  opacity: 0.2;
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.error-icon {
  width: 224px;
  height: 224px;
  margin-left: auto;
  margin-right: auto;
  animation: float 6s ease-in-out infinite;
}

/* 操作按钮容器 */
.error-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.error-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.error-action-button:hover {
  transform: translateY(-4px);
}

.error-action-button.primary {
  background-color: var(--primary);
  color: white;
}

.error-action-button.primary:hover {
  background-color: color-mix(in srgb, var(--primary), black 10%);
  box-shadow: 0 0 15px rgba(22, 93, 255, 0.4);
}

.error-action-button.secondary {
  background-color: white;
  color: var(--primary);
  border: 1px solid #e5e7eb;
}

.error-action-button.secondary:hover {
  background-color: #f9fafb;
}

.error-action-button.accent {
  background-color: var(--accent);
  color: white;
}

.error-action-button.accent:hover {
  background-color: color-mix(in srgb, var(--accent), black 10%);
}

.error-action-button i {
  margin-right: 0.5rem;
}