/* 科技感增强样式 */

/* 增强科技感的加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0572f0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-left: 15px;
  font-size: 18px;
  color: #0572f0;
  font-weight: 500;
}

/* 科技感按钮增强 */
/* 科技感按钮增强已移至 enhancements.css */

/* 卡片悬停增强效果 */
.card,
.filter-section,
.questions-section,
.question-header,
.question-content-section,
.answer-section,
.related-section {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover,
.question-item:hover,
.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(5, 114, 240, 0.2);
}

/* 科技感输入框 */
.form-control {
  transition: all 0.3s ease;
  position: relative;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(5, 114, 240, 0.25);
}

/* 科技感导航栏 */
.navbar {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 科技感页脚 */
.footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 科技感动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

/* 科技感主题色 */
:root {
  --tech-primary: #0572f0;
  --tech-primary-dark: #045dc4;
  --tech-primary-light: #e6f2ff;
  --tech-secondary: #6c757d;
  --tech-success: #28a745;
  --tech-danger: #dc3545;
  --tech-warning: #ffc107;
  --tech-info: #17a2b8;
}

/* 科技感渐变背景 */
.tech-gradient {
  background: linear-gradient(135deg, #0572f0 0%, #045dc4 100%);
}

/* 科技感分隔线 */
.tech-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #0572f0, transparent);
  margin: 1rem 0;
}

/* 科技感输入框 */
.form-control {
  transition: all 0.3s ease;
  position: relative;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(5, 114, 240, 0.25);
}

/* 科技感导航栏 */
.navbar {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 科技感页脚 */
.footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 科技感动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

/* 科技感主题色 */
:root {
  --tech-primary: #0572f0;
  --tech-primary-dark: #045dc4;
  --tech-primary-light: #e6f2ff;
  --tech-secondary: #6c757d;
  --tech-success: #28a745;
  --tech-danger: #dc3545;
  --tech-warning: #ffc107;
  --tech-info: #17a2b8;
}

/* 科技感渐变背景 */
.tech-gradient {
  background: linear-gradient(135deg, #0572f0 0%, #045dc4 100%);
}

/* 科技感分隔线 */
.tech-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #0572f0, transparent);
  margin: 1rem 0;
}