/* 遮罩层 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

/* 弹窗主体 */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: none;
}

/* 标题栏（可拖动区域） */
.popup-header {
  padding: 16px;
  background: #3498db;
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 关闭按钮 */
.popup-close {
  font-size: 20px;
  cursor: pointer;
}

/* 内容区域 */
.popup-body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

/* 按钮容器 */
.popup-footer {
  padding: 16px;
  text-align: right;
  border-top: 1px solid #eee;
}

.popup-btn {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-confirm {
  background: #3498db;
  color: white;
}

.popup-cancel {
  background: #f0f0f0;
}