/* 共用：弹窗与提示（定位在应用根节点内） */
.bx-root { position: relative; }
.bx-mask { position: absolute; inset: 0; background: rgba(15, 23, 30, .42); display: flex; align-items: flex-start; justify-content: center; z-index: 900; padding: 8vh 16px 16px; overflow: auto; animation: bxFade .15s ease-out; }
.bx-fixed .bx-mask { position: fixed; }
.bx-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 440px; box-shadow: 0 18px 48px rgba(15, 23, 30, .22); display: flex; flex-direction: column; max-height: 84vh; }
.bx-modal.bx-wide { max-width: 760px; }
.bx-modal-hd { padding: 16px 20px 8px; font-size: 16px; font-weight: 600; color: #1d2329; }
.bx-modal-bd { padding: 6px 20px 8px; overflow: auto; }
.bx-modal-ft { padding: 12px 20px 16px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #f0f2f4; }
.bx-field { margin: 10px 0 12px; }
.bx-label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.bx-req { color: #d03b3b; font-style: normal; }
.bx-hint { font-size: 12px; color: #8a9099; margin-top: 4px; line-height: 1.5; }
.bx-field input[type=text], .bx-field input[type=number], .bx-field input[type=password], .bx-field input:not([type]), .bx-field select, .bx-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #d9dee3; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; color: #1d2329; background: #fff; outline: none; }
.bx-field textarea { resize: vertical; line-height: 1.6; }
.bx-field input:focus, .bx-field select:focus, .bx-field textarea:focus { border-color: #2C6B4C; box-shadow: 0 0 0 3px rgba(44, 107, 76, .12); }
.bx-options { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bx-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #1d2329; cursor: pointer; }
.bx-check input { width: 16px; height: 16px; accent-color: #2C6B4C; }
.bx-err { color: #b42318; background: #fef3f2; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 4px; }
.bx-confirm { margin: 6px 0 4px; line-height: 1.7; color: #374151; }
.bx-btn { font: inherit; font-size: 14px; border-radius: 8px; padding: 8px 16px; border: 1px solid transparent; cursor: pointer; line-height: 1.3; min-height: 36px; }
.bx-btn:disabled { opacity: .55; cursor: not-allowed; }
.bx-primary { background: #2C6B4C; color: #fff; }
.bx-primary:hover:not(:disabled) { background: #19665a; }
.bx-danger { background: #d03b3b; color: #fff; }
.bx-ghost { background: #fff; color: #374151; border-color: #d9dee3; }
.bx-ghost:hover { background: #f6f7f8; }
.bx-toast { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -8px); background: rgba(17, 24, 39, .9); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 1000; opacity: 0; transition: all .2s; max-width: 80%; text-align: center; line-height: 1.5; pointer-events: none; }
.bx-fixed .bx-toast { position: fixed; }
.bx-toast.bx-show { opacity: 1; transform: translate(-50%, 0); }
.bx-toast-error { background: rgba(180, 35, 24, .94); }
.bx-toast-ok { background: rgba(21, 101, 82, .94); }
@keyframes bxFade { from { background: rgba(15, 23, 30, 0); } }
