/* 重置样式，避免冲突 */
._role-creator-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

._role-creator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    overflow: hidden;
}

._role-creator-avatar-container {
    position: absolute;
    top: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

._role-creator-center-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    position: relative;

    /* 添加光晕效果 */
    /*box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);*/
     /* 更强的光晕效果 */
    animation: intensePurpleGlow 3s ease-in-out infinite alternate;
}

/* 紫色光晕动画 */
/* 强烈紫色光晕动画 */
@keyframes intensePurpleGlow {
    0% {
        box-shadow:
            0 0 10px rgba(102, 126, 234, 0.5),
            0 0 20px rgba(102, 126, 234, 0.3),
            0 0 30px rgba(102, 126, 234, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(102, 126, 234, 0.8),
            0 0 40px rgba(102, 126, 234, 0.6),
            0 0 60px rgba(102, 126, 234, 0.4);
    }
    100% {
        box-shadow:
            0 0 30px rgba(102, 126, 234, 1),
            0 0 60px rgba(102, 126, 234, 0.8),
            0 0 90px rgba(102, 126, 234, 0.6);
    }
}

._role-creator-glow-effect {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 30px 15px rgba(160, 100, 255, 0.6);
    animation: _role-creator-glowPulse 2s ease-in-out infinite;
    z-index: 5;
}

._role-creator-glow-effect-outer {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 40px 10px rgba(140, 80, 255, 0.4);
    animation: _role-creator-glowPulseOuter 3s ease-in-out infinite;
    z-index: 4;
}

@keyframes _role-creator-glowPulse {
    0%, 100% {
        box-shadow: 0 0 30px 10px rgba(160, 100, 255, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px 20px rgba(180, 120, 255, 0.8);
        transform: scale(1.05);
    }
}

@keyframes _role-creator-glowPulseOuter {
    0%, 100% {
        box-shadow: 0 0 40px 5px rgba(140, 80, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px 15px rgba(160, 100, 255, 0.6);
        transform: scale(1.1);
    }
}

._role-creator-card {
    position: absolute;
    bottom: 80px;
    width: 85%;
    max-width: 400px;
    height: 70px;
    background: rgba(30, 30, 40, 0.8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

._role-creator-text-container {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

._role-creator-text {
    position: absolute;
    width: 100%;
    text-align: left;
    font-size: 16px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

._role-creator-text.active {
    opacity: 1;
    transform: translateY(0);
}

._role-creator-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #a0a0ff;
    border-radius: 50%;
    animation: _role-creator-spin 1s linear infinite;
}

@keyframes _role-creator-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

._role-creator-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

._role-creator-emoji {
    position: absolute;
    font-size: 42px;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
    z-index: 5;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes _role-creator-floatToCenter {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(var(--target-x), var(--target-y)) scale(0.4) rotate(15deg);
    }
}