/* 基础覆盖层样式 */
.x0p-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(180, 180, 180, .8);
    z-index: 99998;
    animation: x0pfadeIn .5s ease;
}

/* 弹窗基本样式 */
.x0p {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中所有内容 */
    justify-content: center; /* 垂直居中所有内容 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    width: auto; /* 自适应内容宽度 */
    min-width: 300px; /* 最小宽度 */
    border-radius: 4px; /* 圆角 */
    animation: x0ppop .45s ease;
    max-width: 90%; /* 限制最大宽度 */
}

/* 动画效果 */
@keyframes x0pfadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes x0ppop {
    from {
        transform: scale(0.9) translate(-50%, -50%);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) translate(-50%, -50%);
        opacity: 0.7;
    }
    to {
        transform: scale(1) translate(-50%, -50%);
        opacity: 1;
    }
}

.x0p .title {
    font-size: 20px;
    color: #303133;
    margin-bottom: 10px;
    font-weight: bold; /* 加粗标题字体 */
    text-align: center;
    width: 100%;
}

.x0p .text {
    font-size: 16px;
    color: #606266;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis; /* 添加省略号 */
    white-space: nowrap; /* 防止文本换行 */
    max-width: 100%; /* 限制文本宽度 */
}

/* 按钮容器 */
#x0p-buttons {
    display: flex;
    justify-content: flex-end;
}

.x0p .button {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #409EFF;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 60px !important;
    text-align: center;
    max-width: 120px; /* 按钮最大宽度 */
}

.x0p .button:hover {
    background-color: #2979FF; /* 悬停颜色加深 */
}

.x0p .button-cancel {
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.x0p .button-cancel:hover {
    background-color: #f2f6fc;
}

