/* 全局二次确认 / 阻塞提示（与 app-toast 视觉体系一致） */
.app-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  animation: app-confirm-fade-in 0.18s ease-out;
}

@keyframes app-confirm-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-confirm-dialog {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 40rem);
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.12),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: app-confirm-pop 0.2s ease-out;
}

@keyframes app-confirm-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.app-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-confirm-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.app-confirm-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.25rem -0.25rem 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.app-confirm-close:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.04);
}

.app-confirm-body {
  padding: 1rem;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.app-confirm-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.app-confirm-banner--danger {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffccc7;
}

.app-confirm-banner--info {
  background: #e6f7ff;
  color: #096dd9;
  border: 1px solid #91d5ff;
}

.app-confirm-banner--blocked {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffccc7;
}

.app-confirm-banner-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
}

.app-confirm-sep {
  margin: 0.875rem 0;
  border: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.app-confirm-question {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.88);
  line-height: 1.55;
}

.app-confirm-details {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.app-confirm-detail-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.app-confirm-detail-label {
  color: rgba(0, 0, 0, 0.45);
}

.app-confirm-detail-value {
  color: rgba(0, 0, 0, 0.88);
  word-break: break-word;
}

.app-confirm-generic {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
  white-space: pre-wrap;
}

.app-confirm-list-title {
  margin: 0.75rem 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.app-confirm-list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.75);
}

.app-confirm-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.45);
}

.app-confirm-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.app-confirm-footer--single {
  justify-content: center;
}

.app-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-confirm-btn-cancel {
  background: #fff;
  border-color: #d9d9d9;
  color: rgba(0, 0, 0, 0.88);
}

.app-confirm-btn-cancel:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.app-confirm-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

.app-confirm-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

.app-confirm-btn-danger {
  background: #ff4d4f;
  border-color: #ff4d4f;
  color: #fff;
}

.app-confirm-btn-danger:hover {
  background: #ff7875;
  border-color: #ff7875;
}

.app-confirm-field-label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
}

.app-confirm-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.625rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.88);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-confirm-input:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
}
