/* 通知模块样式 */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.notification {
  pointer-events: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid;
}

.notification-show {
  opacity: 1;
  transform: translateX(0);
}

.notification-hide {
  opacity: 0;
  transform: translateX(400px);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-message-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  word-wrap: break-word;
}

.notification-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

/* 进度条样式 */
.notification-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.notification-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.notification-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.notification-progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* 非成功类型的进度条样式 */
.notification-info .notification-progress-bar,
.notification-warning .notification-progress-bar {
  background: #ffffff; /* 白色背景 */
}

.notification-info .notification-progress-fill,
.notification-warning .notification-progress-fill {
  background: #60a5fa; /* 浅蓝色进度条 */
}

.notification-info .notification-progress-text,
.notification-warning .notification-progress-text {
  color: #1f2937;
}

.notification-error .notification-progress-bar {
  background: rgba(255, 255, 255, 0.3);
}

.notification-error .notification-progress-fill {
  background: rgba(255, 255, 255, 0.9);
}

.notification-error .notification-progress-text {
  color: rgba(255, 255, 255, 0.9);
}

/* 通知类型样式 */
.notification-success {
  border-left-color: #10b981;
  background: #10b981;
}

.notification-success .notification-message {
  color: #fff;
}

.notification-success .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-success .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-success .notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-error {
  border-left-color: #ef4444;
  background: #ef4444;
}

.notification-error .notification-message {
  color: #fff;
}

.notification-error .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-error .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-error .notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-warning {
  border-left-color: #f59e0b;
  background: #f59e0b;
}

.notification-warning .notification-message {
  color: #fff;
}

.notification-warning .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-warning .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-warning .notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-info {
  border-left-color: #2563eb;
  background: #2563eb;
}

.notification-info .notification-message {
  color: #fff;
}

.notification-info .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.notification-info .notification-close {
  color: rgba(255, 255, 255, 0.8);
}

.notification-info .notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

