0.15);
  animation: scaleIn 0.25s ease;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.confirm-btn {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
</style>

<script>
function showDialog() {
  const dialog = document.getElementById('myDialog');
  dialog.showModal(); // 使用HTML5原生dialog A