/* 版权所有 © 八艾云 (www.8a.hk) 保留所有权利 */
/* bycDialog — Element Plus ElMessageBox 范式 (vanilla, 无 Vue 依赖) */
.byc-dlg-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft Yahei", sans-serif;
}
.byc-dlg-mask.show { opacity: 1; }
.byc-dlg-mask.show .byc-dlg { transform: scale(1); opacity: 1; }

.byc-dlg {
  width: 420px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 32px 4px rgba(0, 0, 0, 0.04),
              0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header — 浅灰 bg #f5f5f5 (跟用户截图一致) */
.byc-dlg-header {
  padding: 16px 20px;
  background-color: #f5f5f5;
  position: relative;
}
.byc-dlg-title {
  font-size: 18px;
  font-weight: 700;
  color: #303133;
  line-height: 1.2;
}
.byc-dlg-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 24px; height: 24px;
  background: none; border: none; cursor: pointer;
  color: #909399;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
  padding: 0;
}
.byc-dlg-close:hover { color: #00aaff; }
.byc-dlg-close svg { width: 20px; height: 20px; fill: currentColor; }

/* Body — 24 20 padding + icon 跟文字 vertical center */
.byc-dlg-body {
  padding: 24px 20px;
  display: flex; gap: 12px; align-items: center;
}
.byc-dlg-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
}
.byc-dlg-icon svg { width: 100%; height: 100%; display: block; }
.byc-dlg-content {
  flex: 1;
  color: #606266;
}
.byc-dlg-msg {
  font-size: 14px;
  line-height: 24px;
  color: #606266;
  word-break: break-word;
}
.byc-dlg-sub {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #909399;
  line-height: 1.6;
}
.byc-dlg-input {
  display: block; width: 100%;
  margin-top: 12px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #606266;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}
.byc-dlg-input:focus { border-color: #00aaff; }

/* Footer — 5 15 15 + 按钮右对齐 */
.byc-dlg-footer {
  padding: 5px 15px 15px;
  text-align: right;
}
.byc-dlg-btn {
  padding: 8px 20px;
  min-height: 32px;
  background: #fff;
  color: #606266;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
  line-height: 1;
}
.byc-dlg-btn + .byc-dlg-btn { margin-left: 10px; }
.byc-dlg-btn:hover { color: #00aaff; border-color: #b3e0ff; background: #ecf5ff; }
.byc-dlg-btn:active { color: #0089cc; border-color: #0089cc; }
.byc-dlg-btn.primary {
  background: #00aaff;
  color: #fff;
  border-color: #00aaff;
}
.byc-dlg-btn.primary:hover { background: #26b7ff; border-color: #26b7ff; color: #fff; }
.byc-dlg-btn.primary:active { background: #0089cc; border-color: #0089cc; }
.byc-dlg-btn.danger {
  background: #f56c6c;
  color: #fff;
  border-color: #f56c6c;
}
.byc-dlg-btn.danger:hover { background: #f78989; border-color: #f78989; color: #fff; }

@media (max-width: 768px) {
  .byc-dlg { width: 92vw; }
  .byc-dlg-body { padding: 20px 16px; gap: 10px; }
  .byc-dlg-icon { width: 24px; height: 24px; }
}
