/* ===== 全局素材加载门禁 ===== */
html.pg-loading,
html.pg-loading body {
    visibility: hidden;
    overflow: hidden;
    height: 100%;
}

html.pg-loading #pgMask {
    visibility: visible;
}

#pgMask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0EC 50%, #E3F2FD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: opacity 0.5s ease;
}

#pgMask.pg-fade {
    opacity: 0;
    pointer-events: none;
}

.pg-inner {
    text-align: center;
    padding: 20px;
}

.pg-spinner {
    width: 56px;
    height: 56px;
    border: 6px solid rgba(255, 143, 171, 0.25);
    border-top-color: #FF8FAB;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pgSpin 0.9s linear infinite;
}

@keyframes pgSpin {
    to { transform: rotate(360deg); }
}

.pg-text {
    font-size: 16px;
    color: #8B6F5E;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.pg-bar {
    width: 240px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin: 0 auto 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pg-bar-inner {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    background: linear-gradient(90deg, #FF8FAB, #FFB86B);
    transition: width 0.25s ease;
}

.pg-pct {
    font-size: 14px;
    color: #C07A4E;
    font-weight: 700;
}

.pg-actions {
    margin-top: 16px;
}

.pg-timeout-text {
    font-size: 14px;
    color: #E2603F;
    margin-bottom: 12px;
    font-weight: 600;
}

.pg-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pg-btn:active {
    transform: scale(0.94);
}

.pg-btn-primary {
    background: linear-gradient(135deg, #FF8FAB, #FF6E9C);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 110, 156, 0.35);
}

.pg-btn-ghost {
    background: #fff;
    color: #8B6F5E;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
