/* loading 基础遮罩层 */
.cpt-loading-mask {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000001;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* 默认透明，由 JS 控制 */
    backdrop-filter: blur(2px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(2px);
    user-select: none;
    -webkit-user-select: none;
}

.cpt-loading-mask.fixed {
    position: fixed;
}

/* 中间卡片容器 */
.div-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease;
    max-width: 90%;
}

/* 横向布局修饰 */
.cpt-loading-mask.row .div-loading {
    flex-direction: row;
    min-width: 200px;
}

/* 文本样式 */
.loading-title, .loading-discription {
    margin: 8px 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cpt-loading-mask.row .loading-title {
    margin-bottom: 0;
    margin-left: 15px;
    text-align: left;
}
.cpt-loading-mask.row .loading-discription {
    display: none; /* 横向模式下隐藏描述，保持简洁 */
}

/* 动画容器 */
.loading {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Origin 类型动画 (旋转点) --- */
.loading.origin {
    gap: 6px; /* 小球间距 */
}

.div-loadingOrigin {
    width: 8px;
    height: 8px;
    background: #fefefe;
    border-radius: 50%;
    display: inline-block;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

/* 小尺寸模式 */
.cpt-loading-mask.small .div-loadingOrigin {
    width: 6px;
    height: 6px;
    margin: 0; 
}

/* 动画关键帧 */
@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

/* 延迟设置，形成波浪 */
.div-loadingOrigin:nth-child(1) { animation-delay: -0.32s; }
.div-loadingOrigin:nth-child(2) { animation-delay: -0.16s; }
.div-loadingOrigin:nth-child(3) { animation-delay: 0s; }
.div-loadingOrigin:nth-child(4) { animation-delay: 0.16s; }
.div-loadingOrigin:nth-child(5) { animation-delay: 0.32s; }

/* --- Pic 类型动画 --- */
.loading.pic img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --- 进入动画 --- */
@keyframes fadeInNoTransform {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animated-fadeIn {
    animation: fadeInNoTransform 0.4s ease-out forwards;
}