/**
 * 自定义头像插件样式
 * 包含移动端适配、上传遮罩、进度弹窗样式
 */
.cua-avatar-wrapper {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.cua-avatar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cua-avatar-preview {
    flex-shrink: 0;
}
.cua-avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.cua-avatar-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}
.cua-upload-area {
    flex: 1;
}
.cua-nickname {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}
#cua-message {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.cua-success {
    color: #46b450;
}
.cua-error {
    color: #dc3232;
}
.cua-loading {
    color: #0073aa;
}

/* 上传全屏遮罩、进度弹窗 */
.cua-upload-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-box {
    background: #ffffff;
    padding: 16px 26px;
    border-radius: 8px;
    font-size: 15px;
}
.progress-text {
    color: #0073aa;
    font-weight: bold;
    margin-left: 6px;
}

/* 手机端自适应 */
@media (max-width: 768px) {
    .cua-avatar-container {
        flex-direction: column;
        text-align: center;
    }
    .cua-avatar-img {
        width: 120px;
        height: 120px;
    }
    .cua-upload-area {
        text-align: center;
    }
}