/* 
 * popup.css - 弹窗样式
 * 包含：弹窗遮罩、弹窗容器、弹窗动画
 */

/* ========== 弹窗遮罩 ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.popup-overlay[style*="flex"] {
  display: flex !important;
}

/* ========== 弹窗容器 ========== */
.popup-message {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: popupIn var(--transition-normal);
  position: relative;
}

/* ========== 弹窗内容 ========== */
.popup-content {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ========== 弹窗按钮 ========== */
.popup-confirm {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 25px;
}

.popup-confirm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== 关闭按钮 ========== */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.popup-close:hover {
  background-color: #f0f0f0;
  color: var(--text-primary);
}

/* ========== 弹窗状态样式 ========== */
.popup-message.correct .popup-content {
  color: var(--success-color);
}

.popup-message.wrong .popup-content {
  color: var(--error-color);
}