:root {
  --bg: #fff7fb;
  --card: #fff;
  --primary: #e83e8c;
  --primary-dark: #bf1e69;
  --text: #3a2330;
  --muted: #8a6072;
  --border: #f5c3d6;
  --danger: #d64545;
  --success: #3d8b5a;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
}

.app-confirm-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
  background: rgba(173, 20, 87, 0.32);
  backdrop-filter: blur(5px);
}

.app-confirm-mask.open {
  display: flex;
}

.app-confirm-dialog {
  position: relative;
  width: min(360px, 100%);
  overflow: hidden;
  border: 1px solid rgba(232, 62, 140, 0.25);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(216, 27, 96, 0.22);
  animation: appConfirmIn 0.18s ease-out;
}

.app-confirm-decor {
  height: 7px;
  background: linear-gradient(90deg, #ad1457, #ff9fc8, #e83e8c);
}

.app-confirm-dialog h3 {
  padding: 22px 22px 8px;
  color: #ad1457;
  font-size: 20px;
  line-height: 1.3;
}

.app-confirm-message {
  padding: 0 22px 20px;
  color: #5f6470;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.app-confirm-actions {
  display: flex;
  gap: 12px;
  padding: 16px 22px 22px;
}

.app-confirm-actions button {
  flex: 1;
  min-height: 44px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
}

.app-confirm-cancel {
  border: 1px solid #e8e4dc;
  background: #f5f3ef;
  color: #5f6470;
}

.app-confirm-ok {
  background: linear-gradient(135deg, #e83e8c, #bf1e69);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 62, 140, 0.28);
}

.app-confirm-ok.danger {
  background: linear-gradient(135deg, #d64545, #9f2525);
}

@keyframes appConfirmIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
