/* Modal - 弹窗样式 */

/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: var(--spacing-lg);
  animation: modal-fade-in 0.2s ease-out forwards;
}

/* 弹窗内容 */
.modal-content {
  background-color: #1f2230;
  border-radius: var(--radius-xl);
  border: 1px solid #2a2c36;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modal-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 弹窗头部 */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid #2a2c36;
  background-color: rgba(31, 34, 48, 0.5);
}

.modal-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: white;
}

/* 弹窗主体 */
.modal-body {
  padding: var(--spacing-lg);
}

/* 弹窗底部 */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-top: 1px solid #2a2c36;
  background-color: rgba(31, 34, 48, 0.5);
}

/* 弹窗动画 */
@keyframes modal-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes modal-scale-in {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modal-slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
