/* bn-lead.css —— 大项目定制 / 人工干预 弹窗样式（独立前缀 bnl-，不影响现有页面） */

.bnl-mask {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(8, 14, 28, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: bnlFade .18s ease;
}
.bnl-mask[hidden] { display: none; }
@keyframes bnlFade { from { opacity: 0 } to { opacity: 1 } }

.bnl-box {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(4, 12, 30, .28);
  animation: bnlUp .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes bnlUp { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }

.bnl-x {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .05); color: #555;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.bnl-x:hover { background: rgba(0, 0, 0, .1); color: #111; }

.bnl-head { padding: 24px 24px 12px; }
.bnl-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  background: #eaf2ff; color: #1f6bff;
}
.bnl-tag.want { background: #fff2e6; color: #d97706; }
.bnl-head h3 { margin: 10px 0 6px; font-size: 22px; line-height: 1.3; color: #101828; }
.bnl-head p  { margin: 0; font-size: 14px; color: #667085; line-height: 1.6; }

.bnl-body { padding: 0 24px 24px; }

/* 负责人卡片 */
.bnl-owner {
  border: 1px solid #e6ebf4; border-radius: 12px;
  background: linear-gradient(180deg, #f8faff, #fff);
  padding: 14px 16px; margin-bottom: 16px;
}
.bnl-owner-hd {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; color: #344054; margin-bottom: 10px;
}
.bnl-owner-hd b { font-size: 14px; color: #101828; }
.bnl-owner-hd span { color: #98a2b3; }
.bnl-owner-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px; font-size: 14px;
}
.bnl-owner-grid .k { color: #98a2b3; margin-right: 8px; }
.bnl-owner-grid .v { color: #101828; }
.bnl-owner-grid .v a { color: #1f6bff; text-decoration: none; font-weight: 600; }
.bnl-owner-grid .v a:hover { text-decoration: underline; }
.bnl-owner-grid .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.bnl-owner-tip { margin: 10px 0 0; font-size: 12px; color: #98a2b3; line-height: 1.5; }
.bnl-owner-loading, .bnl-owner-empty { font-size: 13px; color: #98a2b3; }
.bnl-qr { margin-top: 10px; }
.bnl-qr img { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; border: 1px solid #eef2f8; }

/* 表单 */
.bnl-form { display: block; }
.bnl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bnl-form label { display: block; font-size: 13px; color: #344054; }
.bnl-form label > span { display: block; margin-bottom: 6px; }
.bnl-form .req { color: #e5484d; margin-left: 2px; }
.bnl-form input, .bnl-form select, .bnl-form textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid #d8dfeb; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: #101828; background: #fff;
  font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bnl-form input:focus, .bnl-form select:focus, .bnl-form textarea:focus {
  border-color: #1f6bff; box-shadow: 0 0 0 3px rgba(31, 107, 255, .12);
}
.bnl-form textarea { resize: vertical; min-height: 76px; }
.bnl-full { margin-bottom: 12px; }

.bnl-msg { font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.bnl-msg.err { color: #e5484d; }
.bnl-msg.ok { color: #12a150; }

.bnl-actions { display: flex; gap: 10px; justify-content: flex-end; }
.bnl-btn {
  border: 0; border-radius: 10px; padding: 11px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.bnl-btn:active { transform: translateY(1px); }
.bnl-btn.primary { background: #1f6bff; color: #fff; box-shadow: 0 6px 16px rgba(31, 107, 255, .28); }
.bnl-btn.primary:hover { background: #1558d6; }
.bnl-btn.primary:disabled { background: #9bbcf7; box-shadow: none; cursor: default; }
.bnl-btn.ghost { background: #f2f4f8; color: #475467; }
.bnl-btn.ghost:hover { background: #e7eaf1; }

.bnl-tip { margin: 10px 0 0; font-size: 12px; color: #98a2b3; line-height: 1.5; }

/* 成功态 */
.bnl-done { text-align: center; padding: 8px 0 4px; }
.bnl-check {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%; background: #e8f8ee; color: #12a150;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.bnl-done h4 { margin: 0 0 8px; font-size: 18px; color: #101828; }
.bnl-done p { margin: 0 0 18px; font-size: 14px; color: #667085; line-height: 1.6; }

/* 深色页面兼容 */
.dark .bnl-box, body.dark .bnl-box { background: #171c26; }
.dark .bnl-head h3, body.dark .bnl-head h3 { color: #f2f4f8; }
.dark .bnl-owner, body.dark .bnl-owner { background: #1d2430; border-color: #2a3242; }

@media (max-width: 560px) {
  .bnl-box { border-radius: 14px; }
  .bnl-head { padding: 20px 18px 10px; }
  .bnl-body { padding: 0 18px 20px; }
  .bnl-row { grid-template-columns: 1fr; }
  .bnl-owner-grid { grid-template-columns: 1fr; }
  .bnl-actions { flex-direction: column-reverse; }
  .bnl-btn { width: 100%; }
}
