/* 404页面专用样式 */

.error-404 {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

/* 404主要内容区域 */
.error-hero {
  margin-bottom: 60px;
}

.error-animation {
  margin-bottom: 40px;
  position: relative;
}

.error-number {
  font-size: 120px;
  font-weight: 900;
  color: var(--pri);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, var(--pri), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.error-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.error-description {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 操作按钮 */
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 160px;
  justify-content: center;
}

.error-actions .btn.primary {
  background: var(--pri);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.error-actions .btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.error-actions .btn.secondary {
  background: white;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-actions .btn.secondary:hover {
  border-color: var(--pri);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: 18px;
}

/* 搜索区域 */
.error-search {
  margin-bottom: 60px;
}

.search-container {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

.search-container:focus-within {
  border-color: var(--pri);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.search-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  padding: 16px 20px;
  background: var(--pri);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #1d4ed8;
}

/* 建议页面区域 */
.error-suggestions {
  margin-bottom: 60px;
}

.suggestions-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggestion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--pri);
}

.suggestion-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
}

.suggestion-content {
  flex: 1;
  text-align: left;
}

.suggestion-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}

.suggestion-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* 帮助信息 */
.error-help {
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.help-text {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .error-404 {
    padding: 20px 16px;
  }
  
  .error-number {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 24px;
  }
  
  .error-subtitle {
    font-size: 18px;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .suggestions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .suggestion-card {
    padding: 20px;
  }
  
  .suggestion-icon {
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .error-number {
    font-size: 60px;
  }
  
  .error-title {
    font-size: 20px;
  }
  
  .error-subtitle {
    font-size: 16px;
  }
  
  .error-description {
    font-size: 14px;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .suggestion-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .suggestion-content {
    text-align: center;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-hero,
.error-search,
.error-suggestions,
.error-help {
  animation: fadeInUp 0.6s ease-out;
}

.error-search {
  animation-delay: 0.2s;
}

.error-suggestions {
  animation-delay: 0.4s;
}

.error-help {
  animation-delay: 0.6s;
}