/**
 * 总后台 · 与代理弹层结构一致，配色对齐 admin layout（浅色 + 蓝主色）
 */
.admin-ui-modal-root {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.admin-ui-modal-root.is-open {
    display: flex;
}
.admin-ui-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(5px);
}
.admin-ui-modal {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    max-height: min(90vh, 560px);
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(15, 23, 42, 0.18);
    animation: adminUiModalIn 0.22s ease-out;
}
@keyframes adminUiModalIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.admin-ui-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
}
.admin-ui-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.02em;
}
.admin-ui-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.admin-ui-modal-close:hover {
    background: #fee2e2;
    color: #b91c1c;
}
.admin-ui-modal-body {
    padding: 1rem 1.1rem 0.85rem;
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.55;
}
.admin-ui-modal-text {
    margin: 0;
    word-break: break-word;
}
.admin-ui-modal-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 0 0 11px 11px;
}
.admin-ui-modal-btn {
    min-width: 5rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
}
.admin-ui-modal-btn:hover {
    background: #f9fafb;
}
.admin-ui-modal-btn--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.admin-ui-modal-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
